<!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="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@AD_SPACE_LIST-}</a></li>
</ul>
<div id="tabContent">
	{-if:empty($_ASL)-}
		<div class="placeholder margin">{-:@LIST_EMPTY-}</div>
	{-else:-}
		<table class="table table-hover">
			<tr>
				<th scope="col" width="18"><input type="checkbox" class="select_all" to="as_alias"></th>
				<th scope="col">{-:@ALIAS-}</th>
				<th scope="col">{-:@NAME-}</th>
				<th scope="col">{-:@SIZE-}</th>
				<th scope="col">{-:@TYPE-}</th>
				<th scope="col" width="180">{-:@STATUS-}</th>
				<th scope="col">{-:@MANAGE-}</th>
			</tr>
			{-foreach:$_ASL,$as-}
			<tr>
				<td><input name="as_alias[{-:$as['as_alias']-}]" type="checkbox" value="{-:$as['as_alias']-}"></td>
				<td>{-:$as['as_alias']-}</td>
				<td>{-:$as['as_name'][LANG_NAME]-}</td>
				<td>{-:$as['as_width']-} &times; {-:$as['as_height']-}</td>
				<td>{-if:'code' == $as['as_type']-}{-:@CODE-}{-elseif:'text' == $as['as_type']-}{-:@TEXT-}{-elseif:'image' == $as['as_type']-}{-:@IMAGE-}{-elseif:'slide' == $as['as_type']-}{-:@SLIDE-}{-:/if-}</td>
				<td>
				{-if:1 == $as['as_status']-}
					<span class="text-success">{-:@ON-}</span> <a class="btn btn-sm" href="{-url:admin@ad_space/toggle_space_status_do?as_alias={$as['as_alias']}&as_status=0&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@TOGGLE-}</a>
				{-else:-}
					<span class="text-muted">{-:@OFF-}</span> <a class="btn btn-sm" href="{-url:admin@ad_space/toggle_space_status_do?as_alias={$as['as_alias']}&as_status=1&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@TOGGLE-}</a>
				{-:/if-}
				</td>
				<td><a href="{-url:admin@ad/list_ad?as_alias={$as['as_alias']}-}">{-:@AD_LIST-}</a> | <a href="{-url:admin@ad/add_ad?as_alias={$as['as_alias']}-}">{-:@ADD_AD-}</a> | <a href="{-url:admin@ad_space/edit_space?as_alias={$as['as_alias']}-}">{-:@EDIT-}</a> | <a href="{-url:admin@ad_space/delete_space_do?as_alias={$as['as_alias']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" class="delete_confirm">{-:@DELETE-}</a>
					<span class="btn btn-sm get_ad_code" as_alias="{-:$as['as_alias']-}" >{-:@GET_CODE-}</span>
				</td>
			</tr>
			{-:/foreach-}
		</table>
	{-:/if-}
</div>
<div id="operation" class="margin">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<a class="btn" href="{-url:admin@ad_space/add_space-}">{-:@ADD_AD_SPACE-}</a>
	<span class="btn submit" action="{-url:admin@ad_space/delete_space_do-}" to="#formList">{-:@DELETE_SELECTED-}</span>
	<a class="btn" href="{-url:admin@ad/list_ad-}">{-:@AD_LIST-}</a>
</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/ad_space.js"></script>
</body>
</html>