<input type="hidden" name="table_name" value="<?=$table_name?>" />
<input type="hidden" name="modelid" value="<?=$modelid?>" />
<input type="hidden" name="oldFiledName" value="<?=$oldFiledName?>" />
<table cellspacing="0" cellpadding="0" class="adminform">
  <tr>
    <th align="right">字段名称</th></tr><tr>
    <td><input id="field_0_14" size="12" name="field_comments"  value="<?=$fieldData->comment?>" class="text" /></td>
  </tr>
  <tr>
    <th align="right">字段标识</th></tr><tr>
    <td><input id="field_0_1" class="text" title="字段" value="<?=$fieldData->column_name?>" maxlength="64" size="10" name="field_name" dataType="Custom" regexp="[a-zA-Z_]+" msg="字段名称只能是英文或下画线"/></td>
  </tr>
  <tr>
    <th align="right">类型</th></tr><tr>
    <td><select name="field_type">
      <?php foreach($columnType as $key=>$value){?>
      <option value="<?=$key?>" <?php if(strtolower($key)==$fieldData->type){?>selected<?php }?>><?=$value?>
      <?php }?>
    </select></td>
  </tr>
  <tr>
    <th align="right">长度/值*1</th></tr><tr>
    <td><input id="field_0_3" class="text" size="8" name="field_length"  value="<?=@$fieldData->length?>" dataType="Custom" regexp="[0-9]*" msg="长度只能是数字"/>
    </td>
  </tr>
  <tr>
    <th align="right">Null</th></tr><tr>
    <td><select id="field_0_6" name="field_null">
      <option value="NOT NULL" selected="selected" <?php if(@$fieldData->is_null=="not null"){?>selected<?php }?>>not null</option>
      <option value="">null</option>
    </select></td>
  </tr>
  <tr>
    <th align="right">默认2</th></tr><tr>
    <td><input id="field_0_7" class="text" size="12" name="field_default"  value="<?=@$fieldData->default?>" />
        </td>
  </tr>
  <tfoot>
  	<tr>
    	<td colspan="2"><input type="submit" name="sb" value="提交" class="submit" />
    </tr>
  </tfoot>
</table>