<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Classad_nopass" %>
<%On Error Resume Next%>
<script type="Text/JavaScript" language="javascript">
function selectall(){
	for(i=0;i!=document.form.elements.length;i++){
		document.form.elements[i].checked=!document.form.elements[i].checked;
	}
}
</script>
<script type="Text/JavaScript" language=javascript>
function Checked()
{
	var j = 0
	for(i=0;i < document.form.elements.length;i++){
		if(document.form.elements[i].name == "adid"){
			if(document.form.elements[i].checked){
				j++;
			}
		}
	}
	return j;
}

function DelAll()
{
	if(Checked()  <= 0){
		alert("您至少选择1条信息!");
	}	
	else{
		if(confirm("确定要删除选择的信息吗？\n此操作不可以恢复！")){
			form.action="Classad_del.aspx?action=del";
			form.submit();
		}
	}
}

function AuditingAll()
{
	if(Checked()  <= 0){
		alert("您至少选择1条信息!");
	}	
	else{
			form.action="Classad_del.aspx?action=audit";
			form.submit();
	}
}
</SCRIPT>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>现有信息列表</title>
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
 <table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
      <tr class="topbg">
        <td style="height:22" align="center" class="topbg"><strong>管理分类信息</strong></td>
      </tr>
</table><table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
          
        <tr>
          <td style="height:27; width:30" align="center"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/gojump01.gif" width="16" height="16" /></td>
          <td> <a href="classad_add.aspx">添加分类信息 </a>  | 

 
          <a href="Classad_list.aspx">管理分类信息 </a>  | 

 
          <a href="Classad_shouye.aspx">首页分类信息</a>  | 

 
          <a href="Classad_fufeiad.aspx">付费分类信息</a>  | 

 
          <a href="Classad_gudingad.aspx">固顶分类信息</a>  | 

 
          <a href="Classad_hotad.aspx">热点分类信息</a>  | 

 
          <a href="Classad_type.aspx">分类管理</a></td>
          <td style="width:180"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
            <tr><form action="" method="post" name="search">
              <td>关键字
              </td>
              <td><div align="center">
      <input  maxlength="20" name="keyword" onfocus="this.value=''" size="12"  value="<%=keyword%>" /> 
              </div></td>
              <td><input  type="submit" value="搜索" style="font-size: 12px" name="search" /></td>
            </form></tr>
          </table></td>
        </tr>
      </table>
<table style="width:100%"  border="0" cellpadding="1" cellspacing="1" class="border">
  <tr>
    <td class="Title"><a href="?"><font color="white">全部</font></a><%do while not rs_lei.eof%> | <a href="?type=<%=rs_lei("name").Value%>"><font color="white"><%=rs_lei("name").Value%></font></a><%rs_lei.movenext() : Loop%></td>
  </tr>
</table><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="height:10"></td>
  </tr>
</table>
  <table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
    <tr><form name="form" method="post">
      <td>
      <table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" class="border">
          <tr  class="Title">
<td style="width:30" align="center">编号</td>
            <td align="center">信息标题</td>
            <td align="center">信息类别</td>
            <td align="center">付款</td>
            <td align="center">发布日期</td>
            <td align="center">截止日期</td>
            <td align="center">审核状态</td>
            <td align="center">会员</td>
            <td align="center">身份证</td>
            <td align="center">IP</td>
            <td colspan="2" align="center">管理操作</td>
          </tr>
          <%Dim num = 0 : Do While Not Rs.EOF AndAlso num < Rs.PageSize%>
          <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
            <td align="center"><%=rs("adid").Value%></td>
            <td>&nbsp;<a href="<%=GetDetailUrl(rs("adid").Value, "classad")%>" target="_blank"><%=rs("title").Value%></a>
                <%If IsTrue(rs("ispic").Value) Then%>
                <font color="#FF0000">图</font>
                <%End If%></td>
            <td align="center"><a href="?type=<%=rs("type").Value%>"><%=rs("type").Value%></a></td>
            <td align="center"><%=formatnumber(rs("money").Value,2)%></td>
            <td align="center"><%=rs("date").Value%></td>
            <td align="center"><%=rs("stop").Value%></td>
            <td align="center">
                <%If rs("mark").Value=1 Then%>
                <font color="#008000">已审核</font>
                <%Else%>
                <font color="#FF0000">未审核</font>
                <%End If%>
            </td>
            <td align="center"><%If Not IsNull(rs("uid").Value) Then%><font color="#FF0000">是</font><%Else%>否<%End If%></td>
            <td align="center"><%If Not IsNull(rs("cardid").Value) Then%>
<a href="../cardid.aspx?cardid=<%=rs("cardid").Value%>" target="_blank">查</a>
<%Else%>无<%End If%></td>
            <td align="center"><%If Not IsNull(rs("ip").Value) Then%><a href="../ip.aspx?ip=<%=rs("ip").Value%>" target="_blank">查</a><%Else%>无<%End If%></td>
            <td align="center"><a href="Classad_edit.aspx?id=<%=rs("adid").Value%>"><font color="green">修改</font></a></td>
            <td style="width:30" align="center"><input type="checkbox" name="adid" value="<%=rs("adid").Value%>" onclick="Checked(form)" /></td>
          </tr><%num=num+1 : Rs.movenext() :loop%> 
          <tr>
            <td colspan="12" align="center"><div align="right">
                <input type="button" name="Submit22" value="反选" onclick="selectall()" />
                <input title="删除" onclick="DelAll()" type="button" value="删除所选" name="Submit" />
                <input title="审核" onclick="AuditingAll()" type="button" value="审核所选" name="Submit" />
            </div></td>
          </tr>
  </table></td>
    </form></tr>
  </table>
  <table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1">  
   <tr>                                                     
    <td style="height:20"><p align="center"><%=Pagination(Rs.PageCount, IsNull(Request("page"), 1), Rs.RecordCount, Rs.PageSize)%></td>                                                                                  
    </tr>
</table>
</body>
<%Page_Loaded()%>
</html>     