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
<?php /* Smarty version Smarty-3.1.21-dev, created on 2025-04-16 17:15:25
         compiled from "E:\ishangstudywebs\zhaopin\app\template\admin\crm_index.htm" */ ?>
<?php /*%%SmartyHeaderCode:3050967ff752d33a068-70160748%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e8eb7d27f330b71c0eb944709c031f8cdc47c231' => 
    array (
      0 => 'E:\\ishangstudywebs\\zhaopin\\app\\template\\admin\\crm_index.htm',
      1 => 1643012867,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3050967ff752d33a068-70160748',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'config' => 0,
    'month' => 0,
    'pytoken' => 0,
    'time' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_67ff752d376011_95009486',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ff752d376011_95009486')) {function content_67ff752d376011_95009486($_smarty_tpl) {?><!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
 
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link href="images/reset.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css"/>
    <link href="images/system.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css"/>
    <link href="images/table_form.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css"/>
    <link href="images/workspace.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css"/>
    <link href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/css/layui.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet"/>
 
    <?php echo '<script'; ?>
 src="../js/jquery-1.8.0.min.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="js/admin_public.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="js/crm.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
 
    <title>后台管理</title>
 
</head>
 
<body style="overflow:auto">
 
<div class="infoboxp">
 
    <form class='layui-form'>
 
        <div class="crm_newly_build">
            <div class="crm_newly_build_tit"><span class="crm_newly_build_tit_n">快速新建</span></div>
            <table class="crm_newly_build_table">
                <tr>
                    <td>
                        <div class="crm_newly_build_list crm_newly_build_listkh" id="newCustomer"><i class="crm_newly_build_icon"></i>录用户</div>
                    </td>
                    <td>
                        <div class="crm_newly_build_list crm_newly_build_listgj CrmnewFollow"><i class="crm_newly_build_icon"></i>写跟进</div>
                    </td>
                    <td>
                        <div class="crm_newly_build_list crm_newly_build_listdd" id="newDeal"><i class="crm_newly_build_icon"></i>录订单</div>
                    </td>
                    <td>
                        <div class="crm_newly_build_list crm_newly_build_listrw CrmnewTask"><i class="crm_newly_build_icon"></i>建任务</div>
                    </td>
                    <td>
                        <div class="crm_newly_build_list crm_newly_build_listrz" id="newWorkLog"><i class="crm_newly_build_icon"></i>写日志</div>
                    </td>
                </tr>
            </table>
        </div>
 
        <div style="display: flex;">
            <div class="crm_left">
 
                <div class="crm_mypre">
                    <div class="crm_newly_build_tit_news">
                        <span class="crm_newly_build_tit_n">消息提醒</span>
                    </div>
 
                    <div class="crm_newly_build_body">
                        <div class="crm_msg_tx">
                            <div class="crm_msg_tx_c"><span>今日待跟进</span>
                                <a href="index.php?m=crm_customer&self=1&nextFtime=1" class="crm_msg_tx_n"><span id="todayFollowNum">0</span></a>
                            </div>
                        </div>
 
                        <div class="crm_msg_tx">
                            <div class="crm_msg_tx_c"><span>过期未续费</span>
                                <a href="index.php?m=crm_customer&self=1&vipetime=5" class="crm_msg_tx_n"><span id="vipedNum">0</span></a>
                            </div>
                        </div>
 
                        <div class="crm_msg_tx">
                            <div class="crm_msg_tx_c">
                                <span>15天内到期</span>
                                <a href="index.php?m=crm_customer&self=1&vipetime=3" class="crm_msg_tx_n"><span id="willDownNum">0</span></a>
                            </div>
                        </div>
 
                        <div class="crm_msg_tx">
                            <div class="crm_msg_tx_c"><span>从未跟进</span>
                                <a href="index.php?m=crm_customer&self=1&lastFtime=1" class="crm_msg_tx_n"><span id="noFollowNum">0</span></a>
                            </div>
                        </div>
                    </div>
                </div>
 
                <div class="crm_mypre">
                    <div class="crm_newly_build_tit_news">
                        <span class="crm_newly_build_tit_n">释放客户提醒</span>
                    </div>
                    <div class="crm_mytx">
                        <div id="crmHtml"></div>
                    </div>
                </div>
 
                <div class="crm_mypre">
                    <div class="crm_newly_build_tit_news">
                        <span class="crm_newly_build_tit_n">我的简报</span>
 
                        <div class="layui-input-inline">
                            <select name="jbtime" lay-filter='jbtime'>
                                <option value="1" <?php if ($_GET['jbtime']==1) {?>selected<?php }?>>今天</option>
                                <option value="2" <?php if ($_GET['jbtime']==2) {?>selected<?php }?>>昨天</option>
                                <option value="3" <?php if ($_GET['jbtime']==3) {?>selected<?php }?>>本周</option>
                                <option value="4" <?php if ($_GET['jbtime']==4||!$_GET['jbtime']) {?>selected<?php }?>>本月</option>
                            </select>
                        </div>
                    </div>
 
                    <div class="crm_newly_build_body">
                        <div class="crm_mypre_datalist">
                            <div class="fz14 panel-banner-box-title"></i>新增客户</div>
                            <div class="fz20">
                                <?php if ($_GET['jbtime']) {?>
                                    <a href="index.php?m=crm_customer&self=1&jbtime=<?php echo $_GET['jbtime'];?>
" class='newKh'>0</a>
                                <?php } else { ?>
                                    <a href="index.php?m=crm_customer&self=1&jbtime=4" class='newKh'>0</a>
                                <?php }?>
                            </div>
                        </div>
                        <div class="crm_mypre_datalist">
                            <div class="fz14 panel-banner-box-title">联系跟进</div>
                            <div class="fz20">
                                <?php if ($_GET['jbtime']) {?>
                                    <a href="index.php?m=crm_concern&day=<?php echo $_GET['jbtime'];?>
" class='newFollow'>0</a>
                                <?php } else { ?>
                                    <a href="index.php?m=crm_concern&day=4" class='newFollow'>0</a>
                                <?php }?>
                            </div>
                        </div>
                        <div class="crm_mypre_datalist">
                            <div class="fz14 panel-banner-box-title">成交金额</div>
                            <div class="fz20">
                                <a href="index.php?m=crm_my_performance&c=amount" class='totalDealPrice'>0</a>
                            </div>
                        </div>
                        <div class="crm_mypre_datalist">
                            <div class="fz14 panel-banner-box-title">成交订单</div>
                            <div class="fz20">
                                <a href="index.php?m=crm_my_performance&c=amount" class='orderNum'>0</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="crm_right">
                <div class="crm_mypre_ranking_list" style="position: relative; padding-bottom:30px;">
                    <div class="crm_newly_build_tit" style="padding:0px 0px 5px 10px">
                        <span class="crm_newly_build_tit_n">新增客户排行榜<span id="khM" class="data_box"><?php echo $_smarty_tpl->tpl_vars['month']->value;?>
</span></span>
                        <span class="data_boxtime" id="khTime" style="cursor:pointer;"><input type="text" autocomplete="false" placeholder="年月" style="cursor:pointer;"/></span>
                    </div>
                    <div class="crm_space_box crm_space_box_ml">
                        <div class="crm_space_boxtableall" id="khTable">
                            <table class="crm_space_boxtablelist">
                            </table>
                        </div>
                    </div>
                </div>
                <div class="crm_mypre_ranking_list" style="position: relative; padding-bottom:30px;">
                    <div class="crm_newly_build_tit" style="padding:0px 0px 5px 10px">
                        <span class="crm_newly_build_tit_n">月成交金额榜<span id="jeM" class="data_box"><?php echo $_smarty_tpl->tpl_vars['month']->value;?>
</span></span>
                        <span class="data_boxtime" id="jeTime" style="cursor:pointer;"> <input type="text" autocomplete="false" placeholder="年月" style="cursor:pointer;"/></span>
                    </div>
                    <div class="crm_space_box crm_space_box_ml">
                        <div class="crm_space_boxtableall" id="jeTable">
                            <table class="crm_space_boxtablelist">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
 
</div>
 
<input type="hidden" name="pytoken" id="pytoken" value="<?php echo $_smarty_tpl->tpl_vars['pytoken']->value;?>
"/>
<input type="hidden" id="handel_status" value=""/>
 
<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');"
        style="display:none"></iframe>
 
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/layui.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/phpyun_layer.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
 
<?php echo '<script'; ?>
 type="text/javascript">
 
    var weburl = "<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
";
    var pytoken = $('#pytoken').val();
 
    var xxUrl = "index.php?m=crm_index&c=getNotice";
    var jbUrl = "index.php?m=crm_index&c=getWorkReport";
    var khbUrl = "index.php?m=crm_index&c=getKhb";
    var jebUrl = "index.php?m=crm_index&c=getJeb";
 
    var Ytime  = "<?php echo $_smarty_tpl->tpl_vars['time']->value;?>
";
 
    layui.use(['form', 'laydate', 'element'], function () {
        var form = layui.form
            , element = layui.element
            , laydate = layui.laydate
            , $ = layui.$;
 
        laydate.render({
            elem: '#khTime'
            , type: 'month'
            , value: Ytime
            , done: function (value, date) {
                $('#khM').html('('+date.month+'月)');
                Ytime = value;
                $.post(khbUrl, {pytoken: pytoken, time: Ytime}, function (result) {
                    if (result) {
                        var result = eval('(' + result + ')');
                        var data = result.data;
                        var khbHtml = '<table class="crm_space_boxtablelist">';
 
                        if (data.length > 0) {
 
                            for (var i = 0; i < data.length; i++) {
                                if(i < 10) {
                                    var j = i + 1;
                                    khbHtml += '<tr>';
                                    khbHtml += '<td style="width: 5%;"> ' + j + '</td>';
                                    khbHtml += '<td> ' + data[i].name + '</td>';
                                    khbHtml += '<td style="width: 10%; text-align: right;"><a href="'+data[i].url+'">' + data[i].khnum + '</a></td>';
                                    khbHtml += '</tr>';
                                }
                            }
                        }
                        khbHtml += '<table>';
                        khbHtml += '<div>';
                        khbHtml += '<span style="color: #707070;position: absolute;right: 20;bottom: 20px;">总计 : '+result.total+'</span>';
                        khbHtml += '</div>';
 
                        $('#khTable').html(khbHtml);
                    }
                });
            }
        });
        laydate.render({
            elem: '#jeTime'
            , type: 'month'
            , value: Ytime
            , done: function (value, date) {
                $('#jeM').html('('+date.month+'月)');
                Ytime = value;
                $.post(jebUrl, {pytoken: pytoken, time: Ytime}, function (result) {
 
                    if (result) {
                        var result = eval('(' + result + ')');
                        var data = result.data;
 
                        var jebHtml = '<table class="crm_space_boxtablelist">';
 
                        if (data.length > 0) {
 
                            for (var i = 0; i < data.length; i++) {
                                if(i < 10) {
                                    var j = i + 1;
                                    jebHtml += '<tr>';
                                    jebHtml += '<td style="width: 5%;"> ' + j + '</td>';
                                    jebHtml += '<td> ' + data[i].name + '</td>';
                                    jebHtml += '<td style="width: 10%; text-align: right;"><a href="'+data[i].url+'">' + data[i].total + '</a></td>';
                                    jebHtml += '</tr>';
                                }
                            }
                        }
                        jebHtml += '</table>';
                        jebHtml += '<div>';
                        jebHtml += '<span style="color: #707070;position: absolute;right: 20;bottom: 20px;">总计 : '+result.total+'</span>';
                        jebHtml += '</div>';
 
                        $('#jeTable').html(jebHtml);
                    }
                });
            }
        });
 
        form.on('select(jbtime)', function (data) {
            $.post(jbUrl, {pytoken: pytoken, time: data.value}, function (data) {
                if (data) {
                    var data = eval('(' + data + ')');
 
                    $('.newFollow').html(data.followNum);
                    $('.newKh').html(data.khNum);
                    $('.totalDealPrice').html(data.orderDealPrice);
                    $('.orderNum').html(data.orderNum);
                }
            });
        });
        $.post(jbUrl, {pytoken: pytoken, time: 4}, function (data) {
            if (data) {
                var data = eval('(' + data + ')');
 
                $('.newFollow').html(data.followNum);
                $('.newKh').html(data.khNum);
                $('.totalDealPrice').html(data.orderDealPrice);
                $('.orderNum').html(data.orderNum);
            }
        });
 
        $.post(xxUrl, {pytoken: pytoken}, function (data) {
            if (data) {
                var data = eval('(' + data + ')');
 
 
                $('#todayFollowNum').html(data.todayFollowNum);
                $('#vipedNum').html(data.vipedNum);
                $('#willDownNum').html(data.willDoneNum);
                $('#noFollowNum').html(data.noFollowNum);
 
                if (data.html) {
                    $('#crmHtml').html(data.html);
                }
            }
        });
 
        $.post(khbUrl, {pytoken: pytoken, time: Ytime}, function (result) {
            if (result) {
                var result = eval('(' + result + ')');
                var data = result.data;
                var khbHtml = '<table class="crm_space_boxtablelist">';
 
                if (data.length > 0) {
 
                    for (var i = 0; i < data.length; i++) {
                        if(i < 10) {
                            var j = i + 1;
                            khbHtml += '<tr>';
                            khbHtml += '<td style="width: 5%;"> ' + j + '</td>';
                            khbHtml += '<td> ' + data[i].name + '</td>';
                            khbHtml += '<td style="width: 10%; text-align: right;"><a href="'+data[i].url+'">' + data[i].khnum + '</a></td>';
                            khbHtml += '</tr>';
                        }
                    }
                }
                khbHtml += '</table>';
                khbHtml += '<div>';
                khbHtml += '<span style="color: #707070;position: absolute;right: 20;bottom: 20px;">总计 : '+result.total+'</span>';
                khbHtml += '</div>';
 
                $('#khTable').html(khbHtml);
            }
        });
 
        $.post(jebUrl, {pytoken: pytoken, time: Ytime}, function (result) {
            if (result) {
                var result = eval('(' + result + ')');
                var data = result.data;
 
                var jebHtml = '<table class="crm_space_boxtablelist">';
 
                if (data.length > 0) {
 
                    for (var i = 0; i < data.length; i++) {
                        if(i < 10) {
                            var j = i + 1;
                            jebHtml += '<tr>';
                            jebHtml += '<td style="width: 5%;"> ' + j + '</td>';
                            jebHtml += '<td> ' + data[i].name + '</td>';
                            jebHtml += '<td style="width: 10%; text-align: right;"><a href="'+data[i].url+'">' + data[i].total + '</a></td>';
                            jebHtml += '</tr>';
                        }
                    }
                    jebHtml += '</table>';
                    jebHtml += '<div>';
                    jebHtml += '<span style="color: #707070;position: absolute;right: 20;bottom: 20px;">总计 : '+result.total+'</span>';
                    jebHtml += '</div>';
                }
 
                $('#jeTable').html(jebHtml);
            }
        });
 
    });
<?php echo '</script'; ?>
>
 
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['adminstyle']->value)."/crm_public.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 
 
</body>
 
</html><?php }} ?>