manage.html
5.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{template 'common/header'}
{php load()->func('tpl')}
<style>
.field label{float:left;margin:0 !important; width:140px;}
</style>
<ul class="nav nav-tabs">
<li><a href="{php echo $this->createWebUrl('display')}">预约活动列表</a></li>
<li><a href="{php echo $this->createWebUrl('post')}">新建预约活动</a></li>
<li class="active"><a href="{php echo $this->createWebUrl('manage', array('id' => $reid))}">预约活动详情</a></li>
</ul>
<div class="main">
<div class="panel panel-info">
<div class="panel-heading">筛选</div>
<div class="panel-body">
<form action="./index.php" method="get" class="form-horizontal" role="form">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="we7_research" />
<input type="hidden" name="do" value="manage" />
<input type="hidden" name="id" value="{$reid}" />
<div class="form-group">
<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">预约内容情况</label>
<div class="col-xs-12 col-sm-8 col-lg-9">
<div style="font-weight:normal;">
<label class="checkbox-inline" id="field-all"><input type="checkbox" onchange="selectall(this, 'select');"> 全选</label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-lg-2 control-label"></label>
<div class="col-xs-12 col-sm-8 col-lg-9">
{loop $ds $field $comment}
<label class="checkbox-inline"><input type="checkbox" name="select[]" value="{$field}" {if in_array($field, $select)} checked="checked"{/if} /> {$comment}</label>
{/loop}
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">预约提交时间</label>
<div class="col-xs-12 col-sm-4">
{php echo tpl_form_field_daterange('daterange',array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)))}
</div>
<div class="col-xs-12 col-sm-4">
<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
<button type="submit" name="export" value="导出全部数据" class="btn btn-default"><i class="fa fa-download"></i>导出全部数据</button>
</div>
</div>
</form>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">详细数据(参数人数:{php echo count($allTotal);}人)</div>
<div class="panel-body">
<form action="" method="post" onsubmit="">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th width="15%">用户</th>
<th width="10%">昵称</th>
{loop $select $fid}
<th max-width="50%">{$ds[$fid]}<i></i></th>
{/loop}
<th max-width="10%">提交时间<i></i></th>
<th max-width="15%">操作</th>
</tr>
</thead>
<tbody>
{loop $list $row}
<tr>
<td class="row-hover">
<a href="javascript:;" title="{$row['from_user']}">
{$row['openid']}
</a>
</td>
<td>
{if empty($row['nickname'])}
<span class="label label-danger">未完善</span>
{else}
{$row['nickname']}
{/if}
</td>
{loop $select $fid}
<td>{$row['fields'][$fid]}<i></i></td>
{/loop}
<td style="font-size:12px; color:#666;">
{php echo date('Y-m-d H:i:s', $row[createtime]);}
</td>
<td>
<a href="{php echo $this->createWebUrl('detail', array('id' => $row['rerid']))}" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" title="查看详情"><i class="fa fa-eye"></i></a>
<a href="{php echo $this->createWebUrl('researchdelete', array('id' => $row['rerid']))}" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" title="删除"><i class="fa fa-times"></i></a>
</td>
</tr>
{/loop}
</tbody>
</table>
</form>
{$pager}
<span class="label label-success">数据总计:{$total}条</span>
</div>
</div>
</div>
<script language='javascript'>
function selectall(obj, name){
$('input[name="'+name+'[]"]:checkbox').each(function() {
$(this).get(0).checked = $(obj).get(0).checked;
});
}
require(['bootstrap'],function($){
$('.btn').hover(function(){
$(this).tooltip('show');
},function(){
$(this).tooltip('hide');
});
});
</script>
{template 'common/footer'}