<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/utils.js"></script>
<body>
<h1>
<span class="action-span1"><a href="?ctl=index&act=admin_main"><tpl>$common_admin_index</tpl><!--管理首页--></a> >> <tpl>$data_optimize</tpl><!--数据表优化--></span>
<div style="clear:both"></div>
</h1>
<div class="form-div">
<form method="post" action="index.php?ctl=data&act=run_data_optimize" name="theForm">
<tpl>$data_chip_count</tpl><!--数据表总碎片数-->:<tpl>$data_info['all_chip_count']</tpl>
<input type="submit" value="<tpl>$start_data_optimize</tpl>" class="button" />
<input type= "hidden" name= "all_chip_count" value = "<tpl>$data_info['all_chip_count']</tpl>">
</form>
</div>
<div class="list-div" id="listDiv">
<table cellspacing='1' cellpadding='3' id='listTable'>
  <tr>
    <th><tpl>$data_table_name</tpl><!--数据表名称--></th>
    <th><tpl>$data_table_type</tpl><!--数据表类型--></th>
    <th><tpl>$data_row_num</tpl><!--记录数--></th>
    <th><tpl>$data_row_size</tpl><!--数据大小--></th>
    <th><tpl>$data_chip_num</tpl><!--碎片数--></th>
    <th><tpl>$data_table_charset</tpl><!--字符集--></th>
    <th><tpl>$data_table_state</tpl><!--状态--></th>
  </tr>
  <tpl>foreach $data_info['data_list'] as $val</tpl>
    <tr>
      <td class="first-cell"><tpl>$val['table']</tpl></td>
      <td align ="left"><tpl>$val['type']</tpl></td>
      <td align ="left"><tpl>$val['row_num']</tpl></td>
      <td align ="left"><tpl>$val['row_size']</tpl></td>
      <td align ="left"><tpl>$val['chip_num']</tpl></td>
      <td align ="left"><tpl>$val['charset']</tpl></td>
      <td align ="left"><tpl>$val['state']</tpl></td>
    </tr>
  <tpl>/foreach</tpl>
</table>
</div>
<div id="footer">
<tpl>$common_copyright</tpl>
</div>
</body>