📄 index.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>出差</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/attendance.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 出差登记</span><br>
</td>
</tr>
</table>
<br>
<div align="center">
<input type="button" value="新建出差登记" class="BigButton" onClick="location='new';" title="新建出差登记">
<input type="button" value="出差历史记录" class="BigButton" onClick="location='history.php';" title="查看过往的出差记录">
<br>
<br>
<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
<?
//----- 现行的出差情况 -----
$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"];
$ALLOW=$ROW["ALLOW"];
$LEADER_ID=$ROW["LEADER_ID"];
$USER_NAME="";
$query = "SELECT * from USER where USER_ID='$LEADER_ID'";
$cursor1= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor1))
$USER_NAME=$ROW["USER_NAME"];
if($ALLOW=="0")
$ALLOW_DESC="待批";
else if($ALLOW=="1")
$ALLOW_DESC="已批准";
else if($ALLOW=="2")
$ALLOW_DESC="未批准";
?>
<tr class="TableData">
<td nowrap align="center"><?=$EVECTION_DEST?></td>
<td nowrap align="center"><?=$EVECTION_DATE1?></td>
<td nowrap align="center"><?=$EVECTION_DATE2?></td>
<td nowrap align="center"><?=$USER_NAME?></td>
<td nowrap align="center"><?=$ALLOW_DESC?></td>
<td nowrap align="center">
<?
if($ALLOW=="0" || $ALLOW=="2")
{
?>
<a href="delete.php?EVECTION_ID=<?=$EVECTION_ID?>">删除</a>
<?
}
else if($ALLOW=="1")
{
?>
<a href="back.php?EVECTION_ID=<?=$EVECTION_ID?>">出差归来</a>
<?
}
?>
</td>
</tr>
<?
}
if($EVECTION_COUNT>0)
{
?>
<thead class="TableHeader">
<td nowrap align="center">出差地区</td>
<td nowrap align="center">开始日期</td>
<td nowrap align="center">结束日期</td>
<td nowrap align="center">审批人员</td>
<td nowrap align="center">状态</td>
<td nowrap align="center">操作</td>
</thead>
<?
}
?>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -