<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<Admintemplate file="Common/Head"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <Admintemplate file="Common/Nav"/>
  <div class="h_a">表单配置</div>
  <form action="{:U('Formguide/add')}" method="post" name="myform" class="J_ajaxForm">
  <div class="table_full">
  <table class="table_form" width="100%" cellspacing="0">
<tbody>
	<tr>
		<th width="150"><strong>名称：</strong></th>
		<td><input name="info[name]" id="name" class="input" type="text" size="30"></td>
	</tr>
	<tr>
		<th><strong>表名：</strong></th>
		<td><input name="info[tablename]" id="tablename" class="input" type="text" size="25"></td>
	</tr>
	<tr>
		<th><strong>简介：</strong></th>
		<td><textarea name="info[description]" id="description" rows="6" cols="50"></textarea></td>
	</tr>
	<tr>
		<th><strong>时间限制：</strong></th>
		<td><input type="radio" name="setting[enabletime]" value="1"> 启用 <input type="radio" name="setting[enabletime]" value="0" checked=""> 不启用</td>
	</tr>
	<tr id="time_start" style="display:none;">
  		<th><strong>开始时间：</strong></th>
        <td><input type="text" name="setting[starttime]" id="starttime" value="2012-08-14" size="10" class="date input" readonly=""></td>
	</tr>
	<tr id="time_end" style="display:none;">
		<th><strong>结束时间：</strong></th>
		<td><input type="text" name="setting[endtime]" id="endtime" value="" size="10" class="date input" readonly=""></td>
	</tr>
	<tr>
		<th><strong>允许发送邮件：</strong></th>
		<td><input name="setting[sendmail]" type="radio" value="1">&nbsp;是&nbsp;&nbsp;<input name="setting[sendmail]" type="radio" value="0" checked="">&nbsp;否</td>
	</tr>
	<tr id="mailaddress" style="display:none;">
		<th><strong>接受邮件的地址：</strong></th>
		<td><input type="text" name="setting[mails]" id="mails" class="input" size="50"> 多个地址请用逗号隔开</td>
	</tr>
	<tr>
		<th><strong>允许同一IP多次提交：</strong></th>
		<td><input type="radio" name="setting[allowmultisubmit]" value="1"> 是&nbsp;&nbsp;&nbsp;&nbsp;
	  <input type="radio" name="setting[allowmultisubmit]" value="0" checked=""> 否</td>
	</tr>
	<tr>
		<th><strong>允许游客提交表单：</strong></th>
		<td><input type="radio" name="setting[allowunreg]" value="1"> 是&nbsp;&nbsp;&nbsp;&nbsp;
	  <input type="radio" name="setting[allowunreg]" value="0" checked=""> 否</td>
	</tr>
	<tr>
		<th><strong>模板选择：</strong></th>
		<td id="show_template"><?php echo Form::select($template,0,'name="info[show_template]" id="show_template"'); ?></td>
	</tr>
	<tr>
		<th><strong>js调用使用的模板：</strong></th>
		<td id="show_js_template"><?php echo Form::select($template,0,'name="info[show_js_template]" id="show_js_template"'); ?></td>
	</tr>
	</tbody>
</table>
  </div>
  <div class="">
      <div class="btn_wrap_pd">             
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
      </div>
    </div>
  </form>
</div>
<script src="{$config_siteurl}statics/js/common.js?v"></script>
</body>
</html>