init commit
This commit is contained in:
27
application/admin/view/wdsxh/questionnaire/render/add.html
Normal file
27
application/admin/view/wdsxh/questionnaire/render/add.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Questionnaire_id')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-questionnaire_id" data-rule="required" data-source="questionnaire/index" class="form-control selectpage" name="row[questionnaire_id]" type="text" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Wechat_id')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-wechat_id" data-rule="required" data-source="wechat/index" class="form-control selectpage" name="row[wechat_id]" type="text" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Content_render')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-content_render" class="form-control" name="row[content_render]" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
124
application/admin/view/wdsxh/questionnaire/render/details.html
Normal file
124
application/admin/view/wdsxh/questionnaire/render/details.html
Normal file
@@ -0,0 +1,124 @@
|
||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
|
||||
|
||||
{volist name="content" id="vo"}
|
||||
{if $vo['type'] == 'text'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}" disabled>
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $vo['type'] == 'number'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="number" value="{$vo.content|htmlentities}" disabled>
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $vo['type'] == 'radio'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}" disabled>
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $vo['type'] == 'checkbox'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}" disabled>
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $vo['type'] == 'select'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}" disabled>
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $vo['type'] == 'datetime'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}" disabled>
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $vo['type'] == 'textarea'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<textarea disabled class="form-control" rows="5" cols="50">{$vo.content|htmlentities}</textarea>
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $vo['type'] == 'images'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
{if $vo.content}
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<!-- 使用foreach循环遍历图片列表 -->
|
||||
{foreach $vo.content as $image}
|
||||
<img src="{$image|htmlentities}" style="width: 30%;height: 30%;">
|
||||
{/foreach}
|
||||
</div>
|
||||
{if $vo['is_explain'] == '1'}
|
||||
<div class=" col-sm-8">
|
||||
<input class="form-control" type="text" value="说明:{$vo.explain|htmlentities}" disabled>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/volist}
|
||||
</form>
|
||||
85
application/admin/view/wdsxh/questionnaire/render/edit.html
Normal file
85
application/admin/view/wdsxh/questionnaire/render/edit.html
Normal file
@@ -0,0 +1,85 @@
|
||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
|
||||
|
||||
{volist name="content" id="vo"}
|
||||
{if $vo['type'] == 'text'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $vo['type'] == 'number'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="number" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $vo['type'] == 'radio'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $vo['type'] == 'checkbox'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $vo['type'] == 'select'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $vo['type'] == 'datetime'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="text" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $vo['type'] == 'textarea'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="textarea" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $vo['type'] == 'images'}
|
||||
<div lass="form-group">
|
||||
<label>{$vo.topic|htmlentities}</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input class="form-control" type="textarea" value="{$vo.content|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/volist}
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
21
application/admin/view/wdsxh/questionnaire/render/index.html
Normal file
21
application/admin/view/wdsxh/questionnaire/render/index.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class="panel panel-default panel-intro">
|
||||
{:build_heading()}
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div class="tab-pane fade active in" id="one">
|
||||
<div class="widget-body no-padding">
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
|
||||
<a href="javascript:;" class="btn btn-success btn-export {:$auth->check('wdsxh/questionnaire/render/export')?'':'hide'}" title="{:__('导出问卷')}" id="btn-export-file"><i class="fa fa-download"></i> {:__('导出问卷')}</a>
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-edit="{:$auth->check('wdsxh/questionnaire/render/edit')}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user