<%--
*jsp页面名 : StuWrite77.jsp
*做成日 : 2006/1/12
*做成者 :bayaer
*Copyright by : 北京五岳
*Copyright beiJing WUYUE devloper Group 2005,All right reserved
--%>
<%@page contentType="text/html;charset=gb2312" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ 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" %>
<script Language="JavaScript" type="text/javascript">
<!--
function getInsert() {
if (document.forms[0].txt_studentName.value == "" ){
alert("姓名不能为空!");
return false;
}
if (document.forms[0].txt_studentIdCardNo.value == "" ){
alert("请输入身份证号!");
return false;
}
if(!checkNum(document.forms[0].txt_studentTel)){
alert("联系电话只能是0~9,-之间的字符!");
return false;
}
if(document.forms[0].lst_studentClass1.value == "" && document.forms[0].lst_studentClass2.value==""){
alert("请选择课程班级号!");
return false;
}
if(document.forms[0].lst_studentClass1.value == document.forms[0].lst_studentClass2.value){
alert("选择的课程班号不能重复,请重新输入!");
return false;
}
if(document.forms[0].txt_studentArrange.value == "0"){
if(document.forms[0].txt_company.value == ""){
alert("该学员已经分配,请输入分配公司!");
return false;
}
}
}
function checkNum(objNumberTextBox){
var regTrim=/^(/s{1,})|(/s{1,})$/g; //去除字符串两端空格的正则式
var regNumberFormat=/^([0-9])([0-9,-])*$/g;
var strNumber=(objNumberTextBox.value).replace(regTrim,"");
if(strNumber==""){
return true;
}
if(!(regNumberFormat.test(strNumber))){
objNumberTextBox.focus();
return false;
}
return true;
}
-->
</SCRIPT>
<SCRIPT Language='JavaScript' src='../calendar.js'></SCRIPT>
</head>
<BODY>
<%@include file="../head.jsp"%>
<html:form action="/studentInputNewAction.do">
<CENTER>
<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 width="15%" class="title_normal_td" colspan="2" >姓名: </TD>
<TD colspan="6" class="normal_cell_td" >
<html:text property="txt_studentName" size="12"/>
</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 property="lst_studentSex">
<OPTION value="0" selected>男</OPTION>
<OPTION value="1">女</OPTION>
</html:select>
</TR>
<TR>
<%-- 出生年月日 --%>
<TD class="title_normal_td" colspan="2">出生年月日:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text property="txt_studentBirth" styleClass="kanji_text" size="16" />
<%--<INPUT type="text" autocomplete="on" name="txt_studentBirth" value="" class="kanji_text" size="16" > --%>
<INPUT type="button" name="" class="default_button" value="选择" onClick="calendar(txt_studentBirth)">
</TD>
</TR>
<TR>
<%-- 身份证号 --%>
<TD class="title_normal_td" colspan="2">身份证号:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text property="txt_studentIdCardNo" size="20"/>
</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 property="txt_studentSchool" size="40"/>
</TD>
</TR>
<TR>
<%-- 专业 --%>
<TD width="15%" class="title_normal_td" >专业:</TD>
<TD colspan="6" class="normal_cell_td">
<html:text property="txt_studentSpec" size="40"/>
</TD>
</TR>
<TR>
<%-- 联系电话 --%>
<TD class="title_normal_td" colspan="2">联系电话:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text property="txt_studentTel" size="40"/>
</TD>
</TR>
<TR>
<%-- 住址 --%>
<TD class="title_normal_td" colspan="2">住址:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text property="txt_studentAdd" size="40"/>
</TD>
</TR>
<TR>
<%-- 职业测试成绩 --%>
<TD class="title_normal_td" colspan="2">职业测试成绩:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:text property="txt_studentPTest" size="8"/>
</TD>
</TR>
<TR>
<%-- 课程班号 1 --%>
<TD width="10%" class="title_normal_td" colspan="2">课程班号1:</TD>
<TD colspan="6" class="normal_cell_td" >
<html:select property="lst_studentClass1" >
<html:optionsCollection name="Class" value="class1_no" label="class1_no"/>
</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" >
<html:optionsCollection name="Class" value="class2_no" label="class2_no"/>
</html:select>
</TR>
<TR>
<%-- 分配情况 --%>
<TD width="15%" class="title_normal_td" colspan="2">分配情况:</TD>
<TD width="85%" nowrap colspan="6" class="normal_cell_td" >
<html:select property="txt_studentArrange">
<OPTION value="0" selected>已分配</OPTION>
<OPTION value="1">未分配</OPTION>
</html:select>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
<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="submit" name="button01" value="保存" class="header_button" οnclick="return getInsert();">
<INPUT type="button" name="button02" value="返回" class="header_button" onClick="setActionId('studentInputAction.do');">
</TD>
</TR>
</TBODY>
</TABLE>
</CENTER>
</html:form>
</BODY>
</html:html>