📄 history.php
字号:
<?
include_once 'inc/auth.php';
echo '
<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">';
echo '<s';
echo 'pan class="big3"> 请假登记</span><br>
</td>
</tr>
</table>
<br>
<div align="center">
<input type="button" value="返回上页" class="BigButton" onClick="location=\'index.php\';">
<br>
<br>
';
$LEAVE_COUNT = 0;
$query = (((''.'SELECT * from ATTEND_LEAVE where USER_ID=\'').$LOGIN_USER_ID).'\' and STATUS=\'2\' order by LEAVE_DATE1 desc');
$cursor = exequery ($connection, $query);
while ($ROW = mysql_fetch_array ($cursor))
{
++$LEAVE_COUNT;
$LEAVE_ID = $ROW['LEAVE_ID'];
$LEAVE_DATE1 = $ROW['LEAVE_DATE1'];
$LEAVE_DATE2 = $ROW['LEAVE_DATE2'];
$LEAVE_TYPE = $ROW['LEAVE_TYPE'];
$LEADER_ID = $ROW['LEADER_ID'];
$LEADER_NAME = '';
$query1 = (((''.'SELECT * from USER where USER_ID=\'').$LEADER_ID).'\'');
$cursor1 = exequery ($connection, $query1);
if ($ROW = mysql_fetch_array ($cursor1))
{
$LEADER_NAME = $ROW['USER_NAME'];
}
if (($LEAVE_COUNT == 1))
{
echo '
<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
';
}
if ((($LEAVE_COUNT % 2) == 1))
{
$TableLine = 'TableLine1';
}
else
{
$TableLine = 'TableLine2';
}
echo ' <tr class="';
echo $TableLine;
echo '">
<td nowrap align="center">';
echo $LEAVE_TYPE;
echo '</td>
<td nowrap align="center">';
echo $LEADER_NAME;
echo '</td>
<td nowrap align="center">';
echo $LEAVE_DATE1;
echo '</td>
<td nowrap align="center">';
echo $LEAVE_DATE2;
echo '</td>
</tr>
';
}
if ((0 < $LEAVE_COUNT))
{
echo ' <thead class="TableHeader">
<td nowrap align="center">请假原因</td>
<td nowrap align="center">审批人员</td>
<td nowrap align="center">开始时间 <img border=0 src="/images/arrow_down.gif" width="11" height="10"></td>
<td nowrap align="center">结束时间</td>
</thead>
</table>
';
}
else
{
message ('', '无历史记录');
}
echo '
</div>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -