143 lines
8.8 KiB
HTML
143 lines
8.8 KiB
HTML
<include file="Inc:header"/>
|
||
<style>
|
||
.house_region .select2-container{ width: 20%; float: left; margin-right:10px;}
|
||
#uniform-titlepic{ width: 113px;height: 36px;}
|
||
.controls i{ padding-left: 10px;}
|
||
.controls i input{ border-left: 0px;border-right: 0px;border-top: 0px;}
|
||
</style>
|
||
<div class="container-fluid">
|
||
<div class="main_head">
|
||
|
||
</div>
|
||
|
||
<div style="text-align:right; float:right"></div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="widget-box">
|
||
<div class="widget-title"> <span class="icon"> <i class=" icon-align-justify"></i> </span>
|
||
|
||
<ul class="sub-nav">
|
||
<li>{$pagetitle}</li>
|
||
</ul>
|
||
|
||
</div>
|
||
<div class="widget-content nopadding">
|
||
<form action="__SELF__" method="post" class="form-horizontal" onsubmit="return save_form(this);" >
|
||
<input type="hidden" name="table_id" value="{$table_id}">
|
||
<!--基本信息开始-->
|
||
<div class="sub-nav-tab" style="display:block">
|
||
<div class="control-group">
|
||
<label class="control-label">字段名<span>(由英文与数字组成,且不能以数字开头。比如:"title")</span></label>
|
||
<div class="controls">
|
||
<input type="text" name="field" class="span3" value="" />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">字段标识<span> (比如:"标题")</span></label>
|
||
<div class="controls">
|
||
<input type="text" name="name" class="span3" value="" />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">字段类型</label>
|
||
<div class="controls">
|
||
<select name="fieldtype" class="fieldtype">
|
||
<foreach name="fieldtype_inc" item="v" key="k">
|
||
<option value="{$k}">{$v}</option>
|
||
</foreach>
|
||
</select>
|
||
<i class="fieldlen_i">长度:<input type="text" style="width:50px" maxlength='5' name="fieldlen"></i>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">存放表<span>(设置后不能修改,设置在副表不写入缓存)</span></label>
|
||
<div class="controls" style="margin-top:6px;">
|
||
<label class="label-radio"><input type="radio" name="issystem" value="1"/>主表</label>
|
||
<label class="label-radio"><input type="radio" name="issystem" value="0" checked="true"/>副表</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">表单类型</label>
|
||
<div class="controls">
|
||
<select name="formtype" class="formtype">
|
||
<foreach name="formtype_inc" item="v" key="k">
|
||
<option value="{$k}">{$v}</option>
|
||
</foreach>
|
||
</select>
|
||
|
||
<i class="formtype_i_w">宽度:<input type="text" name="formwidth" maxlength='3' class="span1" value="" />%</i>
|
||
<i class="formtype_i_h">高度:<input type="text" maxlength='4' name="formheight" class="span1" value="" />px</i>
|
||
<i class="formtype_i_imgw">图片压缩最大宽度:<input type="text" name="imgwidth" maxlength='4' class="span1" value="1000" />px (0为不压缩)</i>
|
||
<!--如果设置了高度那么需要裁剪图片,功能目前不开放<i class="formtype_i_imgh">高度:<input type="text" maxlength='4' name="imgheight" class="span1" value="" />px</i>-->
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">初始值<span class="select_tip">(多个值用"回车"格开;下拉/单选/复选”格式用:名称==值;当值等于名称时,名称可省略;默认选项后面加::default)</span></label>
|
||
<div class="controls">
|
||
<textarea class="span10" name="defaultval" style="height:150px;"></textarea>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">字段提示</label>
|
||
<div class="controls">
|
||
<input type="text" name="tips" class="span3" value="" />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">数据校验正则<span>系统将通过此正则校验表单提交的数据合法性,如果不想校验数据请留空</span></label>
|
||
<div class="controls">
|
||
<input type="text" name="pattern" id="pattern" class="span3" value="" />
|
||
<select onChange="javascript:$('#pattern').val(this.value)" class="span2">
|
||
<option value="">常用正则</option>
|
||
<foreach name="pattern_inc" item="v" key="k">
|
||
<option value="{$k}">{$v}</option>
|
||
</foreach>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">数据校验未通过的提示信息</label>
|
||
<div class="controls">
|
||
<input type="text" name="errortips" class="span3" value="" />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">保存信息处理函数<span>用法:直接填写函数名称,如果有附带参数可以在函数名后面加###参数1,参数2.完整例子:usfun###a1,a2</span></label>
|
||
<div class="controls">
|
||
<input type="text" name="savefun" class="span3" value="" />
|
||
</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="isunique" value="1"/>是</label>
|
||
<label class="label-radio"><input type="radio" name="isunique" value="0" checked="true"/>否</label>
|
||
</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>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<include file="Inc/footer"/>
|
||
<script src="/Public/Admin/js/model.js"></script> |