<?php if (!defined('APP_PATH')) exit;?><html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://127.0.0.5/magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/magic/Data/Public/js/main.js"></script>
<body class="formbox">
<iframe id="blank" name="blank"  style="display:none" ></iframe>
<form method="post" target="blank"  action="?r=database-action-savetable">
<input type="hidden" name="oldtable"  value="<?php echo $info['Name'];?>">

<table border="0" cellspacing="0" cellpadding="0" width="320" class="forminfo formtable">
	<tr>
		<td width="100" height="50" align="right">表名称：</td><td align="left"><input type="text" name="rename" value="<?php echo $info['Name'];?>" class="insty" size="25"></td>
	</tr>
	<tr>
		<td width="100" height="40" align="right">类型：</td><td align="left">
		<select name="engine"  class="selectbox" >
			<option value="MyISAM" <?php if($info['Engine']=='MyISAM'){ ?>selected<?php }?>>MyISAM</option>
			<option value="InnoDB" <?php if($info['Engine']=='InnoDB'){ ?>selected<?php }?>>InnoDB</option>
			<option value="ARCHIVE" <?php if($info['Engine']=='ARCHIVE'){ ?>selected<?php }?>>ARCHIVE</option>
			<option value="BLACKHOLE" <?php if($info['Engine']=='BLACKHOLE'){ ?>selected<?php }?>>BLACKHOLE</option>
			<option value="CSV" <?php if($info['Engine']=='CSV'){ ?>selected<?php }?>>CSV</option>
			<option value="MEMORY" <?php if($info['Engine']=='MEMORY'){ ?>selected<?php }?>>MEMORY</option>
			<option value="MRG_MYISAM" <?php if($info['Engine']=='MRG_MYISAM'){ ?>selected<?php }?>>MRG_MYISAM</option>
		</select>
		</td>
	</tr>
	<tr>
		<td width="100" height="40" align="right">字符集：</td><td align="left">
		<select name="character"  class="selectbox" >
			<option value="utf8" <?php if(stristr($info['Collation'],'utf8')){ ?>selected<?php }?>>utf8</option>
			<option value="gb2312" <?php if(stristr($info['Collation'],'gb2312')){ ?>selected<?php }?>>gb2312</option>
			<option value="gbk" <?php if(stristr($info['Collation'],'gbk')){ ?>selected<?php }?>>gbk</option>
		</select>
		</td>
	</tr>
	<tr>
		<td width="80" height="30" align="right">备注：</td><td align="left"><input type="text" name="comment" value="<?php echo $info['Comment'];?>" class="insty" size="40"></td>
	</tr>
</table>
<table style="margin:5px auto">
	<tr>
		<td align="center" height="40" colspan="10"><input type="submit" class="scbtn7" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn8"></td>
	</tr>
</table>
</div>
</form>
</body>
</html>
