116 lines
5.5 KiB
HTML
116 lines
5.5 KiB
HTML
<include file="Inc:head"/>
|
||
|
||
<div class="widget-box2" style="margin:0px;">
|
||
<div class="widget-content nopadding">
|
||
<form action="{:U('add')}" method="post" class="form-horizontal" onsubmit="return save_form(this)">
|
||
<input type="hidden" name="catid" value="{$r.catid}">
|
||
<!--基本信息开始-->
|
||
<div class="sub-nav-tab" style="display:block">
|
||
<div class="control-group">
|
||
<label class="control-label">分类名称</label>
|
||
<div class="controls">
|
||
<input type="text" name="name" class="span3" value="{$r.name}" />
|
||
</div>
|
||
</div>
|
||
<?php
|
||
if(C('LANG_SWITCH_ON')){
|
||
?>
|
||
<div class="control-group">
|
||
<label class="control-label">语言</label>
|
||
<div class="controls">
|
||
<select name="lang">
|
||
<option value="">请选择语言</option>
|
||
<foreach name="LANG_OPT" item="v">
|
||
<option value="{$key}">{$v}</option>
|
||
</foreach>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<?php
|
||
}
|
||
?>
|
||
<div class="control-group">
|
||
<label class="control-label">是否启用</label>
|
||
<div class="controls" style="margin-top:6px;">
|
||
<label class="label-radio"><input type="radio" name="status" value="1" {$r["status"]?"checked":""}/>启用</label>
|
||
<label class="label-radio"><input type="radio" name="status" value="0" {$r["status"]?"":"checked"}/>禁用</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">验证码</label>
|
||
<div class="controls" style="margin-top:6px;">
|
||
<label class="label-radio"><input type="radio" name="verify_code" value="1" {$r["verify_code"]?"checked":""}/>开启</label>
|
||
<label class="label-radio"><input type="radio" name="verify_code" value="0" {$r["verify_code"]?"":"checked"}/>关闭</label>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">提交用户</label>
|
||
<div class="controls">
|
||
<select name="member_group[]" Multiple class="select2" data-tags="true" data-placeholder="不勾选会对游客开放">
|
||
<foreach name="memberGroup" item="v" key="k">
|
||
<option value="{$v.group_id}" {:strstr($r[member_group],$v[group_id])?"selected":""}>{$v.name}</option>
|
||
</foreach>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">留言发邮箱</label>
|
||
<div class="controls">
|
||
<input type="text" name="request_email" class="span10" value="{$r.request_email}" placeholder="请输入接收邮件的地址,多个邮箱用逗号隔开,如:123@qq.com,456@164.com,不建议超过2个邮箱,否则用户在提交的时候等待非常慢" />
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">请勾选字段
|
||
<span><br><input type="checkbox" name="makeform" value="1" checked="true">自动生成表单</span>
|
||
</label>
|
||
<div class="controls">
|
||
|
||
|
||
|
||
<div class="widget-content nopadding" style="width:99%; ">
|
||
<table class="table table-bordered table-striped" style="border-right:1px solid #ccc">
|
||
<thead>
|
||
<tr>
|
||
<th width="10%;">字段标识</th>
|
||
<th width="10%;">字段名</th>
|
||
<th width="10%">提交项</th>
|
||
<th width="10%">必填项</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<foreach name="table_field" item="v">
|
||
<tr>
|
||
<td><input type="hidden" name="field_id[]" value="{$v.field_id}"><input type="text" name="field_name[]" value="{$v.name}" class="span2"></td>
|
||
<td><input type="text" name="field[]" value="{$v.field}" readonly class="span2"></td>
|
||
<td class="center"><input type="checkbox" name="is_enter[]" value="{$v.field}" {$v[is_enter_checked]?"checked":""}></td>
|
||
<td class="center"><input type="checkbox" name="must_enter[]" value="{$v.field}" {$v[must_enter_checked]?"checked":""}></td>
|
||
</tr>
|
||
</foreach>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!--基本信息结束-->
|
||
|
||
<div class="form-actions">
|
||
<button type="submit" class="btn btn-success form_submit">确定</button>
|
||
<button type="button" class="btn btn-danger" onclick="cancel()">返回</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<include file="Inc/foot" noiframeauto="true" noautotitle="true"/> |