  <input name="model[model_article_table]" type="hidden" value="1" class="checkbox" checked onClick="return false">
  <input name="model[model_category_table]" type="hidden" value="1" class="checkbox" checked>
  <input name="model[model_annex_table]" type="hidden" value="1" class="checkbox">
  <input name="modelid" type="hidden" value="<?=@$model->model_id?>" class="checkbox">
  <DL class="adminoption">
  	<dt></dt>
    <dd><a href="#tab1">基本信息</a></dd>
    <dd><a href="#tab2">模板设置</a></dd>
  </DL>
  <div class="tab" id="tab1">
  <table class="adminform" border="0">
    <tr>
      <th><?=Kohana::lang("manager_lang.model_name");?></th>
    </tr>
    <tr>
      <td><input type="text" class="text" name="model[model_name]" id="model_name" value="" autocomplete="off" dataType="Require" msg="<?=Kohana::lang('manager_lang.model_name_require')?>" /></td>
    </tr>
    <tr>
      <th><?=Kohana::lang("manager_lang.model_value");?></th>
    </tr>
    <tr>
      <td><input type="text" class="text" name="model[model_value]"  id="model_value" value="" autocomplete="off" dataType="Custom" regexp="[a-zA-Z_]+" msg="<?=Kohana::lang('manager_lang.model_value_en')?>" /></td>
    </tr>
 </table>
</div>
  <div class="tab" id="tab2">
  <table class="adminform" border="0">
    <tr>
      <th>首页模板</th>
    </tr>
    <tr>
      <td><input type="text" name="model[index_tpl]" readonly="readonly" value=""  class="text" id="index_tpl"/>&nbsp;<input type="button" value="选择" class="button" onclick="window.open('<?=BASEURI?>templates/select/index_tpl')"/></td>
    </tr>
    <tr>
      <th>列表模板</th>
    </tr>
    <tr>
      <td><input type="text" name="model[list_tpl]" readonly="readonly" class="text" value="" id="list_tpl"/>&nbsp;<input type="button" value="选择" class="button" onclick="window.open('<?=BASEURI?>templates/select/list_tpl')"/></td>
    </tr>
    <tr>
      <th>内容模板</th>
    </tr>
    <tr>
      <td><input type="text" name="model[content_tpl]" readonly="readonly" class="text" value="" id="content_tpl"/>&nbsp;<input type="button" value="选择" class="button" onclick="window.open('<?=BASEURI?>templates/select/content_tpl')"/></td>
    </tr>
    <tr>
      <th>图片模板</th>
    </tr>
    <tr>
      <td><input type="text" name="model[picture_tpl]" readonly="readonly" class="text" value="" id="picture_tpl"/>&nbsp;<input type="button" value="选择" class="button" onclick="window.open('<?=BASEURI?>templates/select/picture_tpl')"/></td>
    </tr>
    <tr>
      <th>下载模板</th>
    </tr>
    <tr>
      <td><input type="text" name="model[down_tpl]"  readonly="readonly" class="text" value="" id="down_tpl"/>&nbsp;<input type="button" value="选择" class="button" onclick="window.open('<?=BASEURI?>templates/select/down_tpl')"/></td>
    </tr>
 </table>
</div>
 <DIV><input type="submit" name="sub" value="提交" class="submit" /></DIV>
