useclassView.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:5k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="java.sql.*,java.lang.*"%>
  3. <script language="javascript" src="../js/useclass.js"></script>
  4. <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
  5. <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
  6. <STYLE type=text/css>
  7. BODY {
  8. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  9. }
  10. TABLE {
  11. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  12. }
  13. TD {
  14. FONT: 12px 宋体
  15. }
  16. IMG {
  17. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  18. }
  19. A {
  20. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  21. }
  22. A:hover {
  23. COLOR: #428eff; TEXT-DECORATION: underline
  24. }
  25. .sec_menu {
  26. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  27. }
  28. .menu_title {
  29. }
  30. .menu_title SPAN {
  31. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  32. }
  33. .menu_title2 {
  34. }
  35. .menu_title2 SPAN {
  36. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  37. }
  38. .style1 {color: #FFFFFF}
  39. .style2 {color: #FF0000}
  40. .style4 {color: #FF00FF}
  41. .style6 {color: #CC00FF}
  42. </STYLE>
  43. <script language="javascript" src="../js/column.js"></script>
  44. <html>
  45. <head>
  46. <title>产品用途类别管理</title>
  47. <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  48. </head>
  49. <body>
  50. <table width="685" height="12%" border="0" align="center" cellpadding="0" cellspacing="0">
  51.   <tr>
  52.     <td width="701" height="37" align="center"><span class="style2">图书子类类别管理</span></td>
  53.   </tr>
  54. </table>
  55. <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  56.   <tr valign="middle" bgcolor="#799ae1"> 
  57.     <td width="192" height="31" align="center"><font color="#FFFFFF">子类类别名称</font></td>
  58.     <td width="194" align="center"><font color="#FFFFFF">子类备注</font></td>
  59. <td width="100" align="center"><font color="#FFFFFF">所属父类名称</font></td>
  60.     <td align="center"><font color="#FFFFFF">编辑</font></td>
  61.     <td align="center"><font color="#FFFFFF">删除</font></td>
  62.   </tr>
  63. <%
  64.                     useclassBeans.getQuery("-1");
  65.    for(int i=0; i<useclassBeans.getItems(); i++)
  66.    {
  67.     
  68. %>
  69.   <tr> 
  70.     <td height="28" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="proView.jsp?proType=useType&pageNum=1&proNum=<%=useclassBeans.getUseclassID(i)%>"><font color="#FF0000"><%=useclassBeans.getUseclassName(i)%></font></a></td>
  71.     <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=useclassBeans.getUseclassInfo(i)%></a></td>
  72. <%  
  73.    int j=useclassBeans.getCharacterID(i);
  74. %>
  75. <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=useclassBeans.getParent(j)%></a></td>
  76.     <td width="50" align="center"><a href="useclassEdit.jsp?classid=<%=useclassBeans.getUseclassID(i)%>"><img src="../images/admin/edit.gif" alt="编辑" width="20" height="18" border="0"></a></td>
  77. <td width="150" align="center"><a href="useclassDel.jsp?classid=<%=useclassBeans.getUseclassID(i)%>"><img src="../images/admin/del.gif" alt="删除" width="16" height="16" border="0"></a></td>
  78.   </tr>
  79. <%
  80. }
  81. %>
  82.   <%
  83. %>
  84. <%
  85. %>
  86. </table>
  87. <table width="585" height="45" border="0" align="center" cellspacing="0">
  88.   <tr>
  89.     <td height="15" align="center">&nbsp;</td>
  90.   </tr>
  91.   <tr>
  92.     <td height="26" align="center"><span class="style2">添加新书子类信息</span></td>
  93.   </tr>
  94. </table>
  95. <table width="685" height="7%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#ffffff">
  96.   <form action="useclassInsert.jsp" method=post name="theform" onSubmit ="return check(this)" >
  97.   <tr >
  98.       <td width="899" height="228" align="center"><table width="696" height="195" border="1" cellspacing="0" bordercolor="#FFFFFF">
  99.         <tr valign="middle">
  100.           <td height="42"><span class="style1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style4">&nbsp;</span>添加子类别名称:</span>            </td>
  101.           <td height="42" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  102.             <input name="name" type="text" size="20" height="20"> </td>
  103.         </tr>
  104. <tr>
  105. <td> <span class="style1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 选择父类:</span> </td>
  106. <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  107.     <select name="characterID">
  108. <option value="all">请选择</option>
  109.         <%
  110.                    characterclassBeans.getQuery("-1");
  111.    for(int i=0; i<characterclassBeans.getItems(); i++)
  112.    {
  113.      %>
  114.         <option value=<%=characterclassBeans.getCharacterID(i)%>><%=characterclassBeans.getCharacterName(i)%></option>
  115.         <%
  116.   }
  117.   %>
  118.       </select>
  119. </td>
  120. </tr>
  121.         <tr>
  122.           <td width="231" height="110"><span class="style1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;子类备注信息:</span></span></td>
  123.           <td width="455"><font color="#000000">
  124.             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  125.             <textarea name="content" cols="50" rows="6"></textarea>
  126.           </font></td>
  127.         </tr>
  128.         <tr align="center">
  129.           <td height="39" colspan="2"><font color="#000000">
  130.             <input type="submit" name="Submit" value="添加">
  131.           </font></td>
  132.         </tr>
  133.       </table>
  134.   </tr>
  135.   </form>
  136. </table>
  137. <p>&nbsp; </p>
  138. </body>
  139. </html>