⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timerpt.php

📁 网页打卡钟系统,源码提供给大家学习一下啦!希望给大家带来帮助
💻 PHP
📖 第 1 页 / 共 3 页
字号:
<?phpsession_start();$self = $_SERVER['PHP_SELF'];$request = $_SERVER['REQUEST_METHOD'];$current_page = "timerpt.php";include '../config.inc.php';if ($use_reports_password == "yes") {if (!isset($_SESSION['valid_reports_user'])) {echo "<title>$title</title>\n";include '../admin/header.php';include '../admin/topmain.php';echo "<table width=100% border=0 cellpadding=7 cellspacing=1>\n";echo "  <tr class=right_main_text><td height=10 align=center valign=top scope=row class=title_underline>PHP Timeclock Reports</td></tr>\n";echo "  <tr class=right_main_text>\n";echo "    <td align=center valign=top scope=row>\n";echo "      <table width=200 border=0 cellpadding=5 cellspacing=0>\n";echo "        <tr class=right_main_text><td align=center>You are not presently logged in, or do not have permission to view this page.</td></tr>\n";echo "        <tr class=right_main_text><td align=center>Click <a class=admin_headings href='../login_reports.php'><u>here</u></a> to login.</td></tr>\n";echo "      </table><br /></td></tr></table>\n"; exit;}}echo "<title>$title - Daily Time Report</title>\n";if ($request == 'GET') {include 'header_get_reports.php';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 "            <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' />&nbsp;&nbsp;&nbsp;Daily                     Time 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 * 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)) {  $tmp_empfullname = stripslashes("".$row['empfullname']."");  echo "                    <option>$tmp_empfullname</option>\n";}echo "                  </select>&nbsp;*</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' onchange='user_names();'>\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'>\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' style='color:#27408b'>&nbsp;*&nbsp;&nbsp;                      <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' style='color:#27408b'>&nbsp;*&nbsp;&nbsp;                      <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;'>*&nbsp;required&nbsp;</td></tr>\n";echo "            </table>\n";echo "            <div style=\"position:absolute;visibility:hidden;background-color:#ffffff;layer-background-color:#ffffff;\" id=\"mydiv\"                 height=200>&nbsp;</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.&nbsp;&nbsp;&nbsp;Export to CSV? (link to CSV file will be in the top right of                       the next page)</td></tr>\n";if (strtolower($export_csv) == "yes") {echo "              <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='csv' value='1' checked>&nbsp;Yes                      <input type='radio' name='csv' value='0'>&nbsp;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'>&nbsp;Yes                      <input type='radio' name='csv' value='0' checked>&nbsp;No</td></tr>\n";}if (strtolower($ip_logging) == "yes") {echo "              <tr><td class=table_rows height=25 valign=bottom>2.&nbsp;&nbsp;&nbsp;Display connecting ip address information?                      </td></tr>\n";if ($display_ip == "yes") {echo "              <tr><td class=table_rows align=left nowrap style='padding-left:15px;'><input type='radio' name='tmp_display_ip' value='1'                      checked>&nbsp;Yes<input type='radio' name='tmp_display_ip' value='0'>&nbsp;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' >&nbsp;Yes                      <input type='radio' name='tmp_display_ip' value='0' checked>&nbsp;No</td></tr>\n";}}echo "              <tr><td height=10></td></tr>\n";echo "            </table>\n";echo "            <table align=center width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr><td width=30><input type='image' name='submit' value='Edit Time' align='middle'                      src='../images/buttons/next_button.png'></td><td><a href='timeadmin.php'><img src='../images/buttons/cancel_button.png'                      border='0'></td></tr></table></form></td></tr>\n"; include '../footer.php';exit;} else {include 'header_post_reports.php';@$office_name = $_POST['office_name'];@$group_name = $_POST['group_name'];$fullname = stripslashes($_POST['user_name']);$from_date = $_POST['from_date'];$to_date = $_POST['to_date'];@$tmp_display_ip = $_POST['tmp_display_ip'];@$tmp_csv = $_POST['csv'];$fullname = addslashes($fullname);// begin post error checking //if ($fullname != "All") {$query = "select * from ".$db_prefix."employees where empfullname = '".$fullname."'";$result = mysql_query($query);while ($row=mysql_fetch_array($result)) {$empfullname = stripslashes("".$row['empfullname']."");$displayname = stripslashes("".$row['displayname']."");}if (!isset($empfullname)) {echo "Something is fishy here.\n"; exit;}}$fullname = stripslashes($fullname);if (($office_name != "All") && (!empty($office_name))) {$query = "select officename from ".$db_prefix."offices where officename = '".$office_name."'";$result = mysql_query($query);while ($row=mysql_fetch_array($result)) {$getoffice = "".$row['officename']."";}if (!isset($getoffice)) {echo "Something smells fishy here.\n"; exit;}}if (($group_name != "All") && (!empty($group_name))) {$query = "select groupname from ".$db_prefix."groups where groupname = '".$group_name."'";$result = mysql_query($query);while ($row=mysql_fetch_array($result)) {$getgroup = "".$row['groupname']."";}if (!isset($getgroup)) {echo "Something smells fishy here.\n"; exit;}}if (isset($tmp_display_ip)) {if (($tmp_display_ip != '1') && (!empty($tmp_display_ip))) {$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>                    Choose \"yes\" or \"no\" to the \"<b>Display connecting ip address information?</b>\" question.</td></tr>\n";echo "            </table>\n";}}elseif (isset($tmp_csv)) {if (($tmp_csv != '1') && (!empty($tmp_csv))) {$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>                    Choose \"yes\" or \"no\" to the \"<b>Export to CSV?</b>\" question.</td></tr>\n";echo "            </table>\n";}}if (!isset($evil_post)) {if (empty($from_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 From 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}))$", $from_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";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -