Subversion Repositories SmartDukaan

Rev

Rev 36201 | Rev 36570 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36201 Rev 36566
Line 6... Line 6...
6
          content="width=device-width, initial-scale=1, maximum-scale=1">
6
          content="width=device-width, initial-scale=1, maximum-scale=1">
7
    <meta name="description" content="Smart Dukaan Partner Dashboard">
7
    <meta name="description" content="Smart Dukaan Partner Dashboard">
8
    <meta name="author" content="smartdukaan">
8
    <meta name="author" content="smartdukaan">
9
    <meta name="google-signin-client_id"
9
    <meta name="google-signin-client_id"
10
          content="$googleApiKey">
10
          content="$googleApiKey">
11
    <meta name="referer" content="no-referer">
-
 
12
    <meta name="referrer" content="no-referrer">
11
    <meta name="referrer" content="no-referrer">
13
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
-
 
14
    <link rel="shortcut icon" href="assets/images/icons/favicon.png">
12
    <link rel="shortcut icon" href="assets/images/icons/favicon.png">
15
 
13
 
16
    <title>Smart Dukaan - Partner Dashboard</title>
14
    <title>Smart Dukaan - Partner Dashboard</title>
17
 
15
 
18
    <!-- Bootstrap CSS -->
16
    <!-- vendor css -->
19
    <!-- bootstrap theme -->
17
    <link href="resources/css/elegant-icons-style.css" rel="stylesheet">
20
    <!--external css-->
18
    <link href="resources/css/font-awesome.min.css" rel="stylesheet">
-
 
19
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"
-
 
20
          integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ"
21
    <!-- font icon -->
21
          crossorigin="anonymous">
22
    <link href="resources/css/elegant-icons-style.css" rel="stylesheet"/>
22
    <link href="resources/css/bootstrap.css" rel="stylesheet">
23
    <link href="resources/css/font-awesome.min.css" rel="stylesheet"/>
23
    <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet">
24
    <!-- full calendar css-->
24
    <link href="resources/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
25
    <!-- owl carousel -->
-
 
26
    <link rel="stylesheet" href="resources/css/owl.carousel.css"
25
    <link href="resources/css/owl.carousel.css" rel="stylesheet">
27
          type="text/css">
-
 
28
    <link href="resources/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
26
    <link href="resources/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
-
 
27
    <link href="resources/css/datatables.bootstrap.min.css" rel="stylesheet">
-
 
28
    <link href="resources/css/bootstrap-multiselect.css" rel="stylesheet">
-
 
29
    <link href="resources/css/bootstrap-duallistbox.css" rel="stylesheet">
-
 
30
    <link href="resources/css/bootstrap-tagsinput.css" rel="stylesheet">
-
 
31
    <link href="resources/js/daterangepicker/daterangepicker.css" rel="stylesheet">
-
 
32
    <link href="resources/js/chosen.min.css" rel="stylesheet">
-
 
33
    <link href="resources/css/multi.min.css?v=${cssVersion}" rel="stylesheet">
-
 
34
    <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet">
-
 
35
 
29
    <!-- Custom styles -->
36
    <!-- app css -->
30
    <link href="resources/css/widgets.css" rel="stylesheet">
37
    <link href="resources/css/widgets.css" rel="stylesheet">
31
    <link href="resources/css/multi.min.css?v=${cssVersion}" type="text/css"
-
 
32
          rel="stylesheet">
-
 
33
    <link href="resources/css/style.css?v=${cssVersion}" rel="stylesheet">
38
    <link href="resources/css/style.css?v=${cssVersion}" rel="stylesheet">
34
    <link href="resources/css/card.css?v=${cssVersion}" rel="stylesheet">
39
    <link href="resources/css/card.css?v=${cssVersion}" rel="stylesheet">
35
    <link href="resources/css/style-responsive.css" rel="stylesheet"/>
40
    <link href="resources/css/style-responsive.css?v=${cssVersion}" rel="stylesheet">
36
    <link href="resources/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
-
 
37
    <link type="text/css" href="resources/css/bootstrap.css"
-
 
38
          rel="stylesheet">
-
 
39
    <!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" />-->
-
 
40
    <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet">
-
 
41
    <link rel="stylesheet" type="text/css"
-
 
42
          href="resources/js/daterangepicker/daterangepicker.css"/>
-
 
43
    <link rel="stylesheet" type="text/css"
-
 
44
          href="resources/js/chosen.min.css"/>
-
 
45
    <link href="resources/css/bootstrap-duallistbox.css" rel="stylesheet"/>
-
 
46
    <link rel="stylesheet" type="text/css"
-
 
47
          href="resources/css/bootstrap-multiselect.css"/>
-
 
48
    <link rel="stylesheet" type="text/css"
-
 
49
          href="resources/css/datatables.bootstrap.min.css"/>
-
 
50
    <link rel='stylesheet'
-
 
51
          href='https://use.fontawesome.com/releases/v5.7.0/css/all.css'
-
 
52
          integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ'
-
 
53
          crossorigin='anonymous'>
-
 
54
    <link rel="stylesheet" type="text/css" href="resources/css/bootstrap-tagsinput.css">
-
 
55
    <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
41
    <script src="https://apis.google.com/js/platform.js?onload=onLoad" async defer></script>
56
    <script>
42
    <script>
57
        function signOut() {
43
        function signOut() {
58
            var auth2 = gapi.auth2.getAuthInstance();
44
            var auth2 = gapi.auth2.getAuthInstance();
59
            auth2.signOut().then(function () {
45
            auth2.signOut().then(function () {
60
                window.location.href = "${rc.contextPath}/logout";
46
                window.location.href = "${rc.contextPath}/logout";
Line 68... Line 54...
68
                gapi.auth2.init();
54
                gapi.auth2.init();
69
            });
55
            });
70
        }
56
        }
71
    </script>
57
    </script>
72
 
58
 
73
    <style type="text/css">
-
 
74
        .select2-container {
-
 
75
            display: block !important;
-
 
76
        }
-
 
77
 
-
 
78
        #sidebar {
-
 
79
            z-index: 999;
-
 
80
        }
-
 
81
 
-
 
82
        .loading {
-
 
83
            display: none;
-
 
84
        }
-
 
85
 
-
 
86
        .breadcrumb {
-
 
87
            padding: 0 15px;
-
 
88
        }
-
 
89
 
-
 
90
        .stars-outer {
-
 
91
            display: inline-block;
-
 
92
            position: relative;
-
 
93
            font-family: 'Mukta', FontAwesome, Hind;
-
 
94
        }
-
 
95
 
-
 
96
        .stars-outer::before {
-
 
97
            content: "\f006 \f006 \f006 \f006 \f006";
-
 
98
        }
-
 
99
 
-
 
100
        .stars-inner {
-
 
101
            position: absolute;
-
 
102
            top: 0;
-
 
103
            left: 0;
-
 
104
            white-space: nowrap;
-
 
105
            overflow: hidden;
-
 
106
            width: 0;
-
 
107
        }
-
 
108
 
-
 
109
        .stars-inner::before {
-
 
110
            content: "\f005 \f005 \f005 \f005 \f005";
-
 
111
            color: #f8ce0b;
-
 
112
        }
-
 
113
 
-
 
114
        .table-striped > tbody > tr:nth-child(odd) > td {
-
 
115
            background: white;
-
 
116
            background-color: #dae5f4;
-
 
117
        }
-
 
118
 
-
 
119
        .table-striped > tbody > tr:nth-child(even) > td {
-
 
120
            background: #f2f2f2;
-
 
121
            background-color: #b8d1f3;
-
 
122
        }
-
 
123
 
-
 
124
        .btn:hover {
-
 
125
            color: grey;
-
 
126
            text-decoration: none;
-
 
127
        }
-
 
128
 
-
 
129
        .btn-primary:hover {
-
 
130
            color: grey;
-
 
131
            text-decoration: none;
-
 
132
        }
-
 
133
 
-
 
134
        .sale-details {
-
 
135
            cursor: pointer;
-
 
136
        }
-
 
137
 
-
 
138
        .popover {
-
 
139
            min-width: 18%;
-
 
140
        }
-
 
141
 
-
 
142
        .fa-2x {
-
 
143
            font-size: 1.4em;
-
 
144
        }
-
 
145
 
-
 
146
        .cover {
-
 
147
            object-fit: cover;
-
 
148
            width: 100%;
-
 
149
            height: 90px;
-
 
150
            padding: 8px;
-
 
151
        }
-
 
152
 
-
 
153
        .info-box .notifications i {
-
 
154
            display: inline-block;
-
 
155
            margin-top: 0px;
-
 
156
            height: 25px;
-
 
157
            font-size: 16px;
-
 
158
            line-height: 25px;
-
 
159
            width: 25px;
-
 
160
            float: none;
-
 
161
            text-align: center;
-
 
162
            padding-right: 0px;
-
 
163
            color: #768399;
-
 
164
        }
-
 
165
 
-
 
166
        #preview {
-
 
167
            position: relative;
-
 
168
            color: #fff;
-
 
169
            float: left;
-
 
170
            width: 100%;
-
 
171
            -webkit-border-radius: 10px;
-
 
172
            -moz-border-radius: 10px;
-
 
173
            border-radius: 10px;
-
 
174
            clear: both;
-
 
175
        }
-
 
176
 
-
 
177
        #canvas-preview {
-
 
178
            width: 100%;
-
 
179
            position: relative;
-
 
180
            top: -15px;
-
 
181
        }
-
 
182
 
-
 
183
        #preview-textfield {
-
 
184
            position: absolute;
-
 
185
            top: -10px;
-
 
186
            left: 0;
-
 
187
            right: 0;
-
 
188
            text-align: center;
-
 
189
            font-size: 2em;
-
 
190
            font-weight: bold;
-
 
191
            color: white;
-
 
192
            font-family: 'Amaranth', sans-serif, 'Mukta';
-
 
193
        }
-
 
194
 
-
 
195
    </style>
-
 
196
 
-
 
197
    <style>
-
 
198
        .team-messages {
-
 
199
            background: #fff;
-
 
200
            padding: 10px;
-
 
201
            margin-top: 10px;
-
 
202
            border-radius: 8px;
-
 
203
            margin-bottom: 4px;
-
 
204
            border: 1px solid #dae4f5;
-
 
205
        }
-
 
206
 
-
 
207
        .team-messages p {
-
 
208
            margin-bottom: 4px;
-
 
209
        }
-
 
210
 
-
 
211
        .tm-title {
-
 
212
            font-size: 17px;
-
 
213
            font-weight: 500;
-
 
214
            margin: 5px;
-
 
215
        }
-
 
216
 
-
 
217
        .tm-subtitle {
-
 
218
            font-size: 12px;
-
 
219
            color: #888;
-
 
220
            margin-bottom: 8px;
-
 
221
        }
-
 
222
 
-
 
223
        .timeline-wrapper {
-
 
224
            position: relative;
-
 
225
            padding-top: 5px;
-
 
226
            height: 670px;
-
 
227
            overflow: auto;
-
 
228
        }
-
 
229
 
-
 
230
        .timeline-row {
-
 
231
            display: flex;
-
 
232
            align-items: flex-start;
-
 
233
            margin-bottom: 8px;
-
 
234
        }
-
 
235
 
-
 
236
        .timeline-time {
-
 
237
            font-size: 10px;
-
 
238
            color: #999;
-
 
239
            text-align: right;
-
 
240
            padding-right: 5px;
-
 
241
            position: relative;
-
 
242
            right: 10px;
-
 
243
        }
-
 
244
 
-
 
245
        .timeline-card {
-
 
246
            background: #fff;
-
 
247
            border: 1px solid #e7e2e2;
-
 
248
            border-left: 2px solid #ba9b9b;
-
 
249
            border-radius: 4px;
-
 
250
            padding: 6px 8px;
-
 
251
            padding-top: 2px;
-
 
252
            width: 100%;
-
 
253
            position: relative;
-
 
254
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
-
 
255
        }
-
 
256
 
-
 
257
        .card-header {
-
 
258
            display: flex;
-
 
259
            align-items: center;
-
 
260
            margin-bottom: 4px;
-
 
261
        }
-
 
262
 
-
 
263
        .header-text {
-
 
264
            font-size: 16px;
-
 
265
            text-transform: capitalize;
-
 
266
            width: 100%;
-
 
267
        }
-
 
268
 
-
 
269
        .card-body {
-
 
270
            font-size: 16px;
-
 
271
            color: #555;
-
 
272
        }
-
 
273
 
-
 
274
        .bulletin-attachments {
-
 
275
            position: absolute;
-
 
276
            bottom: 10px;
-
 
277
            right: 12px;
-
 
278
            font-size: 12px;
-
 
279
        }
-
 
280
 
-
 
281
        .bulletin-attachments a {
-
 
282
            margin-left: 8px;
-
 
283
            color: #007bff;
-
 
284
            text-decoration: none;
-
 
285
        }
-
 
286
 
-
 
287
        .bulletin-attachments a:hover {
-
 
288
            text-decoration: underline;
-
 
289
        }
-
 
290
 
-
 
291
        .bulletin-tabs {
-
 
292
            display: flex;
-
 
293
            list-style: none;
-
 
294
            padding: 0;
-
 
295
            border-bottom: 1px solid #ddd;
-
 
296
        }
-
 
297
 
-
 
298
        .bulletin-tabs li {
-
 
299
            padding: 8px 14px;
-
 
300
            cursor: pointer;
-
 
301
            font-size: 13px;
-
 
302
        }
-
 
303
 
-
 
304
        .bulletin-tabs li.active {
-
 
305
            font-weight: 600;
-
 
306
            border-bottom: 2px solid #3b6cff;
-
 
307
        }
-
 
308
 
-
 
309
        .bulletin-tab-content {
-
 
310
            display: none;
-
 
311
        }
-
 
312
 
-
 
313
        h3 {
-
 
314
            font-size: 21px;
-
 
315
        }
-
 
316
 
-
 
317
        #bulletinDate {
-
 
318
            border-radius: 20px;
-
 
319
            padding: 4px 12px;
-
 
320
            border: 1px solid #ddd;
-
 
321
            background: #f5f7fb;
-
 
322
            font-size: 12px;
-
 
323
            position: relative;
-
 
324
            bottom: 5px;
-
 
325
        }
-
 
326
 
-
 
327
    </style>
-
 
328
 
59
 
329
    <script type="text/javascript">
60
    <script type="text/javascript">
330
        const isRBM = $isRBM;
61
        const isRBM = $isRBM;
331
        isAdmin = true;
62
        isAdmin = true;
332
        function injectSmartChatScript(email, token) {
63
        function injectSmartChatScript(email, token) {
Line 349... Line 80...
349
                injectSmartChatScript("$authEmail", "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlSWRzIjpbIjEiLCIyIiwiMyJdLCJpc3MiOiJwcm9maXRtYW5kaSIsImV4cCI6MTc3Nzg5OTk3MywicmV0YWlsZXJJZCI6MTc1MTM5Mjg3LCJpYXQiOjE3NzI3MTU5NzMsInVzZXJJZCI6NDAyMjJ9.aeUDKRtsemF4y1mLdWQBaWUBV2HFxoHARbc2JAZwc3U");
80
                injectSmartChatScript("$authEmail", "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlSWRzIjpbIjEiLCIyIiwiMyJdLCJpc3MiOiJwcm9maXRtYW5kaSIsImV4cCI6MTc3Nzg5OTk3MywicmV0YWlsZXJJZCI6MTc1MTM5Mjg3LCJpYXQiOjE3NzI3MTU5NzMsInVzZXJJZCI6NDAyMjJ9.aeUDKRtsemF4y1mLdWQBaWUBV2HFxoHARbc2JAZwc3U");
350
            }
81
            }
351
        });
82
        });
352
 
83
 
353
        function getWarehousePartners(warehouseId) {
84
        function getWarehousePartners(warehouseId) {
354
 
-
 
355
            doGetAjaxRequestHandler(context + "/getWarehousePartners?warehouseId=" + warehouseId,
85
            doGetAjaxRequestHandler(context + "/getWarehousePartners?warehouseId=" + warehouseId,
356
                    function (response) {
-
 
357
                        $('#' + "main-content").html(response);
86
                function (response) { $('#main-content').html(response); });
358
                        console.log(response)
-
 
359
                    });
-
 
360
        }
87
        }
361
 
88
 
362
 
-
 
363
        function getWarehouseBrandStock(warehouseId) {
89
        function getWarehouseBrandStock(warehouseId) {
364
 
-
 
365
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId=" + warehouseId,
90
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId=" + warehouseId,
366
                    function (response) {
-
 
367
                        $('#' + "main-content").html(response);
91
                function (response) { $('#main-content').html(response); });
368
                        console.log(response)
-
 
369
                    });
-
 
370
        }
92
        }
371
 
93
 
372
 
-
 
373
        function getWarehouseWiseBrandPartnerSale(brand) {
94
        function getWarehouseWiseBrandPartnerSale(brand) {
374
 
-
 
375
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand=" + brand,
95
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand=" + brand,
376
                    function (response) {
-
 
377
                        $('#' + "main-content").html(response);
96
                function (response) { $('#main-content').html(response); });
378
                        console.log(response)
-
 
379
                    });
-
 
380
        }
97
        }
381
 
98
 
382
        function getWarehouseWiseBrandActivatedModel(brand) {
99
        function getWarehouseWiseBrandActivatedModel(brand) {
383
 
-
 
384
            doGetAjaxRequestHandler(context + "/getActivatedModelWarehouseWise?brand=" + brand,
100
            doGetAjaxRequestHandler(context + "/getActivatedModelWarehouseWise?brand=" + brand,
385
                    function (response) {
-
 
386
                        $('#' + "main-content").html(response);
101
                function (response) { $('#main-content').html(response); });
387
                        console.log(response)
-
 
388
                    });
-
 
389
        }
102
        }
390
 
103
 
391
        function getWarehouseWiseAccessoriesBrandPartnerSale(brand) {
104
        function getWarehouseWiseAccessoriesBrandPartnerSale(brand) {
392
            doGetAjaxRequestHandler(context + "/getWarehouseWiseAccesoriesBrandPartnerSale?brand=" + brand,
105
            doGetAjaxRequestHandler(context + "/getWarehouseWiseAccesoriesBrandPartnerSale?brand=" + brand,
393
                    function (response) {
-
 
394
                        $('#' + "main-content").html(response);
106
                function (response) { $('#main-content').html(response); });
395
                        console.log(response)
-
 
396
                    });
-
 
397
        }
107
        }
398
 
108
 
399
 
-
 
400
    </script>
-
 
401
 
-
 
402
    <script type="text/javascript">
-
 
403
        function getWarehouseWiseData() {
109
        function getWarehouseWiseData() {
404
            doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
110
            doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
405
                function (response) {
111
                function (response) {
406
                    $('#' + "main-content").html(response);
112
                    $('#main-content').html(response);
407
                    console.log(response)
-
 
408
                    if (response == 'true') {
113
                    if (response == 'true') {
409
 
-
 
410
                        window.location.href = $('.dashboardload').attr('href');
114
                        window.location.href = $('.dashboardload').attr('href');
411
                    }
115
                    }
412
                });
116
                });
413
        }
117
        }
414
 
118
 
415
        function getPartnersStat() {
119
        function getPartnersStat() {
416
            doGetAjaxRequestHandler(context + "/getPartnersStatData",
120
            doGetAjaxRequestHandler(context + "/getPartnersStatData",
417
                    function (response) {
121
                function (response) {
418
                        if (response == 'true') {
122
                    if (response == 'true') {
419
                            window.location.href = $('.dashboardload').attr('href');
123
                        window.location.href = $('.dashboardload').attr('href');
420
                        }
124
                    }
421
                    });
125
                });
422
        }
126
        }
423
 
-
 
424
 
-
 
425
    </script>
127
    </script>
426
 
128
 
427
 
129
 
428
</head>
130
</head>
429
 
131
 
430
<body style="background-color: #f7f7f7">
132
<body>
431
<div class="loading"><img src="resources/images/icons/loading.gif"></div>
133
<div class="loading"><img src="resources/images/icons/loading.gif"></div>
432
<!-- container section start -->
134
<!-- container section start -->
433
<section id="container">
135
<section id="container">
434
 
136
 
435
 
137
 
Line 448... Line 150...
448
                                        class="dropdown-toggle" href="#"> <span class="profile-ava">
150
                                        class="dropdown-toggle" href="#"> <span class="profile-ava">
449
								<img class="avatar-custom" id="photo" alt="" src="">
151
								<img class="avatar-custom" id="photo" alt="" src="">
450
						</span> <span class="username" id="fofo_name"></span> <b class="caret"></b>
152
						</span> <span class="username" id="fofo_name"></span> <b class="caret"></b>
451
                </a>
153
                </a>
452
                    <ul class="dropdown-menu extended logout">
154
                    <ul class="dropdown-menu extended logout">
453
                        <div class="log-arrow-up"></div>
-
 
454
                        <li class="eborder-top"><a class="change-auth-user-password"
155
                        <li class="eborder-top"><a class="change-auth-user-password"
455
                                                   href="javascript:void(0);"><i class=""></i>Change Password</a></li>
156
                                                   href="javascript:void(0);">Change Password</a></li>
456
                        <li><a href="${rc.contextPath}/mobileapp"><i class="icon_key_alt" id="logout"></i>SD Mobile App</a>
157
                        <li><a href="${rc.contextPath}/mobileapp"><i class="icon_key_alt"></i>SD Mobile App</a></li>
457
                        </li>
-
 
458
                        ##                        <li><a href="${rc.contextPath}/logout"><i
-
 
459
                        ##                                class="icon_key_alt" id="logout"></i> Log Out</a></li>
-
 
460
                        <script src="https://apis.google.com/js/platform.js?onload=onLoad" async defer></script>
-
 
461
 
-
 
462
                        <li><a href="javascript:void(0);" onclick="signOut();"><i
158
                        <li><a href="javascript:void(0);" onclick="signOut();"><i
463
                                class="icon_key_alt" id="logout"></i> Log Out</a></li>
159
                                class="icon_key_alt"></i> Log Out</a></li>
464
                        <!--  <li> <a href="#" language='english' class="active">English</a>
-
 
465
                                       <a href="#" language='hindi'>Hindi</a></li>-->
-
 
466
                        <li>
-
 
467
                            <!-- <li> <a href"@{?lang=en}" class="active">English</a>-->
-
 
468
                            <!-- <a href='javascript:;' onclick='changelanguage("en");'>English ></a>
-
 
469
                             <a href='javascript:;' onclick='changelanguage("hi");'>Hindi ></a>
-
 
470
                                    <a href="ref"@{?lang=hi}">Hindi</a>
-
 
471
                                      </li>-->
-
 
472
                    </ul>
160
                    </ul>
473
                </li>
161
                </li>
474
                <!-- user login dropdown end -->
162
                <!-- user login dropdown end -->
475
            </ul>
163
            </ul>
476
            <!-- notificatoin dropdown end-->
164
            <!-- notificatoin dropdown end-->
Line 487... Line 175...
487
                                      href="${rc.contextPath}/dashboard"> <i class="icon_house_alt"></i>
175
                                      href="${rc.contextPath}/dashboard"> <i class="icon_house_alt"></i>
488
                    <span>Dashboard</span>
176
                    <span>Dashboard</span>
489
                </a></li>
177
                </a></li>
490
                #foreach($menuItem in $menu)
178
                #foreach($menuItem in $menu)
491
                    <li class="sub-menu"><a href="javascript:;" class=""> <i
179
                    <li class="sub-menu"><a href="javascript:;" class=""> <i
492
                            class="icon_document_alt"></i> <span>$menuItem.getDisplayText()</span>
180
                            class="#if($menuItem.getIconClass() && $menuItem.getIconClass() != '')$menuItem.getIconClass()#else icon_document_alt#end"></i> <span>$menuItem.getDisplayText()</span>
493
                        <span class="menu-arrow arrow_carrot-right"></span>
181
                        <span class="menu-arrow arrow_carrot-right"></span>
494
                    </a>
182
                    </a>
495
                        <ul class="sub">
183
                        <ul class="sub">
496
                            #foreach($subMenu in $menuItem.getSubMenus())
184
                            #foreach($subMenu in $menuItem.getSubMenus())
497
                                <li><a class="$subMenu.getActionClass()"
185
                                <li><a class="$subMenu.getActionClass()"
Line 513... Line 201...
513
                    <h3 class="page-header">
201
                    <h3 class="page-header">
514
                        <i class="fa fa-laptop"></i>
202
                        <i class="fa fa-laptop"></i>
515
                        #springMessage("app.title")
203
                        #springMessage("app.title")
516
                    </h3>
204
                    </h3>
517
                    <ol class="breadcrumb">
205
                    <ol class="breadcrumb">
518
                        <li>
-
 
519
                            <!-- <i class="fa fa-home"></i><a
-
 
520
                                href="${rc.contextPath}/dashboard">Home</a></li>-->
-
 
521
                            <i class="fa fa-home"></i><a
206
                        <li><i class="fa fa-home"></i><a
522
                                href="${rc.contextPath}/dashboard">#springMessage("home.home")</a></li>
207
                                href="${rc.contextPath}/dashboard">#springMessage("home.home")</a></li>
523
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
208
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
524
                    </ol>
209
                    </ol>
525
                </div>
210
                </div>
526
            </div>
211
            </div>
Line 531... Line 216...
531
 
216
 
532
                    <div class="col-lg-6">
217
                    <div class="col-lg-6">
533
 
218
 
534
                        <div class="row">
219
                        <div class="row">
535
                            <div class="col-lg-7">
220
                            <div class="col-lg-7">
536
                                <h3 style="margin-top: -2px; margin-bottom: 24px">
221
                                <h3 class="section-title mb-lg">
537
                                    <strong>Partner Wise Report</strong>
222
                                    <strong>Partner Wise Report</strong>
538
                                </h3>
223
                                </h3>
539
                            </div>
224
                            </div>
540
                            <div class="col-lg-5">
225
                            <div class="col-lg-5">
541
                                <span style="margin-right: 10px">Last Fetch :-  $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
226
                                <span style="margin-right: 10px">Last Fetch :-  $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
Line 572... Line 257...
572
                    </div>
257
                    </div>
573
 
258
 
574
                    <div class="col-lg-6">
259
                    <div class="col-lg-6">
575
                        <div class="row">
260
                        <div class="row">
576
                            <div class="col-lg-7">
261
                            <div class="col-lg-7">
577
                                <h3 style="margin-top: -2px; margin-bottom: 24px">
262
                                <h3 class="section-title mb-lg">
578
                                    <strong>Warehouse Wise Report</strong>
263
                                    <strong>Warehouse Wise Report</strong>
579
                                </h3>
264
                                </h3>
580
                            </div>
265
                            </div>
581
                            <div class="col-lg-5" style="padding-left: 0;">
266
                            <div class="col-lg-5" class="pl-0">
582
							<span>Last fetch :-
267
							<span>Last fetch :-
583
                                $reporticoDate.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
268
                                $reporticoDate.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
584
                                <button class="btn btn-sm btn-primary fetchWarehouseData"
269
                                <button class="btn btn-sm btn-primary fetchWarehouseData"
585
                                        onclick="getWarehouseWiseData()" type="button"><i class="fa fa-refresh"></i>
270
                                        onclick="getWarehouseWiseData()" type="button"><i class="fa fa-refresh"></i>
586
 
271
 
Line 617... Line 302...
617
                            </tbody>
302
                            </tbody>
618
                        </table>
303
                        </table>
619
                    </div>
304
                    </div>
620
                </div>
305
                </div>
621
            #end
306
            #end
622
            <button class="btn btn-primary  clickshwograph"
-
 
623
                    style="display: none" type="button">Submit
-
 
624
            </button>
-
 
-
 
307
 
625
 
308
 
626
            <div class="row">
309
            <div class="row">
627
 
310
 
628
 
311
 
629
                <div class="col-lg-6">
312
                <div class="col-lg-6">
Line 631... Line 314...
631
 
314
 
632
                    <div class="team-messages">
315
                    <div class="team-messages">
633
                        <h3 class="tm-title">Bulletin <span class="tm-subtitle"> (Today Important Updates)</span> <input
316
                        <h3 class="tm-title">Bulletin <span class="tm-subtitle"> (Today Important Updates)</span> <input
634
                                type="date" id="bulletinDate" style="float:right;"></h3>
317
                                type="date" id="bulletinDate" style="float:right;"></h3>
635
 
318
 
636
                        <hr style="margin: 8px 0 15px 0;border-top: 1px solid #dddcdc;">
319
                        <hr class="divider">
637
                        <div id="bulletin-list-container">
320
                        <div id="bulletin-list-container">
638
                            #parse("bulletin-list.vm")
321
                            #parse("bulletin-list.vm")
639
                        </div>
322
                        </div>
640
                    </div>
323
                    </div>
641
 
-
 
642
 
-
 
643
 
-
 
644
 
-
 
645
                    #*
-
 
646
                        #if($warehousePartnerDetailMap)
-
 
647
                                <div class="row chartfilterlmsContainer" style="margin: 5px"></div>
-
 
648
 
-
 
649
                                <div class="row col-lg-12">
-
 
650
                                    <ul class="nav nav-tabs">
-
 
651
                                        <li class="brand_month_sales"><a class="bms">BWMS</a></li>
-
 
652
                                        <li class="brand_month_purchase"><a class="bmp">BWMP</a></li>
-
 
653
                                    </ul>
-
 
654
                                    <div class="row chartLmsContainer" style="margin:5px"></div>
-
 
655
 
-
 
656
 
-
 
657
                                </div>
-
 
658
                        #end
-
 
659
                    *#
-
 
660
 
-
 
661
 
-
 
662
                </div>
324
                </div>
663
 
325
 
664
 
326
 
665
                #if($warehousePartnerDetailMap)
327
                #if($warehousePartnerDetailMap)
666
                    <div class="col-lg-6">
328
                    <div class="col-lg-6">
667
                        <ul class="nav nav-tabs" style="margin: 5px">
329
                        <ul class="nav nav-tabs" class="m-sm">
668
                            <li class="mobile_based"><a class="ba">Mobile</a></li>
330
                            <li class="mobile_based"><a class="ba">Mobile</a></li>
669
                            <li class="accessories_based"><a class="la">Accessories</a></li>
331
                            <li class="accessories_based"><a class="la">Accessories</a></li>
670
                            <li class="activation_summary"><a class="as">Activation Summary</a></li>
332
                            <li class="activation_summary"><a class="as">Activation Summary</a></li>
671
                            <li class="activation_updation"><a class="au">Activation Updation</a></li>
333
                            <li class="activation_updation"><a class="au">Activation Updation</a></li>
672
 
334
 
673
 
335
 
674
                        </ul>
336
                        </ul>
675
 
337
 
676
 
338
 
677
                        <div class="row reportContainer" style="margin: 5px"></div>
339
                        <div class="row reportContainer" class="m-sm"></div>
678
 
340
 
679
                    </div>
341
                    </div>
680
 
342
 
681
 
343
 
682
 
344
 
Line 688... Line 350...
688
 
350
 
689
 
351
 
690
                <div class="col-lg-6">
352
                <div class="col-lg-6">
691
 
353
 
692
 
354
 
693
                    <div class="row" style="margin-left:5px">
355
                    <div class="row" class="ml-sm">
694
                        <h3 style="margin-top: -2px; margin-bottom:4px">
356
                        <h3 class="section-title mb-sm">
695
                            <strong>Sale MileStone</strong>
357
                            <strong>Sale MileStone</strong>
696
                        </h3>
358
                        </h3>
697
                    </div>
359
                    </div>
698
 
360
 
699
                    <div class="row saleMilestoneContainer" style="margin: 5px"></div>
361
                    <div class="row saleMilestoneContainer" class="m-sm"></div>
700
 
362
 
701
 
363
 
702
                </div>
364
                </div>
703
 
365
 
704
 
366
 
705
                <div class="col-lg-6">
367
                <div class="col-lg-6">
706
 
368
 
707
 
369
 
708
                    <div class="row" style="margin-left:5px">
370
                    <div class="row" class="ml-sm">
709
                        <h3 style="margin-top: -2px; margin-bottom: 4px">
371
                        <h3 class="section-title mb-sm">
710
                            <strong>Purchase MileStone</strong>
372
                            <strong>Purchase MileStone</strong>
711
                        </h3>
373
                        </h3>
712
                    </div>
374
                    </div>
713
 
375
 
714
                    <div class="row purchaseMilestoneContainer" style="margin: 5px"></div>
376
                    <div class="row purchaseMilestoneContainer" class="m-sm"></div>
715
 
377
 
716
 
378
 
717
                </div>
379
                </div>
718
 
380
 
719
 
381
 
Line 723... Line 385...
723
            <div class="row">
385
            <div class="row">
724
                #if($authUserTicketCount)
386
                #if($authUserTicketCount)
725
 
387
 
726
                    <div class="col-lg-6">
388
                    <div class="col-lg-6">
727
                        <div class="row col-lg-8">
389
                        <div class="row col-lg-8">
728
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
390
                            <h3 class="section-title mb-lg">
729
                                <strong>Auth User Tickets</strong>
391
                                <strong>Auth User Tickets</strong>
730
                            </h3>
392
                            </h3>
731
                        </div>
393
                        </div>
732
 
394
 
733
                        <table class="table table-striped table-advance table-hover"
395
                        <table class="table table-striped table-advance table-hover"
Line 747... Line 409...
747
                        </table>
409
                        </table>
748
 
410
 
749
                    </div>
411
                    </div>
750
                #end
412
                #end
751
                <div class="col-lg-6">
413
                <div class="col-lg-6">
752
                    <h3 style="margin-top: -2px; margin-bottom: 24px">
414
                    <h3 class="section-title mb-lg">
753
                        <strong>Loan Summary</strong>
415
                        <strong>Loan Summary</strong>
754
                    </h3>
416
                    </h3>
755
 
417
 
756
                    <table class="table table-striped table-advance table-hover loan-summary-table"
418
                    <table class="table table-striped table-advance table-hover loan-summary-table"
757
                           style="width: 50%">
419
                           style="width: 50%">
Line 1111... Line 773...
1111
                <div class="row">
773
                <div class="row">
1112
                    <div class="col-lg-6">
774
                    <div class="col-lg-6">
1113
 
775
 
1114
 
776
 
1115
                        <div class="row col-lg-12">
777
                        <div class="row col-lg-12">
1116
                            <h3 style="margin-top: -2px; margin-bottom: 10px">
778
                            <h3 class="section-title">
1117
                                <strong>Reports</strong>
779
                                <strong>Reports</strong>
1118
                            </h3>
780
                            </h3>
1119
                        </div>
781
                        </div>
1120
                        <div class="row col-lg-12 info-box white-bg">
782
                        <div class="row col-lg-12 info-box white-bg">
1121
                            <table class="table table-striped reports-table"
-
 
1122
                                   style="display: none">
-
 
1123
                                <tbody>
-
 
1124
                                <div class="list-group">
783
                            <div class="list-group reports-table">
1125
                                    #foreach($reporticoProjectEntry in
784
                                #foreach($reporticoProjectEntry in
1126
                                        $reporticoProjectMap.entrySet()) #foreach($reporticoUrlInfo in
785
                                    $reporticoProjectMap.entrySet()) #foreach($reporticoUrlInfo in
1127
                                        $reporticoProjectEntry.getValue()) <a
786
                                    $reporticoProjectEntry.getValue()) <a
1128
                                            href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}"
787
                                        href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}"
1129
                                            class="list-group-item"
788
                                        class="list-group-item"
1130
                                        #if($reporticoUrlInfo.getParamsList())
789
                                    #if($reporticoUrlInfo.getParamsList())
1131
                                            data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
790
                                        data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
1132
                                        #end>
791
                                    #end>
1133
                                        <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
792
                                    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
1134
                                        <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
793
                                    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
1135
                                    </a> #end #end
794
                                </a> #end #end
1136
                                </div>
795
                            </div>
1137
                                </tbody>
-
 
1138
                            </table>
-
 
1139
 
796
 
1140
                        </div>
797
                        </div>
1141
                    </div>
798
                    </div>
1142
                    <div class="col-lg-6">
799
                    <div class="col-lg-6">
1143
 
800
 
1144
 
801
 
1145
                        <div class="row info-box white-bg">
802
                        <div class="row info-box white-bg">
1146
                            <div class="col-lg-7">
803
                            <div class="col-lg-7">
1147
                                <h3 style="margin-top: -2px; margin-bottom: 10px">
804
                                <h3 class="section-title">
1148
                                    <strong>My Messages</strong>
805
                                    <strong>My Messages</strong>
1149
                                </h3>
806
                                </h3>
1150
                            </div>
807
                            </div>
1151
                            <div class="col-lg-5">
808
                            <div class="col-lg-5">
1152
                                <div class="btn-group message-filter" style="float: right;">
809
                                <div class="btn-group message-filter" class="pull-right">
1153
                                    <button data-messagetype="notification" type="button"
810
                                    <button data-messagetype="notification" type="button"
1154
                                            class="btn btn-default" aria-label="Notifications"
811
                                            class="btn btn-default" aria-label="Notifications"
1155
                                            title="Notifications">
812
                                            title="Notifications">
1156
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
813
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
1157
                                    </button>
814
                                    </button>
Line 1183... Line 840...
1183
            #end #if(!$authUserTicketCount)
840
            #end #if(!$authUserTicketCount)
1184
 
841
 
1185
            <div class="row">
842
            <div class="row">
1186
                <div class="col-lg-6">
843
                <div class="col-lg-6">
1187
                    <div class="row col-lg-4">
844
                    <div class="row col-lg-4">
1188
                        <h3 style="margin-top: -2px; margin-bottom: 10px">
845
                        <h3 class="section-title">
1189
                            <strong>Reports</strong>
846
                            <strong>Reports</strong>
1190
                        </h3>
847
                        </h3>
1191
                    </div>
848
                    </div>
1192
                    <div class="row col-lg-12 info-box white-bg">
849
                    <div class="row col-lg-12 info-box white-bg">
1193
                        <table class="table table-striped reports-table"
850
                        <table class="table table-striped reports-table"
Line 1214... Line 871...
1214
                </div>
871
                </div>
1215
                <div class="col-lg-6">
872
                <div class="col-lg-6">
1216
                    <div class="col-lg-12">
873
                    <div class="col-lg-12">
1217
                        <div class="row col-lg-12 info-box white-bg">
874
                        <div class="row col-lg-12 info-box white-bg">
1218
                            <div class="col-lg-7">
875
                            <div class="col-lg-7">
1219
                                <h3 style="margin-top: -2px; margin-bottom: 10px">
876
                                <h3 class="section-title">
1220
                                    <strong>My Messages</strong>
877
                                    <strong>My Messages</strong>
1221
                                </h3>
878
                                </h3>
1222
                            </div>
879
                            </div>
1223
                            <div class="col-lg-5">
880
                            <div class="col-lg-5">
1224
                                <div class="btn-group message-filter" style="float: right;">
881
                                <div class="btn-group message-filter" class="pull-right">
1225
                                    <button data-messagetype="notification" type="button"
882
                                    <button data-messagetype="notification" type="button"
1226
                                            class="btn btn-default" aria-label="Notifications"
883
                                            class="btn btn-default" aria-label="Notifications"
1227
                                            title="Notifications">
884
                                            title="Notifications">
1228
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
885
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
1229
                                    </button>
886
                                    </button>
Line 1253... Line 910...
1253
 
910
 
1254
        #end
911
        #end
1255
        </section>
912
        </section>
1256
        <div class="text-center">
913
        <div class="text-center">
1257
            <div class="credits">
914
            <div class="credits">
1258
                <p>All rights reserved.&copy;2017, Smart Dukaan</p>
915
                <p>All rights reserved. &copy; Smart Dukaan</p>
1259
            </div>
916
            </div>
1260
        </div>
917
        </div>
1261
    </section>
918
    </section>
1262
 
919
 
1263
    <script type="text/javascript">
920
    <script type="text/javascript">
Line 1277... Line 934...
1277
        #end
934
        #end
1278
    </script>
935
    </script>
1279
    #parse("include-scripts.vm")
936
    #parse("include-scripts.vm")
1280
 
937
 
1281
        <script>
938
        <script>
1282
 
-
 
1283
            //knob
-
 
1284
            $(function () {
-
 
1285
            /*$(".knob").knob({
-
 
1286
              'draw' : function () {
-
 
1287
                $(this.i).val(this.cv + '%')
-
 
1288
              }
-
 
1289
            });*/
-
 
1290
            $.fn.dataTable.moment('DD/MM/YYYY');
-
 
1291
            $.fn.dataTable.moment('DD/MM/YYYY hh:mm');
-
 
1292
            $('.currency').each(function (index, ele) {
-
 
1293
            if (!isNaN(parseInt($(ele).html()))) {
-
 
1294
            $(ele).html(numberToComma($(ele).html()));
-
 
1295
        }
-
 
1296
        });
-
 
1297
        });
-
 
1298
 
-
 
1299
            $(function () {
939
            $(function () {
1300
            var profile = localStorage.getItem('profile');
940
                $.fn.dataTable.moment('DD/MM/YYYY');
1301
            if (profile) {
-
 
1302
            $("#photo").attr("src", JSON.parse(profile).image_url);
941
                $.fn.dataTable.moment('DD/MM/YYYY hh:mm');
1303
            $("#fofo_name").text(JSON.parse(profile).name);
942
                $('.currency').each(function (index, ele) {
1304
        } else {
-
 
1305
            $("#photo").attr("src", "");
943
                    if (!isNaN(parseInt($(ele).html()))) {
1306
            $("#fofo_name").text("Welcome, User");
944
                        $(ele).html(numberToComma($(ele).html()));
1307
        }
945
                    }
1308
        });
946
                });
1309
 
947
 
-
 
948
                var profile = localStorage.getItem('profile');
-
 
949
                if (profile) {
-
 
950
                    $("#photo").attr("src", JSON.parse(profile).image_url);
-
 
951
                    $("#fofo_name").text(JSON.parse(profile).name);
-
 
952
                } else {
-
 
953
                    $("#photo").attr("src", "");
-
 
954
                    $("#fofo_name").text("Welcome, User");
-
 
955
                }
1310
 
956
 
1311
            $(function () {
-
 
1312
            loaderDialogObj = bootbox.dialog({
957
                loaderDialogObj = bootbox.dialog({
1313
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
958
                    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
1314
                show: false
959
                    show: false
-
 
960
                });
1315
            });
961
            });
1316
        });
-
 
1317
 
962
 
1318
            $(document).ready(function () {
963
            $(document).ready(function () {
1319
 
964
 
1320
            $(".clickshwograph").click();
-
 
1321
 
-
 
1322
            $(".mobile_based").click();
965
            $(".mobile_based").click();
1323
 
966
 
1324
            $('div.message-filter').on('click', 'button', function () {
967
            $('div.message-filter').on('click', 'button', function () {
1325
            messageType = $(this).data("messagetype");
968
            messageType = $(this).data("messagetype");
1326
            if ($(this).hasClass('btn-pressed')) {
969
            if ($(this).hasClass('btn-pressed')) {
Line 1703... Line 1346...
1703
        <div class="modal-content">
1346
        <div class="modal-content">
1704
        </div>
1347
        </div>
1705
    </div>
1348
    </div>
1706
</div>
1349
</div>
1707
 
1350
 
1708
</body>
-
 
1709
 
-
 
1710
 
-
 
1711
</html>
-
 
1712
 
-
 
1713
 
-
 
1714
<script>
1351
<script>
1715
    function refreshBulletinsList() {
1352
    function refreshBulletinsList() {
1716
        var selectedDate = $('#bulletinDate').val();
1353
        var selectedDate = $('#bulletinDate').val();
1717
 
-
 
1718
        $.ajax({
1354
        $.ajax({
1719
            url: context + "/dasboard/getDateWiseBulletins",
1355
            url: context + "/dasboard/getDateWiseBulletins",
1720
            type: "GET",
1356
            type: "GET",
1721
            data: {date: selectedDate},
1357
            data: {date: selectedDate},
1722
            success: function (response) {
1358
            success: function (response) {
Line 1727... Line 1363...
1727
            error: function () {
1363
            error: function () {
1728
                alert("Failed to load bulletins");
1364
                alert("Failed to load bulletins");
1729
            }
1365
            }
1730
        });
1366
        });
1731
    }
1367
    }
1732
 
-
 
1733
    // refresh when date changes
-
 
1734
    $('#bulletinDate').on('change', refreshBulletinsList);
1368
    $('#bulletinDate').on('change', refreshBulletinsList);
1735
 
-
 
1736
    // load today on page load
-
 
1737
    $(document).ready(function () {
1369
    $(document).ready(function () {
1738
        let today = new Date().toISOString().split('T')[0];
1370
        let today = new Date().toISOString().split('T')[0];
1739
        $('#bulletinDate').val(today);
1371
        $('#bulletinDate').val(today);
1740
        refreshBulletinsList();
1372
        refreshBulletinsList();
1741
    });
1373
    });
-
 
1374
</script>
1742
 
1375
 
1743
 
-
 
1744
</script>
-
 
1745
1376
</body>
-
 
1377
</html>
-
 
1378
1746
1379