<?php include 'header.tpl.php';?>
<style>
.me_model{float:left;width:300px;padding:10px 0px 0px 10px}
.me_model .pic{float:left;width:80px}
.me_model .tit{float:left;width:210px;text-align:left;color:#0000ff}
.me_model .intro{float:left;width:210px;text-align:left;color:#555555}
.me_model .act{float:left;width:190px;text-align:left;padding-left:20px}
</style>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<?php if($obj_ctl_limit->chk_act("reset_list")){?><li><a href="javascript:frmExecute('reset_list');">还原</a></li><?php }?>
<li class="sel"><a href="javascript:frmExecute('optimize');">优化</a></li>
<li class="info"><a href="javascript:inc_show_help(198);" style="color:#ff0000">帮助</a></li>
</div>
<table class='pTable'>
<tr class='pTabTitRow'>
	<td class='pTabTitCol'></td><td class='pTabTitCol'>表名</td><td class='pTabTitCol'>类型</td><td class='pTabTitCol'>记录数</td><td class='pTabTitCol'>数据</td><td class='pTabTitCol'>索引</td><td class='pTabTitCol'>碎片</td></tr>
	<?php foreach($arr_list as $item){ ?>
	<tr class='pTabRow' id="id_row_<?php echo $item["index"]?>" onmouseover="admin_row_mouseover(<?php echo $item["index"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["index"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='seltable[]' value='<?php echo $item['name'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["index"]?>);"></td><td class='pTabCol'><?php echo $item["name"]?></td><td class='pTabCol'><?php echo $item["type"]?></td><td class='pTabCol'><?php echo $item["rows"]?></td><td class='pTabCol'><?php echo $item["data_length"]?></td><td class='pTabCol'><?php echo $item["index_length"]?></td><td class='pTabCol'><?php echo $item["data_free"]?></td>
	</tr>
	<?php }?>
</table>
<div class="pFootAct">
<?php if(count($arr_list)>0){?>
<li><input type='checkbox' name='seltableall' value='1' onclick="admin_row_selall(this.form,'seltableall','seltable');">全选
	&nbsp;<input type="button" name="btnExe" value="执行" onclick="frmExecute('optimize_exe');" class="pBtn"></li>
<?php }else{?>
<font color="#0000ff">数据完整，没有需要优化的表！</font>
<?php }?>
</div>
<?php include 'footer.tpl.php';?>		
