📄 index.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
?>
<script>
function show_reader(GROUP_ID)
{
URL="show_reader.php?GROUP_ID="+GROUP_ID;
myleft=(screen.availWidth-500)/2;
window.open(URL,"read_vote","height=500,width=500,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}
</script>
<html>
<head>
<title>进行考核</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<?
$CUR_DATE=date("Y-m-d",time());
?>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/score.gif" WIDTH="22" HEIGHT="22" align="absmiddle"><span class="big3"> 考核待办流程</span>
</td>
</tr>
</table>
<br>
<div align="center">
<?
//============================显示已发布考核任务=======================================
$CUR_DATE=date("Y-m-d",time());
$query = "SELECT * from SCORE_FLOW where(find_in_set('$LOGIN_USER_ID',RANKMAN)) and BEGIN_DATE<='$CUR_DATE' and (END_DATE>='$CUR_DATE' or END_DATE is null) order by SEND_TIME desc";
$cursor= exequery($connection,$query);
$VOTE_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$VOTE_COUNT++;
$FLOW_ID=$ROW["FLOW_ID"];
$FLOW_TITLE=$ROW["FLOW_TITLE"];
$BEGIN_DATE=$ROW["BEGIN_DATE"];
$END_DATE=$ROW["END_DATE"];
$RANKMAN=$ROW["RANKMAN"];
$PARTICIPANT =$ROW["PARTICIPANT"];
$GROUP_ID=$ROW["GROUP_ID"];
$ANONYMITY=$ROW["ANONYMITY"];
if($ANONYMITY=="0")
$ANONYMITY_DESC="不允许";
else
$ANONYMITY_DESC="允许";
if($END_DATE=="0000-00-00")
$END_DATE="";
$query1="select USER_NAME from USER where USER_ID='$LOGIN_USER_ID'";
$cursor1= exequery($connection,$query1);
if($ROW=mysql_fetch_array($cursor1))
$RAN_NAME=$ROW["USER_NAME"];
$query1="select * from SCORE_GROUP where GROUP_ID='$GROUP_ID'";
$cursor1= exequery($connection,$query1);
if($ROW=mysql_fetch_array($cursor1))
$GROUP_NAME=$ROW["GROUP_NAME"];
if($VOTE_COUNT==1)
{
?>
<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
<?
}
if($VOTE_COUNT%2==1)
$TableLine="TableLine1";
else
$TableLine="TableLine2";
?>
<tr class="<?=$TableLine?>">
<td nowrap align="center"><?=$FLOW_TITLE?></td>
<td align="center"><?=$RAN_NAME?></td>
<td align="center"><a href="javascript:show_reader('<?=$GROUP_ID?>');" title="点击查看考核项目"><?=$GROUP_NAME?></a></td>
<td align="center"><?=$ANONYMITY_DESC?></td>
<td nowrap align="center"><?=$BEGIN_DATE?></td>
<td nowrap align="center"><?=$END_DATE?></td>
<td nowrap align="center">
<a href="score_index.php?FLOW_ID=<?=$FLOW_ID?>&CUR_PAGE=<?=$CUR_PAGE?>">考核</a>
</td>
</tr>
<?
}
if($VOTE_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">生效日期 <img border=0 src="/images/arrow_down.gif" width="11" height="10"></td>
<td nowrap align="center">终止日期</td>
<td nowrap align="center">操作</td>
</thead>
</table>
<?
}
else
Message("","尚未定义");
?>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -