123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {if $founder}
- <div id="actionbar">
- <div class="fn-left">
- <a href="{:url('operate/edit')}" class="button button-blue"> <i class="iconfont icon-add_icon"></i>增加运营商</a>
- </div>
- <div class="fn-right button-group">
- <a href="{:url('operate/index',['lock'=>1])}" class="button{if $lock == 1} button-violet{/if}">正常</a>
- <a href="{:url('operate/index',['lock'=>2])}" class="button{if $lock == 2} button-violet{/if}">锁定</a>
- </div>
- </div>
- {/if}
- <table class="table">
- <thead>
- <tr>
- <th class="w200">操作</th>
- <th class="w200">名称</th>
- <th class="w200">创始人</th>
- <th class="w100">电话</th>
- <th>运营公司</th>
- <th class="w120 fn-tac">状态</th>
- <th class="w140 fn-tac">创建时间</th>
- </tr>
- </thead>
- <tbody>
- {foreach $lists as $vo}
- <tr>
- <td class="button-group">
- <a class="button" href="{:url('operate/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</a>
- <a class="button button-green" href="{:url('operate/user',['id' => $vo.id])}"><i class="iconfont icon-my_icon"></i>管理员</a>
- </td>
- <td>{$vo.operate_name}</td>
- <td>{$vo.user.nickname}</td>
- <td>{$vo.tel}</td>
- <td>{$vo.company}</td>
- <td class="fn-tac">
- <a class="isAction" url="{:url('operate/isLock',['id'=> $vo.id])}" href="javascript:;" title="设置为默认">
- {if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">锁定</span>{/if}
- </a>
- </td>
- <td class="fn-tac">{$vo.create_time|date='Y-m-d H:i'}</td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {$lists|raw}
- <script type="text/javascript">
- Do('base', 'layer', function () {
- $('.isAction').click(function () {
- var url = $(this).attr("url");
- parent.layer.confirm('确认要设置当前城市',{ icon: 3,title: '友情提示' }, function (index) {
- $.getJSON(url,function (data) {
- parent.layer.alert(data.msg);
- window.location.reload();
- });
- parent.layer.close(index);
- });
- })
- })
- </script>
|