📄 general.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>设置公休日</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n";
$query = "SELECT * from ATTEND_CONFIG where DUTY_TYPE={$DUTY_TYPE}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$DUTY_NAME = $ROW['DUTY_NAME'];
$GENERAL = $ROW['GENERAL'];
}
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 设置公休日(";
echo $DUTY_NAME;
echo ")</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n <table border=\"0\" width=\"450\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form action=\"general_submit.php\" method=\"post\" name=\"form1\">\r\n <tr class=\"TableHeader\">\r\n <td nowrap> 请选择 ";
echo $DUTY_NAME;
echo " 的公休日</td>\r\n </tr>\r\n <tr>\r\n <td class=\"TableData\">\r\n <input type=\"checkbox\" name=\"WEEK1\" id=\"WEEK1\"";
if ( find_id( $GENERAL, "1" ) )
{
echo " checked";
}
echo "><label for=\"WEEK1\">星期一</label><br>\r\n <input type=\"checkbox\" name=\"WEEK2\" id=\"WEEK2\"";
if ( find_id( $GENERAL, "2" ) )
{
echo " checked";
}
echo "><label for=\"WEEK2\">星期二</label><br>\r\n <input type=\"checkbox\" name=\"WEEK3\" id=\"WEEK3\"";
if ( find_id( $GENERAL, "3" ) )
{
echo " checked";
}
echo "><label for=\"WEEK3\">星期三</label><br>\r\n <input type=\"checkbox\" name=\"WEEK4\" id=\"WEEK4\"";
if ( find_id( $GENERAL, "4" ) )
{
echo " checked";
}
echo "><label for=\"WEEK4\">星期四</label><br>\r\n <input type=\"checkbox\" name=\"WEEK5\" id=\"WEEK5\"";
if ( find_id( $GENERAL, "5" ) )
{
echo " checked";
}
echo "><label for=\"WEEK5\">星期五</label><br>\r\n <input type=\"checkbox\" name=\"WEEK6\" id=\"WEEK6\"";
if ( find_id( $GENERAL, "6" ) )
{
echo " checked";
}
echo "><label for=\"WEEK6\">星期六</label><br>\r\n <input type=\"checkbox\" name=\"WEEK0\" id=\"WEEK0\"";
if ( find_id( $GENERAL, "0" ) )
{
echo " checked";
}
echo "><label for=\"WEEK0\">星期日</label><br>\r\n </td>\r\n </tr>\r\n \r\n <tr align=\"center\" class=\"TableControl\">\r\n <td colspan=\"2\" nowrap>\r\n <input type=\"hidden\" value=\"";
echo $DUTY_TYPE;
echo "\" name=\"DUTY_TYPE\">\r\n <input type=\"submit\" value=\"确定\" class=\"BigButton\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='index.php'\">\r\n </td>\r\n </tr>\r\n </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -