<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="content_list.aspx.cs" Inherits="JumboUCMS.WebFile.Admin._content_list" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html   xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta   http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta   http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>内容列表</title>
<script type="text/javascript" src="../_libs/jquery.tools.pack.js"></script>
<script type="text/javascript" src="../_data/jcmsU1.js"></script>
<link   type="text/css" rel="stylesheet" href="../_data/jcmsU1.css" />
<script type="text/javascript" src="scripts/common.js"></script>
<link   type="text/css" rel="stylesheet" href="css/common.css" />
<script type="text/javascript" src="scripts/content.js"></script>
</head>
<body>
<textarea id="tplClassTree" style="display:none"><a href="javascript:void(0);" class="top_link"><span class="down">移动至栏目</span></a>{$T}</textarea>
<div class="topnav"> <span class="preload1"></span><span class="preload2"></span>
	<ul id="topnavbar">
		<li class="topmenu"><a href="javascript:void(0);" class="top_link"><span class="down">批量操作</span></a>
			<ul class="sub">
				<%if (ChannelIsHtml && IsPower(ChannelId + "-08")){ %><li><a href="javascript:void(0);" onclick="operater('createhtml')">静态生成</a></li><%} %>
				<%if (IsPower(ChannelId + "-04")){ %><li><a href="javascript:void(0);" onclick="operater('pass')">审核内容</a></li><%} %>
				<%if (IsPower(ChannelId + "-04")){ %><li><a href="javascript:void(0);" onclick="operater('nopass')">取消审核</a></li><%} %>
				<%if (IsPower(ChannelId + "-05")){ %><li><a href="javascript:void(0);" onclick="operater('top')">设为推荐</a></li><%} %>
				<%if (IsPower(ChannelId + "-05")){ %><li><a href="javascript:void(0);" onclick="operater('notop')">取消推荐</a></li><%} %>
				<%if (IsPower(ChannelId + "-05")){ %><li><a href="javascript:void(0);" onclick="operater('focus')">设为焦点</a></li><%} %>
				<%if (IsPower(ChannelId + "-05")){ %><li><a href="javascript:void(0);" onclick="operater('nofocus')">取消焦点</a></li><%} %>
				<%if (IsPower(ChannelId + "-02")){ %><li><a href="javascript:void(0);" onclick="operater('sdel')">放入回收站</a></li><%} %>
				<%if (AdminIsFounder){ %><li><a href="javascript:void(0);" onclick="operater('del')">直接删除</a></li><%} %>
			</ul>
		</li>
		<li class="topmenu" id="ajaxClassTree"><a href="javascript:void(0);" class="top_link"><span class="down">移动至栏目</span></a></li>
		<li class="topmenu"><a href="javascript:void(0);" onclick="ajaxSearch();" class="top_link"><span>过滤检索</span></a></li>
		<%if (IsPower(ChannelId + "-07")){ %><li class="topmenu"><a href="javascript:void(0);" onclick="top.JumboUCMS.Popup.show('../admin/class_list.aspx?id=0'+ccid,-1,-1,true)" class="top_link"><span>栏目管理</span></a></li><%} %>
		<%if (IsPower(ChannelId + "-01")){ %><li class="topmenu"><a href="javascript:void(0);" class="top_link"><span class="down">添加内容</span></a>
			<ul class="sub">
				<li><a href="javascript:void(0);" onclick="top.JumboUCMS.Popup.show('../modules/article_admin_edit.aspx?id=0'+ccid,-1,-1,true)">文章模块</a></li>
				<li><a href="javascript:void(0);" onclick="top.JumboUCMS.Popup.show('../modules/photo_admin_edit.aspx?id=0'+ccid,-1,-1,true)">图片模块</a></li>
				<li><a href="javascript:void(0);" onclick="top.JumboUCMS.Popup.show('../modules/video_admin_edit.aspx?id=0'+ccid,-1,-1,true)">视频模块</a></li>
				<li><a href="javascript:void(0);" onclick="top.JumboUCMS.Popup.show('../modules/document_admin_edit.aspx?id=0'+ccid,-1,-1,true)">文档模块</a></li>
			</ul>
		</li><%} %>
		<%if (ChannelIsHtml && IsPower(ChannelId + "-08")){ %><li class="topmenu" id="li_createhtml"><a href="javascript:void(0);" onclick="top.JumboUCMS.Popup.show('../admin/createhtml_default.aspx?oper=null'+ccid,-1,-1,true)" class="top_link"><span>静态生成</span></a></li><%} %>
	</ul>
</div>
<script type="text/javascript">topnavbarStuHover();</script>
<div style="width:100%;margin:4px auto;margin-left:15px;">
	<a id="menu-s" href="javascript:void(0);" onclick="s='';ajaxList(1);FormatFontWeight();">不限</a> 
	<a id="menu-s0" href="javascript:void(0);" onclick="s='&s=0';ajaxList(1);FormatFontWeight();">新的</a> 
	<a id="menu-s-1" href="javascript:void(0);" onclick="s='&s=-1';ajaxList(1);FormatFontWeight();">待审</a> 
	<a id="menu-s1" href="javascript:void(0);" onclick="s='&s=1';ajaxList(1);FormatFontWeight();">已发布</a> |
	<a id="menu-isimg" href="javascript:void(0);" onclick="isimg='';ajaxList(1);FormatFontWeight();">不限</a> 
	<a id="menu-isimg1" href="javascript:void(0);" onclick="isimg='&isimg=1';ajaxList(1);FormatFontWeight();">有图</a> 
	<a id="menu-isimg2" href="javascript:void(0);" onclick="isimg='&isimg=2';ajaxList(1);FormatFontWeight();">外链图</a> 
	<a id="menu-isimg-1" href="javascript:void(0);" onclick="isimg='&isimg=-1';ajaxList(1);FormatFontWeight();">无图</a> |
	<a id="menu-istop" href="javascript:void(0);" onclick="istop='';ajaxList(1);FormatFontWeight();">不限</a> 
	<a id="menu-istop1" href="javascript:void(0);" onclick="istop='&istop=1';ajaxList(1);FormatFontWeight();">推荐</a> 
	<a id="menu-istop-1" href="javascript:void(0);" onclick="istop='&istop=-1';ajaxList(1);FormatFontWeight();">不推荐</a>
</div>
<textarea id="tplList" style="display:none">
<table class="cooltable">
<thead>
	<tr>
		<th align="center" scope="col" style="width:30px;"><input onclick="checkAllLine()" id="checkedAll" name="checkedAll" type="checkbox" title="全部选择/全部不选" /></th>
		<th scope="col" style="width:60px;">ID</th>
		<th scope="col" width="*">标题</th>
		<th scope="col" style="width:120px;">所属栏目</th>
		<th scope="col" style="width:150px;">前台发布时间</th>
		<th scope="col" style="width:110px;">属性</th>
		<th scope="col" style="width:70px;">操作</th>
	</tr>
	</thead>
<tbody>
	{#foreach $T.table as record}
	<tr>
		<td align="center"><input class="checkbox" name="selectID" type="checkbox" value='{$T.record.id}' />
		</td>
		<td align="center">{$T.record.id}</td>
		<td align="left">&nbsp;
			{#if $T.record.firstpage != ""}
			<a href="{$T.record.firstpage}" target="_blank" style="color:{$T.record.tcolor}">{$T.record.title}</a>
			{#else}
			<a href="../controls/content.aspx?ChannelId={$T.record.channelid}&id={$T.record.id}&preview=1" target="_blank" style="color:{$T.record.tcolor}">{$T.record.title}</a>
			{#/if}
		</td>
		<td align="center">{$T.record.classname}</td>
		<td align="center">{formatDate($T.record.adddate,'yyyy-MM-dd HH:mm:ss')}</td>
		<td align="center" class="oper">{formatContentOper($T.record.module,$T.record.id,'module')}{formatContentOper($T.record.ispass,$T.record.id,'pass')}{formatContentOper($T.record.isimg,$T.record.id,'img')}{formatContentOper($T.record.istop,$T.record.id,'top')}{formatContentOper($T.record.isfocus,$T.record.id,'focus')}
		</td>
		<td align="center" class="oper">
			<%if (IsPower(ChannelId + "-02")) {%>
			<a href="javascript:void(0);" onclick="top.JumboUCMS.Popup.show('../modules/{$T.record.module}_admin_edit.aspx?id={$T.record.id}'+ ccid,-1,-1,true)">修改</a>
			<%}else {%>
			<span style="color:#eeeeee;">修改</span>
			<%}%>
			<%if (IsPower(ChannelId + "-03")) {%>
			<a href="javascript:void(0);" onclick="ConfirmDel({$T.record.id})">删除</a>
			<%}else {%>
			<span style="color:#eeeeee;">删除</span>
			<%}%>
		</td>
	</tr>
	{#/for}
</tbody>
</table></textarea>
<div id="ajaxPageBar1" class="pages"> </div>
<div id="ajaxList"> </div>
<div id="ajaxPageBar2" class="pages"> </div>
</body>
</html>
