MarriageStateManage.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:7k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Vector vt = MarriageStateManager.getAllRecord();
  6. %>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  10. <title>婚姻状况管理-- GForce OA 2.0</title>
  11. <link href="../css/txt.jsp" rel="stylesheet" type="text/css"><script language="JavaScript" src="/js/changestyle.js"></script>
  12. <script language="JavaScript" type="text/javascript">
  13. function checkaddmarriagestate()
  14. {
  15.     if(document.addmarriagestate.MarriageState.value=='')
  16.     {
  17.         alert("请输入婚姻状况!");
  18.         document.addmarriagestate.MarriageState.focus();
  19.         return false;
  20.     }
  21.     if(document.addmarriagestate.OrderNumber.value=='')
  22.     {
  23.         alert("请输入排序编号!");
  24.         document.addmarriagestate.OrderNumber.focus();
  25.         return false;
  26.     }
  27. }
  28. </script>
  29. </head>
  30. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  31.    <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  32.     <tr>
  33.     <td align="center" valign="top">
  34.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  35.         <tr>
  36.           <td height="50" valign="top" background="../images/dy-back.gif">
  37.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  38.               <tr valign="middle">
  39.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  40.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">婚姻状况管理</font></strong></td>
  41.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  42.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  43.                   <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  44.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  45.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  46.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  47.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  48.                 </td>
  49.               </tr>
  50.             </table>
  51.           </td>
  52.         </tr>
  53.       </table>
  54. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  55.     <tr>
  56.         <td align="center" valign="top"><p>&nbsp;</p>
  57.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  58.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  59.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  60.                     <th width="8%" nowrap><font color="#000000">序号</font></th>
  61.                     <th width="45%" nowrap><font color="#000000">婚姻状况</font></th>
  62.                     <th width="10%" nowrap><font color="#000000">排序编号</font></th>
  63.                     <th width="11%" nowrap><font color="#000000">添加</font></th>
  64.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  65.                     <th width="12%" nowrap><font color="#000000">删除</font></th>
  66.                 </tr>
  67.                 <%
  68. for(int i=0;i<vt.size();i++)
  69. {
  70.     String strID = ((Vector)vt.get(i)).get(0).toString();
  71.     if(i % 2 == 0)
  72.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  73.     else
  74.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  75.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  76.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  77.     out.println("<td align="left" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  78.     out.println("<td align="left" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(2).toString() + "</td>");
  79.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  80.     out.println("<td align="center" valign="middle" nowrap><a href="EditMarriageState.jsp?ID=" + strID + "">修改</a></td>");
  81.     out.println("<td align="center" valign="middle" nowrap><a href="DelMarriageState.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该婚姻状况吗?\n删除该婚姻状况之前必须删除使用该婚姻状况的所用户,\n否则会出错,您是否继续?');">删除</a></td>");
  82.     out.println("</tr>");
  83. }
  84. %>
  85.                 <form name="addmarriagestate" action="AddMarriageStateAction.jsp" method="post" onSubmit="javascript:return checkaddmarriagestate();">
  86.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  87.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  88.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  89.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  90.                             <input name="MarriageState" type="text" maxlength="20"></th>
  91.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  92.                             <input name="OrderNumber" type="text" maxlength="5" size="5"></th>
  93.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  94.                             <input type="submit" value="添加"></th>
  95.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  96.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  97.                     </tr>
  98.                 </form>
  99.             </table>
  100.         </td>
  101.     </tr>
  102. </table>
  103. </body>
  104. </html>