<%@page contentType="text/html; charset=UTF-8"%>
<%@include file="/inc/init.jsp" %>
<%@include file="/inc/checklogin.jsp" %>
<%@include file="inc/header.jsp" %>
<%
	//分页参数
	int pagex = pu.getInt("pagex", 1);
	if (pagex < 1) {
		pagex = 1;
	}
	int length = 15;
	int start = (pagex - 1) * length;
	int count = 0;
	String querystr = pu.getQueryString();
	querystr=request.getRequestURI()+"?"+querystr;
	//分页参数
Product_class_db pcdb=new Product_class_db();
DOC[] docs=pcdb.getList(start,length); //分页参数应用
count=pcdb.getRealCount();
String showAll=pu.getString("s");
%>
<div id="c">
<%@include file="inc/left.jsp" %>
<div id="right">
<%@include file="inc/position.jsp" %>

<div class="right">
<div id="right_box">

	<div class="blank20"></div>
<div style="padding-left:10px;">

<input class="btn_c" type="button" value=" 添加分类 " onclick="javascript:window.location.href='classAdd.jsp'" />

</div>
	<div id="tagscontent" class="right_box">
	  
	  <table border="0" cellspacing="0" cellpadding="0" class="list" name="table1" id="table1" width="100%">

<thead>

<tr class="th">

<th width="6%" align="center"><!--id-->分类ID</th>

<th width="17%" align="center"><!--oid-->	分类名称/备注信息</th>
<th width="20%" align="center">显示的公司名字</th>
<th width="12%" align="center">客服电话</th>
<th width="12%" align="center">客服QQ</th>
<th width="9%" align="center">显示方式</th>
<th width="11%" align="center">查看效果</th>
<th width="13%" align="center">操作</th>
</tr>



</thead>

<tbody>
<%
for(int i=0;i<docs.length;i++){
%>
<tr class="s_out">


<td align="center"><%=docs[i].get("classid")%></td>

<td align="center"><%=docs[i].get("name")%><%=docs[i].get("retain3")%></td>
<td align="center"><%=docs[i].get("showname")%></td>
<td align="center"><%=docs[i].get("retain1")%></td>
<td align="center"><%=docs[i].get("retain2")%></td>
<td align="center"><%=docs[i].geti("retain4")==1?"单选按钮":"下拉选择"%></td>
<td align="center"><a href="/buy.jsp?i=<%=docs[i].geti("classid")%>" target="_blank">电脑</a>／<a href="/buywap.jsp?i=<%=docs[i].geti("classid")%>" target="_blank">手机</a></td>
<td align="center"><a href="classEdit.jsp?classid=<%=docs[i].get("classid")%>">修改</a>
	<%if(ConfigUtil.usedel){%>
	<a href="
fun/F_class.jsp?classid=<%=docs[i].get("classid")%>&amp;action=del" onclick="javascript: return confirm('确实要删除吗?删除后不可恢复！');"><font class="fontred">删除</font></a>
	<%}%></td>
</tr>
 <%
}
docs=null;  //释放对象 
%>
</tbody>

</table>

<div class="page" align="center">
<%=PagingUtil.splitPages(pagex,querystr,count, length)%> 
</div>
<div class="blank10"></div>
</div>
<div class="blank10"></div>

<div class="clear"></div>
</div>
</div>

<div class="right_bottom">
</div>
</div>

<div id="footer">
</div>
</div>
<%@include file="inc/msg.jsp" %>
<%@include file="inc/footer.jsp" %>
