transaction_cat_list_page_display_3.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();
}
%>

你可能感兴趣的:(transaction_cat_list_page_display_3.jsp)