<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{include file=elements/header.css.html}-->
<!--{include file=elements/header.js.html type=common}-->
</head>
<body>
<div id="outside">
	<!--{include file=frame/top.html}-->
	<div id="mainareaContent">
		<!--{include file=frame/left.html}-->
		<div id="rightContent">
			<div id="topContent">
				<div class="sitmap">
					<span class="r"><!--{include file="elements/uuadvad.html"}--></span>模块管理&nbsp;&gt;&nbsp;文章模块&nbsp;&gt;&nbsp;内容管理
				</div>				
			</div>
			<div class="tabcontent">
				<a href="index.php?r=Article.index" class="nolink">内管管理</a>
				<a href="index.php?r=SiteSet.articleset" class="link">属性设置</a>
				<a href="index.php?r=Article.articleListLayout" class="link">列表页布局</a>
				<a href="index.php?r=Article.articlePageLayout" class="link">内容页布局</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent3">
					<table class="tbl_leftnav" width="100%"><tr>
						<td class="td_channel"><div class="leftnav">
							<a class="title" href="index.php?r=Article.index">文章资源库</a>
							<span class="sectitle">频道分类</span>
							<!--{foreach from=$channel item=item name=channellist}-->
								<!--{if $item.id == $channel_id}-->
									<a class="onlink">[<!--{$item.id}-->]<!--{$item.channel_text}--></a>
								<!--{else}-->
									<a href="index.php?r=Article.category&channel_id=<!--{$item.id}-->">[<!--{$item.id}-->]<!--{$item.channel_text}--></a>
								<!--{/if}-->
							<!--{/foreach}-->
						</div></td>
						<td>
							<form name="searchForm" action="index.php" method="get" onSubmit="setDisabled('button', window.document);">
								<input type="hidden" name="r" value="Article.category"/>
								<input type="hidden" id="channel_id" name="channel_id" value="<!--{$channel_id}-->"/>
								<input type="hidden" id="comment_flag" name="comment_flag" value="<!--{$comment_flag}-->"/>
								<input type="hidden" id="orderby" name="orderby" value="<!--{$orderby}-->"/>
								<div class="searchbar">文章标题&nbsp;<input type="text" class="text" name="title" value="<!--{$title}-->"/>&nbsp;<button type="submit" class="but2font">查询</button></div>
							</form>
							<div class="operation">
								<button type="button" class="but2font" onClick="window.location.href='index.php?r=Article.add&channel_id=<!--{$channel_id}-->&returnParams=<!--{$returnParams}-->'">新增</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Article.deletechannelarticle&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定下线？')">下线</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Article.updatechannelarticlestatus&top_flag=1&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定置顶？')">置顶</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Article.updatechannelarticlestatus&top_flag=0&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定消顶？')">消顶</button>
							</div>
							<table class="tbl_list" width="100%" cellpadding="0" cellspacing="0" border="0">
								<tr class="thead">
									<td width="5%"><input type="checkbox" class="checkall"/></td>
									<td width="5%">ID</td>
									<td width="20%">文章标题</td>
									<td width="15%">发布频道</td>
									<td width="10%"><select onChange="$('#comment_flag').val(this.value);document.forms['searchForm'].submit();">
										<option value="">评论</option>
										<option value="1" <!--{if $comment_flag eq 1}-->selected<!--{/if}-->>开启</option>
										<option value="0" <!--{if $comment_flag eq '0'}-->selected<!--{/if}-->>关闭</option>
									</select></td>
									<td width="10%">来源</td>
									<td width="10%">
										<!--{if $orderby eq click_count0}-->
										<a class="link" onClick="$('#orderby').val('click_count1');document.forms['searchForm'].submit();">人气↑</a>
										<!--{elseif $orderby eq click_count1}-->
										<a class="link" onClick="$('#orderby').val('click_count0');document.forms['searchForm'].submit();">人气↓</a>
										<!--{else}-->
										<a class="link" onClick="$('#orderby').val('click_count0');document.forms['searchForm'].submit();">人气</a><!--{/if}-->
									</td>
									<td width="15%">
										<!--{if $orderby eq create_date0}-->
										<a class="link" onClick="$('#orderby').val('create_date1');document.forms['searchForm'].submit();">发布时间↑</a>
										<!--{elseif $orderby eq create_date1}-->
										<a class="link" onClick="$('#orderby').val('create_date0');document.forms['searchForm'].submit();">发布时间↓</a>
										<!--{else}-->
										<a class="link" onClick="$('#orderby').val('create_date0');document.forms['searchForm'].submit();">发布时间</a><!--{/if}-->
									</td>
									<td width="10%">操作</td>
								</tr>
								<!--{foreach from=$datalist item=item name=list}-->
								<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
									<td><input type="checkbox" name="recordId" value="<!--{$item.id}-->"/></td>
									<td><!--{$item.article_id}--></td>
									<td><!--{if $item.top_flag eq 1}-->[顶]<!--{/if}--><a href="index.php?r=Article.edit&id=<!--{$item.article_id}-->&returnParams=<!--{$returnParams}-->"><!--{$item.title}--></a></td>
									<td><!--{$item.channel_text}--></td>
									<td><!--{if $item.comment_flag eq 1}-->开启<!--{elseif $item.comment_flag eq 0}-->关闭<!--{/if}--></td>
									<td><!--{$item.source}--></td>
									<td><!--{$item.click_count}--></td>
									<td><!--{$item.create_date|date_format:"%Y-%m-%d"}--></td>
									<td><a href="index.php?r=Article.edit&id=<!--{$item.article_id}-->&returnParams=<!--{$returnParams}-->">修改</a></td>							
								</tr>
								<!--{foreachelse}-->
								<tr><td colspan="9">没有对应数据</td></tr>
								<!--{/foreach}-->
							</table>
							<div class="operation">
								<button type="button" class="but2font" onClick="window.location.href='index.php?r=Article.add&channel_id=<!--{$channel_id}-->&returnParams=<!--{$returnParams}-->'">新增</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Article.deletechannelarticle&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定下线？')">下线</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Article.updatechannelarticlestatus&top_flag=1&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定置顶？')">置顶</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Article.updatechannelarticlestatus&top_flag=0&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定消顶？')">消顶</button>
							</div>
							<div class="page"><!--{$pager}--></div>
						</td>
					</tr></table>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>