<!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 : {
		LIST_FIELD : '{-url:admin@database/list_field-}'
	}
};
</script>
</head>

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

<form id="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@DATABASE_TABLE_LIST-}</a></li>
	<li><a href="{-url:admin@database/list_backup_file-}">{-:@BACKUP_FILE_LIST-}</a></li>
</ul>
<div id="tabContent">
	<table class="table table-hover">
		<tr>
			<th scope="col" width="18"><input type="checkbox" class="select_all" to="table"></th>
			<th scope="col">{-:@TABLE_NAME-}</th>
			<th scope="col">{-:@ROW-}</th>
			<th scope="col">{-:@INDEX_LENGTH-}</th>
			<th scope="col">{-:@DATA_LENGTH-}</th>
			<th scope="col">{-:@DATA_FREE-}</th>
			<th scope="col">{-:@ENGINE-}</th>
			<th scope="col">{-:@COLLATION-}</th>
			<th scope="col">{-:@COMMENT-}</th>
			<th scope="col">{-:@MANAGE-}</th>
		</tr>
		{-foreach:$_TL['core'],$t-}
		<tr>
			<td><input name="table[]" type="checkbox" value="{-:$t['Name']-}" checked="checked"></td>
			<td>{-:$t['Name']-}</td>
			<td>{-:$t['Rows']-}</td>
			<td>{-:$t['Index_length']-}</td>
			<td>{-:$t['Data_length']-}</td>
			<td>{-:$t['Data_free']-}</td>
			<td>{-:$t['Engine']-}</td>
			<td>{-:$t['Collation']-}</td>
			<td>{-:$t['Comment']-}</td>
			<td><a href="{-url:admin@database/repair_do?table={$t['Name']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@REPAIR-}</a> <a href="{-url:admin@database/optimize_do?table={$t['Name']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@OPTIMIZE-}</a> <span class="btn btn-sm list_field" table="{-:$t['Name']-}">{-:@STRUCTURE-}</span></td>
		</tr>
		{-:/foreach-}
	{-if:!empty($_TL['other'])-}
		<tr>
			<th scope="col" width="18"></th>
			<th colspan="9" scope="col">{-:@OTHER_TABLE-}</th>
		</tr>
		{-foreach:$_TL['other'],$t-}
		<tr>
			<td><input name="table[]" type="checkbox" value="{-:$t['Name']-}"></td>
			<td>{-:$t['Name']-}</td>
			<td>{-:$t['Rows']-}</td>
			<td>{-:$t['Index_length']-}</td>
			<td>{-:$t['Data_length']-}</td>
			<td>{-:$t['Data_free']-}</td>
			<td>{-:$t['Engine']-}</td>
			<td>{-:$t['Collation']-}</td>
			<td>{-:$t['Comment']-}</td>
			<td><a href="{-url:admin@database/repair_do?table={$t['Name']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@REPAIR-}</a> <a href="{-url:admin@database/optimize_do?table={$t['Name']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@OPTIMIZE-}</a> <span class="btn btn-sm list_field" table="{-:$t['Name']-}">{-:@STRUCTURE-}</span></td>
		</tr>
		{-:/foreach-}
	{-:/if-}
	</table>
</div>
<div id="operation">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<div class="text-sm">
		<label><input type="checkbox" name="backup_structure" value="1" class="i"> {-:@BACKUP_STRUCTURE-}</label>,
		<label>{-:@VOLUME_SIZE-} <input type="text" name="volume_size" validate="/\S+/" value="2048" class="control-input input-inline input-sm" size="5"> KB</label>,
		<label>{-:@VOLUME_ITEM-} <input type="text" name="volume_item" validate="/\S+/" value="5000" class="control-input input-inline input-sm" size="5"> {-:@ITEMS-}</label>
		<label>{-:@BACKUP_MARK-} <input type="text" name="mark" validate="/\S+/" value="{-php:echo date('Ymd');-}" class="control-input input-inline input-sm" size="20"></label>
	</div>
	<span class="btn submit" action="{-url:admin@database/backup_do-}" to="#formList">{-:@BACKUP-}</span>
	<span class="btn submit" action="{-url:admin@database/repair_do-}" to="#formList">{-:@REPAIR-}</span>
	<span class="btn submit" action="{-url:admin@database/optimize_do-}" to="#formList">{-:@OPTIMIZE-}</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/database.js"></script>
</body>
</html>