<!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="#">{-:@FLINK_CATEGORY_LIST-}</a></li>
</ul>
<div id="tabContent">
	{-if:empty($_FCL)-}
		<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="fc_alias"></th>
				<th scope="col">{-:@ALIAS-}</th>
				<th scope="col">{-:@NAME-}</th>
				<th scope="col">{-:@DISPLAY_ORDER-}</th>
				<th scope="col">{-:@OPERATION-}</th>
			</tr>
			{-foreach:$_FCL,$fc-}
			<tr>
				<td><input name="fc_alias[{-:$fc['fc_alias']-}]" type="checkbox" value="{-:$fc['fc_alias']-}"></td>
				<td>{-:$fc['fc_alias']-}</td>
				<td>
					<input type="text" name="fc_name[{-:$fc['fc_alias']-}][{-:*LANG_NAME-}]" validate="/\S+/" value="{-:$fc['fc_name'][LANG_NAME]-}" class="control-input input-inline input-sm" maxlength="64" size="30">
				{-foreach:$_LS,$alias,$lang-}
					{-if:$alias!==LANG_NAME-}
						<input type="hidden" name="fc_name[{-:$fc['fc_alias']-}][{-:$alias-}]" value="{-:$fc['fc_name'][$alias]-}">
					{-:/if-}
				{-:/foreach-}
				</td>
				<td><input type="text" name="fc_display_order[{-:$fc['fc_alias']-}]" validate="/\S+/" value="{-:$fc['fc_display_order']-}" class="control-input input-inline input-sm" size="4" maxlength="5"></td>
				<td>
					<a href="{-url:admin@flink/list_flink?fc_alias={$fc['fc_alias']}-}">{-:@FLINK_LIST-}</a> | <a href="{-url:admin@flink_category/edit_category?fc_alias={$fc['fc_alias']}-}">{-:@EDIT-}</a> | <a href="{-url:admin@flink_category/delete_category_do?fc_alias={$fc['fc_alias']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" class="delete_confirm">{-:@DELETE-}</a>
				</td>
			</tr>
			{-:/foreach-}
		</table>
	{-:/if-}
</div>
<div id="operation" class="margin">
	<a class="btn" href="{-url:admin@flink_category/add_category-}">{-:@ADD_FLINK_CATEGORY-}</a>
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<span class="btn submit" action="{-url:admin@flink_category/update_category_do-}" to="#formList">{-:@UPDATE_SELECTED-}</span>
	<span class="btn submit" action="{-url:admin@flink_category/delete_category_do-}" to="#formList">{-:@DELETE_SELECTED-}</span>
	<input class="btn" type="reset" value="{-:@RESET-}">
	<a class="btn" href="{-url:admin@flink/list_flink-}">{-:@FLINK_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>
</body>
</html>