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

📄 sysedit.php

📁 网页打卡钟系统,源码提供给大家学习一下啦!希望给大家带来帮助
💻 PHP
📖 第 1 页 / 共 5 页
字号:
$row_count = '0'; $row_color = ($row_count % 2) ? $color2 : $color1;echo "              <tr><td nowrap style='border:solid #888888;border-width:0px 0px 1px 0px;' colspan=3>&nbsp;</td></tr>\n";echo "              <tr><th colspan=3 class=table_heading_no_color align=left>Reports Settings</th></tr>\n";echo "              <tr><td colspan=3 class=table_rows width=10% align=left style='padding-left:4px;'>Choose the way the reports are                       formatted <u>by default</u>. Most of these default settings can be changed when the reports are run.</td></tr>\n";echo "              <tr><td height=25 valign=bottom colspan=3 class=table_rows width=10% align=left style='padding-left:4px;'>                      <u>Round a User's Time:</u></td></tr>\n";echo "              <tr><td width=100% colspan=3><table width=100% border=0 cellpadding=0 cellspacing=0>\n";if ($round_time == '1') {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"1\" checked />&nbsp;To the nearest 5 minutes (1/12th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"4\" />&nbsp;To the nearest 20 minutes (1/3rd of an hour)</td></tr>\n";} elseif ($round_time == '4') {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"1\" />&nbsp;To the nearest minutes (1/12th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"4\" checked/>&nbsp;To the nearest 20 minutes (1/3rd of an hour)</td></tr>\n";} else {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"1\" />&nbsp;To the nearest 5 minutes (1/12th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"4\" />&nbsp;To the nearest 20 minutes (1/3rd of an hour)</td></tr>\n";}$row_count++; $row_color = ($row_count % 2) ? $color2: $color1;if ($round_time == '2') {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"2\" checked />&nbsp;To the nearest 10 minutes (1/6th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"5\" />&nbsp;To the nearest 30 minutes (1/2 of an hour)</td></tr>\n";} elseif ($round_time == '5') {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"2\" />&nbsp;To the nearest 10 minutes (1/6th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"5\" checked/>&nbsp;To the nearest 30 minutes (1/2 of an hour)</td></tr>\n";} else {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"2\" />&nbsp;To the nearest 10 minutes (1/6th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"5\" />&nbsp;To the nearest 30 minutes (1/2 of an hour)</td></tr>\n";}$row_count++; $row_color = ($row_count % 2) ? $color2: $color1;if ($round_time == '3') {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"3\" checked />&nbsp;To the nearest 15 minutes (1/4th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"0\" />&nbsp;Do not round.</td></tr>\n";} elseif (empty($round_time)) {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"3\" />&nbsp;To the nearest 15 minutes (1/4th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"0\" checked />&nbsp;Do not round.</td></tr>\n";} else {echo "              <tr><td bgcolor='$row_color' class=table_rows width=20% align=left valign=top nowrap><input type=\"radio\" name=\"round_time\"                       value=\"3\" />&nbsp;To the nearest 15 minutes (1/4th of an hour)</td><td bgcolor='$row_color' class=table_rows width=80%                       align=left valign=top>                      <input type=\"radio\" name=\"round_time\" value=\"0\" />&nbsp;Do not round.</td></tr>\n";}$row_count++; $row_color = ($row_count % 2) ? $color2: $color1;if ((!empty($round_time)) && ($round_time != '1') && ($round_time != '2') && ($round_time != '3') && ($round_time != '4') && ($round_time != '5')) {echo "              <tr><td colspan=3 valign=bottom height=30 bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top                       style='padding-left:5px;'><b>A valid Rounding Method has not been chosen in config.inc.php!! Choose one from above.</b></td></tr>\n";}echo "            </table></td></tr>\n";echo "              <tr><td height=25 valign=bottom colspan=3 class=table_rows width=10% align=left style='padding-left:4px;'>                      <u>Other Reports Settings:</u></td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2: $color1;echo "              <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>paginate:</td>\n";if ($paginate == "yes") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"paginate\"                       value=\"1\" checked />&nbsp;Yes<input type=\"radio\" name=\"paginate\" value=\"0\" />&nbsp;No</td>\n";} elseif ($paginate == "no") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"paginate\"                       value=\"1\" />&nbsp;Yes<input type=\"radio\" name=\"paginate\" value=\"0\" checked />&nbsp;No</td>\n";} else {echo "                  <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in                       config.inc.php</b></td>\n";echo "              <input type=\"hidden\" name=\"paginate\" value=\"2\">\n";}echo "                  <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Choose whether to paginate                       the Hours Worked report or not. Setting this option to \"yes\" will print each user's time on their own separate page.                       Default is \"<b>yes</b>\".</td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo "              <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>show_details:</td>\n";if ($show_details == "yes") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"show_details\"                       value=\"1\" checked />&nbsp;Yes<input type=\"radio\" name=\"show_details\" value=\"0\" />&nbsp;No</td>\n";} elseif ($show_details == "no") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"show_details\"                       value=\"1\" />&nbsp;Yes<input type=\"radio\" name=\"show_details\" value=\"0\" checked />&nbsp;No</td>\n";} else {echo "                  <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in                       config.inc.php</b></td>\n";echo "              <input type=\"hidden\" name=\"show_details\" value=\"2\">\n";}echo "                  <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Choose whether to show the                       punch-in/out details for each punch for each user on the Hours Worked report or not. Default is \"<b>yes</b>\".</td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo "              <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>report_start_time:</td>                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"text\" size=\"10\" maxlength=\"8\"                      name=\"report_start_time\" value=\"$report_start_time\" /></td>                  <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>These two variables,                      report_start_time and report_end_time, are designed to work with the Hours Worked report. They are there to provide a starting                      time to go along with the starting date, and an ending time to go along with the ending date for the dates specified when the                       report is run. Default is \"<b>00:00</b>\" (12:00am). 12 hour and 24 hour formats are supported.                 </td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo "              <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>report_end_time:</td>                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"text\" size=\"10\" maxlength=\"8\"                      name=\"report_end_time\" value=\"$report_end_time\" /></td>                  <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Default is \"<b>23:59</b>\"                       (11:59pm). 12 hour and 24 hour formats are supported.                 </td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo "              <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>username_dropdown_only:</td>\n";if ($username_dropdown_only == "yes") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"username_dropdown_only\"                       value=\"1\" checked />&nbsp;Yes<input type=\"radio\" name=\"username_dropdown_only\" value=\"0\" />&nbsp;No</td>\n";} elseif ($username_dropdown_only == "no") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"username_dropdown_only\"                       value=\"1\" />&nbsp;Yes<input type=\"radio\" name=\"username_dropdown_only\" value=\"0\" checked />&nbsp;No</td>\n";} else {echo "                  <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in                       config.inc.php</b></td>\n";echo "              <input type=\"hidden\" name=\"username_dropdown_only\" value=\"2\">\n";}echo "                  <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Setting this variable to                       \"yes\" will display a single dropdown box containing usernames to choose from when running the reports. Setting this                       variable to \"no\" will instead display a triple dropdown box containing offices, groups, and usernames to choose from when running                       the reports. A single dropdown box works well if there are just a few usernames in the system, and a triple dropdown                       works well if multiple offices and/or groups are in the system. Default is \"<b>no</b>\".</td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo "              <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>user_or_display:</td>\n";if (strtolower($user_or_display) == "user") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"user_or_display\"                       value=\"1\" checked />&nbsp;User<input type=\"radio\" name=\"user_or_display\" value=\"0\" />&nbsp;Display</td>\n";} elseif (strtolower($user_or_display) == "display") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"user_or_display\"                       value=\"1\" />&nbsp;User<input type=\"radio\" name=\"user_or_display\" value=\"0\" checked />&nbsp;Display</td>\n";} else {echo "                  <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"User\" or \"Display\" has not been chosen in                       config.inc.php</b></td>\n";echo "              <input type=\"hidden\" name=\"user_or_display\" value=\"2\">\n";}echo "                  <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Choose whether to print                      displaynames or usernames for each user when reports are run. Options for this variable are \"user\" and \"display\".                      Default is \"<b>user</b>\".</td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo "              <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>display_ip:</td>\n";if (strtolower($display_ip) == "yes") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"display_ip\"                       value=\"1\" checked />&nbsp;Yes<input type=\"radio\" name=\"display_ip\" value=\"0\" />&nbsp;No</td>\n";} elseif (strtolower($display_ip) == "no") {echo "                  <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"display_ip\"                       value=\"1\" />&nbsp;Yes<input type=\"radio\" name=\"display_ip\" value=\"0\" checked />&nbsp;No</td>\n";} else {echo "                  <td bgcolor='$row_color' class=table_rows_red width=10% align=left valig

⌨️ 快捷键说明

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