ehime

jeff

Apr 24th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.67 KB | None | 0 0
  1. <!--starthtml:portaladapter-->
  2. <html>
  3. <head>
  4. <title>ADP TimeSaver</title>
  5. <meta http-equiv="Cache-control" content="private, no-cache">
  6. <meta http-equiv="Expires" content="-1">
  7. <meta http-equiv="Pragma" content="no-cache">
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  9. <link href="../ADPUI.css?1392050262" rel="stylesheet" type="text/css" media="screen"></link>
  10. <link href="../style.css?1392050262" rel="stylesheet" type="text/css" media="screen"></link>
  11. <script src="../inc/basic.js.php?language=&1392050258" type="text/javascript"></script>
  12. <script src="../inc/tsbasic.js?1392050258" type="text/javascript"></script>
  13. <script src="../Framework/js/base.js?1392050086" type="text/javascript"></script>
  14. <script src="../Framework/js/base.js.php?language=&1392050086" type="text/javascript"></script>
  15. <script src="../TS/WebHelp/RoboHelp_CSH.js?1392050558" type="text/javascript"></script>
  16.  
  17. <script type="text/javascript">
  18. <!--
  19.  
  20. var sCSRFTokenName = '';
  21. var sCSRFTokenKey = '';
  22. var iMinButtonWidth = 90;
  23.  
  24. function setButtonWidth() {
  25.   var buttons = document.getElementsByTagName('button');
  26.   for (i=0; i < buttons.length; i++) {
  27.     buttonTextRow = buttons[i].getElementsByTagName('td');
  28.     iExtraWidth = 42;
  29.     if (ns6 || ns61) { iExtraWidth = 58; }
  30.     if (buttonTextRow[1].offsetWidth < iMinButtonWidth) { buttonTextRow[1].style.width = iMinButtonWidth; }
  31.     buttons[i].style.width = buttonTextRow[1].offsetWidth + iExtraWidth;
  32.   }
  33. }
  34.  
  35. function adjustButtonWidth(sId) {
  36.   if (document.getElementById(sId)) {
  37.     if (document.getElementById(sId).style.display != 'none') {
  38.       buttonTextRow = document.getElementById(sId).getElementsByTagName('td');
  39.       iExtraWidth = 42;
  40.       if (ns6 || ns61) { iExtraWidth = 66; }
  41.       if (document.getElementById(sId + 'Center').offsetWidth < iMinButtonWidth) { document.getElementById(sId + 'Center').style.width = iMinButtonWidth; }
  42.       document.getElementById(sId).style.width = document.getElementById(sId + 'Center').offsetWidth + iExtraWidth;
  43.       if (ns6 || ns61) {
  44.         if ((document.getElementById(sId + 'Center').offsetWidth + iExtraWidth) < (iMinButtonWidth + iExtraWidth) || parseInt(document.getElementById(sId).style.width) < (iMinButtonWidth + iExtraWidth)) {
  45.           document.getElementById(sId).style.width = iMinButtonWidth + iExtraWidth;
  46.         }
  47.       }
  48.     }
  49.   }
  50. }
  51.  
  52. function changeLanguage(sLangId) {
  53.   if (document.getElementById('formTranslate').language) {
  54.     document.getElementById('formTranslate').language.value = sLangId;
  55.   } else {
  56.     document.getElementById('divTranslateAux').innerHTML = '<input type="hidden" name="language" value="' + sLangId + '">';
  57.   }
  58.   document.getElementById('formTranslate').submit();
  59. }
  60.  
  61. function goToLoginPage() {
  62.     window.location='login.php';
  63. }
  64.  
  65. function frameBreaker() {
  66.     if (top != self)
  67.         top.location = self.location;
  68. }
  69.  
  70. ADP.onDOMReady(function() {
  71.     CSRFValidati</inputp("", "");
  72. });
  73.  
  74. //-->
  75. </script>
  76. <style>
  77. body {
  78.     cursor: wait;
  79. }
  80. </style>
  81. </head>
  82. <body margintop="0" rightmargin="0" onload="frameBreaker();setButtonWidth();" onunload="closeAllInfoWindows();">
  83. <input type="hidden" name="SessionTime" id="SessionTime" value="" />
  84. <div id="divTranslate" style="display:none">
  85.   <form name="formTranslate" id="formTranslate" method="post">
  86.     <div id="divTranslateAux" style="display:none"></div>
  87.   </form>
  88. </div>
  89.             <table background="../images/LoginPage.jpg" border="0" width="100%" cellspacing="0" cellpadding="0" height="100%" class="ADPUI-tableWidth">
  90.  
  91.       <tr id="trMasterHeader" width="100%" height="36" valign="top">
  92.     <td colspan="2">
  93.                     <TABLE height=45 width="100%" border="0">
  94.                 <TR>
  95.                         <TD rowSpan=2>&nbsp;<IMG height="98" src="../images/timesaver_2c_logo.gif" width=270 border=0>&nbsp;&nbsp;&nbsp;</TD>
  96.                 <TD width="100%" rowSpan=2 align="left" style="font-size:24px;font-weight:bold;"></TD>
  97.                           </TR>
  98.         <TR>
  99.                   </TR>
  100.       </TABLE>
  101.     </td>
  102.   </tr>
  103.   <tr id="trMasterBody" valign="top">
  104.     <td id="tdMasterBody" class="body" width="100%" style="padding-left: 10px; padding-right: 10px">
  105.  
  106.  
  107.  
  108. <script type="text/javascript">
  109. <!--
  110. var iWorkStationTimeOutCheck = Number(1);     // How often in minutes to check for session timeout.
  111. var nSessionTimesOut = Number(18);            // The number of minutes before the session is automatically timed out.
  112. var iTimeOutSite;                             // Used to clear timers.
  113. var iTimeOutSiteConfirm;                      // Used to clear timers.
  114. var hwin;
  115.  
  116. function initTimeOutSession() {
  117.   if (parseInt(iWorkStationTimeOutCheck) > 0) {
  118.     try {clearTimeout(iTimeOutSite) } catch(e) {};
  119.     try {clearTimeout(iTimeOutSiteConfirm) } catch(e) {};
  120.     iTimeOutSite = setTimeout('callLoginSession();', (parseInt(iWorkStationTimeOutCheck)*60*2000) + 30000);
  121.     iTimeOutSiteConfirm = setTimeout('callConfirmTimeOutSession();', (parseInt(iWorkStationTimeOutCheck)*60*2000) - 30000);
  122.   }
  123. }
  124.  
  125. function callLoginSession() {
  126.     try {
  127.         // In case confirmation pop-up was not closed, then close it.
  128.         hwin.close();
  129.         // Close all info windows (TSSelection will close if it's still open)
  130.         closeAllInfoWindows();
  131.     } catch (e) { }
  132.     document.location = "login.php?timeout=true";
  133. }
  134.  
  135. function callConfirmTimeOutSession() {
  136.  //Check saved minutes from last access to the server again current minutes.
  137.  //If greater than or equal to 18 minutes then display message, else reset check counter and check again in 1 minute.
  138.  
  139.  //Get saved server minutes
  140.  var lastserverminutes = Number(document.getElementById('SessionTime').value);
  141.  
  142.  //Get current Hour and Minutes
  143.  dDate = new Date();
  144.  var hours = Number(dDate.getHours());
  145.  var minutes = Number(dDate.getMinutes());
  146.  var currentminutes = ((hours*60)+minutes);
  147.  
  148.  //Calc offset
  149.  var nminsoffset = (currentminutes - lastserverminutes);
  150.  if (nminsoffset >= nSessionTimesOut || nminsoffset < 0) {
  151.     hwin = openInfoWindow(585, 100, 'no', 'no', 'no', 'no', 'no', 'TSSessionConfirm.php', 'SessionTimeout');
  152.  } else {
  153.      initTimeOutSession();   //Not timeout period, so reset counter.
  154.  }
  155. }
  156.  
  157. function ResetServerTime() {
  158.   //Set server compare minutes to current time.
  159.   //Get current Hour and Minutes
  160.   try {
  161.       dDate = new Date();
  162.       var hours = Number(dDate.getHours());
  163.       var minutes = Number(dDate.getMinutes());
  164.       var currentminutes = ((hours*60)+minutes);
  165.       document.getElementById('SessionTime').value = Number(currentminutes);
  166.       }
  167.   catch (e) {}
  168. }
  169.  
  170. //-->
  171. </script>
  172. <script type="text/javascript">
  173. try {
  174.     ResetServerTime();
  175. } catch (e) { }
  176. </script>
  177.  
  178. </tr>
  179. <tr>
  180.     <td colspan="2">
  181.     <div id="logintimeout" align="center" style="display:none;">
  182.         <table width="100%"><tr><td><br><b><font size="2" color="red">Your TimeSaver session has expired, please login again.</font></b></td></tr></table>
  183.     </div>
  184.     </td>
  185. </tr>
  186. <tr>
  187.     <td width="*">&nbsp;</td>
  188.     <td valign="bottom">
  189.         <form name="TSindex_FRM" id="TSindex_FRM" method="post" action="/i18/g20s/TS/login.php">
  190.             <input type="hidden" name="Submit" value="Submit">
  191.             <table border="0" cellspacing="0" cellpadding="3" style="margin-bottom: 40px; margin-right: 146px">
  192.                 <tr>
  193.                     <td><p>User Type:</p></td>
  194.                     <td align="center"><p>
  195.                         <table border="0" cellspacing="0" cellpadding="3">
  196.                             <tr>
  197.                                 <td align="right" width="1%"><input type="radio" name="loginusertype" id="loginusertypeManager" onClick="username.select();" value="0"></td>
  198.                                 <td><p>
  199.                                     <label for="loginusertypeManager">Manager&nbsp;</label>
  200.                                 </p></td>
  201.                             </tr>
  202.                             <tr>
  203.                                 <td align="right" width="1%"><input type="radio" name="loginusertype" id="loginusertypeEmployee" onClick="username.select();" value="1" checked></td>
  204.                                 <td><p>
  205.                                     <label for="loginusertypeEmployee">Employee&nbsp;</label>
  206.                                 </p></td>
  207.                             </tr>
  208.                         </table>
  209.                     </p></td>
  210.                 </tr>
  211.                 <tr>
  212.                     <td colspan="2"><p>&nbsp;</p></td>
  213.                 </tr>
  214.                 <tr>
  215.                     <td nowrap><p>Username:</p></td>
  216.                     <td><p>
  217.                         <input type="text" size="23" name="username" id="username" value="" autocomplete="off" onkeypress="verifyKeyPress(event);" onfocus="this.select();">
  218.                     </p></td>
  219.                 </tr>
  220.                 <tr>
  221.                     <td nowrap><p>Password:</p></td>
  222.                     <td><p>
  223.                         <input type="password" size="23" name="password" id="password" autocomplete="off" onkeypress="verifyKeyPress(event);" onfocus="this.select();">
  224.                     </p></td>
  225.                 </tr>
  226.                 <tr>
  227.                     <td nowrap colspan="2">
  228.                                             </td>
  229.                 </tr>
  230.                 <tr>
  231.                     <td>&nbsp;</td>
  232.                     <td colspan="2" nowrap align="center">
  233.                         <button type="button" id="bttSubmit" class="ADPUI-button" onclick="javascript:document.getElementById('TSindex_FRM').submit();" style=""  onmouseover="window.status='';" onmousemove="window.status='Submit data';" onfocus="window.status='Submit data';" onblur="window.status='';" onmouseout="window.status='';" title="Submit data">
  234.   <table cellpadding="0" cellspacing="0"><tr>
  235.     <td id="bttSubmitLeft" class="ADPUI-activeButtonsLeft" nowrap="nowrap"></td>
  236.     <td id="bttSubmitCenter" class="ADPUI-activeButtons" nowrap="nowrap" style="width:90px;"><span style="white-space:nowrap;">Submit</span></td>
  237.     <td id="bttSubmitRight" class="ADPUI-activeButtonsRight" nowrap="nowrap"></td>
  238.   </tr></table>
  239. </button><script>document.getElementById("bttSubmit").disable = function(bDisabled) { window[bDisabled ? 'disableButton' : 'enableButton'](this.id); };</script>                    </td>
  240.                 </tr>
  241.             </table>
  242. </form>
  243. </td>
  244. </tr>
  245. <tr>
  246. <script>
  247. if (document.getElementById('username')) {
  248.     try {
  249.         document.getElementById('username').focus();
  250.     } catch(ex) {};
  251. }
  252.  
  253. function verifyKeyPress(event) {
  254.     iKeyCode = (navigator.appName.indexOf("Netscape") != -1 ? event.which : event.keyCode);
  255.     if (iKeyCode == 13) {
  256.         if (document.getElementById('username')) {
  257.             if (document.getElementById('username').value) {
  258.                 if ( document.getElementById('password') ) {
  259.                     if (document.getElementById('password').value) {
  260.                         window.setTimeout("document.getElementById('TSindex_FRM').submit();", 50);
  261.                     } else {
  262.                         document.getElementById('password').focus();
  263.                     }
  264.                 }
  265.             } else {
  266.                 document.getElementById('username').focus();
  267.             }
  268.         }
  269.     }
  270. }
  271.  
  272. //Display message if system automatically timed out user.
  273.  
  274. </script>
  275.     </td>
  276. </tr><tr id="trMasterFooter" height="20" class="ADPUI-footerBgColor">
  277.   <td colspan="2">
  278.     <table width="100%" class="ADPUI-footerText">
  279.       <tr>
  280.         <td>&nbsp;<b><a href="javascript:void(0)" onclick="alert('Last Update - Monday, February 10, 2014 - 11:39:8.981 (TS_2014210_13430)');"><font color="white">&copy;</font></a>2014 Automatic Data Processing, Inc. All Rights Reserved.</b></td>
  281.         <td width="1%" nowrap align="right">&nbsp; <a href="javascript:void(0)" onclick="openInfoWindow(760, 450, 'no', 'yes', 'no', 'yes', 'no', '../inc/PrivacyStatement.htm', 'Privacy');"><font color="white">Privacy</font></a>&nbsp;</td>
  282.         <td width="4%">&nbsp;</td>
  283.         <td width="1%" nowrap align="right">&nbsp; <a href="javascript:void(0)" onclick="openInfoWindow(760, 450, 'no', 'yes', 'no', 'yes', 'no', 'http://www.adp.com/legal.asp', 'TermsCond');"><font color="white">Legal</font></a></td>
  284.         <td width="5%">&nbsp;</td>
  285.         <td width="1%" nowrap align="right">&nbsp; <a href="javascript:void(0)" onclick="openInfoWindow(760, 450, 'no', 'yes', 'no', 'yes', 'no', '../inc/SupportInfo.htm', 'ContactUs');"><font color="white">Contact Us</font></a></td>
  286.         <td width="4%">&nbsp;</td>
  287.  
  288.       </tr>
  289.   </table>
  290.   </td>
  291. </tr>
  292. </table>
  293. <input type="hidden" name="TSSWVersion" id="TSSWVersion" value="3.6.413430"/>
  294. <!--endhtml:portaladapter-->
  295. <style>
  296. body {
  297.     cursor: auto;
  298. }
  299. </style>
  300. </body>
  301. </html>
Advertisement
Add Comment
Please, Sign In to add comment