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
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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
<?php /* Smarty version Smarty-3.1.21-dev, created on 2025-04-16 17:09:56
         compiled from "E:\ishangstudywebs\zhaopin\app\template\default\ajax\login.htm" */ ?>
<?php /*%%SmartyHeaderCode:977067ff73e499ec84-30792585%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6f71af4e84b724c5fcef767654693754e83199de' => 
    array (
      0 => 'E:\\ishangstudywebs\\zhaopin\\app\\template\\default\\ajax\\login.htm',
      1 => 1643012866,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '977067ff73e499ec84-30792585',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'usertype' => 0,
    'member' => 0,
    'config' => 0,
    'username' => 0,
    'yqnum' => 0,
    'lookNum' => 0,
    'expectnum' => 0,
    'company' => 0,
    'addjobnum' => 0,
    'lt' => 0,
    'reg_com_url' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_67ff73e4a0a3f8_31999956',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ff73e4a0a3f8_31999956')) {function content_67ff73e4a0a3f8_31999956($_smarty_tpl) {?><?php if (!is_callable('smarty_function_url')) include 'E:\\ishangstudywebs\\zhaopin\\app\\include\\libs\\plugins\\function.url.php';
?><?php if ($_smarty_tpl->tpl_vars['usertype']->value=="1") {?>  
<div class="login_ok">
    <div class="login_ok_user">
        <div class="login_ok_user_photo"><img width="60" height="60" src="<?php echo $_smarty_tpl->tpl_vars['member']->value['photo'];?>
" onerror="showImgDelay(this,'<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_ossurl'];?>
/<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_member_icon'];?>
',2);"> </div>
        <?php if ($_smarty_tpl->tpl_vars['member']->value['name']) {?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['member']->value['name'];?>
</div>
        <?php } else { ?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</div>
        <?php }?>
        <div class="login_ok_hi">欢迎回来</div>
    </div>
    <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=invite"><span class="login_ok_n"><?php if ($_smarty_tpl->tpl_vars['yqnum']->value=='') {?>0<?php } else {
echo $_smarty_tpl->tpl_vars['yqnum']->value;
}?></span><div class="login_ok_name">面试通知</div></a></div>
    <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=favorite"><span class="login_ok_n"><?php if ($_smarty_tpl->tpl_vars['member']->value['fav_jobnum']<1) {?>0<?php } else {
echo $_smarty_tpl->tpl_vars['member']->value['fav_jobnum'];
}?></span><div class="login_ok_name">收藏记录</div></a></div>
    <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=look"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['lookNum']->value;?>
 </span><div class="login_ok_name">企业看过</div></a></div>
    <div class="login_ok_mune"><div class="login_ok_mune_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=resume"><i class="login_ok_mune_icon"></i>我的简历</a></div><div class="login_ok_mune_list"><a <?php if ($_smarty_tpl->tpl_vars['config']->value['user_number']>$_smarty_tpl->tpl_vars['expectnum']->value||$_smarty_tpl->tpl_vars['config']->value['user_number']=='') {?>href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=expect&act=add"<?php } else { ?>href="javascript:void(0)" onclick="layer.msg('你的简历数已经达到系统设置的简历数了',2,8);return false;"<?php }?>><i class="login_ok_mune_icon login_ok_mune_icon_cj"></i>创建简历</a></div><div class="login_ok_mune_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=atn"><i class="login_ok_mune_icon login_ok_mune_icon_gz"></i>关注记录</a></div>
        <div class="login_ok_member"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php" class="login_ok_member_bth">进入管理中心</a>
            <a href="javascript:void(0);" onclick="logout('<?php echo smarty_function_url(array('c'=>'logout'),$_smarty_tpl);?>
');" class="login_ok_member_bthtc">退出登录</a>
        </div>
    </div>
</div>
 
<?php } elseif ($_smarty_tpl->tpl_vars['usertype']->value=="2") {?>
<div class="login_ok">
    <div class="login_ok_user">
        <div class="login_ok_user_photo"><img width="60" height="60" src="<?php echo $_smarty_tpl->tpl_vars['company']->value['logo'];?>
"  onerror="showImgDelay(this,'<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_ossurl'];?>
/<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_unit_icon'];?>
',2);"> </div>
        <?php if ($_smarty_tpl->tpl_vars['company']->value['name']) {?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['company']->value['name'];?>
</div>
        <?php } else { ?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</div>
        <?php }?>
        <div class="login_ok_hi">欢迎登录</div>
    </div>
    <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=hr"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['company']->value['sq_job'];?>
</span><div class="login_ok_name">收到简历</div></a></div>
    <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=msg"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['company']->value['msgnum'];?>
</span><div class="login_ok_name">求职咨询</div></a></div>
    <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=look_job"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['company']->value['look_jobnum'];?>
</span><div class="login_ok_name">谁看过我</div></a></div>
 
    <div class="login_ok_mune">
        <div class="login_ok_mune_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=job&w=1"><i class="login_ok_mune_icon"></i>职位管理</a></div>
        <div class="login_ok_mune_list"><a href="javascript:void(0)"  onclick="addJobIndex('<?php echo $_smarty_tpl->tpl_vars['addjobnum']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_job'];?>
','<?php echo $_smarty_tpl->tpl_vars['config']->value['com_integral_online'];?>
','<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_proportion'];?>
');return false;"><i class="login_ok_mune_icon login_ok_mune_icon_cj"></i>发布职位</a></div><div class="login_ok_mune_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=attention_me"><i class="login_ok_mune_icon login_ok_mune_icon_gz"></i>关注记录</a></div>
        <div class="login_ok_member">
            <a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php" class="login_ok_member_bth">进入管理中心</a>
            <a href="javascript:void(0);" onclick="logout('<?php echo smarty_function_url(array('c'=>'logout'),$_smarty_tpl);?>
');" class="login_ok_member_bthtc">退出登录</a>
        </div>
    </div>
</div>
 
<?php } elseif ($_smarty_tpl->tpl_vars['usertype']->value=="3") {?>
<div class="login_ok">
    <div class="login_ok_user">
        <div class="login_ok_user_photo"><img width="60" height="60"  src="<?php echo $_smarty_tpl->tpl_vars['lt']->value['photo'];?>
" onerror="showImgDelay(this,'<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_ossurl'];?>
/<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_lt_icon'];?>
',2);"> </div>
        <?php if ($_smarty_tpl->tpl_vars['lt']->value['realname']) {?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['lt']->value['realname'];?>
</div>
        <?php } else { ?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</div>
        <?php }?>
        <div class="login_ok_hi">欢迎登录</div>
    </div>
    <div class="login_ok_n_listbox">
        <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=entrust_resume"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['lt']->value['entrust'];?>
</span><div class="login_ok_name">委托简历</div></a></div>
        <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=down_resume"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['lt']->value['lt_status2'];?>
</span><div class="login_ok_name">下载简历</div></a></div>
    </div>
    <div class="login_ok_mune">
        <div class="login_ok_mune_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=job&s=1"><i class="login_ok_mune_icon"></i>职位管理</a></div><div class="login_ok_mune_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=search_resume"><i class="login_ok_mune_icon login_ok_mune_icon_cj"></i>搜索简历</a></div>
        <div class="login_ok_mune_list"><a href="javascript:void(0)"  onclick="addJobIndex('<?php echo $_smarty_tpl->tpl_vars['addjobnum']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_job'];?>
','<?php echo $_smarty_tpl->tpl_vars['config']->value['com_integral_online'];?>
','<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_proportion'];?>
');return false;"><i class="login_ok_mune_icon login_ok_mune_icon_cj"></i>发布职位</a></div>
        <div class="login_ok_member">
            <a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php" class="login_ok_member_bth">进入管理中心</a>
            <a href="javascript:void(0);" onclick="logout('<?php echo smarty_function_url(array('c'=>'logout'),$_smarty_tpl);?>
');" class="login_ok_member_bthtc">退出登录</a>
        </div>
    </div>
</div>
 
<?php } elseif ($_smarty_tpl->tpl_vars['usertype']->value=="4") {?>
 
<div class="login_ok">
    <div class="login_ok_user">
        <div class="login_ok_user_photo"><img width="60" height="60"  src="<?php echo $_smarty_tpl->tpl_vars['member']->value['logo'];?>
" onerror="showImgDelay(this,'<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_ossurl'];?>
/<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_member_icon'];?>
',2);"> </div>
        <?php if ($_smarty_tpl->tpl_vars['member']->value['name']) {?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['member']->value['name'];?>
</div>
        <?php } else { ?>
        <div class="login_ok_username">hi , <?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</div>
        <?php }?>
        <div class="login_ok_hi">欢迎登录</div>
    </div>
    <div class="login_ok_n_listbox">
        <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=sign_up&status=2"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['member']->value['baoming'];?>
</span><div class="login_ok_name">待联系</div></a></div>
        <div class="login_ok_n_list"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=message&status=1"><span class="login_ok_n"><?php echo $_smarty_tpl->tpl_vars['member']->value['zixun'];?>
</span><div class="login_ok_name">待回复</div></a></div>
    </div>
    
    <div class="login_ok_mune">
        <div class="login_ok_mune_list" style="width:32%"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=subject"><i class="login_ok_mune_icon"></i>课程管理</a></div><div class="login_ok_mune_list" style="width:32%"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=team"><i class="login_ok_mune_icon login_ok_mune_icon_cj"></i>讲师管理</a></div>
        <div class="login_ok_mune_list" style="width:32%"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=sign_up"><i class="login_ok_mune_icon login_ok_mune_icon_gz"></i>预约名单</a></div>
        <div class="login_ok_member"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php" class="login_ok_member_bth">管理中心</a><a href="javascript:void(0);" onclick="logout('<?php echo smarty_function_url(array('c'=>'logout'),$_smarty_tpl);?>
');" class="login_ok_member_bthtc">退出登录</a></div>
    </div>
</div>
<?php } else { ?>
    
    <!--登录-->
    <div class="hp_login_tit">
    
        <input type="hidden" name="act" id="ajaxact_login" value="0"/>
        
        <ul class="login_box_h_list">
            <?php if ($_smarty_tpl->tpl_vars['config']->value['sy_msg_isopen']==1&&$_smarty_tpl->tpl_vars['config']->value['sy_msg_login']==1) {?>
            <li id="ajaxmobile_login" class="">手机登录<i></i></li>
            <?php }?>
            <li id="ajaxacount_login" class="login_box_h_list_cur"><i></i>账号登录</li>
            
        </ul>
        
        <?php if ($_smarty_tpl->tpl_vars['config']->value['wx_author']=='1') {?>
        <div class="indexwxcode_login" id="ajaxindexwxcode_login" title="微信扫一扫登录" style="display:block;"></div>
        <div class="indexnormal_login none" title="普通登录"></div>
        <?php }?>
    </div>
    
    <!--微信登录-->
    <div class="indexwx_login_show none">
        <div style="padding-top:40px;">
            <div class="fast_login_index">
                 <div id="ajaxwx_login_qrcode" class="indexwxlogintext">正在获取二维码...</div>
                <div id="ajaxwx_sx" class="none">
                    <div class="fast_login_index_sxbox"><a href="javascript:void(0);" onclick="ajaxgetwxcode()" class="fast_login_index_sxicon"></a>二维码失效点击刷新</div>
                </div>
            </div>
             <div class="indexwxlogintxt">请使用微信扫一扫登录</div>
        </div>
    </div>    
    <!--微信登录 end-->
    
    <!--账号登录-->
    <div id="login_normal">
        <div class="login_normal_box" id="ajaxlogin_normal_box">
            <div class="hp_login_hy"> <i class="hp_login_hy_icon fl"></i><i class="hp_login_line"></i>
                  <input class="hp_login_hy_but fl" type="text" id="ajaxusername" name="ajaxusername" value="邮箱/手机号/用户名" placeholder="邮箱/手机号/用户名" autocomplete="off"/>
                  <div class="index_logoin_msg none" id="ajaxshow_name">
                    <div class="index_logoin_msg_tx">请填写用户名</div>
                    <div class="index_logoin_msg_icon"></div>
                  </div>
            </div>
            <div class="hp_login_hy"> 
                <i class="hp_login_mm_icon fl"></i> <i class="hp_login_line"></i>
                <input type="text" id="password2" value="请输入密码" class="hp_login_hy_but fl">
                <input type="password" id="ajaxpassword" name="ajaxpassword" class="hp_login_hy_but fl none" value="" placeholder="请输入密码">
                  <div class="index_logoin_msg none" id="ajaxshow_pass">
                    <div class="index_logoin_msg_tx">请填写密码</div>
                    <div class="index_logoin_msg_icon"></div>
                  </div>
            </div>
        </div>
        
        <div class="clear"></div>
        
        <!--手机动态码登录-->
        <?php if ($_smarty_tpl->tpl_vars['config']->value['sy_msg_isopen']==1&&$_smarty_tpl->tpl_vars['config']->value['sy_msg_login']==1) {?>
        <div class="login_sj_box none" id="ajaxlogin_sj_box">
              <div class="hp_login_hy">
                <i class="hp_login_sj_icon fl"></i><i class="hp_login_line"></i>
                  <input name="username" id="ajaxusermoblie" type="text" class="hp_login_hy_but hp_login_mm_but" value="请输入手机号码" autocomplete="off"/>
                  <div class="index_logoin_msg none" id="ajaxshow_mobile">
                      <div class="index_logoin_msg_tx" >请填写正确手机号</div>
                      <div class="index_logoin_msg_icon"></div>
                  </div>
              </div>
        </div>
        <div class="clear"></div>
        <?php }?>
        
        
        
        <div class="clear"></div>
        <div class="login_sj_box none" id="ajaxlogin_sjyz_box">
            <div class="hp_login_hy">
                 <i class="hp_login_mm_icon fl"></i><i class="hp_login_line"></i>
                  <input name="password" type="text" class="login_m_text" id="ajaxdynamiccode" value="短信动态码" autocomplete="off"/>
                  <div class="index_logoin_msg none" id="ajaxshow_dynamiccode">
                      <div class="index_logoin_msg_tx" >请填写短信动态码</div>
                      <div class="index_logoin_msg_icon"></div>
                  </div>
                  <?php if ($_smarty_tpl->tpl_vars['config']->value['code_kind']==1&&strpos($_smarty_tpl->tpl_vars['config']->value['code_web'],"前台登录")!==false) {?>
                  <a href="javascript:void(0);" class=" hp_login_hy_send" id="ajaxsend_msg_tip" onclick="imgCodeShow('2');">发送动态码</a>
                  <?php } else { ?>
                  <a href="javascript:void(0);" class=" hp_login_hy_send" id="ajaxsend_msg_tip" onclick="ajaxsend_msg('<?php echo smarty_function_url(array('m'=>'login','c'=>'sendmsg'),$_smarty_tpl);?>
');">发送动态码</a>
                  <?php }?>
              </div>
        </div>
        <div class="hp_login_lg">
            <?php if ($_smarty_tpl->tpl_vars['config']->value['code_kind']==1&&strpos($_smarty_tpl->tpl_vars['config']->value['code_web'],"前台登录")!==false) {?>
                  <input class="hp_login_lg_but" type="button" value="立即登录" onclick="imgCodeShow('1');"/>
              <?php } else { ?>
                  <input class="hp_login_lg_but" type="button" id="check_ajaxlogin" value="立即登录" onclick="check_ajaxlogin('<?php echo smarty_function_url(array('m'=>'login','c'=>'loginsave'),$_smarty_tpl);?>
','vcode_imgs');"/>
              <?php }?>
        </div>
        <div class="clear"></div>
        <div class="hp_login_rg fl"> 
        
               
            <a href="<?php echo smarty_function_url(array('m'=>'forgetpw'),$_smarty_tpl);?>
" class="hp_login_rg_r fl">忘记密码</a>
            <span class="hp_login_rg_l fr"  ><a href="<?php echo $_smarty_tpl->tpl_vars['reg_com_url']->value;?>
">注册账号</a></span>
        </div>    
        
        <?php if ($_smarty_tpl->tpl_vars['config']->value['sy_qqlogin']==1||$_smarty_tpl->tpl_vars['config']->value['sy_sinalogin']==1||$_smarty_tpl->tpl_vars['config']->value['wx_author']==1) {?>
         
            <?php if ($_smarty_tpl->tpl_vars['config']->value['sy_qqlogin']==1) {?>
                <a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/qqlogin.php" class="frist_loginqq">QQ登录</a>
            <?php }?> 
            <?php if ($_smarty_tpl->tpl_vars['config']->value['sy_sinalogin']==1) {?>
                <a href="<?php echo smarty_function_url(array('m'=>'sinaconnect'),$_smarty_tpl);?>
" class=" frist_loginsl">新浪登录</a>
            <?php }?> 
        <?php }?>
    
    </div>
    
<?php }?>
 
<style>#label{height:34px; line-height:34px;border:1px solid #e6e6e6}</style>
 
 
<!-- -----------------图片验证码弹框  Start-------------------- -->
<div class="" id="imgCodeDiv" style="display:none;">
<div style="width:300px; padding-top:10px; padding-bottom:30px;">
    <div class="tw_yz_box">请输入图片验证码</div>
    <div class="tw_yz_c">
        <div class="tw_yz_boxtext"><input type="text" id="ajaxtxt_CheckCode" name="authcode" value="验证码" class="tw_yz_boxinp" maxlength="6" autocomplete="off"/></div>
        <div class="tw_yz_boximg"><a href="javascript:void(0);" onclick="checkCode('vcode_imgs');"><img id="vcode_imgs" src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/app/include/authcode.inc.php" class=""> 换一张</a></div>
        <div class="index_logoin_msg none" id="ajaxshow_code">
            <div class="index_logoin_msg_tx">请填写验证码</div>
            <div class="index_logoin_msg_icon"></div>
          </div>
          <div id="btnDiv"></div>         
    </div>
</div>
</div>
<!-- -----------------图片验证码弹框  End-------------------- -->
 
<?php echo '<script'; ?>
>
var ajaxsetval,
    ajaxsetwout;
var sy_login_type = '<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_login_type'];?>
';
$(document).ready(function(){
    //账号登录和手机登录tab选择
    $('#ajaxacount_login').click(function(data){
        $('#ajaxacount_login').removeClass().addClass('login_box_h_list_cur');
        $('#ajaxmobile_login').removeClass();
        $('#ajaxlogin_normal_box').show();
        $('#ajaxlogin_sj_box').hide();
        $('#ajaxlogin_sjyz_box').hide();
        $('#ajaxact_login').val('0');
        $('#bind-captcha').attr('data-id','sublogin');
    });
    $('#ajaxmobile_login').click(function(data){
        $('#ajaxmobile_login').removeClass().addClass('login_box_h_list_cur');
        $('#ajaxacount_login').removeClass();
        $('#ajaxlogin_sj_box').show();
        $('#ajaxlogin_sjyz_box').show();
        $('#ajaxlogin_normal_box').hide();
        $('#ajaxact_login').val('1');
        $('#bind-captcha').attr('data-id','ajaxsend_msg_tip');
    });
    $("#ajaxusername,#ajaxtxt_CheckCode,#ajaxusermoblie,#ajaxdynamiccode").focus(function(){
        var txAreaVal = $(this).val();
        if( txAreaVal == this.defaultValue){$(this).val("");}
    }).blur(function(){
        var txAreaVal = $(this).val();
        if( txAreaVal == this.defaultValue||$(this).val()==""){$(this).val(this.defaultValue);}
    }).keydown(function (e) {
        var ev = document.all ? window.event : e;
        if (ev.keyCode == 13) {
            check_ajaxlogin('<?php echo smarty_function_url(array('m'=>'login','c'=>'loginsave'),$_smarty_tpl);?>
','vcode_imgs');
        } else { return;}
    });
    $("#password2").focus(function(){
        $("#ajaxpassword").show();
        $("#ajaxpassword").focus();
        $("#password2").hide();
    })
    $("#ajaxpassword").blur(function(){
        if($("#ajaxpassword").val()==""){
            $("#password2").show();
            $("#ajaxpassword").hide();
        }
    }).keydown(function (e) {
        var ev = document.all ? window.event : e;
        if (ev.keyCode == 13) {
            check_ajaxlogin('<?php echo smarty_function_url(array('m'=>'login','c'=>'loginsave'),$_smarty_tpl);?>
','vcode_imgs');
        } else { return; }
    });
    
    $('#ajaxindexwxcode_login').click(function(data){
        $('#ajaxindexwxcode_login').hide();
        $('.indexnormal_login').show();
        $('#login_normal').hide();
        $('.login_box_h_list').hide();
        $('.indexwx_login_show').show();
        ajaxgetwxcode();
    });
    $('.indexnormal_login').click(function(data){
        $('#ajaxindexwxcode_login').show();
        $('.indexnormal_login').hide();
        $('#login_normal').show();
        $('.login_box_h_list').show();
        $('.indexwx_login_show').hide();
        if(ajaxsetval){
            clearInterval(ajaxsetval);
            ajaxsetval = null;
        }
        if(ajaxsetwout){
            clearTimeout(ajaxsetwout);
            ajaxsetwout = null;
        }
    });
 
    if(sy_login_type=='2' && $('#ajaxmobile_login')){
        $('#ajaxmobile_login').trigger("click");
    }
});
function ajaxgetwxcode(){
    $.post('<?php echo smarty_function_url(array('m'=>'login','c'=>'wxlogin'),$_smarty_tpl);?>
',{t:1},function(data){
        if(data==0){
            $('#ajaxwx_login_qrcode').html('二维码获取失败..');
        }else{
            $('#ajaxwx_login_qrcode').html('<img src="'+data+'" width="100" height="100">');
            ajaxsetval = setInterval("ajaxwxorderstatus()", 2000); 
            ajaxsetwout = setTimeout(function(){
                clearInterval(ajaxsetval);
                ajaxsetval = null;
                var ajaxwx_sx = $("#ajaxwx_sx").html();
                $('#ajaxwx_login_qrcode').html(ajaxwx_sx);
            },300*1000);
        }
    });
}
function ajaxwxorderstatus() { 
    $.post('<?php echo smarty_function_url(array('m'=>'login','c'=>'getwxloginstatus'),$_smarty_tpl);?>
',{t:1},function(data){
        
        var data=eval('('+data+')');
        if(data.url!='' && data.msg!=''){
            clearInterval(ajaxsetval);
            ajaxsetval = null;
            layer.msg(data.msg, 2, 9,function(){window.location.href=data.url;});
        }else if(data.url){
            window.location.href=data.url;
        }
    });
}
function jobaddurl(num,integral_job){ 
    var gourl= weburl+'/member/index.php?c=jobadd';
        checkType = 'addjob';
 
    var url = weburl + '/index.php?m=ajax&c=ajax_day_action_check';
        $.post(url,
            {'type': checkType},
            function(data){
                data = eval('(' + data + ')');
                if(data.status == -1){
                    layer.msg(data.msg, 2, 8);
                }else if(data.status == 1){
                    if(num==1){
                        window.location.href=gourl;
                        window.event.returnValue = false;
                        return false;
                    }else if(num==2){
                        var msg='套餐已用完,您可以<a href="'+weburl+'/member/index.php?c=right&act=added" style="color:red;">购买增值包</a>!是否继续?';
                        layer.confirm(msg, function(){
                            layer.closeAll();
                            window.location.href=weburl+"/member/index.php?c=right&act=added"; 
                            
                        });
                    }else if(num==0){
                        var msg='会员已到期,您可以<a href="'+weburl+'/member/index.php?c=right" style="color:red">购买会员</a>!是否继续?';
 
                        layer.confirm(msg, function(){
                            window.location.href=weburl+"/member/index.php?c=right"; 
                        });  
                         
                     }
                }
            }
        );
     
}
 
function imgCodeShow(type){
    var act_login=$("#ajaxact_login").val();
    var username='';
    var password='';
    if (act_login==0) {
        username=$("#ajaxusername").val();
        if(username=="" || username=="用户名"|| username=="邮箱/手机号/用户名"){ 
            $("#ajaxshow_name").show();
            $("#ajaxusername").focus(
                function(){
                   $("#ajaxshow_name").hide();
                }
            );
            return false;
        }else{
            $("#ajaxshow_name").hide();
        }
        password=$("#ajaxpassword").val();
        if(password==""){
            $("#ajaxshow_pass").show();
            $("#ajaxpassword").focus(
                function(){
                    $("#ajaxshow_pass").hide();
                }
            );
            return false;
        }else{
            $("#ajaxshow_pass").hide();
        }
 
    }else{
        username = $('#ajaxusermoblie').val();
        ajaxcheckmoblie(username);
    }
 
    if(type == '1'){
         $("#btnDiv").html("<input type='submit' value='确定' class='yz_bth' onclick='check_ajaxlogin(\"<?php echo smarty_function_url(array('m'=>'login','c'=>'loginsave'),$_smarty_tpl);?>
\", \"vcode_imgs\");' />");
    }else if(type == '2'){
        $("#btnDiv").html("<input type='submit' value='确定'class='yz_bth'  onclick='ajaxsend_msg(\"<?php echo smarty_function_url(array('m'=>'login','c'=>'sendmsg'),$_smarty_tpl);?>
\");' />");
    }
    checkCode('vcode_imgs');
    layer.open({
        type: 1,
        title: '安全验证',
        closeBtn: 1,
        border: [10, 0.3, '#000', true],
        area: ['auto', 'auto'],
        content: $("#imgCodeDiv"),
        cancel: function(){
            window.location.reload();
        }
    });
 }
 
function check_ajaxlogin(url,img,num){
 
    var act_login=$("#ajaxact_login").val();
      var referurl=$("#referurl").val();
    var username='';
    var password='';
    
    if (act_login==0) {
        username=$("#ajaxusername").val();
        if(username=="" || username=="用户名"|| username=="邮箱/手机号/用户名"){ 
            $("#ajaxshow_name").show();
            $("#ajaxusername").focus(
                function(){
                   $("#ajaxshow_name").hide();
                }
            );
            return false;
        }else{
            $("#ajaxshow_name").hide();
        }
        password=$("#ajaxpassword").val();
        if(password==""){
            $("#ajaxshow_pass").show();
            $("#ajaxpassword").focus(
                function(){
                    $("#ajaxshow_pass").hide();
                }
            );
            return false;
        }else{
            $("#ajaxshow_pass").hide();
        }
 
 
    }else{
        
        username = $('#ajaxusermoblie').val();
        ajaxcheckmoblie(username);
        password= $('#ajaxdynamiccode').val();
        if(password=="" || password=="短信动态码"){
            
            $("#ajaxshow_dynamiccode").show();
            $("#ajaxdynamiccode").focus(
                function(){
                    $("#ajaxshow_dynamiccode").hide();
                }
            );
            return false;
        }else{
            $("#ajaxshow_dynamiccode").hide();
        }
    }
 
    
    var verify_token = '';
    var authcode = '';
    var codesear=new RegExp('前台登录');
    if(codesear.test(code_web) && act_login==0){
        if(code_kind==1){
            if(exitsid("ajaxtxt_CheckCode")){
                authcode=$("#ajaxtxt_CheckCode").val();
                if(authcode==""||authcode=="验证码"){
                    $("#ajaxshow_code").show();
                    $("#ajaxtxt_CheckCode").focus(
                        function(){
                            $("#ajaxshow_code").hide();
                        }
                    );
                    return false;
                }else{
                    $("#ajaxshow_code").hide();
                }
            }
        }else if(code_kind > 2){
            verify_token = $('input[name="verify_token"]').val();
            $('#bind-captcha').attr('data-id','check_ajaxlogin');
            if(verify_token ==''){
                $("#bind-submit").trigger("click");
                
                
                return false;
            }
        }
    }
    if($("input[name=loginname]").attr("checked")=='checked'){
        var loginname=7;
    }else{
        var loginname=0;
    }
    var path=$("#path").val();
    var loadIndex = layer.load('登录中,请稍候...');
    $.post(url,{act_login:act_login,num:num,referurl:referurl,username:username,password:password,path:path,loginname:loginname,authcode:authcode,verify_token:verify_token},function(data){ 
    layer.close(loadIndex);
        
        var jsonObject = eval("(" + data + ")"); 
        if(jsonObject.error == '3'){
            $('#uclogin').html(jsonObject.msg);
            setTimeout("window.location.href='"+jsonObject.url+"';",500); 
        }else if(jsonObject.error == '2'){
            $('#uclogin').html(jsonObject.msg); 
            setTimeout("window.location.href='"+jsonObject.url+"';",500); 
        }else if(jsonObject.error == '1'){             
            window.location.href=jsonObject.url; window.event.returnValue = false;return false;
        }else if(jsonObject.error == '0'){
            layer.msg(jsonObject.msg, 2, 8,function(){ 
                if(jsonObject.url){
                    window.location.href=jsonObject.url; 
                    window.event.returnValue = false;return false;
                }else{
                    if(code_kind==1){
                        checkCode(img);
                        return false;
                    }else if(code_kind>2){
                         $("#popup-submit").trigger("click");
                        return false;
                    
                    }
                }
            }); 
            
        }
    });
    $("#ajaxtxt_CheckCode").val('');
}
function ajaxcheckmoblie(moblie){
    if(!checkmoblie(moblie)){ 
        $("#ajaxshow_mobile").show();
        $("#ajaxusermobile").focus(
            function(){
               $("#ajaxshow_mobile").hide();
            }
        );
        return false;
    }else{
        $("#ajaxshow_mobile").hide();
        return true;
    }
}
 
//发送手机短信
function ajaxsend_msg(url) {
    parent.layer.closeAll();
    var moblie = $('#ajaxusermoblie').val();
    if (!ajaxcheckmoblie(moblie)) {
        return false;
    }
    var verify_token = '';
    var code = '';
 
    var showCodeCheck = code_web.indexOf('前台登录');
    if (showCodeCheck >= 0) {
        if (code_kind == 1) {
            if ($("#ajaxtxt_CheckCode").length > 0) {
 
                code = $.trim($("#ajaxtxt_CheckCode").val());
                if (!code || code == '验证码') {
                    layer.msg('图片验证码不能为空!', 2, 8);
                    return false;
                }
            }
        } else if (code_kind > 2) {
            verify_token = $('input[name="verify_token"]').val();
 
            if (verify_token == '') {
 
                $("#bind-submit").trigger("click");
                return false;
            }
        }
    }
    if (smsTimer_time == smsTimer_flag) {
        Timer = setInterval("smsTimer($('#ajaxsend_msg_tip'))", smsTime_speed);
        layer.load('执行中,请稍候...', 0);
        $.post(url, {
            moblie: moblie, code: code,
            verify_token: verify_token
        }, function (data) {
            layer.closeAll('loading');
            if (data) {
                var res = JSON.parse(data);
                if (res.error != 1) {
                    clearInterval(Timer);
                }
                var icon = res.error == 1 ? 9 : 8;
                layer.msg(res.msg, 2, icon, function () {
                    if (res.error != 1) {
                        clearInterval(Timer);
                        if (code_kind == 1) {
                            checkCode('vcode_imgs');
                        } else if (code_kind > 2) {
                            $("#popup-submit").trigger("click");
                        }
                    } else {
                        if (code_kind == 1 && showCodeCheck >= 0) {
                            $('.hp_login_lg_but').attr('onclick', "check_ajaxlogin('<?php echo smarty_function_url(array('m'=>'login','c'=>'loginsave'),$_smarty_tpl);?>
','vcode_imgs');");
                        }
                    }
                });
            }
        })
    } else {
        layer.msg('请勿重复发送!', 2, 8);
        return false;
    }
}
<?php echo '</script'; ?>
><?php }} ?>