123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- {include file="public/layout" /}
-
- <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page min-hg-c-10">
-
- {include file="zc_position/admin_bar" /}
-
-
- <div class="flexigrid">
- <div class="mDiv">
- <div class="ftitle">
- {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
- {eq name="$Think.const.CONTROLLER_NAME.'@add'|is_check_access" value="1"}
- <div class="fbutton">
- <a href="javascript:void(0);" data-href="{:url('ZczsPosition/add')}" onclick="openFullframe(this, '新增证书', '80%', '70%');">
- <div class="add">
- <span><i class="layui-icon layui-icon-addition"></i>新增证书</span>
- </div>
- </a>
- </div>
- {/eq}
- {/if}
- </div>
-
-
-
- <form id="searchForm" class="navbar-form form-inline" action="{:url('ZczsPosition/index')}" method="get" onsubmit="layer_loading('正在处理');">
- {$searchform.hidden|default=''}
- <div class="sDiv">
- <div class="sDiv2">
- <select name="type" class="select" style="margin:0px 5px;">
- <option value="">--选择一级--</option>
- {eyou:foreach name='$pos_list' item='field1'}
- <option value="{$field1.id}" {eq name="$Request.param.type" value="$field1.id"}selected{/eq}>{$field1.name}</option>
- {/eyou:foreach}
- </select>
- </div>
-
-
- <div class="sDiv2">
- <select name="type2" id="type2" class="select" style="margin:0px 5px;">
- <option value="0">--选择二级--</option>
- {eyou:foreach name='$pos_list2' item='field1'}
- <option value="{$field1.id}" {eq name="$Request.param.type2" value="$field1.id"}selected{/eq}>{$field1.name}</option>
- {/eyou:foreach}
- </select>
- </div>
-
-
-
- <div class="sDiv2">
- <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="名称搜索...">
- <input type="submit" class="btn" value="搜索">
- <i class="iconfont e-sousuo"></i>
- </div>
-
- </div>
- </form>
-
- <div class="sDiv">
- {eq name="$Think.const.CONTROLLER_NAME.'@addtype'|is_check_access" value="1"}
- <a href="javascript:void(0);" data-href="{:url('ZczsPosition/addtype',array('id'=>$vo['id']))}" data-closereload="1" class="btn blue" onclick="openFullframe(this, '添加分类', '70%', '80%');">添加分类</a> <i></i>
- {/eq}
-
- {eq name="$Think.const.CONTROLLER_NAME.'@edittype'|is_check_access" value="1"}
- <a href="javascript:void(0);" data-href="{:url('ZczsPosition/edittype',array('type'=>$Request.param.type,'type2'=>$Request.param.type2))}" data-closereload="1" class="btn blue" onclick="openFullframe(this, '编辑分类', '70%', '80%');">编辑分类</a> <i></i>
- {/eq}
-
- {eq name="$Think.const.CONTROLLER_NAME.'@deltype'|is_check_access" value="1"}
- <a href="javascript:void(0);" data-href="{:url('ZczsPosition/deltype',array('type'=>$Request.param.type,'type2'=>$Request.param.type2))}" data-closereload="1" class="btn blue" onclick="openFullframe(this, '删除分类', '70%', '80%');">删除分类</a> <i></i>
- {/eq}
-
- </div>
- <!--
- <button id="addType">添加分类</button>-->
- <!--
- <button id="editType">编辑分类</button>-->
-
- </div>
-
- <div class="hDiv">
- <div class="hDivBox">
- <table cellspacing="0" cellpadding="0" style="width: 100%">
- <thead>
- <tr>
- {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
- <th class="sign w40" axis="col0">
- <div class="tc"><input type="checkbox" class="checkAll"></div>
- </th>
- {/if}
-
- <th abbr="article_title" axis="col3" class="w60">
- <div class="tc">ID</div>
- </th>
-
- <th abbr="article_title" axis="col3">
- <div class="tl text-l10" style="width: 100%">证书名称</div>
- </th>
-
- <th abbr="article_title" axis="col3" class="w100">
- <div class="tc">绑定学历</div>
- </th>
-
- <th abbr="article_title" axis="col3" class="w100">
- <div class="tc">证书级别</div>
- </th>
-
- <th abbr="article_title" axis="col3" class="w120">
- <div class="tc">主题图片</div>
- </th>
-
- <th abbr="article_time" axis="col6" class="w60">
- <div class="tc">启用</div>
- </th>
-
- <th axis="col1" class="w180">
- <div class="tc">操作</div>
- </th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
-
- <div class="bDiv" style="height: auto;">
- <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
- <table style="width: 100%">
- <tbody>
- {empty name="list"}
- <tr>
- <td class="no-data" align="center" axis="col0" colspan="50">
- <div class="no_row">
- <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
- </div>
- </td>
- </tr>
- {else/}
- {foreach name="list" item="vo" key="k" }
- <tr>
- {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
- <td class="sign">
- <div class="w40 tc"> <input type="checkbox" name="ids[]" value="{$vo.id}"> </div>
- </td>
- {/if}
- <td>
- <div class="tc w60">
- {eq name='$main_lang' value='$admin_lang'}
- {$vo.id}
- {else /}
- {$main_adv_list[$vo['id']]['id']|default=$vo['id']}
- {/eq}
- </div>
- </td>
-
- <td align="left" style="width:100%;">
- <div class="tl text-l10">
- {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
- <a href="javascript:void(0);" data-href="{:url('ZczsPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');">{$vo.title}</a>
- {else /}
- {$vo.title}
- {/eq}
- </div>
- </td>
- <td>
- <div class="tc w100"> {$vo.xl_name} </div>
- </td>
- <td>
- <div class="tc w100"> {$vo.type_name} </div>
- </td>
- <td>
- <div class="tc w120">
- <ul class="adpic">
- {volist name="$vo.ad" id="vs" length="1" }
- <li>
- <img src="{$vs.litpic}"> {eq name="$vo.type" value="1"}<span>{$vo.ad_count}</span>{/eq}
- </li>
- {/volist}
- </ul>
- </div>
- </td>
- <td>
- <div class="tc w60">
- {if condition="$vo['status'] eq 1"}
- <span class="yes" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}onClick="changeTableVal('zczs_position','id','{$vo.id}','status',this);"{/eq} ><i class="fa fa-check-circle"></i>是</span>
- {else /}
- <span class="no" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}onClick="changeTableVal('zczs_position','id','{$vo.id}','status',this);"{/eq} ><i class="fa fa-ban"></i>否</span>
- {/if}
- </div>
- </td>
- <td class="operation">
- <div class="w180 tc">
- {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
- <a href="javascript:void(0);" data-href="{:url('ZczsPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" class="btn blue" onclick="openFullframe(this, '编辑证书', '100%', '100%');">编辑</a> <i></i>
- {/eq}
-
- {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
- {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
- <a class="btn red" href="javascript:void(0);" data-url="{:url('ZczsPosition/del')}" data-id="{$vo.id}" onClick="delfun(this);">删除</a>
- {/eq} <!--<i></i>-->
- {/if}
-
- <!-- <a class="btn blue" href="javascript:void(0);" onclick="copyToClipBoard({$main_adv_list[$vo['id']]['id']|default=$vo['id']}, 1, {$vo['type']})">标签调用</a>-->
- </div>
- </td>
- </tr>
- {/foreach}
- {/empty}
- </tbody>
- </table>
- </div>
- <div class="iDiv" style="display: none;"></div>
- </div>
- {notempty name="list"}
- <div class="tDiv">
- <div class="tDiv2">
- {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
- <div class="fbutton checkboxall"> <input type="checkbox" class="checkAll"> </div>
- {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
- <div class="fbutton">
- <a onclick="batch_del(this, 'ids');" data-url="{:url('ZczsPosition/del')}" class="layui-btn layui-btn-primary">批量删除</a>
- </div>
- {/eq}
- {/if}
- <!-- 分页 -->
- {include file="public/page" /}
- </div>
- <div style="clear:both"></div>
- </div>
- {/notempty}
- </div>
- </div>
-
- <script type="text/javascript">
- $(function() {
- $('input[name*=ids]').click(function() {
- if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
- $('.checkAll').prop('checked', 'checked');
- } else {
- $('.checkAll').prop('checked', false);
- }
- });
- $('input[type=checkbox].checkAll').click(function() {
- $('input[type=checkbox]').prop('checked', this.checked);
- });
- });
-
- $(document).ready(function() {
- // 表格行点击选中切换
- $('#flexigrid > table>tbody >tr').click(function() {
- $(this).toggleClass('trSelected');
- });
-
- // 点击刷新数据
- $('.fa-refresh').click(function() {
- location.href = location.href;
- });
-
- $('#searchForm select[name=type]').change(function(){
- if($(this).val() == 0){
- //重置二级分类
- $('#type2').val(0);
- }
- $('#searchForm').submit();
- });
-
- $('#searchForm select[name=type2]').change(function(){
- $('#searchForm').submit();
- });
-
- $('#searchForm select[name=map]').change(function(){
- $('#searchForm').submit();
- });
-
- });
-
- /**
- * 代码调用js
- * @param id id
- * @param limit 条数
- */
- function copyToClipBoard(id, limit, type) {
- var advstr = '';
- if (1 == type) {
- advstr = "{eyou:adv pid='" + id + "'}\r\n <img src='{$"+"field.litpic}' alt='{$"+"field.title}' />\r\n{/eyou:adv";
- } else if (2 == type) {
- advstr = "{eyou:adv pid='" + id + "'}\r\n <video src='{$"+"field.litpic}' controls preload='auto' oncontextmenu='return fase'></video>\r\n{/eyou:adv";
- } else if (3 == type) {
- advstr = "{eyou:adv pid='" + id + "'}\r\n {$"+"field.intro}\r\n{/eyou:adv";
- }
- var contentdiv = '<div class="dialog_content" style="margin: 0px; padding: 0px;"><dl style="padding:10px 30px;line-height:30px"><dd>标签 adv 调用:</dd>';
- contentdiv += '<textarea rows="4" cols="60" style="width:400px;height:60px;">' + advstr + '}</textarea>';
- contentdiv += '<dd>JavaScript:</dd>';
- contentdiv += '<dd><input type="text" style=" width:400px;" value="<script type="text/javascript" src="http://' + '{$Think.server.http_host}' + '__ROOT_DIR__/index.php?m=api&c=Other&a=other_show&pid=' + id + '&row='+limit+'"><\/script>"></dd>';
- contentdiv += '<dd style="border-top: dotted 1px #E7E7E7; color: #F60;">请将标签adv或JavaScript代码复制并粘贴到对应模板文件中!</dd></dl></div>';
- layer.open({
- title: '代码调用',
- type: 1,
- shade: layer_shade,
- skin: 'layui-layer-demo',
- area: ['480px', '280px'], //宽高
- content: contentdiv
- });
- }
-
- </script>
-
- {include file="public/footer" /}
|