📄 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<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr class=\"tablehead1\"> \r\n <td ><img src=\"/images/menu/attendance.gif\" align=\"absmiddle\">出差登记\r\n </td>\r\n </tr>\r\n <tr class=\"TableLine2\"><td>\r\n <input type=\"image\" src=\"/images/";
echo "button/setevection.gif\" onClick=\"location='new';\" title=\"新建出差登记\">\r\n <input type=\"image\" src=\"/images/button/evectionhistory.gif\" onClick=\"location='history.php';\" title=\"查看过往的出差记录\"></td>\r\n </tr>\r\n</table>\r\n<br>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"95%\" class=\"small\" cellpadding=\"5\">\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'];
if ( $EVECTION_COUNT % 2 == 1 )
{
$TableLine = "TableLine1";
}
else
{
$TableLine = "TableLine2";
}
echo " <tr class=\"";
echo $TableLine;
echo "\">\r\n <td nowrap >";
echo $EVECTION_DEST;
echo "</td>\r\n <td nowrap >";
echo $EVECTION_DATE1;
echo "</td>\r\n <td nowrap >";
echo $EVECTION_DATE2;
echo "</td>\r\n <td nowrap ><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 >出差地区</td>\r\n <td nowrap >开始日期</td>\r\n <td nowrap >结束日期</td>\r\n <td nowrap >操作</td>\r\n </thead>\r\n";
}
else
{
echo "\r\n</table>\r\n<div align=\"center\">\r\n";
message( "", "没有现行的出差记录" );
}
echo "</div>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -