73e40c64afc63dce2f63c4d8ea362e5b.php
25.5 KB
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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:68:"/www/wwwroot/menhu/public/../application/index/view/index/index.html";i:1576724022;s:61:"/www/wwwroot/menhu/application/index/view/layout/default.html";i:1576722830;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>首页</title>
<link rel="stylesheet" href="/statis/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="/statis/css/base.css">
<link rel="stylesheet" href="/statis/css/index.css">
<link rel="stylesheet" href="/statis/css/public.css">
<link rel="stylesheet" href="/statis/css/swiper.min.css">
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=d6PnuoA0EWXbee3HpVP84MT2GsflcVQk"></script>
<script src="/statis/js/swiper.min.js"></script>
<script src="/statis/js/jquery.js"></script>
<script src="/statis/js/include.js"></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<style>
.top_bg {
width: 100%;
height: 202px;
background-size: 100% 100%;
background-image: url('/statis/image/bg_img.png')
}
.model8 .swiper-button-next {
width: 12px;
height: 25px;
right: 0px;
top: 66px;
background-size: 12px 25px;
background-image: url(/statis/image/icon5.png)
}
.model5_Box .swiper-button-prev {
width: 15px;
height: 30px;
background-size: 15px 30px;
background-image: url(/statis/image/zuo_img.png);
}
.model5_Box .swiper-button-next {
width: 15px;
height: 30px;
background-size: 15px 30px;
background-image: url(/statis/image/you_img.png);
}
</style>
</head>
<body>
<div class="indexBox">
<!-- 顶部 -->
<div class="top_bg">
<div class="top_width">
<!-- 最上面 -->
<div class="top_item clearfix">
<div class="top_itemL clearfix">
<img class="top_itemImg" src="/statis/image/gonggao_img.png" alt="">
<div class="top_itemTxt">公告:<a href="/index/gg/detail?id=<?php echo $titlegg[0]['id']; ?>&style=1"><?php echo $titlegg[0]["title"]; ?></a></div>
</div>
<div class="top_itemR">
<span><a href="/index/index/contactMe">联系我们</a></span>|
<span><a href="/index/release/index">发布留言</a></span>|
<span>添加收藏</span>
</div>
</div>
<!-- 第二部分 -->
<div class="top_item2 clearfix">
<div class="top_item2L clearfix">
<!-- logo -->
<div class="top_item2Img"><img src="/statis/image/logo_icon.png" alt=""></div>
<div class="top_item2Box">
<h2>中关村国联绿色产业服务创新联盟</h2>
<p>Zhongguancun Green Industry Alliance</p>
</div>
</div>
<div class="top_item2R clearfix" style="<?php echo session('login')?'display:none':''; ?>">
<form id="formLog" class="top_item2Form">
<div class="top_formLi">
<label for="">帐号:</label>
<input type="hidden" name="location" id="location2">
<input type="text" name="tel">
</div>
<div class="top_formLi">
<label for="">密码:</label>
<input type="text" name="user_password">
</div>
</form>
<div class="top_item2Box2" >
<div class="top_item2Box3 clearfix">
<div class="top_item2_Txt login">会员登录</div>
<div class="top_item2_img"><img src="/statis/image/qq_icon.png" alt=""></div>
<div class="top_item2_img"><img src="/statis/image/weixin_icon.png" alt=""></div>
</div>
<div class="top_item2Box4">
<a href="/index/login/register">新用户注册</a>
<a href="/index/login/password">密码找回</a>
</div>
</div>
</div>
<div class="top_item2R" style="<?php echo session('login')?'':'display:none'; ?>">
<div class="top_item2Box5 clearfix">
<a href="/index/index/personal">
<div class="top_item2Img2"><img src="<?php echo session('user')['image']==''?'/statis/image/touxiang_imh.png':session('user')['image']; ?>" alt=""></div>
<div class="top_item2Box6">
<div class="top_item2Name one-txt-cut"><?php echo session('user')['user_name']; ?></div>
<div class="top_item2Area one-txt-cut" id="location">天津</div>
</div>
</a>
<a href="/index/gg/index?style=3"><div class="top_item2News">消息<span>(<?php echo $nums; ?>)</span></div></a>
</div>
</div>
</div>
</div>
</div>
<!-- 导航 -->
<div class="nav">
<div class="nav_width">
<div class="nav_imag">
<a href="/">
<img src="/statis/image/zhuye_icon.png" alt="">
</a>
</div>
<div class="nav_List">
<ul>
<?php foreach($menu as $v): ?>
<li data-id="<?php echo $v['id']; ?>" data-url="<?php echo $v['url']; ?>">
<a href="<?php echo $v['url']; ?>?pid=<?php echo $v['id']; ?>" onmouseover="move('<?php echo $v['id']; ?>','<?php echo $v['url']; ?>',this)">
<div class="nav_Txt one-txt-cut"><?php echo $v['title']; ?></div>
</a>
<div class="nav_down">
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<!-- 内容 模块一 -->
<div class="model clearfix">
<div class="model_img"><img src="/statis/image/icon.png" alt=""></div>
<div class="model_List">
<ul>
<?php foreach($banner as $b): ?>
<li data-img="<?php echo $b['image']; ?>">
<p class="txt-cut"><?php echo $b['title']; ?></p>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="model_Box3">
<div class="model_code"><img src="/statis/image/erweima_img.png" alt=""></div>
<div class="model_Box4">
<div class="model_Txt">快捷入口</div>
<ul>
<?php foreach($entry as $news): ?>
<li class="one-txt-cut"><a href="<?php echo $news['url']; ?>" ><?php echo $news['title']; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<!-- 横图 -->
<div class="green_model3 clearfix">
<div class="green_Img2"><img src="<?php echo $advice[0]['image']; ?>" alt=""></div>
<div class="green_Img3"><img src="<?php echo $advice[1]['image']; ?>" alt=""></div>
</div>
<!-- 模块3 -->
<div class="model3 clearfix">
<div class="model3_left">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $newsMenu['first']['title']; ?></div>
<div class="model3_Box">
<?php foreach($newsMenu["two"] as $news): ?>
<a href="<?php echo $news['url']; ?>"><?php echo $news['title']; ?></a>|
<?php endforeach; ?>
</div>
<div class="more">
<a href="<?php echo $newsMenu['first']['url']; ?>?pid=<?php echo $newsMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model3_Box2">
<ul>
<?php foreach($newsList as $news): ?>
<li>
<div class="model3_mode2 clearfix">
<div class="model3_Txt2 one-txt-cut"><span>></span> <?php echo $news['title']; ?></div>
<a href="/index/news/detail?id=<?php echo $news['id']; ?>">[详情]</a>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
<div class="model3_Right">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $internationalMenu['first']['title']; ?></div>
<div class="model3_Box">
<?php foreach($internationalMenu["two"] as $news): ?>
<a href="<?php echo $news['url']; ?>"><?php echo $news['title']; ?></a>|
<?php endforeach; ?>
</div>
<div class="more">
<a href="<?php echo $internationalMenu['first']['url']; ?>?pid=<?php echo $internationalMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model3_List">
<ul class="clearfix">
<?php foreach($internationalList as $news): ?>
<li>
<div class="model3_Img3"><img src="<?php echo $news['image']; ?>" alt=""></div>
<p class="model3_Txt3"><?php echo $news['title']; ?></p>
<a href="/index/international/detail?id=<?php echo $news['id']; ?>" class="model3_Txt4">[详情]</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<!-- 模块4 -->
<div class="model4 clearfix">
<div class="model4_left">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $onlineMenu['first']['title']; ?></div>
<div class="model3_Box">
<?php foreach($onlineMenu["two"] as $news): ?>
<a href="<?php echo $news['url']; ?>"><?php echo $news['title']; ?></a>|
<?php endforeach; ?>
</div>
<div class="more">
<a href="/index/online/index?pid=<?php echo $onlineMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model4_List">
<ul>
<?php if(is_array($onlineList) || $onlineList instanceof \think\Collection || $onlineList instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($onlineList) ? array_slice($onlineList,1,null, true) : $onlineList->slice(1,null, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$news): $mod = ($i % 2 );++$i;?>
<li class="clearfix">
<div class="model4_Img"><img src="<?php echo $news['image']; ?>" alt=""></div>
<div class="model4_Box">
<h1><?php echo $news['title']; ?></h1>
<p class="txt-cut"><?php echo $news['desc']; ?></p>
<a href="/index/online/detail?id=<?php echo $news['id']; ?>">[详情]</a>
</div>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
<?php if(is_array($onlineList) || $onlineList instanceof \think\Collection || $onlineList instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($onlineList) ? array_slice($onlineList,0,1, true) : $onlineList->slice(0,1, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$news): $mod = ($i % 2 );++$i;?>
<div class="model4_right">
<img src="<?php echo $news['image']; ?>" alt="">
<div class="model4_posi"><div class="model4_Txt"><?php echo $news['title']; ?></div></div>
</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<!-- 模块5 -->
<div class="model5 clearfix">
<div class="model5_left">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $expertsMenu['first']['title']; ?></div>
<div class="model3_Box">
<a href=""><?php echo $expertsMenu["two"][0]["title"]; ?></a>
</div>
<div class="more">
<a href="/index/experts/index?pid=<?php echo $expertsMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model5_Box">
<div class="swiper-container2">
<div class="swiper-wrapper">
<?php foreach($experts1List as $news): ?>
<div class="swiper-slide">
<a href="/index/experts/detail?id=<?php echo $news['id']; ?>">
<div class="model5_Img"><img src="<?php echo $news['image']; ?>" alt=""></div>
</a>
<div class="model5_Txt txt-cut"><?php echo $news['desc']; ?></div>
</div>
<?php endforeach; ?>
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
</div>
</div>
<div class="model5_right">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $expertsMenu["two"][1]["title"]; ?></div>
<div class="more">
<a href="/index/experts/index?pid=<?php echo $expertsMenu['two'][1]['id']; ?>">更多</a>
</div>
</div>
<div class="model5_List">
<ul>
<?php foreach($experts2List as $news): ?>
<li class="clearfix">
<p class="one-txt-cut"><?php echo $news['name']; ?>:<?php echo $news['desc']; ?></p>
<a href="/index/experts/detail?id=<?php echo $news['id']; ?>">[详情]</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<!-- 横图 -->
<div class="green_model3 clearfix">
<div class="green_Img2"><img src="<?php echo $advice[2]['image']; ?>" alt=""></div>
<div class="green_Img3"><img src="<?php echo $advice[3]['image']; ?>" alt=""></div>
</div>
<!-- 模块6 -->
<div class="model4 model6 clearfix">
<div class="model4_left">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $invitationMenu['first']['title']; ?></div>
<div class="model3_Box">
<?php foreach($invitationMenu["two"] as $news): ?>
<a href="<?php echo $news['url']; ?>"><?php echo $news['title']; ?></a>|
<?php endforeach; ?>
</div>
<div class="more">
<a href="/index/invitation/index?pid=<?php echo $invitationMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model4_List">
<ul>
<?php if(is_array($invitationList) || $invitationList instanceof \think\Collection || $invitationList instanceof \think\Paginator): $i = 0; $__LIST__ = $invitationList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$news): $mod = ($i % 2 );++$i;?>
<li class="clearfix">
<div class="model4_Img"><img src="<?php echo $news['image']; ?>" alt=""></div>
<div class="model4_Box">
<h1><?php echo $news['title']; ?></h1>
<p class="txt-cut"><?php echo $news['desc']; ?></p>
<a href="/index/invitation/detail?id=<?php echo $news['id']; ?>">[详情]</a>
</div>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
<div class="model5_right">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $talentMenu['first']['title']; ?></div>
<div class="model3_Box">
<?php foreach($talentMenu["two"] as $news): ?>
<a href="<?php echo $news['url']; ?>"><?php echo $news['title']; ?></a>|
<?php endforeach; ?>
</div>
<div class="more">
<a href="<?php echo $talentMenu['first']['url']; ?>?pid=<?php echo $talentMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model5_List">
<ul>
<?php if(is_array($talentList) || $talentList instanceof \think\Collection || $talentList instanceof \think\Paginator): $i = 0; $__LIST__ = $talentList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$news): $mod = ($i % 2 );++$i;?>
<li class="clearfix">
<p class="one-txt-cut"><?php echo $news['title']; ?></p>
<a href="/index/talent/detail?id=<?php echo $news['id']; ?>">[查看简历]</a>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
</div>
<!-- 模块7 -->
<div class="model7 clearfix">
<div class="model7_left">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $standardMenu['first']['title']; ?></div>
<div class="model3_Box">
<?php foreach($standardMenu["two"] as $news): ?>
<a href="<?php echo $news['url']; ?>"><?php echo $news['title']; ?></a>|
<?php endforeach; ?>
</div>
<div class="more">
<a href="<?php echo $standardMenu['first']['url']; ?>?pid=<?php echo $standardMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model5_List">
<ul>
<?php foreach($standardList as $news): ?>
<li class="clearfix">
<p class="one-txt-cut"><?php echo $news['title']; ?></p>
<a href="/index/news/down?url=<?php echo $news['downfile']; ?>"> [点击下载]</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
<div class="model7_Right">
<div class="model3_leftTop clearfix">
<div class="model3_Txt1"><?php echo $huiyuanMenu['first']['title']; ?></div>
<div class="model3_Box">
<?php foreach($huiyuanMenu["two"] as $news): ?>
<a href="<?php echo $news['url']; ?>"><?php echo $news['title']; ?></a>|
<?php endforeach; ?>
</div>
<div class="more">
<a href="<?php echo $huiyuanMenu['first']['url']; ?>?pid=<?php echo $huiyuanMenu['first']['id']; ?>">更多</a>
</div>
</div>
<div class="model5_List">
<ul>
<?php if(is_array($huiyuanList) || $huiyuanList instanceof \think\Collection || $huiyuanList instanceof \think\Paginator): $i = 0; $__LIST__ = $huiyuanList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$news): $mod = ($i % 2 );++$i;?>
<li class="clearfix">
<p class="one-txt-cut"><?php echo $news['title']; ?></p>
<a href="/index/huiyuan/detail?id=<?php echo $news['id']; ?>">[详情]</a>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
</div>
<!-- 模块8 --轮播 -->
<div class="model8 clearfix">
<div class="model8_Txt">友情链接</div>
<div class="swiper-container">
<div class="swiper-wrapper">
<?php foreach($links as $link): ?>
<div class="swiper-slide">
<a href="<?php echo $link['link']; ?>">
<img src=<?php echo $link['image']; ?> alt="">
</a>
</div>
<?php endforeach; ?>
</div>
<div class="swiper-button-next"></div>
</div>
</div>
<script>
var swiper = new Swiper('.swiper-container2', {
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
slidesPerView: 4,
paginationClickable: true,
spaceBetween: 22,
// loop: true
});
var swiper = new Swiper('.swiper-container', {
nextButton: '.swiper-button-next',
slidesPerView: 5,
paginationClickable: true,
spaceBetween: 20,
// loop: true
});
$('.model_List ul li').mouseover(function() {
$('.model_img').find('img').attr('src', $(this).data('img'))
});
</script>
<!-- footer -->
<footer class="footer">
<div class="footer_top">
<div class="footer_width">
<div class="footer_Txt">
|<?php foreach($menu as $v): ?>
<a href="<?php echo $v['url']; ?>?pid=<?php echo $v['id']; ?>">
<span><?php echo $v['title']; ?></span>|
</a>
<?php endforeach; ?>
</div>
<p class="footer_Txt2">版权所有:<span>中关村国联绿色产业服务创新联盟</span></p>
<p class="footer_Txt2">北京市大兴区同济中路甲7号院</p>
<p class="footer_Txt2">京ICP备05052419号</p>
</div>
</div>
<div class="footer_bot"></div>
</footer>
<script>
$("#location").html(returnCitySN["cname"]);
$("#location1").html(returnCitySN["cname"]);
$("#location2").val(returnCitySN["cname"]);
</script>
</div>
</body>
</html>
<script>
$(".login").on("click",function () {
var data=$("#formLog").serialize();
ajax("/index/login/login",data,"post",function (res) {
w(res.msg);
if(res.code==200){
setTimeout(function () {
location.href="/index/index/index";
},500)
}
},"false");
})
function move(id,href,e) {
var data={'id':id};
ajax("/index/index/menu",data,"post",function (res) {
if(res.msg!=""){
console.log(1212);
var msg=res.msg;
var html='';
for(var i=0;i<msg.length;i++){
var href1=href+"?pid="+msg[i].id;
html+='<div class="nav_Txt2">'+
' <a class="one-txt-cut" href="'+href1+'">'+msg[i].title+'</a>'+
'</div>'+
''+
'';
}
$(e).parent().find(".nav_down").html(html);
}
},"false");
}
$('.nav_List ul li').mouseover(function() {
console.log($(this));
// move($(this).data("id"),$(this).data("url"),this);
$(this).find('.nav_down').stop().slideDown(300).parents('li').siblings().find('.nav_down').stop().slideUp(300);
}).mouseout(function() {
$(this).find('.nav_down').stop().slideUp(300);
})
</script>