📄 jcy_ry_cx_select.jsp
字号:
</font></b></td>
<td width="0" align="center"><font color="#105781"><b>身份证号码</b></font></td>
<td width="0"> <input name="cardid" type="text" size="19" maxlength="18">
</td>
<td width="0" align="center"><font color="#105781"><b>性别</b></font></td>
<td width="0"> <select name="xb" style="width:80px">
<OPTION selected value="">-请选择-</OPTION>
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0004' ","00")%> </select> </td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="0" height="25" align="center"><b><font color="#105781">出生年月</font></b></td>
<td> <input type=text name=year size=4 value="" maxlength=4>
<b><font color="#105781">年</font></b> <select name=month>
<option value=01 selected>01</option>
<option value=02>02</option>
<option value=03>03</option>
<option value=04>04</option>
<option value=05>05</option>
<option value=06>06</option>
<option value=07>07</option>
<option value=08>08</option>
<option value=09>09</option>
<option value=10>10</option>
<option value=11>11</option>
<option value=12>12</option>
</select> <b><font color="#105781">月</font></b> <input type=text name=day size=2 maxlength=2>
<b><font color="#105781">日</font></b> </td>
<td align="center"><b><font color="#105781">所属编制</font></b></td>
<td><b><font color="#105781">
<select name="ssbz" style="width:80px">
<OPTION selected value="">-请选择-</OPTION>
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5003' ","00")%>
</select>
</font></b></td>
<td align="center"><b><font color="#105781">文化程度</font></b></td>
<td><b><font color="#105781">
<select name="whcd" style="width:80px">
<OPTION selected value="">-请选择-</OPTION>
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5005' ","00")%>
</select>
</font></b></td>
</tr>
<tr bgcolor="#EEF9FF">
<td height="25" align="center"><b><font color="#105781">从事公务工作日期</font></b></td>
<td>
<!--<script language="JavaScript1.2">var d1=new rlCtrl("startdate","");</script>-->
<!--modify : yhy<script language="JavaScript1.2">var d1=new rlCtrl("startdate","<%//=thisyear%>-01-01");</script>modify end-->
<!--modify : yhy-->
<input id="startdate" name="startdate" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkSj_only(this.value)) this.focus();" onDblClick=this.value="" value="" ><img src="../images/select.gif" name="select" width="18" height="20" border="0" align="absmiddle" onClick="getDate('startdate',1);">
<!--modify end-->
</td>
<td align="center"><b><font color="#105781">所属区县</font></b></td>
<td width="0"> <select id="qx" name="qx" onchange="javascript:changeitem(document.form1);" style="width:80px">
<OPTION selected value="">-请选择-</OPTION>
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0001' ","00")%> </select></td>
<td align="center"> </td>
<td> </td>
</tr>
<tr bgcolor="#EEF9FF">
<td height="25" align="center"><b><font color="#105781">公务证件号码</font></b></td>
<td><b><b><font color="#105781">
<input name="zjhm" type="text" size="21" maxlength="20">
</font></b></b></td>
<td align="center"><b><font color="#105781">所在街道</font></b></td>
<td> <select name="jd" style="width:">
<option selected value="">-请选择-</option>
<%//=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0002' ","01")%>
</select> </td>
<td align="center"><b><font color="#105781">公务员状态</font></b></td>
<td><b><font color="#105781">
<select name="ryzt" style="width:80px">
<OPTION value="" selected>-请选择-</OPTION>
<option value='02'>减少</option>
<option value='03'>正常</option>
<%if (!curruserszqx.equals("001")){%>
<option value='04'>未上报</option>
<%} else {}%>
<option value='05'>待审批</option>
<option value='06'>未通过</option>
</select>
</font></b></td>
</tr>
<tr bgcolor="#EEF9FF" width="100%">
<td height="25" align="center"><b><font color="#105781">录入时间</font></b></td>
<td colspan="5"> <table border="0" cellspacing="0">
<tbody>
<tr>
<td>
<!--<script language="JavaScript1.2">var d1=new rlCtrl("lrsj1","");</script>-->
<!--modify : yhy<script language="JavaScript1.2">var d1=new rlCtrl("lrsj1","<%//=thisyear%>-01-01");</script>modify end-->
<!--modify : yhy-->
<input id="lrsj1" name="lrsj1" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkJsrqs(this.value)) this.focus();" onDblClick=this.value="" value="<%//=thisyear%>"><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('lrsj1',1);">
<!--modify end-->
</td>
<td><b><font color="#105781"> 至 </font></b> </td>
<td>
<!--<script language="JavaScript1.2">var d1=new rlCtrl("lrsj2","");</script>-->
<!--modify : yhy<script language="JavaScript1.2">var d1=new rlCtrl("lrsj2","<%//=today%>");</script>modify end-->
<!--modify : yhy-->
<input id="lrsj2" name="lrsj2" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkJsrqz(this.value)) this.focus();" onDblClick=this.value="" value="<%//=today%>" ><img src="../images/select.gif" name="select" width="18" height="20" border="0" align="absmiddle" onClick="getDate('lrsj2',1);">
<!--modify end-->
</td>
</tr>
</tbody>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="key" value="query">
<input type="hidden" name="dz" value="cx">
<table width="85%" border="0" cellspacing="0">
<tr align="center">
<td width="20%" height="63"> </td>
<td width="20%">
<input type="submit" name="query5" value="查 询" class="input"></td>
<td width="20%"> </td>
<td width="20%">
<input type="button" name="rygl" value="新 增" onClick=window.open("jcy_ry_new.jsp","_self") class="input"></td>
<td width="20%"> </td>
</tr>
</table>
<br>
</form>
</td>
<td width="14" background="../images/caozuo07.gif"><img src=".././images/caozuo07.gif" width="14" height="6"></td>
</tr>
</table>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21"><img src=".././images/caozuo05.gif" width="21" height="16"></td>
<td background=".././images/caozuo08.gif"><img src=".././images/caozuo08.gif" width="6" height="16"></td>
<td width="19"><img src=".././images/caozuo09.gif" width="19" height="16"></td>
</tr>
</table>
<br>
</td>
</tr>
</table>
</body>
</html>
<script language="JavaScript">
<%
Context ctx = null;
DataSource ds = null;
Connection con = null;
Statement stmt = null;
ResultSet rs_qx = null;
ResultSet rs_jd = null;
String sql_qx = "select dm, mc from dm_mx where dmm = '0001'";
String sql_jd = "select dm, mc, substr(dm,0,3) from dm_mx where dmm = '0002'";
try{
ctx = new InitialContext();
ds = (DataSource)ctx.lookup("jc");
try{
con = ds.getConnection();
stmt = con.createStatement();
}catch(SQLException ex){
System.out.println(ex);
}
rs_qx = stmt.executeQuery(sql_qx);
int i = 0;
out.print("function InitQxClass(){");
out.print("qxclass = new Array();");
while (rs_qx.next()){
out.print("qxclass["+i+"] = new Array;");
out.print("qxclass["+i+"][0] = \""+rs_qx.getString(1)+"\";");
out.print("qxclass["+i+"][1] = \""+rs_qx.getString(2)+"\";");
i++;
}
out.print("}");
i = 0;
rs_jd = stmt.executeQuery(sql_jd);
out.print("function InitJdClass(){");
out.print("jdclass = new Array();");
while (rs_jd.next()){
out.print("jdclass["+i+"] = new Array;");
out.print("jdclass["+i+"][0] = \""+rs_jd.getString(1)+"\";");
out.print("jdclass["+i+"][1] = \""+rs_jd.getString(2)+"\";");
out.print("jdclass["+i+"][2] = \""+rs_jd.getString(3)+"\";");
i++;
}
out.print("}");
}catch(Exception e){
}
finally{
rs_jd.close();
rs_qx.close();
stmt.close();
con.close();
}
%>
InitQxClass();
InitJdClass();
function changeitem(myfrm)
{
var SelectedQxId,i,j;
//清空onChange事件之前smallclassid中得内容
for (i= myfrm.jd.options.length-1;i>=0 ;--i)
{
myfrm.jd.options[i] = null;
}
SelectedQxId = myfrm.qx.options[myfrm.qx.selectedIndex].value;
j = 0;
myfrm.jd.options[j] = new Option("-请选择-","");
for (i=0 ;i< jdclass.length ;i++)
{
if (SelectedQxId == jdclass[i][2])
{
++j;
myfrm.jd.options[j] = new Option(jdclass[i][1],jdclass[i][0]);
}
}
}
changeitem(document.form1);
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -