puzhibing
2024-02-05 640ff18d2d7f4be02ddb7f8f75e899f05545eb98
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
@layout("/common/_container.html"){
<style>
    .newWidth, .single-line{
        max-width:150px !important;display: initial !important;
    }
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
 
            <div class="row">
                <div class="col-sm-11">
                    <div class="form-group">
                        <div class="col-sm-10">
                            <div class="col-lg-3">
 
                                @if(language==1){
                                活动名称:&nbsp;<input type="text"  name="zc1" id="num1" class="form-control newWidth" />
                                @}
                                @if(language==2){
                                Activity name:&nbsp;<input type="text"  name="zc1" id="num1" class="form-control newWidth" />
                                @}
                                @if(language==3){
                                Nama aktivitas:&nbsp;<input type="text"  name="zc1" id="num1" class="form-control newWidth" />
                                @}
                                &nbsp; </div>
                                <div class="col-lg-3">
 
                                    @if(language==1){
                                    <#TimeCon id="createTime" name="有效为" isTime="false"/>
                                    @}
                                    @if(language==2){
                                    <#TimeCon id="createTime" name="Expiry to " isTime="false"/>
                                    @}
                                    @if(language==3){
                                    <#TimeCon id="createTime" name="Kedaluwarsa" isTime="false"/>
                                    @}
                                </div>
                            <div class="form-group col-lg-12">
 
                                @if(language==1){
                                <label class="col-sm-3 control-label" style="left:-220px">选择:</label>
                                @}
                                @if(language==2){
                                <label class="col-sm-3 control-label" style="left:-220px">Select:</label>
                                @}
                                @if(language==3){
                                <label class="col-sm-3 control-label" style="left:-220px">Pilih:</label>
                                @}
                                <div class="col-sm-9"  style="display: flex;align-items: center;left:-200px">
                                    <div class="radio radio-info radio-inline">
                                        <input type="radio" id="sendType1" value="1" name="sendType" checked="" >
 
                                        @if(language==1){
                                        <label for="sendType1"> 全部司机 </label>
                                        @}
                                        @if(language==2){
                                        <label for="sendType1"> All drivers </label>
                                        @}
                                        @if(language==3){
                                        <label for="sendType1"> Semua pengemudi </label>
                                        @}
                                    </div>
                                    <div class="radio radio-success radio-inline">
                                        <input type="radio" id="sendType2" value="2" name="sendType" >
 
                                        @if(language==1){
                                        <label for="sendType2"> 选择司机 </label>
                                        @}
                                        @if(language==2){
                                        <label for="sendType2"> Select drivers </label>
                                        @}
                                        @if(language==3){
                                        <label for="sendType2"> Pilih driver </label>
                                        @}
                                    </div>
 
                                    @if(language==1){
                                    <#button name="选择" icon="fa-plus" clickFun="DriverActivityInfoDlg.toSelectUserOpt()"/>
                                    @}
                                    @if(language==2){
                                    <#button name="choice" icon="fa-plus" clickFun="DriverActivityInfoDlg.toSelectUserOpt()"/>
                                    @}
                                    @if(language==3){
                                    <#button name="pilihan" icon="fa-plus" clickFun="DriverActivityInfoDlg.toSelectUserOpt()"/>
                                    @}
                                </div>
                            </div>
                            <div class="form-group" >
 
                                @if(language==1){
                                <label class="col-sm-3 control-label" style="left:-190px">已添加司机</label>
                                @}
                                @if(language==2){
                                <label class="col-sm-3 control-label" style="left:-190px">Has added driver</label>
                                @}
                                @if(language==3){
                                <label class="col-sm-3 control-label" style="left:-190px">Telah <br/>menambahkan <br/>driver</label>
                                @}
                                <div class="col-sm-9" style="left:-170px">
                                    <div style="height: 200px; border: 1px solid #e5e6e7;overflow-y: auto;">
                                        <table class="table table-striped table-bordered table-hover table-condensed">
                                            <thead>
 
                                            @if(language==1){
                                            <tr>
                                                <th style="width: 300px;">司机昵称</th>
                                                <th style="width: 300px;">手机号</th>
                                                <th style="width: 300px;">注册地所属分公司</th>
                                                <th style="width: 100px;">操作</th>
                                            </tr>
                                            @}
                                            @if(language==2){
                                            <tr>
                                                <th style="width: 300px;">Driver's nickname</th>
                                                <th style="width: 300px;">Mobile phone number</th>
                                                <th style="width: 300px;">Registered address of branch</th>
                                                <th style="width: 100px;">Operate</th>
                                            </tr>
                                            @}
                                            @if(language==3){
                                            <tr>
                                                <th style="width: 300px;">Nama panggilan pengemudi</th>
                                                <th style="width: 300px;">Nomor ponsel</th>
                                                <th style="width: 300px;">Alamat Terdaftar Cabang</th>
                                                <th style="width: 100px;">Beroperasi</th>
                                            </tr>
                                            @}
                                            </thead>
                                            <tbody id="coun">
 
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <br/>
                            <br/>
 
                            @if(language==1){
                            <span style="font-weight: bold">司机邀请司机注册</span>
                            @}
                            @if(language==2){
                            <span style="font-weight: bold">Invite drivers to register</span>
                            @}
                            @if(language==3){
                            <span style="font-weight: bold">Undang driver untuk mendaftar</span>
                            @}
                            <br/>
                            <br/>
 
 
                            @if(language==1){
                            司机注册既赠送&nbsp;<input type="text"    id="num2" class="form-control newWidth" placeholder="最多5位数"/>&nbsp;Rp
                            @}
                            @if(language==2){
                            The driver will be given for registration &nbsp;<input type="text"    id="num2" class="form-control newWidth" placeholder="Up to 5 digits"/>&nbsp; Rp
                            @}
                            @if(language==3){
                            Pengemudi akan diberikan untuk pendaftaran &nbsp;<input type="text"    id="num2" class="form-control newWidth" placeholder="Sehingga 5 digit
 
"/>&nbsp; Rp
                            @}
                            <br/>
                            <br/>
 
                            @if(language==1){
                            <span style="font-weight: bold">司机邀请用户注册</span>
                            @}
                            @if(language==2){
                            <span style="font-weight: bold">Drivers invite users to register</span>
                            @}
                            @if(language==3){
                            <span style="font-weight: bold">Driver mengundang pengguna untuk mendaftar</span>
                            @}
                            <br/>
                            <br/>
 
                            @if(language==1){
                            用户注册既赠送&nbsp;<input type="text"   id="num3" class="form-control newWidth" placeholder="最多5位数" />&nbsp;Rp
                            @}
                            @if(language==2){
                            The user is given &nbsp;<input type="text"   id="num3" class="form-control newWidth" placeholder="Up to 5 digits" />&nbsp;Rp for registration.
                            @}
                            @if(language==3){
                            Pengguna diberikan &nbsp;<input type="text"   id="num3" class="form-control newWidth" placeholder="Up to 5 digits" />&nbsp;Rp untuk pendaftaran
                            @}
                            <br/>
                            <br/>
 
                            @if(language==1){
                            <span style="font-weight: bold">司机APP每天累计在线奖励</span>
                            @}
                            @if(language==2){
                            <span style="font-weight: bold">APP accumulates online rewards every day. </span>
                            @}
                            @if(language==3){
                            <span style="font-weight: bold">Aplikasi mengumpulkan hadiah online setiap hari.</span>
                            @}
                            <br/>
                            <br/>
 
                            @if(language==1){
                            摩托车累计在线&nbsp;<input type="text"   id="num4" class="form-control newWidth" placeholder="最多3位数"/>小时奖励&nbsp;<input type="text"   id="num5" class="form-control newWidth" placeholder="最多5位数"/>&nbsp;Rp
                            @}
                            @if(language==2){
                            Motocycle keeping online&nbsp;<input type="text"   id="num4" class="form-control newWidth" placeholder="Up to 3 digits"/>&nbsp;hours accumulatively will be reward <input type="text"   id="num5" class="form-control newWidth" placeholder="Up to 5 digits"/>&nbsp;Rp
                            @}
                            @if(language==3){
                            MOTOCYCLE Menjaga jam online&nbsp;<input type="text"   id="num4" class="form-control newWidth" placeholder="Up to 3 digits"/>&nbsp;jam secara akumulatif akan menjadi hadiah<input type="text"   id="num5" class="form-control newWidth" placeholder="Up to 5 digits"/>&nbsp;Rp
                            @}
                            &nbsp;
                            <br/>
                            <br/>
 
                            @if(language==1){
                            同城快送累计在线&nbsp;<input type="text"   id="num8" class="form-control newWidth" placeholder="最多3位数" />&nbsp;小时奖励
                            &nbsp;<input type="text"   id="num9" class="form-control newWidth"  placeholder="最多5位数"/>&nbsp;Rp
                            @}
                            @if(language==2){
                            Intra-city express delivery keeping online &nbsp;<input type="text"   id="num8" class="form-control newWidth" placeholder="Up to 3 digits" />&nbsp;hours accumulatively will be reward
                            &nbsp;<input type="text"   id="num9" class="form-control newWidth"  placeholder="Up to 5 digits"/>&nbsp;Rp
                            @}
                            @if(language==3){
                            Intra-City Express Delivery Keep Online &nbsp;<input type="text"   id="num8" class="form-control newWidth" placeholder="Up to 3 digits" />&nbsp;jam secara akumulatif akan menjadi hadiah
                            &nbsp;<input type="text"   id="num9" class="form-control newWidth"  placeholder="Up to 5 digits"/>&nbsp;Rp
                            @}
                            <br/>
                            <br/>
 
                            @if(language==1){
                            <span style="font-weight: bold">司机累计达到规定订单数奖励</span>
                            @}
                            @if(language==2){
                            <span style="font-weight: bold">Reward for drivers to reach the specified number of orders.</span>
                            @}
                            @if(language==3){
                            <span style="font-weight: bold">Hadiah bagi pengemudi untuk mencapai jumlah pesanan yang ditentukan.</span>
                            @}
                            <br/>
                            <br/>
                            @if(language==1){
                            &nbsp;<div id="day">
                            每天 <input type="text" name="staTime" id="staTime-1" class="form-control newWidth staTime" />&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox2()"></i>
                            <br/>
                            &nbsp;司机接单完成<input type="text" name="num10" id="num10" class="form-control newWidth" />&nbsp;单既奖励
                            &nbsp;<input type="text"  name="num11" id="num11" class="form-control newWidth" placeholder="最多5位数" />&nbsp;Rp&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox3(1)"></i>
                            <div id = "day1">
                                <br/>司机累计接单完成&nbsp;<input type="text" name="num12"  id="num12" class="form-control newWidth" />单既奖励&nbsp;<input type="text"   name="num13" id="num13" class="form-control newWidth" placeholder="最多5位数"/>&nbsp;Rp
                            </div>
                        </div>
                            @}
                            @if(language==2){
                            &nbsp;<div id="day">
                            Every day <input type="text" name="staTime" id="staTime-1" class="form-control newWidth staTime" />&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox2()"></i>
                            <br/>
                            &nbsp;the driver will be rewarded with<input type="text" name="num10" id="num10" class="form-control newWidth" />&nbsp;Rp for completing the  order.
                            &nbsp;<input type="text"  name="num11" id="num11" class="form-control newWidth" placeholder="Up to 5 digits" />&nbsp;Rp&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox3(1)"></i>
                            <div id = "day1">
                                <br/>The driver has completed the cumulative order &nbsp;<input type="text" name="num12"  id="num12" class="form-control newWidth" />Single reward.&nbsp;<input type="text"   name="num13" id="num13" class="form-control newWidth" placeholder="Up to 5 digits"/>&nbsp;Rp
                            </div>
                        </div>
                            @}
                            @if(language==3){
                            &nbsp;<div id="day">
                            Setiap hari <input type="text" name="staTime" id="staTime-1" class="form-control newWidth staTime" />&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox2()"></i>
                            <br/>
                            &nbsp;pengemudi akan dihargai dengan<input type="text" name="num10" id="num10" class="form-control newWidth" />&nbsp;Rp untuk menyelesaikan pesanan
                            &nbsp;<input type="text"  name="num11" id="num11" class="form-control newWidth" placeholder="Sehingga 5 digit" />&nbsp;Rp&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox3(1)"></i>
                            <div id = "day1">
                                <br/>Pemandu telah menyelesaikan perintah kumulatif&nbsp;<input type="text" name="num12"  id="num12" class="form-control newWidth" />Hadiah tunggal.&nbsp;<input type="text"   name="num13" id="num13" class="form-control newWidth" placeholder="Sehingga 5 digit"/>&nbsp;Rp
                            </div>
                        </div>
                            @}
                            <br/>
                            <br/>
 
                        </div>
                    </div>
                    </div>
                </div>
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
 
                    @if(language==1){
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="DriverActivityInfoDlg.addSubmit()"/>
                    @}
                    @if(language==2){
                    <#button btnCss="info" name="Submit" id="ensure" icon="fa-check" clickFun="DriverActivityInfoDlg.addSubmit()"/>
                    @}
                    @if(language==3){
                    <#button btnCss="info" name="Kirim" id="ensure" icon="fa-check" clickFun="DriverActivityInfoDlg.addSubmit()"/>
                    @}
 
                    @if(language==1){
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="DriverActivityInfoDlg.close()"/>
                    @}
                    @if(language==2){
                    <#button btnCss="danger" name="Cancel" id="cancel" icon="fa-eraser" clickFun="DriverActivityInfoDlg.close()"/>
                    @}
                    @if(language==3){
                    <#button btnCss="danger" name="Batal" id="cancel" icon="fa-eraser" clickFun="DriverActivityInfoDlg.close()"/>
                    @}
                </div>
            </div>
        </div>
 
    </div>
</div>
<script src="${ctxPath}/modular/system/driverActivity/driverActivity_info.js"></script>
<script>
 
 
    var language =$("#language").val()
    function addBox2(){
        var i = $('.staTime').length + 1
        var v = "day"+i
        var x = "d"+i
 
        if(language==2){
            var a ="<div id="+x+"><br/>          Every day <input type=\"text\"   name=\"staTime\" id=\"staTime-"+i+"\" class=\"form-control newWidth staTime\" />&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
                "                                <br/>\n" +
                "                            the driver will be rewarded with&nbsp;<input type=\"text\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" />&nbsp;Rp for completing the  order.\n" +
                "                            &nbsp;<input type=\"text\"  name=\"num11\"  id=\"num11\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\" />&nbsp;Rp&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-plus\" onclick=\"addBox3("+i+")\"></i>\n" +
                "                            <br/> <div id ="+v+">The driver will be rewarded with  &nbsp;<input type=\"text\"  name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />Rp for completing&nbsp;<input type=\"text\"   name=\"num13\"  id=\"num13\" class=\"form-control newWidth\"  placeholder=\"Up to 3 digits\"/>&nbsp;Rp     </div></div>"
        }else if(language==1){
            var a ="<div id="+x+"><br/>          每天 <input type=\"text\"   name=\"staTime\" id=\"staTime-"+i+"\" class=\"form-control newWidth staTime\" />&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
                "                                <br/>\n" +
                "                            司机接单完成&nbsp;<input type=\"text\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" />&nbsp;单既奖励\n" +
                "                            &nbsp;<input type=\"text\"  name=\"num11\"  id=\"num11\" class=\"form-control newWidth\" placeholder=\"最多5位数\" />&nbsp;Rp&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-plus\" onclick=\"addBox3("+i+")\"></i>\n" +
                "                            <br/> <div id ="+v+">司机累计接单完成&nbsp;<input type=\"text\"  name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />单既奖励&nbsp;<input type=\"text\"   name=\"num13\"  id=\"num13\" class=\"form-control newWidth\"  placeholder=\"最多3位数\"/>&nbsp;Rp     </div></div>"
        }else {
            var a ="<div id="+x+"><br/>          Setiap hari <input type=\"text\"   name=\"staTime\" id=\"staTime-"+i+"\" class=\"form-control newWidth staTime\" />&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
                "                                <br/>\n" +
                "                            pengemudi akan dihargai dengan&nbsp;<input type=\"text\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" />&nbsp;Rp untuk menyelesaikan pesanan\n" +
                "                            &nbsp;<input type=\"text\"  name=\"num11\"  id=\"num11\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\" />&nbsp;Rp&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-plus\" onclick=\"addBox3("+i+")\"></i>\n" +
                "                            <br/> <div id ="+v+">Pengemudi akan dihargai dengan&nbsp;<input type=\"text\"  name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />Rp untuk menyelesaikan&nbsp;<input type=\"text\"   name=\"num13\"  id=\"num13\" class=\"form-control newWidth\"  placeholder=\"Sehingga 3 digit\"/>&nbsp;Rp     </div></div>"
        }
 
 
 
        $("#day").append($(a))
        laydate.render({
            elem: '#staTime-'+i
            ,type: 'time'
            ,range: '-'
            ,format: 'HH:mm'
            ,lang:"en"
 
        });
 
    }
 
 
    function addBox1(){
        var i = $('.everyDay').length + 1;
        if(language==1){
            var a = "  <div> <br/>每天<input type=\"text\" name=\"staTime1\" id=\"staTime1-"+i+"\" class=\"form-control newWidth everyDay\" />,司机每在线&nbsp;<input type=\"text\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" placeholder=\"最多2位数\"/>小时,\n" +
                "                                奖励&nbsp;<input type=\"text\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/>Rp,最多补贴&nbsp;<input type=\"text\" name=\"num16\" id=\"num16\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/>小时&nbsp;&nbsp;;&nbsp;\n" +
                "                                <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i></div>\n" +
                "                              "
        }else if(language==2){
            var a = "  <div> <br/>Every day<input type=\"text\" name=\"staTime1\" id=\"staTime1-"+i+"\" class=\"form-control newWidth everyDay\" />,Every time the driver is online&nbsp;<input type=\"text\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" placeholder=\"Up to 2 digits\"/>hour,\n" +
                "                                rewards&nbsp;<input type=\"text\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/>Rp,maximum subsidy&nbsp;<input type=\"text\" name=\"num16\" id=\"num16\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/>hour&nbsp;&nbsp;;&nbsp;\n" +
                "                                <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i></div>\n" +
                "                              "
        }else {
            var a = "  <div> <br/>Setiap hari<input type=\"text\" name=\"staTime1\" id=\"staTime1-"+i+"\" class=\"form-control newWidth everyDay\" />,Setiap kali supir online&nbsp;<input type=\"text\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" placeholder=\"Sehingga 2 digit\"/>jam,\n" +
                "                                hadiah&nbsp;<input type=\"text\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/>Rp,subsidy maksimum&nbsp;<input type=\"text\" name=\"num16\" id=\"num16\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/>jam&nbsp;&nbsp;;&nbsp;\n" +
                "                                <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i></div>\n" +
                "                              "
        }
 
        $("#everyDay").append($(a))
        laydate.render({
            elem: '#staTime1-'+i
            ,type: 'time'
            ,range: '-'
            ,format: 'HH:mm'
            ,lang:"en"
        });
    }
    function addBox3(i){
        let v = 'day'+i
 
        if(language==1){
            var a ="<div id="+v+"><br/>司机累计接单完成&nbsp;<input type=\"text\" name=\"num12\"  id=\"num12\" class=\"form-control newWidth\" />单既奖励&nbsp;<input type=\"text\"   name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"最多5位数\" />&nbsp;Rp\n"+
                "                                <i class=\"fa fa-remove\" onclick=\"delBox1(this)\"></i></div>\n" +
                "                              "
        }else if(language==2){
            var a ="<div id="+v+"><br/>The driver has completed the cumulative order&nbsp;<input type=\"text\" name=\"num12\"  id=\"num12\" class=\"form-control newWidth\" />Single reward&nbsp;<input type=\"text\"   name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\" />&nbsp;Rp\n"+
                "                                <i class=\"fa fa-remove\" onclick=\"delBox1(this)\"></i></div>\n" +
                "                              "
        }else {
            var a ="<div id="+v+"><br/>Pemandu telah menyelesaikan perintah kumulatif&nbsp&nbsp;<input type=\"text\" name=\"num12\"  id=\"num12\" class=\"form-control newWidth\" />Hadiah tunggal&nbsp;<input type=\"text\"   name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\" />&nbsp;Rp\n"+
                "                                <i class=\"fa fa-remove\" onclick=\"delBox1(this)\"></i></div>\n" +
                "                              "
        }
 
 
        $(("#day"+i)).append($(a))
    }
    laydate.render({
        elem: '#startTime'
        ,type: 'datetime'
        ,range: true
        ,min: 'new Date()' //最小值今天
        ,lang:"en"
    });
    laydate.render({
        elem: '#createTime'
        ,type: 'datetime'
        ,range: true
        ,min: 'new Date()' //最小值今天
        ,lang:"en"
    });
    laydate.render({
        elem: '#staTime-1',
        range: true,
        type:'time',
        format: 'HH:mm'
        ,lang:"en"
    });
    laydate.render({
        elem: '#staTime1-1',
        range: true,
        type:'time',
        format: 'HH:mm'
        ,lang:"en"
    });
    function delBox(o) {
        $(o).parent("div").remove()
    }
    function delBox1(o) {
        $(o).parent("div").remove()
    }
</script>
@}