[otrs-cvs] CVS: otrs/Kernel/Output/HTML/Standard CustomerLogin.dtl, 1.16, 1.17 Login.dtl, 1.25, 1.26 AAABase.dtl, 1.50, 1.51 AAAPreferences.dtl, 1.13, 1.14

cvs-log at otrs.org cvs-log at otrs.org
Wed Nov 8 17:25:55 CET 2006


Update of /home/cvs/otrs/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv12155/Kernel/Output/HTML/Standard

Modified Files:
	CustomerLogin.dtl Login.dtl AAABase.dtl AAAPreferences.dtl 
Log Message:
added set auto time zone if agent based on java script offset feature on every login

Index: CustomerLogin.dtl
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Standard/CustomerLogin.dtl,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** CustomerLogin.dtl	16 Oct 2006 19:52:29 -0000	1.16
--- CustomerLogin.dtl	8 Nov 2006 16:25:53 -0000	1.17
***************
*** 14,17 ****
--- 14,42 ----
  
  <!-- start login -->
+ 
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ function submit_form()
+ {
+ 
+ #    if (!document.login.User.value) {
+ #        alert('$JSText{"Login is needed!"}');
+ #        return false;
+ #    }
+ #    else if (!document.login.Password.value) {
+ #        alert('$JSText{"Password is needed!"}');
+ #        return false;
+ #    }
+ 
+     now = new Date();
+     Diff = now.getTimezoneOffset() / 60;
+     document.login.TimeOffset.value = Diff;
+ 
+     return true;
+ 
+ }
+ //-->
+ </script>
+ 
  <p>
    <center>
***************
*** 23,30 ****
      <tr>
        <td class="singleboxbody">
!         <form action="$Env{"CGIHandle"}" method="post" enctype="application/x-www-form-urlencoded">
            <input type="hidden" name="Action" value="Login">
            <input type="hidden" name="RequestedURL" value="$QData{"RequestedURL"}">
            <input type="hidden" name="Lang" value="$Env{"UserLanguage"}">
            <table cellspacing="8" cellpadding="2">
              <tr>
--- 48,56 ----
      <tr>
        <td class="singleboxbody">
!         <form action="$Env{"CGIHandle"}" method="post" enctype="application/x-www-form-urlencoded" name="login">
            <input type="hidden" name="Action" value="Login">
            <input type="hidden" name="RequestedURL" value="$QData{"RequestedURL"}">
            <input type="hidden" name="Lang" value="$Env{"UserLanguage"}">
+           <input type="hidden" name="TimeOffset" value="">
            <table cellspacing="8" cellpadding="2">
              <tr>
***************
*** 37,41 ****
              </tr>
            </table>
!           <input class="button" type="submit" value="$Text{"Login"}">
          </form>
        </td>
--- 63,67 ----
              </tr>
            </table>
!           <input class="button" type="submit" value="$Text{"Login"}" onclick="return submit_form();">
          </form>
        </td>

Index: Login.dtl
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Standard/Login.dtl,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** Login.dtl	26 Aug 2006 17:01:21 -0000	1.25
--- Login.dtl	8 Nov 2006 16:25:53 -0000	1.26
***************
*** 29,32 ****
--- 29,56 ----
  <body onLoad="document.login.User.focus();">
  
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ function submit_form()
+ {
+ 
+ #    if (!document.login.User.value) {
+ #        alert('$JSText{"Login is needed!"}');
+ #        return false;
+ #    }
+ #    else if (!document.login.Password.value) {
+ #        alert('$JSText{"Password is needed!"}');
+ #        return false;
+ #    }
+ 
+     now = new Date();
+     Diff = now.getTimezoneOffset() / 60;
+     document.login.TimeOffset.value = Diff;
+ 
+     return true;
+ 
+ }
+ //-->
+ </script>
+ 
  <center>
  
***************
*** 40,43 ****
--- 64,68 ----
      <input type="hidden" name="RequestedURL" value="$QData{"RequestedURL"}">
      <input type="hidden" name="Lang" value="$Env{"UserLanguage"}">
+     <input type="hidden" name="TimeOffset" value="">
  
      <table border="0" cellspacing="0" cellpadding="3" width="270">
***************
*** 57,61 ****
              </tr>
            </table>
!           <input class="button" type="submit" value="$Text{"Login"}">
          </td>
        </tr>
--- 82,86 ----
              </tr>
            </table>
!           <input class="button" type="submit" value="$Text{"Login"}" onclick="return submit_form();">
          </td>
        </tr>

Index: AAABase.dtl
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Standard/AAABase.dtl,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -r1.50 -r1.51
*** AAABase.dtl	12 Oct 2006 07:36:45 -0000	1.50
--- AAABase.dtl	8 Nov 2006 16:25:53 -0000	1.51
***************
*** 178,181 ****
--- 178,183 ----
  
  # misc
+ $Text{"Login is needed!"}
+ $Text{"Password is needed!"}
  $Text{"License"}
  $Text{"Take this Customer"}

Index: AAAPreferences.dtl
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Standard/AAAPreferences.dtl,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** AAAPreferences.dtl	29 Aug 2006 16:56:06 -0000	1.13
--- AAAPreferences.dtl	8 Nov 2006 16:25:53 -0000	1.14
***************
*** 28,31 ****
  $Text{"Can't update password, need min. 1 digit!"}
  $Text{"Can't update password, need min. 2 characters!"}
- $Text{"Password is needed!"}
- 
--- 28,29 ----



More information about the cvs-log mailing list