<%On Error Resume Next%>
<!--#include file="conn.asp"-->
<!--#include file="chk_logs.asp"-->
<% lb=request("lb") %>
<html>
<head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
.STYLE3 {color: #FF3300}
.STYLE4 {font-size: 12px}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE6 {color: #000000}
body {
	background-color: #FFFFFF;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE7 {	color: #FFFFFF;
	font-size: 12px;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="20" class="admin-top-bg">&nbsp;</td>
  </tr>
  <tr>
    <td><table width="100%" height="270" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td width="99%" align="center" valign="top"><table width="96%" border="0" cellpadding="0" cellspacing="1" bgcolor="#1A70D2">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="61%" height="25" align="left" bgcolor="#254B8F">&nbsp;<span class="STYLE7">⊙</span><a href="productadd.asp">信息添加</a></td>
                    <td width="39%" align="right" bgcolor="#254B8F" class="bsz">当前位置：网站后台管理___信息添加</td>
                  </tr>
				  <% if lb<>"设计师" then %>
                  <tr>
                    <td height="30" colspan="2" align="left" class="a03"><span class="STYLE3">&nbsp;</span> 
				 <table width="100%"  border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
                        <% 
						set rs=server.CreateObject("adodb.recordset")
		      rs.open "select * from product where lb='"&lb&"' order by id desc" ,conn,1,1 %>
                        <tr align="center" bgcolor="#E7F6EF">
                          <td width="23%" align="center" bgcolor="#F7F7F7" class="wz">产品名称</td>
                          <td width="30%" align="center" bgcolor="#F7F7F7" class="wz">入库时间</td>
                          <td width="28%" align="center" bgcolor="#F7F7F7" class="wz">管理操作</td>
                        </tr>
                        <%
		  if rs.eof then 
		  %>
                        <tr align="center" bgcolor="#E7F6EF">
                          <td height="78" colspan="7" bgcolor="#F7F7F7" class="wz">暂时没有信息！</td>
                        </tr>
                        <%
		                        else
							   rs.pagesize=20
							   page=request("page")
							   if isempty(page) or page="" or not isnumeric(page) then page=1
				 if cint(page)<1 then page=1
				 if cint(page)>rs.pagecount then page=rs.pagecount
				 rs.absolutepage=cint(page)
							   for i=1 to rs.pagesize
		                   %>
                        <tr align="center" bgcolor="#E7F6EF">
                          <td align="center" bgcolor="#F7F7F7" class="wz"><%=rs("cpmc")%></td>
                          <td align="center" bgcolor="#F7F7F7" class="wz"><%=rs("sj")%></td>
                          <td bgcolor="#F7F7F7" class="wz"><a href="productedit.asp?id=<%=rs("id")%>&lb=<%=lb%>"><font color="#FF0000">修改</font></a>&nbsp;&nbsp;<a href="javascript:if(confirm('确定要删除该文件吗？\n\n注意：删除后无法恢复！')){location.href='product_del.asp?id=<%=rs("id")%>&lb=<%=lb%>'}" title="删除文件"><font color="#FF0000">删除</font></a></td>
                        </tr>
                        <%
		  rs.movenext
		  if rs.eof then exit for
		  next
		  %>
                        <tr align="left">
                          <td colspan="7" bgcolor="#F7F7F7" class="STYLE4"></td>
                        </tr>
                        <%end if%>
                        <tr align="center" bgcolor="#E7F6EF">
                          <td height="22" colspan="7" bgcolor="#F7F7F7" class="STYLE4"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                              <form name="form2" method="post" action="product.asp" >
                                <tr>
                                  <td width="16%" align="right" bgcolor="#F7F7F7"><a href="productadd.asp?lb=<%=lb%>" class="STYLE2 a02"><font color="#FF0000"><%=lb%>信息添加</font></a></td>
                                  <td width="84%" align="right" bgcolor="#F7F7F7"><span class="wz"><a href="product.asp?page=1&lb=<%=lb%>"><font color="#000000">第一页</font></a> <a href="product.asp?page=<%=page-1%>&lb=<%=lb%>" ><font color="#000000">上一页</font></a> <a href="product.asp?page=<%=page+1%>&lb=<%=lb%>"><font color="#000000">下一页</font></a> <a href="product.asp?page=<%=rs.pagecount%>&lb=<%=lb%>" class="STYLE6"><font color="#000000">最后一页</font></a> 共<font color="#0000FF"><%=rs.pagecount%></font>页 当前第<font color="#0000FF"><%=page%></font>页 
                                    跳至
                                    <input type="text" name="page" size="4">
                                    页
                                     <input type="submit" name="Submit" value="转至">
							         <input type="hidden" name="lb" value="<%=lb%>">
                                  </span></td>
                                </tr>
                              </form>
                          </table></td>
                        </tr>
                      </table></td>
                  </tr>
				  <% end if %>
              </table></td>
            </tr>
          
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="96%" height="99" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="99" valign="top" bgcolor="#1A70D2"><table width="100%" height="99" border="0" cellpadding="0" cellspacing="1">
            <tr>
              <td height="97" align="left" valign="top" bgcolor="#E4F4FC"><table class="tableBorder" width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
                  <tr>
                    <td align="center" bgcolor="#254b8f" class="bsz"><strong>快速查讯</strong></td>
                  </tr>
                  <tr bgcolor="#E8F1FF">
                    <form name="form2" method="post" action="searchxx.asp">
                      <td height="50"><table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center"><input name="a2" type="text" id="a2" onFocus="this.value=''" value="请输入关键字" size="60"></td>
                            <td width="20%" height="30" align="center"><input type="submit" name="Submit2" value="查 询"></td>
                          </tr>
                          <tr>
                            <td colspan=2 height=13>&nbsp;</td>
                          </tr>
                      </table></td>
                    </form>
                  </tr>
                </table>
                </td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
