chengkun
2025-05-12 b6bc92ec11e1e280185ce7682d17589cb45c20f3
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
<script>var weburl = '{yun:}$config.sy_weburl{/yun}';</script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/custom_layer.js?v={yun:}$config.cachecode{/yun}"></script>
 
 
<script language="javascript">
 
function checkform(){
    if($("#title").val()=="") { 
          parent.layer.msg('请填写招聘会标题!', 2, 8);
          return (false);
      }        
    var time = $("#time").val();
    if(time==""){
        parent.layer.msg('举办时间不能为空!', 2, 8);
        return false
    }
    $("#zphform").submit();
}
function setStandaside(){
    var zid='{yun:}$info.id{/yun}';
    var sid=$("#sid").val();
    var pytoken=$("#pytoken").val();
    if(sid==""){
        parent.layer.msg("请先选择场地!",2,8);
    }else{
        $.post("index.php?m=zhaopinhui&c=getzhanwei",{sid:sid,zid:zid,pytoken:pytoken},function(data){
            $("#zhanwei").html(data);
            $.layer({
                type : 1,
                title : '设置预留展位',
                offset: ['100px', ''],
                closeBtn : [0 , true], 
                border : [10 , 0.3 , '#000', true],
                area : ['400px','340px'],
                page : {dom : '#Standaside'}
            });
        })
 
    }
}
function check_zhanwei(){
    var chk_value =[];    
    $('input[name="zhanwei"]:checked').each(function(){
        chk_value.push($(this).val());   
    }); 
    $("#reserved").val(chk_value);  
    layer.closeAll();
}
function news_preview(url){
    $(".job_box_div").html("<img src='"+url+"' style='max-width:500px' />");//
     $.layer({
        type : 1,
        title : '查看图片',
        closeBtn : [0 , true],
        offset : ['20%' , '30%'],
        border : [10 , 0.3 , '#000', true],
        area : ['560px','auto'],
        page : {dom : '#news_preview'}
    }); 
}
</script>
 
<style>
* {margin: 0 ;padding: 0;}
body,div{ margin: 0 ;padding: 0;}
</style>
<title>后台管理</title>
<script src="{yun:}$config.sy_weburl{/yun}/js/ueditor/ueditor.config.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/ueditor/ueditor.all.min.js?v={yun:}$config.cachecode{/yun}"></script>
</head>
<body class="body_ifm">
<div class="infoboxp"> 
 
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">管理员根据自己需求,填写该场招聘会常规设置!招聘会名称、日期、举办方、招聘会地址和参与说明等设置。还可以上传招聘会的现场图片等个性化设置。</div>
</div>
</div>
<div class="clear"></div>
 
 
 <div class="tag_box mt10"> 
<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe> 
<form id="zphform" name="myform" target="supportiframe" action="index.php?m=zhaopinhui&c=save" method="post"  encType="multipart/form-data" class="layui-form">
<table width="100%" class="table_form" style="background:#fff;">
 <tr class="admin_table_trbg">
          <th colspan="4" bgcolor="#f0f6fb"><span class="admin_bold">添加招聘会信息</span></th>
    </tr>
    <tr>
        <th width="120">招聘会标题:</th>
        <td>
          <div class="layui-form-item">
            <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="text" name="title" id="title"  lay-verify="required" placeholder="请输入招聘会标题" value="{yun:}$info.title{/yun}" size="60" autocomplete="off" class="layui-input input-text">
              </div>
            </div>
          </div>
        </td>
    </tr>
    <tr class="vip_type_2 admin_table_trbg" >
        <th width="120">举办场地:</th>
        <td>
        {yun:}if $space{/yun}
        
        
        <div class="layui-input-inline" style='float:left'>
          <select name="sid" id='sid'>
            {yun:}if $info.sid{/yun}
               {yun:}foreach item=v from=$space{/yun}
                    {yun:}if $v.id eq $info.sid{/yun}
                    <option value="{yun:}$v.id{/yun}" selected>{yun:}$v.name{/yun}</option>
                    {yun:}else{/yun}
                    <option value="{yun:}$v.id{/yun}" >{yun:}$v.name{/yun}</option>
                    {yun:}/if{/yun}
                {yun:}/foreach{/yun}
            {yun:}else{/yun}
                <option value="">请选择</option>
            {yun:}/if{/yun}
            
            {yun:}if !$info.sid{/yun}
                {yun:}foreach item=v from=$space{/yun}
                    <option value="{yun:}$v.id{/yun}">{yun:}$v.name{/yun}</option>
                {yun:}/foreach{/yun}
            {yun:}/if{/yun}
            
          </select>
        </div>
        <a href="javascript:void(0);" onClick="setStandaside()" class="zph_sz_b">设置预留展位</a>
        <a href="index.php?m=zph_space"  class="zph_sz_b_tjcd">添加场地</a>
        
        <input type="hidden" value="{yun:}$info.reserved{/yun}" id="reserved" name="reserved">
        {yun:}else{/yun}
        <span class="admin_web_tip">
      当前暂无可选场地
   </span>
    
        <a href="index.php?m=zph_space" class="zph_sz_b_tjcd">添加场地</a>
        {yun:}/if{/yun}
        </td>
    </tr>
    <tr  class="admin_table_trbg">
        <th width="120">举办时间:</th>
        <td>
        
        <div class="layui-inline">
          <div class="layui-input-inline">
            <input type="text" class="layui-input input-text" id="time" name="time" value="{yun:}if $info.starttime||$info.endtime{/yun}{yun:}$info.starttime{/yun} ~ {yun:}$info.endtime{/yun}{yun:}/if{/yun}" placeholder="yyyy-MM-dd HH:mm:ss ~ yyyy-MM-dd HH:mm:ss" lay-key="6" size="60">
          </div>
        </div>
        
        </td>
    </tr>
    <tr>
        <th width="120">举办地点:</th>
        <td>
          <div class="layui-form-item">
            <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="text" name="address" id="address"  lay-verify="required" placeholder="请输入举办会场" value="{yun:}$info.address{/yun}" size="60"  autocomplete="off" class="layui-input input-text">
              </div>
            </div>
          </div>
        </td>
    </tr>
     <tr  class="admin_table_trbg">
        <th width="120">交通路线:</th>
        <td>
        
        <div class="layui-form-item">
          <div class="layui-input-block">
          <div class="layui-input-inline">
            <textarea name="traffic" cols="59" rows="3" placeholder="请输入交通路线"   lay-verify="required" class="layui-input input-text"autocomplete="off">{yun:}$info.traffic{/yun}</textarea>
            </div>
          </div>
        </div>
        
        </td>
    </tr>
    <tr>
        <th width="120">联系电话:</th>
        <td>
            
            <div class="layui-form-item">
                <div class="layui-input-block">
                <div class="layui-input-inline">
                  <input type="text" name="phone" id="phone"  lay-verify="required" placeholder="请输入联系电话" value="{yun:}$info.phone{/yun}" size="60" autocomplete="off" class="layui-input input-text" onkeyup="this.value=this.value.replace(/[^0-9-]/g,'')">
                  </div>
                </div>
              </div>
            
            </td>
    </tr>
       <tr  class="admin_table_trbg">
        <th width="120">主办方:</th>
        <td>
        
          <div class="layui-form-item">
            <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="text" name="organizers" id="organizers"  lay-verify="required" placeholder="请输入主办方" value="{yun:}$info.organizers{/yun}" size="60" autocomplete="off" class="layui-input input-text">
              </div>
            </div>
          </div>
        
        </td>
    </tr>
    <tr>
        <th width="120">联系人:</th>
        <td>
        
        
        <div class="layui-form-item">
            <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="text" name="user" id="user"  lay-verify="required" placeholder="请输入联系人" value="{yun:}$info.user{/yun}" size="60" autocomplete="off" class="layui-input input-text">
              </div>
            </div>
          </div>
        
        </td>
    </tr>
   
    <tr>    
        <th width="120">缩略图:</th>
            <td>
                <button type="button" class="yun_bth_pic noupload" lay-data="{imgid: 'imgicon'}">上传图片</button>
                <input type="hidden" id="laynoupload" value="1"/>
            
                <img id="imgicon" src="{yun:}$info.is_themb_n{/yun}" style="width:100px;height:60px;" {yun:}if !$info.is_themb{/yun}class="none"{yun:}/if{/yun}>
              </td>
            </tr>
    <tr>
    <tr>    
        <th width="120">横幅:</th>
            <td>
                <button type="button" class="yun_bth_pic noupload2" lay-data="{imgid: 'imgbanner'}">上传图片</button>
                <img id="imgbanner" src="{yun:}$info.banner_n{/yun}" style="width:200px;height:100px;" {yun:}if !$info.banner{/yun}class="none"{yun:}/if{/yun}>
              </td>
            </tr>
    <tr>
        <th width="120">招聘会介绍:</th>
        <td>
         <script id="content" name="body" type="text/plain" style="width:820px;height:300px;">{yun:}$info.body{/yun}</script>
        </td>
    </tr>
    <tr  class="admin_table_trbg">
        <th width="120">媒体宣传:</th>
        <td>
        <script id="media" name="media" type="text/plain" style="width:820px;height:300px;">{yun:}$info.media{/yun}</script>
        </td>
    </tr>
    <tr>
        <th width="120">服务套餐:</th>
        <td>
         <script id="packages" name="packages" type="text/plain" style="width:820px;height:300px;">{yun:}$info.packages{/yun}</script>
        </td>
    </tr>
     <tr  class="admin_table_trbg">
        <th width="120">展位设置方案:</th>
        <td>
         <script id="booth" name="booth" type="text/plain" style="width:820px;height:300px;">{yun:}$info.booth{/yun}</script>
        </td>
    </tr>
    <tr>
        <th width="120">参与办法:</th>
        <td>
         <script id="participate" name="participate" type="text/plain" style="width:820px;height:300px;">{yun:}$info.participate{/yun}</script>
        </td>
    </tr>
 
        <tr  class="admin_table_trbg">
        <td align="center" colspan="2">
        {yun:}if is_array($info){/yun}
        <input type="hidden" name="id" value="{yun:}$info.id{/yun}" />
        <input class="layui-btn layui-btn-normal" type="button" onclick="checkform()" value="&nbsp;修 改&nbsp;" />
        {yun:}else{/yun}
        <input class="layui-btn layui-btn-normal" type="button" onclick="checkform()" value="&nbsp;添 加&nbsp;" />
        {yun:}/if{/yun}
        <input class="layui-btn layui-btn-normal" type="reset" name="reset" value="&nbsp;重 置 &nbsp;" /></td>
    </tr>
</table>
<input type="hidden" name="pytoken"  id="pytoken" value="{yun:}$pytoken{/yun}">
</form>
</div></div>
<div id="news_preview"  style="display:none;width:560px ">
    <div style="height:300px; overflow:auto;width:560px;" >
        <div class="job_box_div" style="text-align:center;margin-top:10px;"></div>
    </div>
</div>
{yun:}include file="siteadmin/checkdomain.htm"{/yun}
 
<div id="Standaside" style="display:none;">
    <div style=" margin-top:10px;">
    <div id="zhanwei"></div>
  </div>
</div>
<style>
.layui-form-item {
    margin-bottom: 0px;
    clear: both;
}
.layui-form-label {
    width: 60px;
    padding: 9px 1px;
}
</style>
 
<script language="javascript">
    layui.use(['layer', 'form','element','laydate'], function(){
        var layer = layui.layer
        ,form = layui.form
        ,element = layui.element
        ,$ = layui.$;
        var laydate = layui.laydate;
          //时间选择器
          laydate.render({
            elem: '#time'
            ,type: 'datetime'
            ,range:'~'
        });
    });
UE.getEditor('content',{
     toolbars:[[ 'Source','|', 'Undo', 'Redo','Bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'fontfamily', 'fontsize',  'forecolor', 'backcolor', 'removeformat', 'autotypeset', 'pasteplain', '|','insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','simpleupload', '|','link', 'unlink', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],
    wordCount:false,
    elementPathEnabled:false,
    initialFrameHeight:300
});
UE.getEditor('booth',{
     toolbars:[[ 'Source','|', 'Undo', 'Redo','Bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'fontfamily', 'fontsize',  'forecolor', 'backcolor', 'removeformat', 'autotypeset', 'pasteplain', '|','insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','simpleupload', '|','link', 'unlink', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],
    wordCount:false,
    elementPathEnabled:false,
    initialFrameHeight:300
});
UE.getEditor('media',{
     toolbars:[[ 'Source','|', 'Undo', 'Redo','Bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'fontfamily', 'fontsize',  'forecolor', 'backcolor', 'removeformat', 'autotypeset', 'pasteplain', '|','insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','simpleupload', '|','link', 'unlink', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],
    wordCount:false,
    elementPathEnabled:false,
    initialFrameHeight:300
});
UE.getEditor('packages',{
     toolbars:[[ 'Source','|', 'Undo', 'Redo','Bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'fontfamily', 'fontsize',  'forecolor', 'backcolor', 'removeformat', 'autotypeset', 'pasteplain', '|','insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','simpleupload', '|','link', 'unlink', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],
    wordCount:false,
    elementPathEnabled:false,
    initialFrameHeight:300
});
UE.getEditor('participate',{
     toolbars:[[ 'Source','|', 'Undo', 'Redo','Bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'fontfamily', 'fontsize',  'forecolor', 'backcolor', 'removeformat', 'autotypeset', 'pasteplain', '|','insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','simpleupload', '|','link', 'unlink', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],
    wordCount:false,
    elementPathEnabled:false,
    initialFrameHeight:300
});
 
</script>
<script type="text/javascript">
    layui.use('upload', function(){
        var $ = layui.$
            ,upload = layui.upload
            ,layer = layui.layer
            ,device = layui.device();
        
        var laynoupload = $("#laynoupload").val();            //1、选完不上传            
        //选完不上传,url暂未用到,只是需要其样式
        
        if (laynoupload == 1){
            var layfiletype = $("#layfiletype").val();
            //上传文件类型
            if (layfiletype == 2){
                var layaccept = 'file', layexts = 'doc|docx|rar|zip|pdf';
            }else{
                var layaccept = 'images', layexts = 'jpg|png|gif|bmp|jpeg';
            }
            upload.render({
                elem: '.noupload'
                ,auto: false
                ,bindAction: '#test9'   //触发上传的对象,暂未用到
                ,accept: layaccept
                ,exts: layexts
                ,field:'sl'
                ,choose: function(obj){
                    if(this.imgid){
                        //预读本地文件示例,不支持ie8/9
                        var imgid = null,
                            parentid = null;
                        if(this.imgid){
                            imgid = this.imgid;
                        }
                        if(this.parentid){
                            parentid = this.parentid;
                        }
                        obj.preview(function(index, file, result){
                            if (parentid && $('#'+parentid).length>0){
                                $('#'+parentid).removeClass('none');
                                $('#'+imgid).attr('src', result); 
                            }else if(imgid && $('#'+imgid).length>0){
                                $('#'+imgid).removeClass('none');
                                $('#'+imgid).attr('src', result); //图片链接(base64)
                            }
                            
                        });
                    }
                }
            });
            upload.render({
                elem: '.noupload2'
                ,auto: false
                ,bindAction: '#test9'   //触发上传的对象,暂未用到
                ,accept: layaccept
                ,exts: layexts
                ,field:'hf'
                ,choose: function(obj){
                    if(this.imgid){
                        //预读本地文件示例,不支持ie8/9
                        var imgid = null,
                            parentid = null;
                        if(this.imgid){
                            imgid = this.imgid;
                        }
                        if(this.parentid){
                            parentid = this.parentid;
                        }
                        obj.preview(function(index, file, result){
                            if (parentid && $('#'+parentid).length>0){
                                $('#'+parentid).removeClass('none');
                                $('#'+imgid).attr('src', result); 
                            }else if(imgid && $('#'+imgid).length>0){
                                $('#'+imgid).removeClass('none');
                                $('#'+imgid).attr('src', result); //图片链接(base64)
                            }
                            
                        });
                    }
                }
            });
        }
        
    });
 
</script>
</body>
</html>