<input type="hidden" name="modelid" value="<?=$modelid?>" />
<input type="hidden" name="formtype" value="<?=$form_type?>" />
<input type="hidden" name="inputid" value="<?=$input->input_id?>" />
<table class="adminform" cellspacing="0">
    <tr>
    	<th>INPUT标题</th>
    </tr>
    <tr>
    	<td><input type="text" name="input[input_title]" value="<?=$input->input_title?>" class="text" /></td>
    </tr>
    <tr>
    	<th>选项卡</th>
    </tr>
    <tr>
    	<td><select name="input[tabid]">
              	<?php foreach($tabs as $tab){?>
                <option value="<?=$tab->tabid?>" <?php if($input->tabid==$tab->tabid){?> selected="selected" <?php }?>><?=$tab->name?>
                <?php }?>
              </select></td>
    </tr>
    <tr>
    	<th>输入框长度</th>
    </tr>
    <tr>
    	<th><input type="text" name="input[input_lenght]" value="<?=$input->input_lenght?>" dataType="Number" msg="排序值只能是整数" /></th>
    </tr>
        <tr>
    	<th>输入框样式</th>
    </tr>
    <tr>
    	<th><textarea name="input[style]"><?=$input->style?></textarea></th>
    </tr>

    <tr>
    	<th>排序</th>
    </tr>
    <tr>
    	<th><input type="text" name="input[input_order]" value="<?=$input->input_order?>" dataType="Number" msg="排序值只能是整数" /></th>
    </tr>
    <tr>
    	<th>输入类型</th>
    </tr>
    <tr>
    	<td>
        <select name="input[input_type]" <?php if(@$input->enabled==0){?> disabled="disabled" <?php }?>>
            <?php foreach($FiledType as $tmpType){?>
            <option value="<?=$tmpType->column_type?>" <?php if(@$input->input_type==$tmpType->column_type){?> selected="selected" <?php }?>>
            <?=$tmpType->column_type_des?>
            <?php }?>
        </select></td>
    </tr>
    <tr>
    	<th>预设值</th>
    </tr>
    <tr>
    	<td>
        <select name="input[beforehand]">
            <option value="">无
            <?php foreach($beforehand as $tmpType){?>
            <option value="<?=$tmpType->default_type?>" <?php if(@$input->beforehand==$tmpType->default_type){?> selected="selected" <?php }?>>
            <?=$tmpType->default_description?>
            <?php }?>
        </select>
        </td>
    </tr>
    <tr>
    	<th>验证类型</th>
    </tr>
    <tr>
    	<td>
        <select name="input[vlidata]" id="vlidata">
                  <option value="">无
                  <?php foreach($valids as $k=>$v){?>
                  <option value="<?=$k?>" <?php if($k==$input->vlidata){?> selected="selected" <?php }?>><?=$v?>
                  <?php }?>
                </select>
                </td>
    </tr>
    <tr>
    	<th>错误提示信息</th>
    </tr>
    <tr>
    	<td><input type="text" name="input[error_msg]" value="<?=$input->error_msg?>" class="text" /></td>
    </tr>
    <tr>
    	<th>默认值</th>
    </tr>
    <tr>
    	<td>
        	<input type="text" class="text" name="input[default_value]" value="<?=$input->default_value?>" />
        </td>
    </tr>
      <tr>
    	<th>输入说明</th>
    </tr>
    <tr>
    	<td><input type="text" class="text" name="input[input_description]" value="<?=@$input->input_description?>" /></td>
    </tr>
      <tfoot>
    	<td><input type="submit" class="button" value="提交" /></td>
    </tfoot>
</table>