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

📄 apply.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 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\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\" align=\"center\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_new.gif\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 培训课程报名</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n";
$query = "SELECT * from TRAIN_NEWCOURSE where TRAINING_ID='".$APPLY_TID."'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$TRAIN_ID = $ROW['TRAIN_ID'];
	$YORN = $ROW['YORN'];
	$TRAIN_TYPE = $ROW['TRAIN_TYPE'];
}
echo "<table align=\"center\" width=\"70%\" class=\"TableBlock\">\r\n<form enctype=\"multipart/form-data\" action=\"apply_submit.php\" method=\"post\" name=\"form1\">\r\n  <tr>\r\n    <td nowrap class=\"TableContent\" width=\"90\">培训课程编号:</td>\r\n    <td class=\"TableData\" colspan=\"3\">\r\n      <input type=\"text\" name=\"TRAIN_ID\" size=\"10\" readonly maxlength=\"100\" class=\"BigStatic\" value=\"";
echo $TRAIN_ID;
echo "\">\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td nowrap class=\"TableContent\" width=\"90\">培训课程名称:</td>\r\n    <td class=\"TableData\" colspan=\"3\">\r\n      <input type=\"text\" name=\"COURSE_NAME\" size=\"40\" readonly maxlength=\"100\" class=\"BigStatic\" value=\"";
echo $COURSE_NAME;
echo "\">\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td nowrap class=\"TableContent\" width=\"90\"> 报名原因:</td>\r\n    <td class=\"TableData\" colspan=\"3\">\r\n      <textarea name=\"APPLY_REASON\" class=\"BigInput\" cols=\"50\" rows=\"5\">";
echo $APPLY_REASON;
echo "</textarea>\r\n    </td>\r\n  </tr>\r\n";
if ( $YORN == "1" )
{
	echo "  <tr>\r\n    <td nowrap class=\"TableContent\" width=\"70\">审批人</td>\r\n    <td class=\"TableData\">\r\n \t    <select name=\"APPLY_MANAGER\" class=\"BigSelect\">\r\n";
	$query = "SELECT * from TRAIN_MANAGER where DEPT_ID='".$LOGIN_DEPT_ID."'";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$MANAGER_VALUE = $ROW['MANAGER_VALUE'];
	}
	$USER_NAME = "";
	$TOK = strtok( $MANAGER_VALUE, "," );
	while ( $TOK != "" )
	{
		$query1 = "SELECT * from USER where USER_ID='".$TOK."'";
		$cursor1 = exequery( $connection, $query1 );
		if ( $ROW1 = mysql_fetch_array( $cursor1 ) )
		{
			$USER_NAME = $ROW1['USER_NAME'];
		}
		echo "         <option value=\"";
		echo $TOK;
		echo "\" ";
		if ( $APPLY_MANAGER == $TOK )
		{
			echo "selected";
		}
		echo ">";
		echo $USER_NAME;
		echo "</option>\r\n";
		$TOK = strtok( "," );
	}
	echo "     </select>\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td nowrap class=\"TableContent\" width=\"90\"> 提醒审批人:</td>\r\n    <td class=\"TableData\" colspan=\"3\">\r\n";
	echo sms_remind( 31 );
	echo "       <input type=\"checkbox\" name=\"MAIL_REMIND\" id=\"MAIL_REMIND\"><label for=\"MAIL_REMIND\">使用邮件</label>\r\n  </td>\r\n  </tr>\r\n";
}
echo "  <tr class=\"TableControl\">\r\n    <td nowrap colspan=\"4\" align=\"center\">\r\n      <input type=\"hidden\" name=\"YORN\" value=\"";
echo $YORN;
echo "\"> \r\n      <input type=\"hidden\" name=\"COURSE_NAME\" value=\"";
echo $COURSE_NAME;
echo "\"> \r\n      <input type=\"hidden\" name=\"APPLY_TID\" value=\"";
echo $APPLY_TID;
echo "\">               \t\r\n      <input type=\"submit\" value=\"确定\" class=\"BigButton\">&nbsp;&nbsp;&nbsp;\r\n      <input type=\"button\" class=\"BigButton\" value=\"关闭\" onClick=\"window.close();\" title=\"关闭窗口\">\r\n    </td>\r\n  </tr>\r\n  </table>\r\n</form>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -