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

📄 add_muster.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<script Language=\"JavaScript\">\r\nfunction clear_user()\r\n{\r\n  document.form1.COPY_TO_NAME.value=\"\";\r\n  document.form1.COPY_TO_ID.value=\"\";\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n  URL=\"/module/user_select?ID=2\";\r\n  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n  window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n</script>\r\n</head>\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'];
}
$query = "SELECT * from TRAIN_APPOINT_MUSTER where APPOINT_USER_ID='".$LOGIN_USER_ID."' and TRAINING_ID='{$APPLY_TID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$APPOINT_MUSTER = $ROW['APPOINT_MUSTER'];
}
$TOK = strtok( $APPOINT_MUSTER, "," );
$USER_NAME = "";
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'].",";
	}
	$TOK = strtok( "," );
}
echo "\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/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 添加必修人员名单</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n  <form action=\"add_muster_submit.php\"  method=\"post\" name=\"form1\">  \r\n   <tr>\r\n    <td nowrap class=\"TableContent\" width=\"90\">培训课程编号:</td>\r\n    <td class=\"TableData\">\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\">\r\n      <input type=\"text\" name=\"COURSE_NAME\" size=\"27\" readonly maxlength=\"100\" class=\"BigStatic\" value=\"";
echo $COURSE_NAME;
echo "\">\r\n   </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">必修人员:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"hidden\" name=\"COPY_TO_ID\" value=\"";
echo $APPOINT_MUSTER;
echo "\">\r\n        <textarea cols=\"30\" name=\"COPY_TO_NAME\" rows=\"5\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $USER_NAME;
echo "</textarea>\r\n        &nbsp;<input type=\"button\" value=\"选 择\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"选择人员\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user()\" title=\"清空人员\" name=\"button\">\r\n      </td>\r\n   </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\"> 邮件内容:</td>\r\n      <td class=\"TableData\" colspan=\"1\">\r\n        <textarea name=\"EMAIL_CONTENT1\" class=\"BigInput\" cols=\"45\" rows=\"5\"></textarea>\r\n      </td>\r\n    </tr>  \r\n   <tr>\r\n     <td nowrap class=\"TableContent\" width=\"90\"> 提醒必修员工:</td>\r\n     <td class=\"TableData\">\r\n";
echo sms_remind( 30 );
echo "        <input type=\"checkbox\" name=\"MAIL_REMIND\" id=\"MAIL_REMIND\"><label for=\"MAIL_REMIND\">使用邮件</label>\r\n     </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap  class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n      <input type=\"hidden\" value=\"";
echo $APPLY_TID;
echo "\" name=\"APPLY_TID\">\r\n      <input type=\"submit\" value=\"确定\" class=\"BigButton\">&nbsp;&nbsp;\r\n      <input type=\"button\" class=\"BigButton\" value=\"关闭\" onClick=\"window.close();\" title=\"关闭窗口\">\r\n    </td>\r\n  </form>\r\n</table>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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