<?php /* Smarty version Smarty-3.0.8, created on 2012-03-26 11:03:28
         compiled from "E:/wwwroot/guanjianzi/wwwroot/themes/system/database.html" */ ?>
<?php /*%%SmartyHeaderCode:259204f6fdc80cbfd26-02619157%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd4951afd500aaab6ed5e492033f1599d55b6348f' => 
    array (
      0 => 'E:/wwwroot/guanjianzi/wwwroot/themes/system/database.html',
      1 => 1323669921,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '259204f6fdc80cbfd26-02619157',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>
    
    <?php if ($_smarty_tpl->getVariable('action')->value=='backup'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em></h3>
    <div class="formbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>备份类型：</th>
				<td><input name="baktype" type="radio" id="baktype1" value="full" checked="checked" onclick="$('#table').hide();"><label for="baktype1">全部备份(推荐) - 备份数据库所有表</label><br /><input name="baktype" type="radio" id="baktype2" value="custom" onclick="$('#table').show();"><label for="baktype2">自定义备份 - 根据自行选择备份数据表</label></td>
			</tr>
			<tr id="table" style="display: none;">
				<th>数 据 表：</th>
				<td>
                	<table cellpadding="0" cellspacing="1">
                   	  <tr>
                      	<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('tables')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['item']->iteration=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
 $_smarty_tpl->tpl_vars['item']->iteration++;
?>
						<td style="padding: 3px 10px;"><input name="table[]" type="checkbox" id="<?php echo $_smarty_tpl->tpl_vars['item']->value;?>
" size="50" maxlength="255" value="<?php echo $_smarty_tpl->tpl_vars['item']->value;?>
" /><label for="<?php echo $_smarty_tpl->tpl_vars['item']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value;?>
</label></td>
                      	<?php if (!($_smarty_tpl->tpl_vars['item']->iteration % 4)){?></tr><tr><?php }?>
                        <?php }} ?>
                      </tr>
                  </table>      
              </td>
			</tr>
			<tr>
				<th>分卷文件大小：</th>
				<td><input name="volsize" type="text" class="ipt" id="volsize" size="10" maxlength="10" value="2048" /> KB</td>
			</tr>
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input name="act" type="hidden" id="act" value="<?php echo $_smarty_tpl->getVariable('h_action')->value;?>
">
					<input type="submit" class="btn" value="数据库备份">
				</td>
			</tr>
		</table>
        </form>
	</div>           
	<?php }?>
    
    <?php if ($_smarty_tpl->getVariable('action')->value=='restore'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em></h3>
    <div class="listbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>文件名称</th>
				<th>文件大小</th>
				<th>修改时间</th>
				<th>操作选项</th>
			</tr>
            <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('files')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['item']->iteration=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
 $_smarty_tpl->tpl_vars['item']->iteration++;
?>
            <tr>
            	<td><?php echo $_smarty_tpl->tpl_vars['item']->value['filename'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['filesize'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['filemtime'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['fileoper'];?>
</td>
            </tr>
            <?php }} ?>
		</table>
        </form>
	</div>           
	<?php }?>

    <?php if ($_smarty_tpl->getVariable('action')->value=='maintain'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em></h3>
    <div class="formbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>选择操作：</th>
				<td><input name="do[]" type="checkbox" id="check" value="check" checked="checked"><label for="check">检查表</label></td>
			</tr>
			<tr>
				<th></th>
				<td><input name="do[]" type="checkbox" id="repair" value="repair" checked="checked"><label for="repair">修复表</label></td>
			</tr>
			<tr>
				<th></th>
				<td><input name="do[]" type="checkbox" id="analyze" value="analyze" checked="checked"><label for="analyze">分析表</label></td>
			</tr>
			<tr>
				<th></th>
				<td><input name="do[]" type="checkbox" id="optimize" value="optimize" checked="checked"><label for="optimize">优化表</label></td>
			</tr>
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input name="act" type="hidden" id="act" value="<?php echo $_smarty_tpl->getVariable('h_action')->value;?>
">
					<input type="submit" class="btn" value="数据库维护">
				</td>
			</tr>
		</table>
        </form>
	</div>    
	<?php }?>
    
    <?php if ($_smarty_tpl->getVariable('action')->value=='dbinfo'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em></h3>
    <div class="listbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
 		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>数据表名称</th>
                <th>数据表类型</th>
				<th>创建时间</th>
				<th>最后更新时间</th>
				<th>记录数</th>
                <th>数据</th>
                <th>索引</th>
                <th>碎片</th>
			</tr>
            <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('tables')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['item']->iteration=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
 $_smarty_tpl->tpl_vars['item']->iteration++;
?>
            <tr>
            	<td><?php echo $_smarty_tpl->tpl_vars['item']->value['Name'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['Engine'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['Create_time'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['Update_time'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['Rows'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['Data_length'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['Index_length'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['Data_free'];?>
</td>
            </tr>
            <?php }} ?>
            <tr>
            	<td colspan="4">共 <?php echo $_smarty_tpl->getVariable('table_num')->value;?>
 个数据表</td>
                <td><?php echo $_smarty_tpl->getVariable('table_rows')->value;?>
</td>
                <td><?php echo $_smarty_tpl->getVariable('data_size')->value;?>
</td>
                <td><?php echo $_smarty_tpl->getVariable('index_size')->value;?>
</td>
                <td><?php echo $_smarty_tpl->getVariable('free_size')->value;?>
</td>
            </tr>
		</table>
        </form>
	</div>           
	<?php }?>
    
<?php $_template = new Smarty_Internal_Template("footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>