<?php
defined('IN_DESTOON') or exit('Access Denied');
include tpl('header');
//foreach($fields as $k=>$v) { echo "'".$v['Field']."',"; }
?>
<form method="post" action="?" id="dform">
<input type="hidden" name="file" value="<?php echo $file;?>"/>
<input type="hidden" name="action" value="<?php echo $action;?>"/>
<input type="hidden" name="table" value="<?php echo $table;?>"/>
<input type="hidden" name="nt" value="<?php echo $note;?>"/>
<div class="tt"><?php echo $note;?>[<?php echo $table;?>]</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<th>字段名</th>
<th>注释</th>
<th>备注</th>
<th>类型</th>
</tr>
<?php foreach($fields as $k=>$v) {?>
<tr onmouseover="this.className='on';" onmouseout="this.className='';">
<td>&nbsp;&nbsp;<strong><?php echo $v['Field'];?></strong></td>
<td>&nbsp;<input type="text" size="20" name="name[<?php echo $v['Field'];?>]" value="<?php echo $v['cn_name'];?>"/></td>
<td>&nbsp;<input type="text" size="20" name="note[<?php echo $v['Field'];?>]" value="<?php echo $v['cn_note'];?>" title="<?php echo $v['cn_note'];?>"/></td>
<td>&nbsp;<strong><?php echo $v['Type'];?></strong></td>
</tr>
<?php }?>
<tr>
<td>&nbsp;</td>
<td colspan="3">&nbsp;
<input type="submit" name="submit" value="更 新" class="btn"/>&nbsp;&nbsp;
<input type="button" value=" 关 闭 " class="btn" onclick="window.parent.cDialog();"/>
</td>
</tr>
</table>
</form>
<?php include tpl('footer');?>