⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show_applyer2.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 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;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$DEPT_ID[$I] = $ROW['DEPT_ID'];
	$query1 = "SELECT t1.USER_NAME,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='5'";
	$cursor1 = exequery( $connection, $query1 );
	$USER_NAME1 = "";
	$DEPT_NAME1 = "";
	$COUNT2 = 0;
	while ( $ROW = mysql_fetch_array( $cursor1 ) )
	{
		++$COUNT2;
		$USER_NAME1 .= $ROW['USER_NAME'].",";
		$DEPT_NAME1 = $ROW['DEPT_NAME'];
	}
	$USER_NAME1 = substr( $USER_NAME1, 0, strlen( $USER_NAME1 ) - 2 );
	$COUNT1 += $COUNT2;
	if ( $COUNT1 != "" && $COUNT1 == $COUNT2 )
	{
		echo "<table border=\"0\" align=\"center\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\">\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\" width=\"10%\">报名人数</td>\r\n </tr>\r\n";
	}
	if ( $USER_NAME1 != "" )
	{
		echo "<tr class=\"TableControl\">\r\n  <td nowrap align=\"center\"><b>";
		echo $DEPT_NAME1;
		echo "</b></td>\r\n  <td nowrap align=\"center\"><b>";
		echo $USER_NAME1;
		echo "</b></td>\r\n  <td nowrap align=\"center\"><b>";
		echo $COUNT2;
		echo "</b></td>\r\n</tr>\r\n";
	}
}
if ( $COUNT1 != 0 )
{
	echo " <tr class=\"TableControl\">\r\n   <td nowrap align=\"center\"><b>合计:</b></td>\r\n   <td nowrap align=\"center\"></td>\r\n   <td nowrap align=\"center\"><b>";
	echo $COUNT1;
	echo "</b></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 + -