<html>
<head>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<style>
 td { padding:2px 5px 2px 5px;}
</style>
<script language=javascript src="../JS/HighLight.js.php"></script>
<script language=javascript src="../JS/CheckQuestion.js.php"></script>
<script language=javascript>
function Check_Form_Validator(theform)
{
	if (!CheckNotNull(Check_Form.coursesNum, "课程编号")) {return false;}
	if (!CheckSpecicalChar(Check_Form.coursesNum, "课程编号")) {return false;}
	if (!CheckNotNull(Check_Form.coursesName, "课程名称")) {return false;}
	if (!CheckSpecicalChar(Check_Form.coursesName, "课程名称")) {return false;}
	if (!CheckRadioNoClick(Check_Form.t_isElective, "课程类型")) {return false;}
	if (!CheckRadioNoClick(Check_Form.isRange, "课程适用")) {return false;}
}
function CheckSpecicalChar(objField, strText)
{
	var strErr = "“" + strText + "”不能包含单引号、双引号、反斜线、小于号、大于号、和符号等非法字符！";
	var Re = /[\x22\x27\x5C\x3C\x3E\x26]+/ig;
	if ( Re.test(objField.value))
	{
		alert(strErr);
        objField.focus();
		return false;
	}
	return true;
}
</script>
<link href="../CSS/Base.css" rel=stylesheet>
<meta content="mshtml 6.00.3790.0" name=generator></head>
<body oncontextmenu="return false" style="margin-top:0px">
  <table class=datatable style="line-height: 150%;border-collapse:collapse;" cellspacing=0 cellpadding=0 bordercolor=#b5cfd9 border=1 width=100%>
   <form name="Check_Form" onsubmit="return Check_Form_Validator(this)" method="post" action="">
     <div class=position>位置：&nbsp; 我的桌面 &raquo; 课程 &raquo; 编辑课程记录</div>
      <tr> 
         <td colspan="2" bgcolor="#f5f5f5"><b>编辑课程记录</b></td>
      </tr>
      <tr> 
         <td width="26%" height="25" ><span class=red>*</span>&nbsp;课程编号：</td>
         <td> <input name="coursesNum" type="text" id="coursesNum" size=40 value="{coursesNum}"></td>
      </tr>
      <tr> 
         <td width="26%" height="25" ><span class=red>*</span>&nbsp;课程名称：</td>
         <td> <input name="coursesName" type="text" id="coursesName" size=80 value="{coursesName}"></td>
      </tr>
      <tr> 
         <td width="26%" height="25" ><span class=red>*</span>&nbsp;课程类型：</td>
         <td> <input type="radio" name="t_isElective" id="t_isElective" value=0 {isElective_0}>必修课 <input type="radio" name="t_isElective" id="t_isElective" value=1 {isElective_1}>选修课</td>
      </tr>	  
      <tr> 
         <td width="26%" height="25" ><span class=red>*</span>&nbsp;课程适用：</td>
         <td> <input type="radio" name="isRange" id="isRange" value=0 {isRange_0}>全部学生 <input type="radio" name="isRange" id="isRange" value=1 {isRange_1}>男学生 <input type="radio" name="isRange" id="isRange" value=2 {isRange_2}>女学生</td>
      </tr>	  
	  </table>
	 <table width=100%>
     <tr><td width=26%></td>
         <td>
		    <input type="hidden" name="coursesID" value="{coursesID}">
		    <input type="hidden" name="r_isElective" value="{r_isElective}">
		    <input type="hidden" name="r_isRange" value="{r_isRange}">
		    <input type="hidden" name="Action" value="{dataAction}"> 
            <input class=inputsubmit type="submit" name="submit" value="确定">&nbsp;<input class=inputsubmit type="button" name="close" value="关闭" onClick="javascript:parent.hidePopWin();"> 
        </td>
     </tr>
  </form></table>
<script type="text/javascript">initInputHighlightScript();</script> 
</body></html>
