📄 index.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\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/attendance.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 出差登记</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n<div align=\"center\">\r\n\r\n<input type=\"button\" value=\"新建出差登记\" class=\"BigButton\" onClick=\"location='new';\" title=\"新建出差登记\"> \r\n<input type=\"button\" value=\"出差历史记录\" class=\"BigButton\" onClick=\"location='history.php';\" title=\"查看过往的出差记录\">\r\n<br>\r\n<br>\r\n<table border=\"0\" cellspacing=\"1\" width=\"95%\" class=\"";
echo "small\" bgcolor=\"#000000\" cellpadding=\"3\">\r\n";
$connection = openconnection( );
$EVECTION_COUNT = 0;
$query = "SELECT * from ATTEND_EVECTION where USER_ID='{$LOGIN_USER_ID}' and STATUS='1'";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$EVECTION_COUNT;
$EVECTION_ID = $ROW['EVECTION_ID'];
$EVECTION_DATE1 = $ROW['EVECTION_DATE1'];
$EVECTION_DATE1 = strtok( $EVECTION_DATE1, " " );
$EVECTION_DATE2 = $ROW['EVECTION_DATE2'];
$EVECTION_DATE2 = strtok( $EVECTION_DATE2, " " );
$EVECTION_DEST = $ROW['EVECTION_DEST'];
echo " <tr class=\"TableData\">\r\n <td nowrap align=\"center\">";
echo $EVECTION_DEST;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $EVECTION_DATE1;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $EVECTION_DATE2;
echo "</td>\r\n <td nowrap align=\"center\"><a href=\"back.php?EVECTION_ID=";
echo $EVECTION_ID;
echo "\">归来</a></td>\r\n </tr>\r\n";
}
if ( 0 < $EVECTION_COUNT )
{
echo " <thead class=\"TableHeader\">\r\n <td nowrap align=\"center\">出差地区</td>\r\n <td nowrap align=\"center\">开始日期</td>\r\n <td nowrap align=\"center\">结束日期</td>\r\n <td nowrap align=\"center\">操作</td>\r\n </thead>\r\n";
}
echo "</table>\r\n</div>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -