chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
    <div class="admin_mainbody"> 
    {yun:}include file="$comstyle/left.htm"{/yun}
        <div class="com_tit"><span class="com_tit_span">企业资料</span>
            <div class="com_topbth_box">
                <a href="{yun:}url m=company c=show id='`$uid`'{/yun}" target="_blank" class="com_ylbth">预览主页</a>
 
            </div>
            <div class="com_topbth_box"><input class="com_topbth_input" onclick="location.href='index.php?c=news&act=add'" type="button" value="添加新闻"></div>
 
            <form action="index.php" method="get">
                <div class="joblist_search">
                    <div class="joblist_search_box">
                        <input name="c" type="hidden" value="news">
                        <input name="keyword" type="text" class="joblist_search_box_text" placeholder="请输入新闻关键字">
                        <input name="" type="submit" class="joblist_search_bth" value=" ">
                    </div>
                </div>
            </form>
 
            <div class=right_box>
                <div class=vip_boxshow>
                    <div class="vip_boxshow_c">
                        <div class="zllist ">
                            <div class="report_uaer_list_h1">编辑公司信息</div>
                            <div class="report_uaer_list_p">能获得更多求职者的青睐</div>
                            <ul>
                                <li><a href="index.php?c=info">基本信息</a></li>
                                <li><a href="index.php?c=info&act=side">补充信息</a></li>
                                <li><a href="index.php?c=show"> 公司相册</a></li>
                                <li><a href="index.php?c=uppic"> 公司LOGO</a></li>
                                <li><a href="index.php?c=product">产品介绍</a></li>
                                <li class="zlcur"><a href="index.php?c=news">公司资讯</a></li>
                                <li><a href="index.php?c=map">公司地图</a></li>
                                <li><a href="index.php?c=comtpl">个性化模板</a></li>
                            </ul>
                        </div>
                        <div class="vip_box" style="margin-top: 0px;">
                            <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                            <form action="{yun:}$now_url{/yun}&act=del" method="post" target="supportiframe" id='myform' class='layui-form'>
                                <div id="job_checkbokid">
                                    <div class="com_tablebox">
                                        <table class="com_table">
                                            {yun:}if $rows{/yun}
                                            <tr>
                                                <th width="20">&nbsp;</th>
                                                <th>新闻标题</th>
                                                <th>添加时间</th>
                                                <th>状态 </th>
                                                <th width="200">操作</th>
                                            </tr>
                                            {yun:}/if{/yun}
                                            {yun:}foreach item=v from=$rows{/yun}
                                            <tr>
                                                <td><input class="job_news_input" type="checkbox" name="delid[]" value="{yun:}$v.id{/yun}" lay-skin="primary"></td>
                                                <td><a href="{yun:}url m=company c=newsshow id='`$uid`' nid='`$v.id`'{/yun}" target="_blank">{yun:}$v.title{/yun}</a></td>
                                                <td align="center">{yun:}$v.ctime|date_format:'%Y-%m-%d'{/yun} </td>
                                                <td align="center">
                                                    {yun:}if $v.status=="0"{/yun}
                                                    <span class="wate_verify">等待审核</span>
                                                    {yun:}elseif $v.status=="1"{/yun} 
                                                    <span class="y_verify">已审核</span>
                                                    {yun:}elseif $v.status=="2"{/yun} 
                                                    <span class="n_verify">未通过</span>
                                                    <span class="com_show_b_line">|</span>
                                                    <a class="job_news_reason" href="javascript:;" onclick="show_msg('{yun:}$v.id{/yun}')">原因</a>
                                                    {yun:}/if{/yun}
                                                </td>
                                                <td>
                                                    <a href="{yun:}url m=company c=newsshow id=$uid nid=$v.id{/yun}" target="_blank" class=" com_bth cblue">预览</a>
                                                    <a href="index.php?c=news&act=edit&id={yun:}$v.id{/yun}" class=" com_bth cblue">修改</a> 
                                                    <a href="javascript:void(0)" class=" com_bth cblue" onclick="layer_del('确定要删除该新闻?','index.php?c=news&act=del&id={yun:}$v.id{/yun}')">删除</a>
                                                </td>
                                            </tr>
                                            {yun:}foreachelse{/yun}
 
                                            {yun:}if $smarty.get.keyword!=""{/yun}
                                            <tr>
                                                <td colspan="8" class="table_end">
                                                    <div class="msg_no">没有搜索相关资讯。</div>
                                                </td>
                                            </tr>
                                            {yun:}else{/yun}
                                            <tr>
                                                <td colspan="8" class="table_end">
                                                    <div class="com_msg_no">
                                                        <p class="com_msg_no_name">未添加资讯信息</p>
                                                        <p>添加资讯信息有利于宣传企业文化信息</p>
                                                        <a href="index.php?c=news&act=add" class="com_msg_no_bth com_submit">点击添加</a>
                                                    </div>
                                                </td>
                                            </tr>
                                            {yun:}/if{/yun}
 
                                            {yun:}/foreach{/yun}
 
                                            {yun:}if $rows{/yun}
                                            <tr>
                                                <td colspan="8" class="table_end">
                                                    <div class="com_Release_job_bot"> 
                                                        <span class="com_Release_job_qx">
                                                            <input id='checkAll' type="checkbox" lay-filter="allcom" lay-skin="primary"> 全选
                                                        </span>
                                                        <input class='c_btn_02' type="button" name="subdel" value="批量删除" onclick="return really('delid[]');">
                                                    </div>
                                                    <div class="diggg">{yun:}$pagenav{/yun}</div>
                                                </td>
                                            </tr>
                                            {yun:}/if{/yun}
                                        </table>
                                    </div>
                                </div>
                            </form>
                            <div class="clear"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form', 'layer', 'laydate'], function() {
        var $ = layui.$,
            form = layui.form,
            layer = layui.layer;
        form.on('checkbox(allcom)', function(data) {
            $("input[name='delid[]']").each(function() {
                this.checked = data.elem.checked;
            });
            form.render('checkbox');
        });
    });
 
    function show_msg(id) {
        $.post("index.php?c=news&act=show", {
            id: id
        }, function(data) {
            if (data) {
                data = eval('(' + data + ')');
                $("#msgs").html(data.statusbody);
                $.layer({
                    type: 1,
                    title: '查看原因',
                    closeBtn: [0, true],
                    border: [10, 0.3, '#000', true],
                    area: ['400px', 'auto'],
                    page: {
                        dom: "#showmsg"
                    }
                });
            }
        });
    }
</script>
<div id="showmsg" style="display:none; width: 400px;">
    <div>
        <div id="infobox">
            <div class="admin_Operating_sh" style="padding:10px 20px; min-height: 100px; ">
 
                审核未通过原因:<span id="msgs"></span>
 
            </div>
        </div>
    </div>
</div>
{yun:}include file="$comstyle/footer.htm"{/yun}