<%@page contentType="text/html;charset=gb2312"%>
<%@taglib uri="/tags/struts-html" prefix="html" %>
<%@taglib uri="/tags/struts-bean" prefix="bean"%>
<%@taglib uri="/tags/struts-logic" prefix="logic"%>
<html:html>
<head>
<title>北京五嶽管理系統</title>
<html:base/>
<%-- 共通樣式表導入 --%>
<link rel="stylesheet" href="../css.css" type="text/css">
<%-- 共通javascript導入 --%>
<%@ include file="../WyJavaScript.jsp"%>
<%-- javascript時間選擇 --%>
<SCRIPT Language='JavaScript' src='../calendar.js'></SCRIPT>
<script language="javascript" type="text/javascript">
<!--
<%--輸入檢查--%>
function checkInput(){
if(document.forms[0].txt_classId.value == ""){
alert("班級號不能爲空!");
return false;
}
if(document.forms[0].lst_teacherNo.value == ""){
alert("請選擇教師名和教師號");
return false;
}
//開始日期
var dateFrom = document.forms[0].txt_classFromDate.value;
//終了日期
var dateTo = document.forms[0].txt_classToDate.value;
//結合驗證
dateCheck=TwoDateValidate(dateFrom,dateTo);
if(false==dateCheck){
return false;
}
//開始小時時間
var timeHFrom = document.forms[0].txt_classFromTimeH.value;
//強制轉換爲整數
timeHFrom = parseInt(timeHFrom)
//開始分鐘時間
var timeMFrom = document.forms[0].txt_classFromTimeM.value;
//終了小時時間
var timeHTo = document.forms[0].txt_classToTimeH.value;
//強制轉換爲整數
timeHTo = parseInt(timeHTo)
//終了分鐘時間
var timeMTo = document.forms[0].txt_classToTimeM.value;
if(timeHFrom == timeHTo) {
if(timeMFrom > timeMTo) {
alert("結束時間要大於開始時間!");
document.forms[0].txt_classToTimeM.focus();
return false;
}
}
if(timeHFrom > timeHTo){
alert("結束時間要大於開始時間!!");
document.forms[0].txt_classToTimeH.focus();
return false;
}
if(document.forms[0].txt_classInfo.value == ""){
alert("教學內容不能爲空!");
return false;
}
return true ;
}
<%--分離教師信息變量--%>
function teacherInfoDevide(){
var index = window.document.forms[0].lst_teacherNo.selectedIndex;
document.forms[0].lst_teacherName.value = document.forms[0].teacherName[index-1].value ;
}
-->
</script>
</head>
<BODY>
<%-- 共通表頭導入 --%>
<html:form action = "/classInputAction.do"><HR align="center" />
<TABLE width="100%" class="tab_table">
<TBODY>
<TR class="no_tab_line_tr">
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
<TD class="no_tab_td" width="10%" align="center"></TD>
</TR>
<TR>
<TD colspan="10" class="no_tab_main_td">
<TABLE class="lower_table" border="0" width="100%">
<TBODY>
<TR>
<TD colspan="1">
<TABLE class="raise_panel_line_table" border="0" width="100%">
<TBODY>
<TR>
<%--身份證號--%>
<TD class="title_normal_td" colspan="2">身份證號:</TD>
<TD colspan="6" class="normal_cell_td" >
<jsp:setProperty name="studentInitForm" property="txt_studentIdCardNo"/>
<html:text name="studentInitForm" property="txt_studentIdCardNo"/>
</TD>
</TR>
<TR>
<%--姓名--%>
<TD width="15%" class="title_normal_td" colspan="2" >姓名: </TD>
<TD colspan="6" class="normal_cell_td" >
<html:text name="studentInitForm" property="txt_studentName"/> </TD>
</TR>
<TR>
<%--性別--%>
<TD width="15%" class="title_normal_td" colspan="2">性別:</TD>
<TD width="85%" nowrap colspan="6" class="normal_cell_td" >
<html:select name="studentInitForm" property="st_studentSex">
<OPTION value="0" selected>男</OPTION>
<OPTION value="1">女</OPTION>
</html:select>
</td></TR>
<TR>
<TD class="title_normal_td" colspan="2">出生年月日:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text name="studentInitForm" property="txt_studentBirth" size="16" readonly="true"/>
<INPUT type="button" name="" class="default_button" value="選擇" onClick="calendar(txt_studentBirth)" />
</TD>
</TR>
<TR>
<%--學校及專業--%>
<TD width="15%" class="title_normal_td" rowspan="2" >學校及專業:</TD>
<TD width="15%" class="title_normal_td" >學校:</TD>
<TD colspan="6" class="normal_cell_td">
<html:text name="studentInitForm" property="txt_studentSchool"/>
</TD>
</TR>
<TR>
<%--專業--%>
<TD width="15%" class="title_normal_td" >專業:</TD>
<TD colspan="6" class="normal_cell_td">
<html:text name="studentInitForm" property="txt_studentSpec"/>
</TD>
</TR>
<TR>
<%--聯繫電話--%>
<TD class="title_normal_td" colspan="2">聯繫電話:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text name="studentInitForm" property="txt_studentTel"/>
</TD>
</TR>
<TR>
<%--住址--%>
<TD class="title_normal_td" colspan="2">住址:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text name="studentInitForm" property="txt_studentAdd"/>
</TD>
</TR>
<TR>
<%--職業測試成績--%>
<TD class="title_normal_td" colspan="2">職業測試成績:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text name="studentInitForm" property="txt_studentPTest"/>
</TD>
</TR>
<TR>
<%--課程班號1--%>
<TD width="10%" class="title_normal_td" colspan="2">課程班號1:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:select name="studentInitForm" property="lst_studentClass1">
<html:option value=""><bean:write name="studentInitForm" property="lst_studentClass1"/> </html:option>
</html:select>
</TD>
</TR>
<TR>
<%--課程班號2--%>
<TD class="title_normal_td" colspan="2">課程班號2:</TD>
<TD colspan="6" class="normal_cell_td" >
<%-- <html:select property="lst_studentClass2">
<option value=""><請選擇></option>
<html:optionsCollection name="" value="" label=""/>
</html:select> --%>
</TD>
</TR>
<TR>
<%--分配情況--%>
<TD class="title_normal_td" colspan="2">分配情況:</TD>
<TD colspan="6" class="normal_cell_td" >
<%-- <html:select property="txt_studentArrange">
<html:option value="">已分配</html:option>
<html:option value="">未分配</html:option>
</html:select> --%>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<HR align="center" />
<TABLE class="footer_table" border="0" width="100%">
<TBODY>
<TR>
<TD class="header_button_default_td" colspan="" nowrap>
</TD>
<TD class="header_button_default_td" colspan="" nowrap align="right">
<INPUT type="button" name="button01" value="保存" class="header_button" οnclick="openMainWindow('studentChange.html');" />
<INPUT type="button" name="button03" value="返回" class="header_button" οnclick="openMainWindow('studentSearch.html');" />
</TD>
</TR>
</TBODY>
</TABLE>
</html:form>
</BODY>
</html:html>