<!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="formSearch" action="" method="post">
<div class="alert">
	<label><strong>{-:@SELECT_BACKUP_FILE-}</strong> <select class="control-input input-inline" id="backup_file">
		<option value="{-url:admin@database/list_backup_file-}">{-:@SELECT-}</option>
	{-foreach:$_ML,$m-}
		<option value="{-url:admin@database/list_backup_file?mark={$m}-}"{-if:$m==$_V['mark']-} selected="selected"{-:/if-}>{-:$m-}</option>
	{-:/foreach-}
	</select></label>
	<input name="mark" type="hidden" value="{-:$_V['mark']-}">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<span class="btn submit" action="{-url:admin@database/delete_backup_file_do-}" to="#formSearch">{-:@DELETE-}</span>
</div><!--/.mainTips-->
</form>

<form id="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li><a href="{-url:admin@database/list_table-}">{-:@DATABASE_TABLE_LIST-}</a></li>
	<li class="active"><a href="#">{-:@BACKUP_FILE_LIST-}</a></li>
</ul>
<div id="tabContent">
	{-if:empty($_BFL['data_core']) and empty($_BFL['data_other'])-}
		<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="data_file"></th>
				<th scope="col">{-:@FILENAME-}</th>
				<th scope="col">{-:@FILESIZE-}</th>
				<th scope="col">{-:@BACKUP_TIME-}</th>
			</tr>
			{-foreach:$_BFL['data_core'],$f-}
			<tr>
				<td><input name="data_file[]" type="checkbox" value="{-:$f['filename']-}" checked="checked"></td>
				<td>{-:$f['filename']-}</td>
				<td>{-:$f['filesize']-}</td>
				<td>{-:$f['backup_time']-}</td>
			</tr>
			{-:/foreach-}
			<tr>
				<th scope="col" width="18"></th>
				<th colspan="3" scope="col">{-:@OTHER_FILE-}</th>
			</tr>
			{-foreach:$_BFL['data_other'],$f-}
			<tr>
				<td><input name="data_file[]" type="checkbox" value="{-:$f['filename']-}"></td>
				<td>{-:$f['filename']-}</td>
				<td>{-:$f['filesize']-}</td>
				<td>{-:$f['backup_time']-}</td>
			</tr>
			{-:/foreach-}
		</table>
	{-:/if-}
</div>
<div id="operation" class="margin">
	<input name="mark" type="hidden" value="{-:$_V['mark']-}">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<label class="text-sm">
		<input class="control-input input-inline" type="checkbox" name="restore_structure" {-if:empty($_BFL['structure'])-}disabled="disabled" {-:/if-}value="1"> {-:@RESTORE_STRUCTURE-}
		{-if:!empty($_BFL['structure'])-}<span class="badge">{-:$_BFL['structure']['filename']-} | {-:$_BFL['structure']['filesize']-} | {-:$_BFL['structure']['backup_time']-}</span>{-:/if-}
	</label>
	<span class="btn submit" action="{-url:admin@database/restore_do-}" to="#formList">{-:@RESTORE-}</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>