<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Admin_Adv_list" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" />
<title><%=AppConst.SiteName%></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.lh15 {LINE-HEIGHT: 150%
}
-->
</style>
<script type="Text/JavaScript" language="javascript">
function check(){
	if(document.form.file.value==""){
		alert("选点击浏览选择您要上传的图片！");
	}else{
		document.form.Submit.disabled=true;
		form.submit();
	}
}
function del(URL){
	if(confirm('确定要删除这条记录吗？')){
	window.location=URL;
	}
}
			//大类与子栏目相关联
function changeselect(locationid)
{
	document.form.sortid.length = 0;
	document.form.sortid.options[0] = new Option('--请选择行业子类--',"");
	for (i=0; i<selectclass.length; i++)
	{
		if (selectclass[i][0] == locationid)
		{document.form.sortid.options[document.form.sortid.length] = new 

Option(selectclass[i][1], selectclass[i][2]);}
	}
}
</script>
</head>

<body>
<table style="width:100%" border="0" cellpadding="0" cellspacing="1">
      <tr>
        <td style="height:24" class="topbg"><div align="center"><strong>==<%=typeidname%>==<%=unitname%>==广告列表==</strong></div></td>
      </tr>
</table><table style="width:100%"  border="0" align="center" cellpadding="1" cellspacing="1" class="border">
          
        <tr class="Title">
          <td style="height:27; width:70" align="center"><strong>管理功能：</strong></td>
          <td> | <a href="Admin_Adv_site.aspx"><font color="#ffffff">广告位查看</font></a> |
            <a href="Admin_adv_siteadd.aspx"><font color="#ffffff">添加广告位</font> </a> | <a href="Admin_adv_config.aspx"><font color="#ffffff">行业关键词广告设置</font></a> | 
          <a href="Admin_adv_add.aspx"><font color="#ffffff">投放新广告</font></a> | 
          <a href="Member_jifeng.aspx"><font color="#ffffff">充积分点</font></a> | <a href="Member_sendadv.aspx"><font color="#ffffff">广告提交管理</font></a></td>
        </tr>
      </table>
    <br><table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
          
        <tr>
          <td style="height:27; width:30" align="center"><img src="images/12.gif" width="6" height="10" /></td>
          <td>您现在的位置：<%=AppConst.SiteName%> > 广告服务 > <%=typeidname%> > <%=unitname%>广告列表</td>
        </tr>
      </table><br><table style="width:100%"  border="0" align="center" cellpadding="1" cellspacing="1" class="border">
          
        <tr class="Title">
          <td style="height:27" align="center"><strong>广告分类：</strong><a href="Admin_Adv_list.aspx?typeid=1&unit=0"><font color="#ffffff">首页未审</font></a> | <a href="Admin_Adv_list.aspx?typeid=1&unit=1"><font color="#ffffff">首页已审</font></a> |
		    <a href="Admin_Adv_list.aspx?typeid=2&unit=0"><font color="#ffffff">商机未审</font></a> | <a href="Admin_Adv_list.aspx?typeid=2&unit=1"><font color="#ffffff">商机已审</font></a>| 
		    <a href="Admin_Adv_list.aspx?typeid=3&unit=0"><font color="#ffffff">产品未审</font></a> | <a href="Admin_Adv_list.aspx?typeid=3&unit=1"><font color="#ffffff">产品已审</font></a>| 
		    <a href="Admin_Adv_list.aspx?typeid=4&unit=0"><font color="#ffffff">企业未审</font></a> | <a href="Admin_Adv_list.aspx?typeid=4&unit=1"><font color="#ffffff">企业已审</font></a>| 
		    <a href="Admin_Adv_list.aspx?typeid=5&unit=0"><font color="#ffffff">新闻未审</font></a> | <a href="Admin_Adv_list.aspx?typeid=5&unit=1"><font color="#ffffff">新闻已审</font></a>| 
		    <a href="Admin_Adv_list.aspx?typeid=6&unit=0"><font color="#ffffff">搜索未审</font></a> | <a href="Admin_Adv_list.aspx?typeid=6&unit=1"><font color="#ffffff">搜索已审</font></a>| 
		    <a href="Admin_Adv_list.aspx?typeid=7&unit=0"><font color="#ffffff">人才未审</font></a> | <a href="Admin_Adv_list.aspx?typeid=7&unit=1"><font color="#ffffff">人才已审</font></a>|		  </td>
        </tr>
      </table>
      <br>      <table style="width:100%"  border="0" cellpadding="3" cellspacing="1" class="border">
        <tr class="Title">
          <td style="height:24; width:5%"><div align="center"><strong>ID</strong></div></td>
          <td style="width:25%"><div align="center"><strong>广告名称</strong></div></td>
          <td style="width:12%"><div align="center"><strong>所需积分点数</strong></div></td>
          <td style="width:5%"><div align="center"><strong>折扣</strong></div></td>
          <td style="width:11%"><div align="center"><strong>所属栏目</strong></div></td>
          <td style="width:11%"><div align="center"><strong>登录名</strong></div></td>
          <td style="width:10%"><div align="center"><strong>投放时间</strong></div></td>
          <td style="width:10%"><div align="center"><strong>到期时间</strong></div></td>
          <td style="width:11%"><div align="center"></div>            <div align="center"><strong>操作</strong></div></td>
        </tr>
        <%If mRs.EOF Then%><tr bgcolor="#F4FCFF"><td height="26" colspan="8">　还没有广告数据...</td></tr><%End If%>
		<%Do While Not mRs.EOF%>
        <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
          <td style="height:24"><div align="center"><%=mRs("id").Value%></div></td>
          <td style="height:24"><div align="left"><%=GetAdSortName()%>|<%WriteEndTime()%></div></td>
          <td><div align="center"><%=mRs("A_jifen").Value%>点/月</div></td>
          <td><div align="center"><%=mRs("A_rebate").Value%></div></td>
          <td><div align="center"><%=GetAdTypeName()%></div></td>
          <td><div align="center"><%=mRs("A_userid").Value%></div></td>
          <td><div align="center"><%=String.Format("{0:yyyy/M/d}", mRs("A_starttime").Value)%></div></td>
          <td><div align="center"><%=String.Format("{0:yyyy/M/d}", mRs("A_endtime").Value)%></div></td>
          <td><div align="center"><%If Not IsTrue(mRs("a_unit").Value) Then%><a href="?id=<%=mrs("id").Value%>&typeid=<%=typeid%>&unit=<%=unit%>&action=ok">审核</a>‖<%End If%><a href="Admin_adv_edit.aspx?typeid=<%=typeid%>&unit=<%=unit%>&id=<%=mrs("id").Value%>">修改</a>‖<a href="javascript:del('Admin_Adv_list.aspx?id=<%=mrs("id").Value%>&typeid=<%=typeid%>&unit=<%=unit%>&action=del')">删除</a></div></td>
        </tr>
		<%mRs.MoveNext() : Loop %>
      </table>
</body>
<%Page_Loaded()%>
</html>
