📄 total_hours.php
字号:
}}}}if (!isset($evil_post)) {if (empty($to_date)) {$evil_post = '1';if ($use_reports_password == "yes") {include '../admin/topmain.php';} else {include 'topmain.php';}echo "<table width=100% height=89% border=0 cellpadding=0 cellspacing=1>\n";echo " <tr valign=top>\n";echo " <td>\n";echo " <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";echo " <tr class=right_main_text>\n";echo " <td valign=top>\n";echo " <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo " <tr>\n";echo " <td class=table_rows width=20 align=center><img src='../images/icons/cancel.png' /></td><td class=table_rows_red> A valid To Date is required.</td></tr>\n";echo " </table>\n";}elseif (!eregi ("^([0-9]?[0-9])+[-|/|.]+([0-9]?[0-9])+[-|/|.]+(([0-9]{2})|([0-9]{4}))$", $to_date, $date_regs)) {$evil_post = '1';if ($use_reports_password == "yes") {include '../admin/topmain.php';} else {include 'topmain.php';}echo "<table width=100% height=89% border=0 cellpadding=0 cellspacing=1>\n";echo " <tr valign=top>\n";echo " <td>\n";echo " <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";echo " <tr class=right_main_text>\n";echo " <td valign=top>\n";echo " <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo " <tr>\n";echo " <td class=table_rows width=20 align=center><img src='../images/icons/cancel.png' /></td><td class=table_rows_red> A valid To Date is required.</td></tr>\n";echo " </table>\n";} else {if ($calendar_style == "amer") {if (isset($date_regs)) {$to_month = $date_regs[1]; $to_day = $date_regs[2]; $to_year = $date_regs[3];}if ($to_month > 12 || $to_day > 31) {$evil_post = '1';if ($use_reports_password == "yes") {include '../admin/topmain.php';} else {include 'topmain.php';}echo "<table width=100% height=89% border=0 cellpadding=0 cellspacing=1>\n";echo " <tr valign=top>\n";echo " <td>\n";echo " <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";echo " <tr class=right_main_text>\n";echo " <td valign=top>\n";echo " <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo " <tr>\n";echo " <td class=table_rows width=20 align=center><img src='../images/icons/cancel.png' /></td><td class=table_rows_red> A valid To Date is required.</td></tr>\n";echo " </table>\n";}}elseif ($calendar_style == "euro") {if (isset($date_regs)) {$to_month = $date_regs[2]; $to_day = $date_regs[1]; $to_year = $date_regs[3];}if ($to_month > 12 || $to_day > 31) {$evil_post = '1';if ($use_reports_password == "yes") {include '../admin/topmain.php';} else {include 'topmain.php';}echo "<table width=100% height=89% border=0 cellpadding=0 cellspacing=1>\n";echo " <tr valign=top>\n";echo " <td>\n";echo " <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";echo " <tr class=right_main_text>\n";echo " <td valign=top>\n";echo " <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo " <tr>\n";echo " <td class=table_rows width=20 align=center><img src='../images/icons/cancel.png' /></td><td class=table_rows_red> A valid To Date is required.</td></tr>\n";echo " </table>\n";}}}}if (isset($evil_post)) {echo " <br />\n";echo " <form name='form' action='$self' method='post' onsubmit=\"return isFromOrToDate();\">\n";echo " <table align=center class=table_border width=60% border=0 cellpadding=3 cellspacing=0>\n";echo " <tr>\n";echo " <th class=rightside_heading nowrap halign=left colspan=3><img src='../images/icons/report.png' /> Hours Worked Report</th></tr>\n";echo " <tr><td height=15></td></tr>\n";echo " <input type='hidden' name='date_format' value='$js_datefmt'>\n";if ($username_dropdown_only == "yes") {$query = "select empfullname from ".$db_prefix."employees order by empfullname asc";$result = mysql_query($query);echo " <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Username:</td><td colspan=2 align=left width=80% style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'> <select name='user_name'>\n";echo " <option value ='All'>All</option>\n";while ($row=mysql_fetch_array($result)) { $empfullname_tmp = stripslashes("".$row['empfullname'].""); echo " <option>$empfullname_tmp</option>\n";}echo " </select> *</td></tr>\n";mysql_free_result($result);} else {echo " <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Choose Office:</td><td colspan=2 width=80% style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'> <select name='office_name' onchange='group_names();'>\n";echo " </select></td></tr>\n";echo " <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Choose Group:</td><td colspan=2 width=80% style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'> <select name='group_name' onfocus='group_names();'> <option selected>$group_name</option>\n";echo " </select></td></tr>\n";echo " <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Choose Username:</td><td colspan=2 width=80% style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'> <select name='user_name' onfocus='user_names();'> <option selected>$fullname</option>\n";echo " </select></td></tr>\n";}echo " <tr><td class=table_rows style='padding-left:32px;' width=20% nowrap>From Date: ($tmp_datefmt)</td><td style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;' width=80% > <input type='text' size='10' maxlength='10' name='from_date' value='$from_date' style='color:#27408b'> * <a href=\"#\" onclick=\"form.from_date.value='';cal.select(document.forms['form'].from_date,'from_date_anchor','$js_datefmt'); return false;\" name=\"from_date_anchor\" id=\"from_date_anchor\" style='font-size:11px;color:#27408b;'>Pick Date</a></td><tr>\n";echo " <tr><td class=table_rows style='padding-left:32px;' width=20% nowrap>To Date: ($tmp_datefmt)</td><td style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;' width=80% > <input type='text' size='10' maxlength='10' name='to_date' value='$to_date' style='color:#27408b'> * <a href=\"#\" onclick=\"form.to_date.value='';cal.select(document.forms['form'].to_date,'to_date_anchor','$js_datefmt'); return false;\" name=\"to_date_anchor\" id=\"to_date_anchor\" style='font-size:11px;color:#27408b;'>Pick Date</a></td><tr>\n";echo " <tr><td class=table_rows align=right colspan=3 style='color:red;font-family:Tahoma;font-size:10px;'>* required </td></tr>\n";echo " </table>\n";echo " <div style=\"position:absolute;visibility:hidden;background-color:#ffffff;layer-background-color:#ffffff;\" id=\"mydiv\" height=200> </div>\n";echo " <table align=center width=60% border=0 cellpadding=0 cellspacing=3>\n";echo " <tr><td class=table_rows height=25 valign=bottom>1. Export to CSV? (link to CSV file will be in the top right of the next page)</td></tr>\n";if ($tmp_csv == "1") {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='csv' value='1' checked> Yes<input type='radio' name='csv' value='0'> No</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='csv' value='1' > Yes <input type='radio' name='csv' value='0' checked> No</td></tr>\n";}echo " <tr><td class=table_rows valign=bottom height=25 valign=bottom>2. Paginate this report so each user's time is printed on a separate page?</td></tr>\n";if ($tmp_paginate == '1') {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_paginate' value='1' checked> Yes <input type='radio' name='tmp_paginate' value='0'> No</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_paginate' value='1'> Yes <input type='radio' name='tmp_paginate' value='0' checked> No</td></tr>\n";}echo " <tr><td class=table_rows height=25 valign=bottom>3. Show punch-in/out details?</td></tr>\n";if (strtolower($ip_logging) == "yes") {if ($tmp_show_details == '1') {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_show_details' value='1' checked onFocus=\"javascript:form.tmp_display_ip[0].disabled=false;form.tmp_display_ip[1].disabled=false;\"> Yes <input type='radio' name='tmp_show_details' value='0' onFocus=\"javascript:form.tmp_display_ip[0].disabled=true; form.tmp_display_ip[1].disabled=true;\"> No</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_show_details' value='1' onFocus=\"javascript:form.tmp_display_ip[0].disabled=false;form.tmp_display_ip[1].disabled=false;\"> Yes <input type='radio' name='tmp_show_details' value='0' checked onFocus=\"javascript:form.tmp_display_ip[0].disabled=true; form.tmp_display_ip[1].disabled=true;\"> No</td></tr>\n";}} else {if ($tmp_show_details == '1') {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_show_details' value='1' checked> Yes <input type='radio' name='tmp_show_details' value='0'> No</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_show_details' value='1' > Yes <input type='radio' name='tmp_show_details' value='0' checked> No</td></tr>\n";}}if (strtolower($ip_logging) == "yes") {echo " <tr><td class=table_rows height=25 valign=bottom>4. Display connecting ip address information? (only available if \"Show punch-in/out details?\" is set to \"Yes\".)</td></tr>\n";if ($tmp_show_details == '1') {if ($tmp_display_ip == "1") {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_display_ip' value='1' checked> Yes <input type='radio' name='tmp_display_ip' value='0'> No</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_display_ip' value='1' > Yes <input type='radio' name='tmp_display_ip' value='0' checked> No</td></tr>\n";}} else {if ($tmp_display_ip == "1") {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_display_ip' value='1' checked disabled> Yes <input type='radio' name='tmp_display_ip' value='0' disabled> No</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_display_ip' value='1' disabled> Yes <input type='radio' name='tmp_display_ip' value='0' checked disabled> No</td></tr>\n";}}} if (strtolower($ip_logging) == "yes") {echo " <tr><td colspan=2 class=table_rows height=25 valign=bottom>5. Round each user's time?</td></tr>\n";} else {echo " <tr><td colspan=2 class=table_rows height=25 valign=bottom>4. Round each user's time?</td></tr>\n";}if ($tmp_round_time == '1') {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_round_time' value='1' checked> To the nearest 5 minutes (1/12th of an hour)</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_round_time' value='1'> To the nearest 5 minutes (1/12th of an hour)</td></tr>\n";}if ($tmp_round_time == '2') {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_round_time' value='2' checked> To the nearest 10 minutes (1/6th of an hour)</td></tr>\n";} else {echo " <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_round_time' value='2'> To the nearest 10 minutes (1/6th of an hour)</td></tr>\n";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -