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
@layout("/common/_container.html"){
<style>
    /* 设置只展示时分,隐藏秒那一列 */
    .laydate-time-list {
        padding-bottom: 0;
        overflow: hidden;
    }
 
    .laydate-time-list > li {
        width: 50% !important;
    }
 
    .laydate-time-list > li:last-child {
        display: none;
    }
 
    .laydate-time-list ol li {
        width: 100% !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <div class="ibox-title col-sm-12">
                @if(language==1){
                <label class="label1">添加保证收入规则</label>
                <label class="label2">(司机获取保证收入前提:时间段内一直在线,且不能拒单)</label>
                @}
                @if(language==2){
                <label class="label1">Add guaranteed revenue rules</label>
                <label class="label2">(The prerequisite for drivers to obtain guaranteed income is to be online throughout the time period and not to refuse orders)</label>
                @}
                @if(language==3){
                <label class="label1">Tambah aturan pendapatan yang dijamin</label>
                <label class="label2">(Perkara awal bagi pengemudi untuk mendapatkan pendapatan yang dijamin adalah untuk online sepanjang waktu dan tidak untuk menolak pesanan)</label>
                @}
            </div>
            <div class="row col-sm-12" id="ensureIncomeRuleForm">
 
                <div class="col-sm-12">
                    <div class="col-sm-5">
                        @if(language==1){
                        <#input id="ruleName" name="活动名称"/>
                        @}
                        @if(language==2){
                        <#input id="ruleName" name="Activity Name"/>
                        @}
                        @if(language==3){
                        <#input id="ruleName" name="Nama Aktivitas"/>
                        @}
                    </div>
                    <div class="col-sm-3">
                        @if(language==1){
                        <#TimeCon id="expireTime" name="有效期"/>
                        @}
                        @if(language==2){
                        <#TimeCon id="expireTime" name="period of validity"/>
                        @}
                        @if(language==3){
                        <#TimeCon id="expireTime" name="periode validitas"/>
                        @}
                    </div>
                    <div class="col-sm-12">
                        <div class="col-sm-12">
                            @if(language==1){
                            <label style="font-size: 15px;color: black">基础配置</label>
                            @}
                            @if(language==2){
                            <label style="font-size: 15px;color: black">basic configuration</label>
                            @}
                            @if(language==3){
                            <label style="font-size: 15px;color: black">konfigurasi dasar</label>
                            @}
                            <br/><br/>
                        </div>
 
                        <div class="col-sm-12">
                            @if(language==1){
                            <label style="font-size: 13px;color: black;text-indent: 30px;">上限配置</label>
                            @}
                            @if(language==2){
                            <label style="font-size: 13px;color: black;text-indent: 30px;">Upper limit configuration</label>
                            @}
                            @if(language==3){
                            <label style="font-size: 13px;color: black;text-indent: 30px;">Konfigurasi batas atas</label>
                            @}
                            <br/><br/>
                        </div>
 
                        <div class="col-sm-12">
                            @if(language==1){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">活动期间保证收入金额上限</label>
                            <input class="control-label" id="periodAmount1" name="periodAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            @if(language==2){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">Maximum guaranteed revenue amount during the event period</label>
                            <input class="control-label" id="periodAmount2" name="periodAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            @if(language==3){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">Jumlah pendapatan maksimum yang dijamin selama peristiwa</label>
                            <input class="control-label" id="periodAmount3" name="periodAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            <br/><br/>
                        </div>
 
                        <div class="col-sm-12">
                            @if(language==1){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;每月保证收入金额上限</label>
                            <input class="control-label" id="periodMonthAmount1" name="periodMonthAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            @if(language==2){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;Maximum monthly guaranteed income amount</label>
                            <input class="control-label" id="periodMonthAmount2" name="periodMonthAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            @if(language==3){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;Jumlah pendapatan maksimum bulanan yang dijamin</label>
                            <input class="control-label" id="periodMonthAmount3" name="periodMonthAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            <br/><br/>
                        </div>
 
                        <div class="col-sm-12">
                            @if(language==1){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;每天保证收入金额上限</label>
                            <input class="control-label" id="periodDayAmount1" name="periodDayAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            @if(language==2){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;Maximum guaranteed daily income amount</label>
                            <input class="control-label" id="periodDayAmount2" name="periodDayAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            @if(language==3){
                            <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;Jumlah pendapatan harian maksimum yang dijamin</label>
                            <input class="control-label" id="periodDayAmount3" name="periodDayAmount" type="number" min="1" style="height: 30px;width: 80px" required>
                            <label class="control-label" style="font-size: 10px;">Rp</label>
                            @}
                            <br/><br/>
                        </div>
 
                        <div class="col-sm-12">
                            @if(language==1){
                            <label style="font-size: 13px;color: black;text-indent: 30px;">时间段配置</label>&emsp;&emsp;<button name="addBtn" onclick="TEnsureIncomeRule.addBox()">添加</button>
                            @}
                            @if(language==2){
                            <label style="font-size: 13px;color: black;text-indent: 30px;">Time period configuration</label>&emsp;&emsp;<button name="addBtn" onclick="TEnsureIncomeRule.addBox()">Add</button>
                            @}
                            @if(language==3){
                            <label style="font-size: 13px;color: black;text-indent: 30px;">Konfigurasi periode waktu</label>&emsp;&emsp;<button name="addBtn" onclick="TEnsureIncomeRule.addBox()">Tambah</button>
                            @}
                            <br/><br/>
                        </div>
 
                        <div class="col-sm-12" id="timeConfig">
                            @if(language==1){
                            <div class="col-sm-12">
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;活动时间段</label>
                                <input class="control-label"  name="startTime" type="text" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">-</label>
                                <input class="control-label"  name="endTime" type="text" style="height: 30px;width: 80px" required>
 
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;保证收入金额</label>
                                <input class="control-label" name="amount" type="number" min="1" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">Rp</label>
 
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;累计在线时长</label>
                                <input class="control-label" name="onLineTime" type="number" min="1" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">分钟</label>
                            </div>
                            @}
                            @if(language==2){
                            <div class="col-sm-12">
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;active time</label>
                                <input class="control-label"  name="startTime" type="text" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">-</label>
                                <input class="control-label"   name="endTime" type="text" style="height: 30px;width: 80px" required>
 
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;Guaranteed income amount</label>
                                <input class="control-label" name="amount" type="number" min="1" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">Rp</label>
 
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;Accumulated online duration</label>
                                <input class="control-label" name="onLineTime" type="number" min="1" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">minute</label>
                            </div>
                            @}
                            @if(language==3){
                            <div class="col-sm-12">
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;&emsp;waktu aktif</label>
                                <input class="control-label"  name="startTime" type="text" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">-</label>
                                <input class="control-label"   name="endTime" type="text" style="height: 30px;width: 80px" required>
 
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;Jumlah pendapatan yang dijamin</label>
                                <input class="control-label" name="amount" type="number" min="1" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">Rp</label>
 
                                <label class="control-label" style="font-size: 10px;text-indent: 60px;">&emsp;Durasi online terkumpul</label>
                                <input class="control-label" name="onLineTime" type="number" min="1" style="height: 30px;width: 80px" required>
                                <label class="control-label" style="font-size: 10px;">menit</label>
                            </div>
                            @}
                            <br/><br/>
                        </div>
                        <br/><br/>
                        <hr/>
                        <br/><br/>
 
                        <div class="col-sm-12">
                            @if(language==1){
                            <label style="font-size: 15px;color: black">特殊时段配置</label>&emsp;&emsp;<button name="addBtn" onclick="TEnsureIncomeRule.addSpecialBox()">添加</button>
                            @}
                            @if(language==2){
                            <label style="font-size: 15px;color: black;">Special Period Configuration</label>&emsp;&emsp;<button name="addBtn" onclick="TEnsureIncomeRule.addSpecialBox()">Add</button>
                            @}
                            @if(language==3){
                            <label style="font-size: 15px;color: black;">Konfigurasi Period Khusus</label>&emsp;&emsp;<button name="addBtn" onclick="TEnsureIncomeRule.addSpecialBox()">Tambah</button>
                            @}
                            <br/><br/>
                        </div>
                        <div id="specialTimeConfig">
                        </div>
                    </div>
                </div>
 
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10" style="text-align: center">
                    @if(language==1){
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TEnsureIncomeRuleInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TEnsureIncomeRuleInfoDlg.close()"/>
                    @}
                    @if(language==2){
                    <#button btnCss="info" name="submit" id="ensure" icon="fa-check" clickFun="TEnsureIncomeRuleInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="cancel" id="cancel" icon="fa-eraser" clickFun="TEnsureIncomeRuleInfoDlg.close()"/>
                    @}
                    @if(language==3){
                    <#button btnCss="info" name="mengirim" id="ensure" icon="fa-check" clickFun="TEnsureIncomeRuleInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="batalkan" id="cancel" icon="fa-eraser" clickFun="TEnsureIncomeRuleInfoDlg.close()"/>
                    @}
                </div>
            </div>
        </div>
 
    </div>
</div>
<script src="${ctxPath}/modular/system/tEnsureIncomeRule/tEnsureIncomeRule_info.js"></script>
<script src="${ctxPath}/modular/system/tEnsureIncomeRule/tEnsureIncomeRule.js"></script>
<style>
    .label1{
        font-size: 18px;
    }
    .label2{
        font-size: 10px;
        color: darkgray;
        text-align: left;
    }
    button[name=addBtn]{
        background-color: #0d8ddb;
        color: white;
        border-radius: 5px;
        width: 80px;
        height: 30px;
        border-color: #0d8ddb;
    }
</style>
<script type="text/javascript">
    laydate.render({
        elem: '#expireTime',
        type: 'month',
        format: 'yyyy-MM',
        range: true,
        lang:"en"
    });
 
    laydate.render({
        elem: 'input[name=startTime]',
        type: 'time',
        format: 'HH:mm',
        range: false,
        lang:"en"
    });
    laydate.render({
        elem: 'input[name=endTime]',
        type: 'time',
        format: 'HH:mm',
        range: false,
        lang:"en"
    });
 
 
</script>
@}