FavoritesKindManage.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. int intUserID = m_session.GetInt("UserID");
  6. Vector vt = FavoritesKindManager.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 checkaddFavoritesKind()
  15. {
  16.     if(document.addFavoritesKind.KindName.value=='')
  17.     {
  18.         alert("请输入分类名称!");
  19.         document.addFavoritesKind.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>
  49. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  50.     <tr>
  51.         <td align="center" valign="top"><p>&nbsp;</p><table width="90%" border="0" cellpadding="0" cellspacing="0">
  52.                 <tr align="center" valign="middle">
  53.                 <th nowrap colspan=2 align="center"><font color="#000000">收 藏 夹 分 类 管 理</font></th>
  54.               </tr>
  55.                <tr><td>&nbsp;</td>
  56.                 </tr>
  57.               </table>
  58.             <table width="70%" border="1" cellpadding="1" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  59.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  60.                     <th width="4%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  61.                     <th width="7%" nowrap><font color="#000000">序号</font></th>
  62.                     <th width="55%" nowrap><font color="#000000">分类名称</font></th>
  63.                     <th width="7%" nowrap><font color="#000000">&nbsp;</font></th>
  64.                     <th width="7%" nowrap><font color="#000000">&nbsp;</font></th>
  65.                </tr>
  66.                 <%
  67. for(int i=0;i<vt.size();i++)
  68. {
  69.     String strID = ((Vector)vt.get(i)).get(0).toString();
  70.     if(i % 2 == 0)
  71.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  72.     else
  73.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  74.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  75.     out.println("<td align="center" valign="middle">" + (i+1) + "</td>");
  76.     out.println("<td align="center" valign="middle" nowrap><a href="FavoritesManage.jsp?KindsID=" + strID +"">" + ((Vector)vt.get(i)).get(1).toString() + "</a></td>");
  77.     out.println("<td align="center" valign="middle" nowrap><a href="EditFavoritesKind.jsp?ID=" + strID + "">修改</a></td>");
  78.     out.println("<td align="center" valign="middle" nowrap><a href="DelFavoritesKind.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该收藏夹分类吗?\n删除该收藏夹分类之前必须删除属于该分类的所有收藏信息,\n否则会出错,您是否继续?');">删除</a></td>");
  79.     out.println("</tr>");
  80. }
  81. %>
  82.                 <form name="addFavoritesKind" action="AddFavoritesKindAction.jsp" method="post" onSubmit="javascript:return checkaddFavoritesKind();">
  83.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  84.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  85.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  86.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  87.                             <input name="KindName" type="text" maxlength="30" size="42">
  88.                             <input name="UserID" type="hidden" value="<%=intUserID%>">
  89.                             </th>
  90.                          <th align="center" valign="middle" colspan="2" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  91.                             <input type="submit" value="添 加" style="background-color: #FFFFFF; border: 1 solid #000000"></th>
  92.                     </tr>
  93.                 </form>
  94.             </table>
  95.         </td>
  96.     </tr>
  97. </table>
  98. </body>
  99. </html>