<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Article_Manage" %>
<%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" />
<title><%=AppConst.SiteName%></title>
<script type="Text/JavaScript" language=javascript>
//反选ＩＤ复选框
function selectAllCheckBox(obj)
{
	if(obj.length)
	{
		for(var i=0;i<obj.length;i++)
		{
			obj[i].checked=!obj[i].checked
		}
	}else{
		
		obj.checked=!obj.checked
	}
}
function WorkSubmit(send){
	if(confirm("您确定要进行您现在的操作吗？")){
		ListNews.action="Article_action.aspx?channelid=<%=channelid%>&action="+send+"";
		ListNews.submit();
		}
}

</script>
<script type="Text/JavaScript" language="javascript" src="inc/title.js"></script>
</head>
<body style="margin-top:0; margin-left:0">
<table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
        <tr class="topbg"> 
          <td style="height:22" align="center" class="topbg"><strong><%=passedname & C_sortname%>列表</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="Article_add.aspx?channelid=<%=channelid%>">添加</a> | <a href="Article_Manage.aspx?channelid=<%=channelid%>">全部</a> | <a href="Article_Manage.aspx?channelid=<%=channelid%>&passed=0">未审</a> | <a href="Article_Manage.aspx?channelid=<%=channelid%>&passed=1">已审</a> | <a href="Article_classmanage.aspx?channelid=<%=channelid%>">栏目</a> |</td>
          <td align="right"><table style="height:19"  border="0" cellpadding="2" cellspacing="0">
			<form name="search" method="get" action="Article_Manage.aspx">
              <tr>
                <td align="right">关键字： </td>
                <td><input name="K" type="text" id="K" size="10" style="width:50" /></td>
                <td>栏目：</td>
                <td>
                  <select name="C" id="C">
                    <option value="0">--所有<%=C_sortname%>--</option>
                    <%=GetChannelBigClassOptions(Channeltype, ChannelId)%>
                  </select>                </td>
                <td align="right">排序：</td>
                <td>
                  <select name="order" id="order">
                    <option value="1">时间</option>
                    <option value="2">点击</option>
                  </select>
				  <input name="channelid" type="hidden" id="channelid" value="<%=channelid%>" />
                  <input type="submit" name="Submit" value="提交" /></td>
              </tr>
            </form>
          </table></td>
        </tr>
</table>
<table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
    <form name="ListNews" method="post" onsubmit="return check();">
      <tr align="center" class="Title">
        <td style="height:22; width:60"><strong>ID</strong></td>
        <td><strong>标题</strong></td>
        <td style="width:80"><div align="center"><strong>阅读等级</strong></div></td>
        <td style="width:40"><div align="center"><strong>审核</strong><strong></strong></div></td>
        <td style="width:40"><strong>点击</strong></td>
        <td style="width:260"><strong>操作</strong></td>
      </tr>
      <%Dim i = 0 : Do While Not Rs.EOF AndAlso i < Rs.PageSize %>
      <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
        <td style="width:60" align="center"><%=rs("id").Value%></td>
        <td>[<a href="Article_Manage.aspx?c=<%=rs("BigClassID").Value%>&channelid=<%=channelid%>" title="点击查看该栏目的所有<%=C_sortname%>"><font color="0066ff"><%=rs("ClassName").Value%></font></a>]<a href="Article_edit.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>" title="<%=GetCoNewsTitle()%>"><%=FixedLenText(Rs("Title").Value, 30)%>　<font color='#BBBBBB'><%=String.Format("{0:M/d}", Rs("inputtime").Value)%></font></a></td>
        <td style="width:80"><div align="center"><%=GetSeeNewsPurview(IsNull(Rs("Rate").Value, 0))%></div></td>
        <td style="width:40">
          <div align="center">
            <%If IsTrue(rs("passed").Value) Then%>√<%Else%><font color="red">×</font><%End If%>
          </div>
        </td>
        <td style="width:40" align="center"><%=rs("hits").Value%></td>
        <td style="width:260" align="center"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
            <tr align="center">
              <td style="width:92%" align="right"><div align="center"><a href="<%=GetDetailUrl(rs("id").Value, channel_dir)%>" target="_blank">
                查看</a> | <a href="Article_edit.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>" title="修改本文">修改</a> |
                <%If IsTrue(rs("Tuijian").Value) Then%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=Ctuijian" title="取消推荐"><font color="red">已荐</font></a>
                <%Else%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=tuijian" title="设为推荐">推荐</a>
                <%End If%>
                |
                <%If IsTrue(rs("Guding").Value) Then%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=CGuding" title="取消固顶"><font color="red">已顶</font></a>
                <%Else%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=Guding" title="设为固顶">固顶</a>
                <%End If%>
                |
                <%If IsTrue(rs("toutiao").Value) Then%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=Ctoutiao" title="取消头条推荐"><font color="red">头条</font></a>
                <%Else%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=toutiao" title="设为首页头条">头条</a>
                <%End If%>
                |
                <%If IsTrue(rs("binpai").Value) Then%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=Cbinpai" title="设为首页并排"><font color="red">并排</font></a>
                <%Else%>
                  <a href="Article_action.aspx?id=<%=rs("id").Value%>&channelid=<%=channelid%>&action=binpai" title="设为首页并排">并排</a>
                <%End If%>
              </div></td>
              <td style="width:8%"><input type="checkbox" name="id" value="<%=rs("id").Value%>" class="box1" /></td>
            </tr>
        </table></td>
      </tr>
      <% i = i + 1 : Rs.MoveNext() : Loop%>
      <tr align="right" onmouseover="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
        <td style="height:29" colspan="6" class="tdbg"><input type="button" name="Submit22" value="反选" onclick="selectAllCheckBox(ListNews.id)" />
		<input type="button" name="Submit2" value="批量审核" onclick="WorkSubmit('passed');" />		          
            <input type="button" name="Submit2" value="放入回收站" onclick="WorkSubmit('del');" />        </td>
      </tr>
  </form>
</table>
<table style="width:100%"  border="0" cellpadding="5" cellspacing="0">
    <tr>
        <td><%=Pagination(rs.pagecount,IsNull(Request("page"),1),rs.recordcount,rs.pagesize)%></td>
    </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
