作者 王智

daima

1 <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> 1 <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
2 2
3 - <div class="form-group">  
4 - <label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>  
5 - <div class="col-xs-12 col-sm-8">  
6 - <input id="c-openid" data-rule="required" class="form-control" name="row[openid]" type="text" value="{$row.openid|htmlentities}">  
7 - </div>  
8 - </div> 3 + <!--<div class="form-group">-->
  4 + <!--<label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>-->
  5 + <!--<div class="col-xs-12 col-sm-8">-->
  6 + <!--<input id="c-openid" data-rule="required" class="form-control" name="row[openid]" type="text" value="{$row.openid|htmlentities}">-->
  7 + <!--</div>-->
  8 + <!--</div>-->
9 <div class="form-group"> 9 <div class="form-group">
10 <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label> 10 <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
11 <div class="col-xs-12 col-sm-8"> 11 <div class="col-xs-12 col-sm-8">
@@ -74,30 +74,30 @@ @@ -74,30 +74,30 @@
74 <input id="c-car_type" class="form-control" name="row[car_type]" type="text" value="{$row.car_type|htmlentities}"> 74 <input id="c-car_type" class="form-control" name="row[car_type]" type="text" value="{$row.car_type|htmlentities}">
75 </div> 75 </div>
76 </div> 76 </div>
77 - <div class="form-group">  
78 - <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>  
79 - <div class="col-xs-12 col-sm-8">  
80 - <input id="c-token" class="form-control" name="row[token]" type="text" value="{$row.token|htmlentities}">  
81 - </div>  
82 - </div>  
83 - <div class="form-group">  
84 - <label class="control-label col-xs-12 col-sm-2">{:__('Vip')}:</label>  
85 - <div class="col-xs-12 col-sm-8">  
86 -  
87 - <select id="c-vip" data-rule="required" class="form-control selectpicker" name="row[vip]">  
88 - {foreach name="vipList" item="vo"}  
89 - <option value="{$key}" {in name="key" value="$row.vip"}selected{/in}>{$vo}</option>  
90 - {/foreach}  
91 - </select> 77 + <!--<div class="form-group">-->
  78 + <!--<label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>-->
  79 + <!--<div class="col-xs-12 col-sm-8">-->
  80 + <!--<input id="c-token" class="form-control" name="row[token]" type="text" value="{$row.token|htmlentities}">-->
  81 + <!--</div>-->
  82 + <!--</div>-->
  83 + <!--<div class="form-group">-->
  84 + <!--<label class="control-label col-xs-12 col-sm-2">{:__('Vip')}:</label>-->
  85 + <!--<div class="col-xs-12 col-sm-8">-->
  86 + <!---->
  87 + <!--<select id="c-vip" data-rule="required" class="form-control selectpicker" name="row[vip]">-->
  88 + <!--{foreach name="vipList" item="vo"}-->
  89 + <!--<option value="{$key}" {in name="key" value="$row.vip"}selected{/in}>{$vo}</option>-->
  90 + <!--{/foreach}-->
  91 + <!--</select>-->
92 92
93 - </div>  
94 - </div>  
95 - <div class="form-group">  
96 - <label class="control-label col-xs-12 col-sm-2">{:__('Exptime')}:</label>  
97 - <div class="col-xs-12 col-sm-8">  
98 - <input id="c-exptime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[exptime]" type="text" value="{:$row.exptime?datetime($row.exptime):''}">  
99 - </div>  
100 - </div> 93 + <!--</div>-->
  94 + <!--</div>-->
  95 + <!--<div class="form-group">-->
  96 + <!--<label class="control-label col-xs-12 col-sm-2">{:__('Exptime')}:</label>-->
  97 + <!--<div class="col-xs-12 col-sm-8">-->
  98 + <!--<input id="c-exptime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[exptime]" type="text" value="{:$row.exptime?datetime($row.exptime):''}">-->
  99 + <!--</div>-->
  100 + <!--</div>-->
101 <div class="form-group"> 101 <div class="form-group">
102 <label class="control-label col-xs-12 col-sm-2">{:__('Is_black')}:</label> 102 <label class="control-label col-xs-12 col-sm-2">{:__('Is_black')}:</label>
103 <div class="col-xs-12 col-sm-8"> 103 <div class="col-xs-12 col-sm-8">
@@ -7,18 +7,18 @@ @@ -7,18 +7,18 @@
7 <div class="widget-body no-padding"> 7 <div class="widget-body no-padding">
8 <div id="toolbar" class="toolbar"> 8 <div id="toolbar" class="toolbar">
9 <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a> 9 <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
10 - <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('user/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> 10 + <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('user/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('user/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('user/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 - <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('user/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>  
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('user/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 12 + <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('user/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
  13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('user/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 - <div class="dropdown btn-group {:$auth->check('user/multi')?'':'hide'}">  
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>  
17 - <ul class="dropdown-menu text-left" role="menu">  
18 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>  
19 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>  
20 - </ul>  
21 - </div> 15 + <!--<div class="dropdown btn-group {:$auth->check('user/multi')?'':'hide'}">-->
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <!--<ul class="dropdown-menu text-left" role="menu">-->
  18 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>-->
  19 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>-->
  20 + <!--</ul>-->
  21 + <!--</div>-->
22 22
23 23
24 </div> 24 </div>
@@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
25 [ 25 [
26 {checkbox: true}, 26 {checkbox: true},
27 {field: 'id', title: __('Id')}, 27 {field: 'id', title: __('Id')},
28 - {field: 'openid', title: __('Openid')}, 28 + // {field: 'openid', title: __('Openid')},
29 {field: 'avatar', title: __('Avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image}, 29 {field: 'avatar', title: __('Avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image},
30 {field: 'nickname', title: __('Nickname')}, 30 {field: 'nickname', title: __('Nickname')},
31 {field: 'mobile', title: __('Mobile')}, 31 {field: 'mobile', title: __('Mobile')},
@@ -36,13 +36,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -36,13 +36,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
36 {field: 'car_num', title: __('Car_num')}, 36 {field: 'car_num', title: __('Car_num')},
37 {field: 'color', title: __('Color')}, 37 {field: 'color', title: __('Color')},
38 {field: 'car_type', title: __('Car_type')}, 38 {field: 'car_type', title: __('Car_type')},
39 - {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},  
40 - {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},  
41 - {field: 'token', title: __('Token')}, 39 + // {field: 'token', title: __('Token')},
42 {field: 'vip', title: __('Vip'), searchList: {"1":__('Vip 1'),"0":__('Vip 0')}, formatter: Table.api.formatter.normal}, 40 {field: 'vip', title: __('Vip'), searchList: {"1":__('Vip 1'),"0":__('Vip 0')}, formatter: Table.api.formatter.normal},
43 {field: 'exptime', title: __('Exptime')}, 41 {field: 'exptime', title: __('Exptime')},
44 {field: 'is_black', title: __('Is_black'), searchList: {"1":__('Is_black 1'),"0":__('Is_black 0')}, formatter: Table.api.formatter.normal}, 42 {field: 'is_black', title: __('Is_black'), searchList: {"1":__('Is_black 1'),"0":__('Is_black 0')}, formatter: Table.api.formatter.normal},
45 {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2'),"3":__('Type 3')}, formatter: Table.api.formatter.normal}, 43 {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2'),"3":__('Type 3')}, formatter: Table.api.formatter.normal},
  44 + {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  45 + {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
46 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 46 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
47 ] 47 ]
48 ] 48 ]