<!doctype html>
<html dir="{-:*_LD_-}">
<head>
<meta charset="utf-8" />
<title>{-:@MANAGE-}</title>
{-include:../meta-}
<script>
var GV = {
	_LD_ : '{-:*_LD_-}',
	LANG_NAME : '{-:*LANG_NAME-}',
	URL : {
		GET_CATEGORY_SELECT : '{-url:admin@article_category/_get_category_select-}'
	}
};
</script>
</head>

<body>
<div class="container margin">

<form id="formSearch" action="" method="post">
<div class="alert">
	<label>
		<input id="article_category_id" type="hidden" value="{-:%article_category_id-}" name="article_category_id" />
		<span id="article_category_id_category_select" class="category_select" to='#article_category_id'></span>
	</label>
	<label><select name="ar_status" class="control-input input-inline">
		<option value=""{-if:'' == ARequest::get('ar_status')-} selected="selected"{-:/if-}>{-:@STATUS-}</option>
		<option value="n"{-if:'n' == ARequest::get('ar_status')-} selected="selected"{-:/if-}>{-:@NOT_PASSED-}</option>
		<option value="p"{-if:'p' == ARequest::get('ar_status')-} selected="selected"{-:/if-}>{-:@PASSED-}</option>
		<option value="f"{-if:'f' == ARequest::get('ar_status')-} selected="selected"{-:/if-}>{-:@FILTER-}</option>
	</select></label>
	<label><select name="order_by" class="control-input input-inline">
		<option value="">{-:@DISPLAY_ORDER-}</option>
		<option value="article_review_id"{-if:'article_review_id'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@ID-}</option>
		<option value="ar_add_time"{-if:'ar_add_time'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@ADD_TIME-}</option>
		<option value="ar_support_count"{-if:'ar_support_count'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@SUPPORT_COUNT-}</option>
		<option value="ar_oppose_count"{-if:'ar_oppose_count'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@OPPOSE_COUNT-}</option>
	</select></label>
	<label><select name="order_turn" class="control-input input-inline">
		<option value="desc"{-if:'desc'==ARequest::get('order_turn')-} selected="selected"{-:/if-}>{-:@DESC-}</option>
		<option value="asc"{-if:'asc'==ARequest::get('order_turn')-} selected="selected"{-:/if-}>{-:@ASC-}</option>
	</select></label>
	<label><select name="page_size" class="control-input input-inline">
		<option value=""{-if:''==ARequest::get('page_size')-} selected="selected"{-:/if-}>{-:@PAGE_SIZE-}</option>
		<option value="10"{-if:'10'==ARequest::get('page_size')-} selected="selected"{-:/if-}>10 {-:@ITEMS-}</option>
		<option value="20"{-if:'20'==ARequest::get('page_size')-} selected="selected"{-:/if-}>20 {-:@ITEMS-}</option>
		<option value="50"{-if:'50'==ARequest::get('page_size')-} selected="selected"{-:/if-}>50 {-:@ITEMS-}</option>
		<option value="100"{-if:'100'==ARequest::get('page_size')-} selected="selected"{-:/if-}>100 {-:@ITEMS-}</option>
	</select></label>
	<label>{-:@KEYWORDS-} <input class="control-input input-inline" type="text" size="10" maxlength="64" name="ar_content" value="{-:%ar_content-}"></label>
	<label><span class="btn submit" action="{-url:admin@article_review/list_review-}" to="#formSearch">{-:@SEARCH-}</span></label>
</div>
</form>

<form id="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@ARTICLE_REVIEW_LIST-}</a></li>
</ul>
<div id="tabContent">
	{-if:empty($_ARL)-}
		<div class="placeholder text-center margin">{-:@LIST_EMPTY-}</div>
	{-else:-}
		<table class="table table-hover">
			{-foreach:$_ARL,$ar-}
			<tr>
				<th scope="col"><input name="article_review_id[]" type="checkbox" value="{-:$ar['article_review_id']-}"> {-:@ID-}:{-:$ar['article_review_id']-}</th>
				<th scope="col">{-:@ARTICLE-}: <a href="{-url:admin@article_review/list_review?article_id={$ar['article_id']}-}">{-:$ar['a_title']-}</a></th>
				<th scope="col">{-:@SUPPORT-}: {-:$ar['ar_support_count']-}</th>
				<th scope="col">{-:@OPPOSE-}: {-:$ar['ar_oppose_count']-}</th>
				<th scope="col">{-:@STATUS-}:
				{-if:0 == $ar['ar_status']-}
					<span class="text-muted">{-:@NOT_PASSED-}</span> <a class="btn btn-sm" href="{-url:admin@article_review/toggle_review_status_do?article_review_id={$ar['article_review_id']}&ar_status=1&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@TOGGLE-}</a>
				{-elseif:1 == $ar['ar_status']-}
					<span class="text-success">{-:@PASSED-}</span> <a class="btn btn-sm" href="{-url:admin@article_review/toggle_review_status_do?article_review_id={$ar['article_review_id']}&ar_status=0&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@TOGGLE-}</a>
				{-elseif:2 == $ar['ar_status']-}
					<span class="text-danger">{-:@FILTER-}</span> <a class="btn btn-sm" href="{-url:admin@article_review/toggle_review_status_do?article_review_id={$ar['article_review_id']}&ar_status=1&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@TOGGLE-}</a>
				{-:/if-}
				</th>
			</tr>
			<tr>
				<td colspan="4">
					<table class="table table-condensed" style="width:95%;">
						<tr>
							<td>
							<span class="text-muted"><strong>{-:@ADD_TIME-}:</strong> {-:$ar['ar_add_time']|date~C('APP.TIME_FORMAT'),@me-}</span>
							<span class="text-muted"><strong>{-:@IP-}:</strong> {-:$ar['ar_add_ip']-}</span>
							</td>
						</tr>
						<tr>
							<td>
							{-if:!empty($ar['ar_qoute'])-}
								<blockquote>{-:$ar['ar_qoute']-}</blockquote>
							{-:/if-}
							<strong class="text-info">{-:$ar['ar_author']-}:</strong> {-:$ar['ar_content']|AString::msubstr~32-}
							</td>
						</tr>
					</table>
				</td>
				<td><a href="{-url:admin@article_review/edit_review?article_review_id={$ar['article_review_id']}-}">{-:@EDIT-}</a> | <a href="{-url:admin@article_review/delete_review_do?article_review_id={$ar['article_review_id']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" class="delete_confirm">{-:@DELETE-}</a></td>
			</tr>
			{-:/foreach-}
		</table>
		{-include:../paging-}
	{-:/if-}
</div>
<div id="operation" class="margin">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<label class="text-mi"><input type="checkbox" class="select_all" to="article_review_id"> {-:@SELECT_ALL-}</label>
	<span class="btn submit" action="{-url:admin@article_review/pass_review_do-}" to="#formList">{-:@PASS_SELECTED-}</span>
	<span class="btn submit" action="{-url:admin@article_review/delete_same_ip_do-}" to="#formList">{-:@DELETE_SAME_IP-}</span>
	<span class="btn submit" action="{-url:admin@article_review/delete_review_do-}" to="#formList">{-:@DELETE_SELECTED-}</span>
</div><!--/#operation-->
</form>

</div>
<script src="{-:*__RES__-}js/loga.js"></script>
<script src="{-:*__RES__-}js/jquery.js"></script>
<script src="{-:*__RES__-}fea/js/fea.min.js"></script>
<script src="{-:*__STYLE__-}js/common.js"></script>
<script src="{-:*__STYLE__-}js/admin.js"></script>
<script src="{-:*__STYLE__-}js/article_category.js"></script>
</body>
</html>