123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- {extend name='main'}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='school/index_search'}
- <table class="layui-table margin-top-10" lay-skin="line">
- {notempty name='list'}
- <thead>
- <tr>
- <th class='text-left nowrap' width="7%">学校代码</th>
- <th class='text-left nowrap' width="15%">学校名称</th>
- <th class='text-left nowrap' width="5%">学校类型</th>
- <th class='text-left nowrap' width="5%">行政负责人姓名</th>
- <th class='text-left nowrap' width="5%">业务负责人姓名</th>
- <th class='text-left nowrap' width="7%">业务负责人电话</th>
- <th class='text-left nowrap' width="14%">学校地址</th>
- <th class='text-left nowrap' width="7%">办公电话</th>
- <th class='text-left nowrap' width="5%">所在县区</th>
- <th class='text-left nowrap' width="5%">状态</th>
- <th class="text-left" width="15%">操作</th>
- </tr>
- </thead>
- {/notempty}
- <tbody>
- {foreach $list as $key=>$vo}
- <tr>
- <td><div class="inline-block">{$vo.school_code|default='--'}</div></td>
- <td><div class="inline-block">{$vo.name|default='--'}</div></td>
- <td class='text-left'>{$type_arr[$vo.type]|default='--'}</td>
- <td class='text-left'>{$vo.xz_leader_name|default='--'}</td>
- <td class='text-left'>{$vo.yw_leader_name|default='--'}</td>
- <td class='text-left'>{$vo.yw_leader_phone|default='--'}</td>
- <td class='text-left'>{$vo.address|default='--'}</td>
- <td class='text-left'>{$vo.office_phone|default='--'}</td>
- <td class='text-left'>{$vo.szd_area|default='--'}</td>
- <td class='text-left nowrap'>
- {eq name='vo.status' value='0'}
- <span class="layui-badge">已禁用</span>{else}<span class="layui-badge layui-bg-green">使用中</span>
- {/eq}
- </td>
- <td class='text-left nowrap'>
- <div style="margin-bottom: 10px">
- {if auth("admin/school/edit")}
- <a data-title="编辑" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
- {/if}
- {if auth("admin/school/info")}
- <a data-dbclick class="layui-btn layui-btn-sm" data-open='{:url("info")}?id={$vo.id}'>详 情</a>
- {/if}
- <!--<a data-title="学生列表" class="layui-btn layui-btn-sm layui-btn-normal" data-open='{:url("admin/student/index")}?school_id={$vo.id}'>学生列表</a>
- <a data-title="教师列表" class="layui-btn layui-btn-sm layui-btn-normal" data-open='{:url("admin/teacher/index")}?school_id={$vo.id}'>教师列表</a>-->
- {if $vo.status eq 1 and auth("forbid")}
- <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0">禁 用</a>
- {elseif auth("resume")}
- <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1">启 用</a>
- {/if}
- {if auth("admin/school/remove")}
- <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该学校吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
- {/if}
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|