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

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

<form id="formSearch" action="" method="post">
<div class="alert">
	<label><select name="order_by" class="control-input input-inline">
		<option value="">{-:@DISPLAY_ORDER-}</option>
		<option value="hash_url_id"{-if:'hash_url_id'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@ID-}</option>
		<option value="hu_add_time"{-if:'hu_add_time'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@ADD_TIME-}</option>
		<option value="hu_visit_count"{-if:'hu_visit_count'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@VISIT_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>{-:@TITLE-} <input class="control-input input-inline" type="text" size="10" maxlength="64" name="hu_title" value="{-:%hu_title-}"></label>
	<label><span class="btn submit" action="{-url:admin@hash_url/list_hash_url-}" to="#formSearch">{-:@SEARCH-}</span></label>
</div>
</form>

<form id="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@HASH_URL_LIST-}</a></li>
</ul>
<div id="tabContent">
		<div class="alert margin">
			{-:@HASH_URL_USEAGE_TIP-}
		</div><!--/.mainTips-->
	{-if:empty($_HUL)-}
		<div class="placeholder text-center margin">{-:@LIST_EMPTY-}</div>
	{-else:-}
		<table class="table table-hover">
			<tr>
				<th scope="col" width="18"><input type="checkbox" class="select_all" to="hash_url_id"></th>
				<th scope="col">{-:@URL-}</th>
				<th scope="col">{-:@TITLE-}</th>
				<th scope="col">{-:@VISIT_COUNT-}</th>
				<th scope="col">{-:@ADD_TIME-}</th>
				<th scope="col">{-:@MANAGE-}</th>
			</tr>
			{-foreach:$_HUL,$hu-}
			<tr>
				<td><input type="checkbox" name="hash_url_id[{-:$hu['hash_url_id']-}]" value="{-:$hu['hash_url_id']-}"></td>
				<td>
					{-:$hu['hu_src']|substr~0,24-} ... {-:$hu['hu_src']|substr~-12-}<br />
					<span class="badge">{-:$hu['hu_hash']-}</span>
				</td>
				<td>{-:$hu['hu_title']-}</td>
				<td>{-:$hu['hu_visit_count']-}</td>
				<td>{-:$hu['hu_add_time']|date~C('APP.TIME_FORMAT'),@me-}</td>
				<td>
					<a target="_blank" href="{-url:home@hash_url/go?hu_hash={$hu['hu_hash']}-}">{-:@VISIT-}</a> | 
					<a href="{-url:admin@hash_url/edit_hash_url?hash_url_id={$hu['hash_url_id']}-}">{-:@EDIT-}</a> | 
					<a class="delete_confirm" href="{-url:admin@hash_url/delete_hash_url_do?hash_url_id={$hu['hash_url_id']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@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']-}">
	<span class="btn submit" action="{-url:admin@hash_url/add_hash_url-}" to="#formList">{-:@ADD_HASH_URL-}</span>
	<span class="btn submit" action="{-url:admin@hash_url/delete_hash_url_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>
</body>
</html>