puzhibing
2024-03-04 7e7f901b2172281dc294dfbc67e6ad00625f09f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
@layout("/common/_container.html"){
<style>
    .newWidth, .single-line{
        max-width:150px !important;display: initial !important;
    }
    .b1{
        width: 200px;height: 100px;border-color: #0e9aef;background-color:transparent;
    }
    .button ,button-primary, button-small {
        border: 1px solid #0e9aef;
        width: 200px;height: 100px;
        text-align: center;
        line-height: 100px;
    }
    .box{
        display: flex;
        margin-left: 24px;
        margin-bottom: 10px;
 
 
    ;
    }
 
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
 
        <div class="form-horizontal" >
            <div class="row">
                <div class="col-sm-11">
                    <input type="hidden" id="kcId" name="kcId"
                           @if(isNotEmpty(kcId)){
                           value="${kcId}"
                           @}else{
                           value=""
                           @}
                    >
 
                    <div class="">
                        @if(language==1){
                        <h3>同城快送价格设置:</h3>
                        @}
                        @if(language==2){
                        <h3>City express send price setting:</h3>
                        @}
                        @if(language==3){
                        <h3>Pengaturan harga pengiriman ekspres intra kota:</h3>
                        @}
 
 
                    </div>
                    <br/>
                    <br/>
                    <input type="hidden" id="tcId" name="tcId"
                           @if(isNotEmpty(tcId)){
                           value="${tcId}"
                           @}else{
                           value=""
                           @}
                    >
                    <!--                    <div id="but">-->
                    <!--                        <button  class="('show?b1')" name="SupendButton-one"  onclick="changeColor(this)">司机</button>&nbsp;&nbsp;&nbsp;&nbsp;-->
                    <!--                        <button class="(show1?'b1')" name="SupendButton-two"  onclick="changeColor1(this)">用户</button>-->
                    <!--                    </div>-->
 
                    <div class="box">
 
                        <div id="SupendButton-one" type="button" class="button button-primary button-small " onclick=changeColor(this);>
                            @if(language==1){
                            <p>司机</p>
                            @}
                            @if(language==2){
                            <p>driver</p>
                            @}
                            @if(language==3){
                            <p>Pengemudi</p>
                            @}
                        </div>
                        <div id="SupendButton-two" type="button" class="button button-primary button-small "  onclick=changeColor1(this);>
                            @if(language==1){
                            <p>用户</p>
                            @}
                            @if(language==2){
                            <p>user</p>
                            @}
                            @if(language==3){
                            <p>pengguna</p>
                            @}
                        </div>
                    </div>
 
 
                    <div class="col-sm-6"  style="display: flex;width: 50%;" >
 
                        <div class="input-group">
                            <div class="input-group-btn">
                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
                                    @if(language==1){
                                    选择城市:
                                    @}
                                    @if(language==2){
                                    Select city:
                                    @}
                                    @if(language==3){
                                    Pilih Kota:
                                    @}
 
                                </button>
                            </div>
                            <select class="form-control" id="openCityId" style="width: 300px" onclick="provinceChange(this)">
                                @if(language==1){
                                <option value="">请选择城市</option>
                                @for(obj in openCity){
                                <option value="${obj.id}">${obj.chineseName}</option>
                                @}
                                @}
                                @if(language==2){
                                <option value="">Select city</option>
                                @for(obj in openCity){
                                <option value="${obj.id}">${obj.englishName}</option>
                                @}
                                @}
                                @if(language==3){
                                <option value="">Pilih Kota</option>
                                @for(obj in openCity){
                                <option value="${obj.id}">${obj.indonesianName}</option>
                                @}
                                @}
                            </select>
                        </div>
                    </div>
 
 
                    <div class="form-group">
                        <label class="col-sm-1 control-label"></label>
                        <div class="col-sm-10" style="font-weight: bold">
                            @if(language==1){
                            (根据起点终点距离收费):<br/>
                            @}
                            @if(language==2){
                            (Charge according to the distance from the starting point to the destination point):<br/>
                            @}
                            @if(language==3){
                            (Mengisi sesuai dengan jarak dari titik awal ke titik tujuan):<br/>
                            @}
 
                        </div>
                    </div>
 
                    <div class="form-group">
                        @if(language==1){
                        <label class="col-sm-2 control-label">起步价设置:</label>
                        @}
                        @if(language==2){
                        <label class="col-sm-2 control-label">Setting of starting price:</label>
                        @}
                        @if(language==3){
                        <label class="col-sm-2 control-label">Pengaturan harga mulai:</label>
                        @}
 
                        @if(language==1){
                        <div class="col-sm-10">
                            起步价为&nbsp;
                            <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1" class="form-control newWidth" placeholder="最多5位数"/>&nbsp;Rp,
                            起步包含&nbsp;<input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2" class="form-control newWidth" placeholder="最多3位数"/>&nbsp;公里,
                            &nbsp;<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3" class="form-control newWidth" placeholder="最多3位数"/>&nbsp;分钟
                            <br/>
                        </div>
                        @}
                        @if(language==2){
                        <div class="col-sm-10">
                            The starting price is&nbsp;
                            <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1" class="form-control newWidth" placeholder="Up to 5 digits"/>&nbsp;Rp,
                            and the starting time includes&nbsp;<input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2" class="form-control newWidth" placeholder="Up to 3 digits"/>&nbsp;kilometers,
                            &nbsp;<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3" class="form-control newWidth" placeholder="Up to 3 digits"/>&nbsp; minutes
                            <br/>
                        </div>
                        @}
                        @if(language==3){
                        <div class="col-sm-10">
                            Harga awal adalah &nbsp;
                            <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1" class="form-control newWidth" placeholder="Sehingga 5 digit"/>&nbsp;Rp,
                            dan waktu mulai termasuk&nbsp;<input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2" class="form-control newWidth" placeholder="Sehingga 3 digit"/>&nbsp;kilometer,
                            &nbsp;<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3" class="form-control newWidth" placeholder="Sehingga 3 digit"/>&nbsp;menit
                            <br/>
                        </div>
                        @}
                    </div>
 
 
                    @if(language==1){
                    <div class="form-group">
                        <label class="col-sm-2 control-label">里程费设置:</label>
                        <div class="col-sm-10">
                            超过起步里程后每公里&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num4" id="num4" class="form-control newWidth" placeholder="最多5位数"/>&nbsp;Rp
                            <br/>
                        </div>
                    </div>
                    @}
                    @if(language==2){
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Mileage fee setting:</label>
                        <div class="col-sm-10">
                            Rp&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num4" id="num4" class="form-control newWidth" placeholder="Up to 5 digits"/>&nbsp;per kilometer after exceeding the starting mileage
                            <br/>
                        </div>
                    </div>
                    @}
                    @if(language==3){
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Pengaturan biaya jarak tempuh:</label>
                        <div class="col-sm-10">
                            Rp&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num4" id="num4" class="form-control newWidth" placeholder="Sehingga 5 digit"/>&nbsp;per kilometer setelah melebihi jarak tempuh awal
                            <br/>
                        </div>
                    </div>
                    @}
 
 
                    @if(language==1){
                    <div class="form-group" id="night">
                        <label class="col-sm-2 control-label">夜间行驶费用设置:</label>
                        <div class="col-sm-10">
                            <input type="text" name="num5" id="num1-1" class="form-control newWidth nightTime" placeholder="选择时间"/>&nbsp;点为夜间行驶时间,
                            起步价变为&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num6" id="num6" class="form-control newWidth" placeholder="最多5位数"/>&nbsp;Rp
                            <br>
                            <br>
                            里程费为每公里&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num7" id="num7" class="form-control newWidth" placeholder="最多5位数"/>&nbsp;Rp
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox()"></i>
                            <br/>
                        </div>
                    </div>
                    @}
                    @if(language==2){
                    <div class="form-group" id="night">
                        <label class="col-sm-2 control-label">Night driving cost setting:</label>
                        <div class="col-sm-10">
                            <input type="text" name="num5" id="num1-1" class="form-control newWidth nightTime" placeholder="select time"/>&nbsp;is the night driving time, and the starting price will be
                            &nbsp;<input type="text" oninput="checkIsYuan(this)" name="num6" id="num6" class="form-control newWidth" placeholder="Up to 5 digits"/>&nbsp;Rp
                            <br>
                            <br>
                            The mileage fee is &nbsp;<input type="text" oninput="checkIsYuan(this)" name="num7" id="num7" class="form-control newWidth" placeholder="Up to 5 digits "/>&nbsp;Rp
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox()"></i>
                            <br/>
                        </div>
                    </div>
                    @}
                    @if(language==3){
                    <div class="form-group" id="night">
                        <label class="col-sm-2 control-label">Pengaturan biaya mengemudi malam:</label>
                        <div class="col-sm-10">
                            <input type="text" name="num5" id="num1-1" class="form-control newWidth nightTime" placeholder="Pilih waktu"/>&nbsp;adalah waktu mengemudi malam, dan harga awal akan
                            &nbsp;<input type="text" oninput="checkIsYuan(this)" name="num6" id="num6" class="form-control newWidth" placeholder="Sehingga 5 digit"/>&nbsp;Rp
                            <br>
                            <br>
                            Biaya jarak tempuh adalah&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num7" id="num7" class="form-control newWidth" placeholder="Sehingga 5 digit"/>&nbsp;Rp
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-plus" onclick="addBox()"></i>
                            <br/>
                        </div>
                    </div>
                    @}
 
 
 
                </div>
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10 col-sm-offset-1">
                    @if(language==1){
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="addSubmit()"/>
                    @}
                    @if(language==2){
                    <#button btnCss="info" name="Submit" id="ensure" icon="fa-check" clickFun="addSubmit()"/>
                    @}
                    @if(language==3){
                    <#button btnCss="info" name="Kirim" id="ensure" icon="fa-check" clickFun="addSubmit()"/>
                    @}
 
 
                </div>
            </div>
        </div>
 
 
    </div>
</div>
<!--<script src="${ctxPath}/modular/system/tSystemPrice/tSystemPrice_info.js"></script>-->
<script type="text/javascript">
 
    let language = $("#language").val()
    function changeColor(obj) {
            //清空其它同类按钮选中颜色
            $('div[id^="SupendButton-"]').css("background-color", "transparent");//按钮原来颜色
            //点击后变色
            $(obj).val(1);
            $("#SupendButton-two").val('')
            $(obj).css("background-color", "#0e9aef")
 
 
    }
    function changeColor1(obj) {
            //清空其它同类按钮选中颜色
            $('div[id^="SupendButton-"]').css("background-color", "transparent");//按钮原来颜色
            //点击后变色
            $(obj).val(2);
        $("#SupendButton-one").val('')
        $(obj).css("background-color", "#0e9aef")
 
    }
    var regDouble = /^(0|[1-9]\d{0,4})(\.\d{1,2})?$/;
    var regInt = /^[0-9]{0,3}$/;
    function checkIsYuan(obj){
        var num = $(obj).val();
        if(!regDouble.test(num)){
            if(language==1){
                layer.msg("【Rp】输入框不能超过5位数,保留两位小数");
            }else if(language==2){
                layer.msg("【Rp】The input field cannot exceed 5 digits. Two decimal places are reserved");
            }else {
                layer.msg("【Rp】Kotak masukan tidak dapat melebihi 5 digit, dan dua tempat desimal disimpan");
            }
 
        }
    }
    function checkIsGongLi(obj){
        var num = $(obj).val();
        if(!regDouble.test(num)){
            if(language==1){
                layer.msg("【公里】输入框不能超过3位数,保留两位小数");
            }else if(language==2){
                layer.msg("【km】The input field cannot exceed 3 digits. Two decimal places are reserved");
            }else {
                layer.msg("【km】Kotak masukan tidak dapat melebihi 3 digit, dan dua tempat desimal disimpan");
            }
 
        }
        if (obj.id == "num1"){
            $("#num3").val(num);
        }else if (obj.id == "num4"){
            $("#num6").val(num);
        }else if (obj.id == "num7"){
            $("#num9").val(num);
        }else if (obj.id == "num12"){
            $("#num14").val(num);
        }else if (obj.id == "num15"){
            $("#num17").val(num);
        }else if (obj.id == "num18"){
            $("#num20").val(num);
        }
    }
    function checkIsMinute(obj){
        var num = $(obj).val();
        if(!regInt.test(num)){
            if(language==1){
                layer.msg("【分钟】输入框不能超过3位数");
            }else if(language==2){
                layer.msg("【minute】The input field cannot exceed 3 digits");
            }else {
                layer.msg("【menit】Kotak masukan tidak dapat melebihi 3 digit");
            }
 
        }
    }
 
    function  provinceChange(e) {
        var provinceCode=$(e).val();
        var ajax = new $ax(Feng.ctxPath + "/tSystemPrice/change", function(data){
            if(data!=null){
                if(language==1){
                    var content='<option value="">选择市</option>';
                }else if(language==2){
                    var content='<option value="">Please select a city</option>';
                }else {
                    var content='<option value="">Pilih Kota</option>';
                }
 
                $.each(data, function(k,v) {
                    content += "<option value='"+v.cityId+"'>"+v.cityName+"</option>";
                });
                $("#twoId").empty().append(content);
            }
        });
        ajax.set("code",provinceCode);
        ajax.start();
    }
    //提交数据
    function addSubmit() {
        //验证数据格式-跨城小件物流价格设置
        var kcId = $("#kcId").val();
        var num101 = $("#num101").val();
        var num102 = $("#num102").val();
        //验证数据格式-同城小件物流价格设置
        var tcId = $("#cityId").val();
        if(tcId==''){
            if(language==1){
                Feng.info("请选择城市")
            }else if(language==2){
                Feng.info("Please select a city")
            }else {
                Feng.info("Pilih Kota")
            }
 
            return false;
        }
 
        var num1 = $("#num1").val();
        var num2 = $("#num2").val();
        var num3 = $("#num3").val();
        var num4 = $("#num4").val();
        let num5 = $('input[name="num5"]');
        let num6 = $('input[name="num6"]');
        let num7 = $('input[name="num7"]');
        var b1 = $("#SupendButton-one").val();
        var b2 = $("#SupendButton-two").val();
        if(b1=='' && b2==''){
            if(language==1){
                Feng.error("【请选择计价对象类型】");
            }else if(language==2){
                Feng.error("【Please select the valuation object type】");
            }else {
                Feng.error("【Silakan pilih tipe objek penghargaan】");
            }
 
            return;
        }
        let type =null;
        if(b1!=''){
            type=b1
        }
        if(b2!=''){
            type=b2
        }
        if ("" == num1 || "" == num2 || "" == num3 || "" == num4   ){
            if(language==1){
                Feng.error("【同城快送价格设置】输入框不能为空");
            }else if(language==2){
                Feng.error("The input box of [Intra-City Express Delivery Price Setting] cannot be empty");
            }else {
                Feng.error("【Kotak input [Pengaturan Harga Pengiriman Ekspres Intra-Kota] tidak dapat kosong");
            }
 
            return;
        }else if (!regDouble.test(num1) || !regDouble.test(num2) || !regDouble.test(num3) || !regDouble.test(num4)    ){
            if(language==1){
                Feng.error("【同城快送价格设置】输入框格式不正确");
            }else if(language==2){
                Feng.error("【Intra-City Express Delivery Price Setting】The format of the input box is incorrect");
            }else {
                Feng.error("【Pengaturan Harga Pengiriman Ekspres Intra-Kota】Format kotak masukan tidak benar");
            }
 
            return;
        }
        //封装数据
        var json2 = '{"num1":"'+num1+'","num2":"'+num2+'","num3":"'+num3+'","num4":"'+num4+'"}';
 
 
 
 
        var json1='[';
        for (let i = 0; i < num5.length; i++) {
            var arr = '{"num1":"'+$(num5[i]).val()+'","num2":"'+$(num6[i]).val()+'","num3":"'+$(num7[i]).val()+'"}';
            if(i==num5.length-1){
                json1 += arr+']'
            }else {
                json1  += arr+','
            }
        }
 
        //提交信息
        var ajax = new $ax(Feng.ctxPath + "/tSystemPrice/smallSubmit", function(data){
            if(language==1){
            Feng.success("操作成功!");
            }else if(language==2){
                Feng.success("Operate successfully!");
            }else {
                Feng.success("Operasi berhasil!");
            }
 
            location.reload();
        },function(data){
            if(language==1){
                if(language==1){
            Feng.error("操作失败!" + data.responseJSON.message + "!");
        }else if(language==2){
            Feng.error("Fail!" + data.responseJSON.message + "!");
        }else {
            Feng.error("Gagal!" + data.responseJSON.message + "!");
        }
            }else if(language==2){
                Feng.error("Operation failure!" + data.responseJSON.message + "!");
            }else {
                Feng.error("Operasi gagal!" + data.responseJSON.message + "!");
            }
 
        });
        ajax.set("tcId", tcId);
        ajax.set("json2", json2);
        ajax.set("type", type);
        ajax.set("json1", json1);
        ajax.set("openCityId", $('#openCityId').val());
        ajax.start();
    }
 
 
    function  addBox() {
        var i = $('.nightTime').length + 1;
        if(language==1){
            var a =" <div class=\"form-group\">\n" +
                "                        <label class=\"col-sm-2 control-label\"></label>\n" +
                "                        <div class=\"col-sm-10\">\n" +
                "                            <input type=\"text\" name=\"num5\" id=\"num1-" + i + "\" class=\"form-control newWidth nightTime\" placeholder=\"选择时间\"/>&nbsp;点为夜间行驶时间,\n" +
                "                            起步价变为&nbsp;<input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num6\" id=\"num6\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/>&nbsp;Rp\n" +
                "                            <br>\n" +
                "                            <br>\n" +
                "                            里程费为每公里&nbsp;<input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num7\" id=\"num7\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/>&nbsp;Rp\n" +
                "                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
                "                            <br/>\n" +
                "                        </div>\n" +
                "                    </div>"
        }else if(language==2){
            var a =" <div class=\"form-group\">\n" +
                "                        <label class=\"col-sm-2 control-label\"></label>\n" +
                "                        <div class=\"col-sm-10\">\n" +
                "                            <input type=\"text\" name=\"num5\" id=\"num1-" + i + "\" class=\"form-control newWidth nightTime\" placeholder=\"select time\"/>&nbsp; is the night driving time, and the starting price will be,\n" +
                "                            &nbsp;<input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num6\" id=\"num6\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/>&nbsp;Rp\n" +
                "                            <br>\n" +
                "                            <br>\n" +
                "                            The mileage fee is &nbsp;<input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num7\" id=\"num7\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/>&nbsp;Rp\n" +
                "                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
                "                            <br/>\n" +
                "                        </div>\n" +
                "                    </div>"
        }else {
            var a =" <div class=\"form-group\">\n" +
                "                        <label class=\"col-sm-2 control-label\"></label>\n" +
                "                        <div class=\"col-sm-10\">\n" +
                "                            <input type=\"text\" name=\"num5\" id=\"num1-" + i + "\" class=\"form-control newWidth nightTime\" placeholder=\"Pilih waktu\"/>&nbsp;untuk waktu mengemudi di malam hari, dan harga awal menjadi,\n" +
                "                            &nbsp;<input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num6\" id=\"num6\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/>&nbsp;Rp\n" +
                "                            <br>\n" +
                "                            <br>\n" +
                "                            Biaya jarak tempuh adalah&nbsp;<input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num7\" id=\"num7\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/>&nbsp;Rp\n" +
                "                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
                "                            <br/>\n" +
                "                        </div>\n" +
                "                    </div>"
        }
 
        $("#night").append($(a))
        laydate.render({
            elem: '#num1-' + i
            ,type: 'time'
            ,range: '-'
            ,format: 'HH:mm'
            ,lang:"en"
        });
 
    }
    function delBox(o) {
        $(o).parent("div").parent("div").remove()
    }
 
 
    laydate.render({
        elem: '#num1-1'
        ,type: 'time'
        ,range: '-'
        ,format: 'HH:mm'
        ,lang:"en"
    });
</script>
@}