<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx8<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%><html>
<head>
<title>网软志成在线购物系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #000000;
	font-weight: bold;
}
.STYLE3 {color: #FF0000}
.STYLE4 {color: #006699}
-->
</style></head>

<body><div align="center">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="1%" height="28">&nbsp;</td>
      <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 供求管理 &gt;&gt; 供求信息管理 </font></strong></td>
            <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE3">* 为必添项目</span></td>
          </tr>
          <tr>
            <td height="27" colspan="2" style="font-size:12px;color:#000000">&nbsp;操作说明：点击信息主题名称后，可查看前台页面，点击“修改”可进行修改。</td>
          </tr>
      </table></td>
    </tr>
  </table>
   <form method="POST" action="info_del.asp" name="form1" onSubmit="return ck1()">
   <script language="javascript">
   function  ck1(){
if(form1.de){
var b = document.getElementsByTagName("input");
var ok="no"							
for (var i=0; i<b.length; i++){							
if (b[i].type == "checkbox" && b[i].name == "de" &&b[i].checked){ok="ok"}}	
if(ok!="ok"){
alert("您没有选删除的目标")
return false}}
else{
alert("您没有选删除的目标")
return false}}
   </script>
     <div align="center"> 
            <table width="95%" border="0" cellpadding="3" cellspacing="1" bgcolor="#999999">
              <tr bgcolor="#cccccc"> 
                <td height="23">
                <div align="center">最新信息主题</div></td>
                <td height="23"><div align="center">发布人</div></td>
                <td><div align="center">价格</div></td>
                <td width="16%" align="center" bgcolor="#cccccc"><div align="center">发布时间</div></td>
                <td width="8%" align="center"><div align="center">置顶</div></td>
                <td width="8%" align="center"><div align="center">推荐</div></td>
                <td width="8%" align="center"><div align="center">修改</div></td>
                <td width="8%" align="center"><div align="center">删除</div></td>
              </tr>

 <%
	
set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_infomsg  ORDER BY id DESC",conn,3,1
if rs.eof then
         %>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
     <tr>
       <td align=center>暂无信息!</td>
     </tr>
   </table>
		 <%
           else 
        rs.PageSize =12 '每页记录条数
		iCount=rs.RecordCount '记录总数
		iPageSize=rs.PageSize
    	maxpage=rs.PageCount 
    	page=request("page")
    	per_page=rs.PageSize
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	For i=0 To x-1
  %>
              <tr bgcolor="#F3F3F3"> 
                <td width="30%" height="23" bgcolor="#F3F3F3">&nbsp; <%response.write  "[" & (rs(10)) & "]"%>
                  <a href="../Supply/show.asp?n=<%response.write rs(0)%>" target="_black"><font color="#5B892E"> 
                  <%response.write rs(2)%></font></a>
                  <%if rs(16)<>false then%>
                  <font color="#FF0000">[推荐]</font> 
                <%end if%>
                <%if rs(17)=0 then%>
                <font color="#FF0000">[置顶]</font>
                <%end if%></td>
                <td width="15%" bgcolor="#F3F3F3"><div align="center"> 
                    <%response.write rs(11)%>
                </div></td>
                <td width="10%" height="23" bgcolor="#F3F3F3"><div align="center"><font color="#FF0000"> 
                    <%response.write rs(13)%>
                </font></div></td>
                <td width="16%" align="center" bgcolor="#F3F3F3"> 
                <%response.write rs(4)%>                </td>
                <td width="9%" align="center" bgcolor="#F3F3F3"> 
                  <a href="info_good.asp?lx=1&id=<%response.write rs(0)%>">
                  <%if rs("itop")=1 then%>
置顶
<%else%>
<span class="STYLE4">取消</span>
<%end if%>
                  </a> </td>
                <td width="6%" align="center" bgcolor="#F3F3F3"><a href="info_good.asp?lx=2&id=<%response.write rs(0)%>"> 
                  <%if rs("good")=true then%>
                  <span class="STYLE4">撤销</span> 
                <%else%>
                  推荐 
                  <%end if%>
                </a></td>
                <td width="6%" align="center" bgcolor="#F3F3F3"><a href="info_edit.asp?id=<%=rs("id")%>">修改</a></td>
                <td width="8%" align="center" bgcolor="#F3F3F3"> <input type="checkbox" name="de" value="<%response.write rs(0)%>"></td>
              </tr>
              <%
            rs.movenext
            next%>
       </table>
              <br>
              <input type="submit" value="删除" name="B1"  class="go-wenbenkuang">
              &nbsp; 
              <input type="reset" value="重选" name="B2"  class="go-wenbenkuang">
            全选 
            <input type="checkbox" name="checkbox" value="checkbox" onClick="return mm()">
     </div>
   </form>     
</div>
<div align="center"> <%call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>",per_page)%>
  <center>
    <%rs.close 
conn.close%>
  </center>
</div>      <br>


<script language=javascript>
function mm()
{
   var a = document.getElementsByTagName("input");
   if(form1.checkbox.checked==false){
   for (var i=0; i<a.length; i++)
      if (a[i].type == "checkbox") a[i].checked = false;
   }
   else
   {
   for (var i=0; i<a.length; i++)
      if (a[i].type == "checkbox") a[i].checked = true;
   }
}
</script>
<!--#include file="page.asp"-->
<%end if%>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>