init commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<style>
|
||||
.star {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
{if !empty($activity_id)}
|
||||
<input name="row[activity_id]" type="hidden" value="{$activity_id|htmlentities}">
|
||||
{else /}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">选择活动:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-activity_id" data-rule="required" data-source="wdsxh/activity/activity/index" class="form-control selectpage" name="row[activity_id]" type="text" value="">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">用户信息:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="c-user" readonly class="form-control" size="50" name="user" type="text">
|
||||
<input id="c-uid" readonly name="row[wechat_id]" type="hidden">
|
||||
<div class="input-group-addon no-border no-padding">
|
||||
<span><button type="button" id="select-user" class="btn btn-info" ><i class="fa fa-user-plus"></i> 选择用户</button></span>
|
||||
|
||||
</div>
|
||||
<span class="msg-box n-right" for="c-user"></span>
|
||||
</div>
|
||||
</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>
|
||||
@@ -0,0 +1,59 @@
|
||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
{volist name="row.custom_content" id="vo"}
|
||||
{if in_array($vo['type'],array('text','number','radio','checkbox','select','date','datetime','time'))}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{$vo['label']}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input data-rule="required" class="form-control" name="row[name]" type="text" value="{$vo.value|htmlentities}" disabled>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $vo['type'] == 'map'}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{$vo['label']}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input data-rule="required" class="form-control" name="row[name]" type="text" value="{$vo.value.address|htmlentities}" disabled>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $vo['type'] == 'image'}
|
||||
<?php $image_array = explode(',',$vo['value']);?>
|
||||
{volist name="image_array" id="vv"}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{$vo['label']}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
{notempty name="vv"}
|
||||
<img src="{$vv|htmlentities}" style="width: 30%;height: 30%;">
|
||||
{/notempty}
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
{/if}
|
||||
{if $vo['type'] == 'video'}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{$vo['label']}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="input-group">
|
||||
{notempty name="vv"}
|
||||
<video src="{$vo.value|htmlentities}" controls="controls" style="width: 50%;height: 30%;"></video>
|
||||
{/notempty}
|
||||
</div>
|
||||
<ul class="row list-inline faupload-preview" id="p-video_file"></ul>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $vo['type'] == 'textarea'}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{$vo['label']}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<textarea class="form-control" rows="5" name="row[introduce_content]" cols="50" disabled>{$vo.value|htmlentities}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/volist}
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1,28 @@
|
||||
<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-add {:$auth->check('wdsxh/activity/activity_apply/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
|
||||
<!-- <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wdsxh/activity/activity_apply/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-edit="{:$auth->check('wdsxh/activity/activity_apply/edit')}"
|
||||
data-operate-del="{:$auth->check('wdsxh/activity/activity_apply/del')}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user