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

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. int intUserID = m_session.GetInt("UserID");
  6. Vector vt = AddressKindManager.getAllRecord(intUserID);
  7. %>
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  11. <title>名片夹分类管理-- GForce OA 2.0</title>
  12. <link href="../css/txt.jsp" rel="stylesheet" type="text/css"><script language="JavaScript" src="/js/changestyle.js"></script>
  13. <script language="JavaScript" type="text/javascript">
  14. function checkaddAddressKind()
  15. {
  16.     if(document.addAddressKind.KindName.value=='')
  17.     {
  18.         alert("请输入分类名称!");
  19.         document.addAddressKind.KindName.focus();
  20.         return false;
  21.     }
  22. }
  23. </script>
  24. </head>
  25. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  26.  <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  27.     <tr>
  28.     <td align="center" valign="top">
  29.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  30.         <tr>
  31.           <td height="50" valign="top" background="../images/dy-back.gif">
  32.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  33.               <tr valign="middle">
  34.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  35.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">名片夹分类管理</font></strong></td>
  36.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  37.                    <!-- 群增<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;-->
  38.                   <!--单增<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;-->
  39.                   <!-- 修改<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;-->
  40.                   <!-- 删除<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;-->
  41.                   <!-- 查看<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;-->
  42.                   <!-- 组合查询<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;-->
  43.                 </td>
  44.               </tr>
  45.             </table>
  46.           </td>
  47.         </tr>
  48.       </table><br>
  49.             <table width="70%" border="1" cellpadding="1" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  50.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  51.                     <th width="4%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  52.                     <th width="7%" nowrap><font color="#000000">序号</font></th>
  53.                     <th width="55%" nowrap><font color="#000000">分类名称</font></th>
  54.                     <th width="7%" nowrap><font color="#000000">&nbsp;</font></th>
  55.                     <th width="7%" nowrap><font color="#000000">&nbsp;</font></th>
  56.                 </tr>
  57.                 <%
  58. for(int i=0;i<vt.size();i++)
  59. {
  60.     String strID = ((Vector)vt.get(i)).get(0).toString();
  61.     if(i % 2 == 0)
  62.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  63.     else
  64.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  65.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  66.     out.println("<td align="center" valign="middle">" + (i+1) + "</td>");
  67.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  68.     out.println("<td align="center" valign="middle" nowrap><a href="EditAddressKind.jsp?ID=" + strID + "">修改</a></td>");
  69.     out.println("<td align="center" valign="middle" nowrap><a href="DelAddressKind.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该名片夹分类吗?\n删除该通讯录分类之前必须删除属于该分类的所有通讯信息,\n否则会出错,您是否继续?');">删除</a></td>");
  70.     out.println("</tr>");
  71. }
  72. %>
  73.                 <form name="addAddressKind" action="AddAddressKindAction.jsp" method="post" onSubmit="javascript:return checkaddAddressKind();">
  74.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  75.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  76.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  77.                         <th align="left" valign="middle"  nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  78.                             <input name="KindName" type="text" maxlength="30" size="42">
  79.                             <input name="UserID" type="hidden" value="<%=intUserID%>">
  80.                             </th>
  81.                         <th align="center" valign="middle" colspan="2" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  82.                             <input type="submit" value="添 加" style="background-color: #FFFFFF; border: 1 solid #000000"></th>
  83.                     </tr>
  84.                 </form>
  85.             </table>
  86.         </td>
  87.     </tr>
  88. </table>
  89. </body>
  90. </html>