📄 show_applyer1.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.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<body class=\"bodycolor\" topmargin=\"5\">\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/training.gif\" align=\"absmiddle\"><span class=\"big3\"> 报名详情 - ";
echo $COURSE_NAME;
echo "(";
echo $TRAIN_ID;
echo ")</span></td>\r\n </tr>\r\n</table>\r\n<br>\r\n\r\n";
$query = "SELECT * from DEPARTMENT";
$cursor = exequery( $connection, $query );
$COUNT1 = 0;
$COUNT3 = 0;
$COLOR_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$DEPT_ID[$I] = $ROW['DEPT_ID'];
$query1 = "SELECT t2.DEPT_NAME from USER as t1,DEPARTMENT as t2,TRAIN_APPLY as t3 where t2.DEPT_ID='".$DEPT_ID[$I]."' and t1.USER_ID=t3.APPLYER and t3.APPLY_TID='{$TRAINING_ID}' and t1.DEPT_ID = t2.DEPT_ID and t3.EXEMPT_FLAG!='1' and (t3.APPLY_STATUS='1' or t3.APPLY_STATUS='2' or t3.APPLY_STATUS='4')";
$cursor1 = exequery( $connection, $query1 );
$DEPT_NAME1 = "";
$COUNT2 = 0;
while ( $ROW = mysql_fetch_array( $cursor1 ) )
{
++$COUNT2;
$DEPT_NAME1 = $ROW['DEPT_NAME'];
}
$COUNT1 += $COUNT2;
$query1 = "SELECT t2.DEPT_NAME from USER as t1,DEPARTMENT as t2,TRAIN_APPLY as t3 where t2.DEPT_ID='".$DEPT_ID[$I]."' and t1.USER_ID=t3.APPLYER and t3.APPLY_TID='{$TRAINING_ID}' and t1.DEPT_ID = t2.DEPT_ID and t3.EXEMPT_FLAG!='1' and t3.APPLY_STATUS='0'";
$cursor1 = exequery( $connection, $query1 );
$DEPT_NAME2 = "";
$COUNT4 = 0;
while ( $ROW = mysql_fetch_array( $cursor1 ) )
{
++$COUNT4;
$DEPT_NAME2 = $ROW['DEPT_NAME'];
}
$COUNT3 += $COUNT4;
if ( ( !( $COUNT1 != "" ) && $COUNT1 == $COUNT2 || $COUNT3 != "" && $COUNT3 == $COUNT4 ) && $HEAD_FLAG == 0 )
{
++$HEAD_FLAG;
echo "<table class=\"TableList\" align=\"center\" width=\"80%\">\r\n <tr class=\"TableHeader\">\r\n <td nowrap align=\"center\" width=\"15%\">部门</td>\r\n <td nowrap align=\"center\">待批人数</td>\r\n <td nowrap align=\"center\">已准人数</td>\r\n </tr>\r\n";
}
if ( !( $DEPT_NAME1 != "" ) || !( $DEPT_NAME2 != "" ) )
{
++$COLOR_COUNT;
if ( $COLOR_COUNT % 2 == 1 )
{
$TableLine = "TableLine1";
}
else
{
$TableLine = "TableLine2";
}
echo "<tr class=\"";
echo $TableLine;
echo "\">\r\n <td nowrap align=\"center\"><b>";
if ( $DEPT_NAME1 != "" )
{
echo $DEPT_NAME1;
}
else
{
echo $DEPT_NAME2;
}
echo "</b></td>\r\n <td nowrap align=\"center\">\r\n \t<b>\r\n";
if ( $COUNT4 != 0 )
{
echo " <a href=\"javascript:;\" onClick=\"window.open('show_applyer3.php?DEPT_ID=";
echo $DEPT_ID[$I];
echo "&TYPE_FLAG=0&TRAINING_ID=";
echo $TRAINING_ID;
echo "&TRAIN_ID=";
echo $TRAIN_ID;
echo "&COURSE_NAME=";
echo $COURSE_NAME;
echo "','','height=600,width=700,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left=150,top=50,resizable=yes');\">";
echo $COUNT4;
echo "</a>\r\n";
}
else
{
echo "0";
}
echo " \t</b>\r\n </td>\r\n <td nowrap align=\"center\">\r\n \t<b>\r\n";
if ( $COUNT2 != 0 )
{
echo " <a href=\"javascript:;\" onClick=\"window.open('show_applyer3.php?DEPT_ID=";
echo $DEPT_ID[$I];
echo "&TYPE_FLAG=1&TRAINING_ID=";
echo $TRAINING_ID;
echo "&TRAIN_ID=";
echo $TRAIN_ID;
echo "&COURSE_NAME=";
echo $COURSE_NAME;
echo "','','height=600,width=700,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left=150,top=50,resizable=yes');\">";
echo $COUNT2;
echo "</a>\r\n";
}
else
{
echo "0";
}
echo " \t</b>\r\n </td>\r\n</tr>\r\n";
}
}
if ( $COUNT1 != 0 || $COUNT3 != 0 )
{
echo " <tr class=\"TableControl\">\r\n <td nowrap align=\"center\"><b>合计:</b></td>\r\n <td nowrap align=\"center\">\r\n \t<b>\r\n";
if ( $COUNT3 != 0 )
{
echo " <a href=\"javascript:;\" onClick=\"window.open('show_applyer3.php?TYPE_FLAG=0&TRAINING_ID=";
echo $TRAINING_ID;
echo "&TRAIN_ID=";
echo $TRAIN_ID;
echo "&COURSE_NAME=";
echo $COURSE_NAME;
echo "','','height=600,width=700,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left=150,top=50,resizable=yes');\">";
echo $COUNT3;
echo "</a>\r\n";
}
else
{
echo "0";
}
echo " \t\r\n </b> \t\r\n </td>\r\n <td nowrap align=\"center\">\r\n <b>\r\n";
if ( $COUNT1 != 0 )
{
echo " <a href=\"javascript:;\" onClick=\"window.open('show_applyer3.php?TYPE_FLAG=1&TRAINING_ID=";
echo $TRAINING_ID;
echo "&TRAIN_ID=";
echo $TRAIN_ID;
echo "&COURSE_NAME=";
echo $COURSE_NAME;
echo "','','height=600,width=700,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left=150,top=50,resizable=yes');\">";
echo $COUNT1;
echo "</a>\r\n";
}
else
{
echo "0";
}
echo " \t \r\n </b>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n<div align=\"center\"><input type=\"button\" value=\"关闭\" class=\"BigButton\" onClick=\"window.close();\" title=\"关闭窗口\"></div>\r\n";
}
else
{
message( "提示", "无报名员工" );
echo "<br>\r\n<div align=\"center\"><input type=\"button\" value=\"关闭\" class=\"BigButton\" onClick=\"window.close();\" title=\"关闭窗口\"></div>\r\n";
}
echo "</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -