java+jsp

          transaction_cat_list_page_display_3.jsp

          <%@ page contentType="text/html; charset=GB2312" %>
          <%@ page import="com.silence.market.*"%>
          <%@include file="../common/public.jsp"%>
          <html>
          <head>
          <title></title>
          <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
          <script type="text/javascript" src="../../../p_emarket/WebModule1/js/validation.js"></script>
          <link href="../../../p_emarket/WebModule1/css/book.css" rel="stylesheet" type="text/css">
          <style type="text/css">
          <!--
          .style4 {color: #666666}
          -->
          </style>
          </head>
          <body leftmargin="0" topmargin="0">
          <%
          try {
          ?request.setCharacterEncoding("GBK");
          ?String sFileName = "transaction_cat_list_page_display_2.jsp";
          ? int intPerPageNum = request.getParameter("sPerPage")==null?25:Integer.parseInt(request.getParameter("sPerPage"));
          ? int intPageNo = request.getParameter("sPageNo")==null?1:Integer.parseInt(request.getParameter("sPageNo"));
          ? int nRows = 0;
          ? int nPages = 0;
          ? String sPageNo = String.valueOf(intPageNo);
          ? String sPerPage = String.valueOf(intPerPageNum);
          ? String strCondition = " (s_cat_grade='3' or s_cat_grade='2' )";?
          ?
          ? //查詢條件con_cat_id
          ? String conType = request.getParameter("con_type")==null?"":request.getParameter("con_type");
          ? String conCatID = request.getParameter("con_cat_id")==null?"":request.getParameter("con_cat_id");
          ? int grade = request.getParameter("con_cat_grade")==null?2:Integer.parseInt(request.getParameter("con_cat_grade"));

          ?
          ? TransactionCatManager tempManager = new TransactionCatManager();
          ??? TransactionCat[] temps = tempManager.getAllTransactionCat("",strCondition,"", intPageNo, intPerPageNum);
          ?nRows = tempManager.getRows();
          ?nPages = (nRows - 1 + Integer.parseInt(sPerPage))/Integer.parseInt(sPerPage);
          ?int pageCount = nPages;
          ??? TransactionCat temp = new TransactionCat();
          %>
          <form method="post" name="queryFrm" action=<%=sFileName%>>
          ? <div align="center">
          ??? <table border=0 cellpadding=0 cellspacing=1 align="left" width="95%">
          ????? <tr>
          ??????? <td colspan="7" align="center" valign="top">
          ??<table width="95%" height="32"? border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FBF9F5">
          ??????????? <tr>
          ????????????? <td width="11%"><img src="../../../p_emarket/WebModule1/images/01-1.gif" width="75" height="32"></td>
          ????????????? <td width="79%" height="32" align="left" valign="middle" background="../../../p_emarket/WebModule1/images?牨晥∽∣???C?g??8?8??????栠敲??????慴杲瑥弽汢湡????????牨晥∽∣9????8?8/01-3.gif" class="clsHLine"><span class="clsNav style4">您當前的位置&gt;&gt;商品管理&gt;&gt;商品列表</span>
          ????????????? <td width="10%" align="right" valign="bottom"><img src="../../../p_emarket/WebModule1/images/01-32.gif" width="43" height="32">
          ????????? </table>
          ????????? <table width="100%"? border="0" cellspacing="0" cellpadding="0">
          ??????????? <tr>
          ????????????? <td height="10"></td>
          ??????????? </tr>
          ????????? </table>
          ?? </td>
          ????? </tr>
          ????? <tr> <td>
          ??<table border=0 cellpadding=0 cellspacing=3 class="clsBgColor2" align="center" width="95%">
          ??????????? <%
          ??? String catid="";
          ??? for(int index=0;index<temps.length;index++){
          ????? temp=temps[index];
          ????? if(temp.getCatGrade().equals(String.valueOf(grade))&&temp.getCatID().equals(conCatID))
          ?? {????
          ????? catid=conCatID;
          ?? /////////////二級產品目錄?
          ??? %>
          ??????? <tr class="clsTblDtl1">
          ????? <td><A href="transaction_list_page_display.jsp?con_type=<%=conType%>&con_cat_id=<%=temp.getCatID()%>"><%=temp.getCatName()%></A></td>
          ??</tr>
          ??<tr><td>------</td></tr>
          ??<tr>
          ?? <%
          ?? int count=0;
          ??/////////////三級產品目錄???
          ??for(int i=0;i<temps.length;i++)
          ??{
          ??? temp=temps[i];
          ??? if(temp.getCatGrade().equals(String.valueOf(grade+1))&&temp.getCatParentID().equals(catid))
          ??? {
          ???
          ?? %>
          ????? <td><A href="transaction_list_page_display.jsp?con_type=<%=conType%>&con_cat_id=<%=temp.getCatID()%>"><%=temp.getCatName()%></A></td> <td><%if(temp.getCatDiscribetion()!=null){%>(<%=temp.getCatDiscribetion()%>)<%}%></td>
          ????? <td>||</td>
          ????? <% count++;
          ????? if(count<5)
          ????? continue;
          ?????else{
          ??????? count=0;
          ??????? %>
          ??????? </tr><tr>
          ??????? <%}??
          ??? }??
          ??? }?
          ??????
          ??}%>
          ????</tr>
          ??
          ??
          ??? <%}%>
          ?
          ????????????? <td colspan=20 valign="top" class="clsBgColor1">
          ?????? <input type="hidden" name="con_cat_id" value="<%=conCatID%>"></input>
          ????<input type="hidden" name="con_type" value="<%=conType%>"></input>
          ??????????????? <%@include file="../common/page_deal.jsp"%>
          ????????????? </td>
          ??????????? </tr>
          ????????? </table>
          ??? </td>
          ??? </tr>
          ??? </table>
          ?
          ?
          ?<br><br><br><br><br>
          ? </div>
          </form>
          </body>
          </html>
          <%
          } catch(Exception e){
          ?String strErr = e.getMessage();
          ?onError(request,response,strErr,"","window.close();");
          ?e.printStackTrace();
          }
          %>

          posted on 2006-08-16 16:29 一張白紙 閱讀(237) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 双桥区| 玉林市| 章丘市| 横山县| 朔州市| 玛多县| 滕州市| 镇沅| 无为县| 凌云县| 英德市| 张北县| 五原县| 和龙市| 湖南省| 和平县| 汉源县| 武陟县| 长兴县| 北川| 泸西县| 莱州市| 额济纳旗| 吉林省| 酒泉市| 富宁县| 江达县| 临湘市| 漠河县| 玉树县| 信丰县| 稻城县| 通州市| 浦北县| 沙田区| 庆元县| 合山市| 布尔津县| 丰台区| 龙井市| 嵊州市|