| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <div class="builder formbuilder-box">
- <notempty name="tab_nav">
- <div class="builder-tabs builder-form-tabs">
- <ul class="nav nav-tabs">
- <volist name="tab_nav.tab_list" id="tab">
- <li class="<php>if($tab_nav['current_tab'] == $key) echo 'active';</php>"><a href="{$tab.href}">{$tab.title}</a></li>
- </volist>
- </ul>
- </div>
- <div class="form-group"></div>
- </notempty>
- {// 数据列表 }
- <div class="builder-container">
- <div class="row">
- <div class="col-xs-12">
- <form enctype="multipart/form-data" action="{$post_url}" method="post" class="form-horizontal form form-builder">
- <div class="form-type-list">
- <volist name="form_items" id="form" key="k">
- <switch name="form.type">
- <include file='[builderpath]/FormType/hidden.html' type='' />
- {// 不可修改文本 }
- <include file='[builderpath]/FormType/static.html' type='' />
- {// 数字 }
- <include file='[builderpath]/FormType/num.html' type='' />
- {// UID }
- <include file='[builderpath]/FormType/uid.html' type='' />
- {// UIDS }
- <include file='[builderpath]/FormType/uids.html' type='' />
- {// 价格 }
- <include file='[builderpath]/FormType/price.html' type='' />
- {// 字符串 }
- <include file='[builderpath]/FormType/text.html' type='' />
- {// 文本 }
- <include file='[builderpath]/FormType/textarea.html' type='' />
- {// 数组 }
- <include file='[builderpath]/FormType/array.html' type='' />
- {// 密码 }
- <include file='[builderpath]/FormType/password.html' type='' />
- {// 单选按钮 }
- <include file='[builderpath]/FormType/radio.html' type='' />
- {// 复选框 }
- <include file='[builderpath]/FormType/checkbox.html' type='' />
- {// 下拉框 }
- <include file='[builderpath]/FormType/select.html' type='' />
- {// 下拉框(多选) }
- <include file='[builderpath]/FormType/selects.html' type='' />
- {// 图标 }
- <include file='[builderpath]/FormType/icon.html' type='' />
- {// 日期 }
- <include file='[builderpath]/FormType/date.html' type='' />
- {// 时间 }
- <include file='[builderpath]/FormType/datetime.html' type='' />
- {// 图片 }
- <include file='[builderpath]/FormType/picture.html' type='' />
- {// 图片(多图) }
- <include file='[builderpath]/FormType/pictures.html' type='' />
- {// 编辑器 kindeditor }
- <include file='[builderpath]/FormType/kindeditor.html' type='' />
- <case value="group">
- <div class="form-group"></div>
- <div class="builder-tabs form-group">
- <ul class="nav nav-tabs">
- <volist name="form.options" id="li" key="group_k">
- <li data-tab="tab{$group_k}" <eq name="group_k" value="1">class="active"</eq>><a href="#tab{$group_k}" data-toggle="tab">{$li.title}</a></li>
- </volist>
- </ul>
- </div>
- <div class="builder-container">
- <div class="tab-content">
- <volist name="form.options" id="tab" key="group_k">
- <div id="tab{$group_k}" class='tab-pane <eq name="group_k" value="1">active</eq> tab{$group_k}'>
- <div class="group">
- <volist name="tab.options" id="tab_form" key="tab_k">
- <switch name="tab_form.type">
- <include file='[builderpath]/FormType/hidden.html' type='tab_' />
- {// 不可修改文本 }
- <include file='[builderpath]/FormType/static.html' type='tab_' />
- {// 数字 }
- <include file='[builderpath]/FormType/num.html' type='tab_' />
- {// UID }
- <include file='[builderpath]/FormType/uid.html' type='tab_' />
- {// UIDS }
- <include file='[builderpath]/FormType/uids.html' type='tab_' />
- {// 价格 }
- <include file='[builderpath]/FormType/price.html' type='tab_' />
- {// 字符串 }
- <include file='[builderpath]/FormType/text.html' type='tab_' />
- {// 文本 }
- <include file='[builderpath]/FormType/textarea.html' type='tab_' />
- {// 数组 }
- <include file='[builderpath]/FormType/array.html' type='tab_' />
- {// 密码 }
- <include file='[builderpath]/FormType/password.html' type='tab_' />
- {// 单选按钮 }
- <include file='[builderpath]/FormType/radio.html' type='tab_' />
- {// 复选框 }
- <include file='[builderpath]/FormType/checkbox.html' type='tab_' />
- {// 下拉框 }
- <include file='[builderpath]/FormType/select.html' type='tab_' />
- {// 下拉框(多选) }
- <include file='[builderpath]/FormType/selects.html' type='tab_' />
- {// 图标 }
- <include file='[builderpath]/FormType/icon.html' type='tab_' />
- {// 日期 }
- <include file='[builderpath]/FormType/date.html' type='tab_' />
- {// 时间 }
- <include file='[builderpath]/FormType/datetime.html' type='tab_' />
- {// 图片 }
- <include file='[builderpath]/FormType/picture.html' type='tab_' />
- {// 图片(多图) }
- <include file='[builderpath]/FormType/pictures.html' type='tab_' />
- {// 编辑器 kindeditor }
- <include file='[builderpath]/FormType/kindeditor.html' type='tab_' />
- // 扩展类型
- <default />
- {:hook('FormBuilderExtend', array('form' => $tab_form, 'type' => tab_))}
- </switch>
- </volist>
- </div>
- </div>
- </volist>
- </div>
- </div>
- <div class="form-group"><hr></div>
- </case>
- // 扩展类型
- <default />
- {:hook('FormBuilderExtend', array('form' => $form))}
- </switch>
- </volist>
- <empty name="form_items">
- <div class="builder-data-empty text-center">
- <div class="empty-info">
- <i class="fa fa-database"></i> 暂时没有数据<br>
-
- </div>
- </div>
- </empty>
- <div class="form-group"></div>
- <div class="form-group bottom_button_list">
- <a class="btn btn-primary submit <?php if($ajax_submit) echo 'ajax-post';?>" type="submit" target-form="form-builder"><?php if ($submit_title) {echo $submit_title;} else {echo '确定';} ?></a>
- <a class="btn btn-danger return" onclick="javascript:history.back(-1);return false;">取消</a>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- {// 额外功能代码 }
- {$extra_html}
- </div>
|