?? jcy_ry_new.jsp
字號:
</font></b></b></b></td>
<td align="center"><b><font color="#105781">工作部門<font color="#FF0000">*
</font></font></b></td>
<td colspan="2"><input name="gzbm" type="text" value="公務科" maxlength="20" style="width:95px">
</td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="95" height="30" align="center"><b><font color="#105781">所屬編制<font color="#FF0000">*</font></font></b></td>
<td><b><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' ","0")%>
</select>
</font></b></b> </td>
<td align="center"><b><font color="#105781">證件類別<font color="#FF0000">*</font></font></b></td>
<td><b><b><b><font color="#105781">
<select name="zjlb" style="width:80px">
<option selected value="">-請選擇-</option>
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5006' ","00")%>
</select>
</font></b></b></b></td>
<td align="center"><b><font color="#105781">職務</font></b></td>
<td colspan="2"><b><font color="#105781">
<select name="zw" style="width:95px">
<OPTION selected value="">-請選擇-</OPTION>
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5002' ","0")%>
</select>
</font></b> </td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="95" height="30" align="center"><b><font color="#105781">從事公務工作起日期<font color="#FF0000">*</font></font></b></td>
<td colspan="3"><b><b><font color="#105781">
<!--<script language="JavaScript1.2">var d2=new rlCtrl("ry_startdate","<%//=today%>");</script>-->
<!--modify : yhy<script language="JavaScript1.2">var d2=new rlCtrl("ry_startdate","");</script>modify end-->
<input id="ry_startdate" name="ry_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="<%=today%>"><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('ry_startdate',1);">
</font></b></b> </td>
<td align="center"><b><font color="#105781">證件注銷原因</font></b></td>
<td colspan="2"><select name="zxyy" style="width:80px">
<OPTION selected value="">-請選擇-</OPTION>
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5008' ","00")%> </select> </td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="95" height="30" align="center"><b><font color="#105781">從事公務工作止日期<font color="#FF0000"></font></font></b></td>
<td colspan="3">
<!--<script language="JavaScript1.2">var d3=new rlCtrl("ry_enddate","");</script>-->
<!--<script language="JavaScript1.2">var d3=new rlCtrl("ry_enddate","<%//=today%>");</script>-->
<!--modify :yhy-->
<input id="ry_enddate" name="ry_enddate" 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="<%=today%>"><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('ry_enddate',1);">
<!--modify end-->
</td>
<td align="center"><b><font color="#105781">證件注銷時間</font></b></td>
<td colspan="2">
<!--<script language="JavaScript1.2">//var d4=new rlCtrl("zxrq","");</script>-->
<!--<script language="JavaScript1.2">//var d4=new rlCtrl("zxrq","<%//=today%>");</script>-->
<!--modify : yhy-->
<input id="zxrq" name="zxrq" 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" width="18" height="20" border="0" align="absmiddle" onClick="getDate('zxrq',1);">
<!--modify end-->
</td>
</tr>
</table>
</td>
</tr>
</table>
<%String uid = "";%>
<iframe src="jcy_ry_sczp1.jsp?uid=<%=uid%>" height=30 width=100% Frameborder=No Border=0 Marginwidth=0 Marginheight=0 Scrolling=No></iframe>
<input type="hidden" name="dz" value="new">
<input type="hidden" name="uid" value="">
<table width="80%" border="0" cellspacing="0">
<tr>
<td width="0" height="63" align="center"> <input type="submit" name="save" value="保 存" class="input">
</td>
<td width="0" align="center"> <input type="reset" name="reset" value="清 屏" class="input">
</td>
<td width="0" align="center"><input type="button" name="return" value="返 回" onClick="history.back()" class="input">
</td>
</tr>
</table>
</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>
<iframe name="submitx" width="1000" height="600" style="display:none"></iframe>
</body>
</html>
<script language="JavaScript">
<%
Context ctx = null;
DataSource ds = null;
Connection con = null;
Statement stmt = null;
ResultSet rs_qx = null;
ResultSet rs_dw = null;
ResultSet rs_zb = null;
ResultSet rs_jd = null;
String sql_qx = "select dm, mc from dm_mx where dmm = '0001'";
String sql_dw = "select dwdm, dwmc, qx from jcy_dw where yxbz = '01' order by qx";
String sql_zb = "select zbdm, zbmc, dwdm from jcy_zb order by dwdm";
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 InitBigClass(){");
out.print("bigclass = new Array();");
while (rs_qx.next()){
out.print("bigclass["+i+"] = new Array;");
out.print("bigclass["+i+"][0] = \""+rs_qx.getString(1)+"\";");
out.print("bigclass["+i+"][1] = \""+rs_qx.getString(2)+"\";");
i++;
}
out.print("}");
i = 0;
rs_dw = stmt.executeQuery(sql_dw);
out.print("function InitSmallClass(){");
out.print("smallclass = new Array();");
while (rs_dw.next()){
out.print("smallclass["+i+"] = new Array;");
out.print("smallclass["+i+"][0] = \""+rs_dw.getString(1)+"\";");
out.print("smallclass["+i+"][1] = \""+rs_dw.getString(2)+"\";");
out.print("smallclass["+i+"][2] = \""+rs_dw.getString(3)+"\";");
i++;
}
out.print("}");
i = 0;
rs_zb = stmt.executeQuery(sql_zb);
out.print("function InitThirdClass(){");
out.print("thirdclass = new Array();");
while (rs_zb.next()){
out.print("thirdclass["+i+"] = new Array;");
out.print("thirdclass["+i+"][0] = \""+rs_zb.getString(1)+"\";");
out.print("thirdclass["+i+"][1] = \""+rs_zb.getString(2)+"\";");
out.print("thirdclass["+i+"][2] = \""+rs_zb.getString(3)+"\";");
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_zb.close();
rs_dw.close();
rs_qx.close();
stmt.close();
con.close();
}
%>
InitBigClass();
InitSmallClass();
InitThirdClass();
InitJdClass();
function changeitem(myfrm)
{
var SelectedBigId,i,j;
//清空onChange事件之前smallclassid中得內容
for (i= myfrm.dwdm.options.length-1;i>=0 ;--i)
{
myfrm.dwdm.options[i] = null;
}
SelectedBigId = myfrm.qx.options[myfrm.qx.selectedIndex].value;
j = 0;
for (i=0 ;i< smallclass.length ;i++)
{
if (SelectedBigId == smallclass[i][2])
{
myfrm.dwdm.options[j] = new Option(smallclass[i][1],smallclass[i][0]);
++j;
}
}
var SelectedBigId,i,j;
//清空onChange事件之前jdclassid中得內容
for (i= myfrm.jd.options.length-1;i>=0 ;--i)
{
myfrm.jd.options[i] = null;
}
SelectedBigId = myfrm.qx.options[myfrm.qx.selectedIndex].value;
j = 0;
myfrm.jd.options[j] = new Option("-請選擇-","");
for (i=0 ;i< jdclass.length ;i++)
{
if (SelectedBigId == jdclass[i][2])
{
++j;
myfrm.jd.options[j] = new Option(jdclass[i][1],jdclass[i][0]);
}
}
//清空onChange事件之前thirdclassid中得內容
for (i= myfrm.zbdm.options.length-1;i>=0 ;--i)
{
myfrm.zbdm.options[i] = null;
}
myfrm.zbdm.options[0] = new Option("-請選擇-","");
}
changeitem(document.form1);
function changeitem2(myfrm)
{
var SelectedSmallId,i,j;
//清空onChange事件之前smallclassid中得內容
for (i= myfrm.zbdm.options.length-1;i>=0 ;--i)
{
myfrm.zbdm.options[i] = null;
}
SelectedSmallId = myfrm.dwdm.options[myfrm.dwdm.selectedIndex].value;
j = 0;
myfrm.zbdm.options[j] = new Option("-請選擇-","");
for (i=0 ;i< thirdclass.length ;i++)
{
if (SelectedSmallId == thirdclass[i][2])
{
++j;
myfrm.zbdm.options[j] = new Option(thirdclass[i][1],thirdclass[i][0]);
}
}
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -