@layout("/common/_container.html"){
|
<style>
|
.newWidth, .single-line{
|
max-width:150px !important;display: initial !important;
|
}
|
.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">
|
|
|
@if(language==1){
|
<div class="form-horizontal" id="specialPriceInfoForm">
|
<div class="row">
|
<div class="col-sm-111">
|
|
|
|
<input hidden id="oldType" value="${item.userType}">
|
<input hidden id="oldOpenCityId" value="${item.openCityId}">
|
<input hidden id="oldServer" value="${carType}">
|
<div class="box">
|
<div id="SupendButton-one" type="button" class="button button-primary button-small " onclick=changeColor(this);>
|
<p>司机</p>
|
</div>
|
<div id="SupendButton-two" type="button" class="button button-primary button-small " onclick=changeColor1(this);>
|
<p>用户</p>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">选择车型:</label>
|
<div class="col-sm-10">
|
<select class="form-control" id="serverCarModelId" name="serverCarModelId" style="width: 200px;">
|
@for(obj in modelList!){
|
<option value="${obj.id}" ${obj.id == carType ? 'selected=selected' : ''}>${obj.name}</option>
|
@}
|
</select>
|
</div>
|
</div>
|
|
<div class="form-group" style="display: flex">
|
<label class="col-sm-2 control-label">选择城市:</label>
|
<div class="col-sm-10" style="display: flex">
|
<select class="form-control" id="openCityId" name="openCityId" style="width: 200px;" onclick="provinceChange(this)">
|
@for(obj in openCity){
|
<option value="${obj.id}" ${obj.id == item.openCityId ? 'selected=selected' : ''}>${obj.chineseName}</option>
|
@}
|
</select>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">起步价设置:</label>
|
<div class="col-sm-10">
|
起步价为 <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1" value="${json1.num1}" class="form-control newWidth" placeholder="最多5位数"/> Rp,
|
起步包含 <input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2" value="${json1.num2}" class="form-control newWidth" placeholder="最多3位数"/> 公里,
|
<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3" value="${json1.num3}" class="form-control newWidth" placeholder="最多3位数"/> 分钟
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">里程费设置:</label>
|
<div class="col-sm-10">
|
超过起步里程后每公里 <input type="text" oninput="checkIsYuan(this)" name="num4" id="num4" value="${json2.num1}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">时长费设置:</label>
|
<div class="col-sm-10">
|
超过起步时长后每分钟 <input type="text" oninput="checkIsYuan(this)" name="num5" id="num5" value="${json3.num1}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">等待费设置:</label>
|
<div class="col-sm-10">
|
司机到达预约地点 <input type="text" oninput="checkIsMinute(this)" name="num6" id="num6" value="${json4.num1}" class="form-control newWidth" placeholder="最多3位数"/> 分钟过后开始收取等待费,
|
为 <input type="text" oninput="checkIsYuan(this)" name="num7" id="num7" value="${json4.num2}" class="form-control newWidth" placeholder="最多5位数"/> Rp/分,不足一分钟按照一分钟计算
|
<br/>
|
</div>
|
</div>
|
|
@for(json5 in json5a){
|
@if(json5.num10 !=null ){
|
<div class="form-group" id="fastigium">
|
<label class="col-sm-2 control-label">高峰期费用设置:</label>
|
@}else{
|
<div class="form-group">
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
<input type="text" name="num24" id="num24-1" value="${json5.num1}" class="form-control newWidth fastigium" placeholder="选择时间段"/> 为高峰期行车时间,
|
起步价变为 <input type="text" oninput="checkIsYuan(this)" name="num25" id="num25" value="${json5.num2}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
<br>
|
<br>
|
里程费为每公里 <input type="text" oninput="checkIsYuan(this)" name="num26" id="num26" value="${json5.num3}" class="form-control newWidth" placeholder="最多5位数"/> Rp,
|
时长费为每分钟 <input type="text" oninput="checkIsYuan(this)" name="num27" id="num27" value="${json5.num4}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
@if(json5.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBoxend()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
@for(json6 in json6a){
|
@if(json6.num10 !=null ){
|
<div class="form-group" id="far">
|
<label class="col-sm-2 control-label">远途费设置:</label>
|
@}else{
|
<div class="form-group" >
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
总里程超过 <input type="text" oninput="checkIsGongLi(this)" name="num8" id="num8" value="${json6.num1}" class="form-control newWidth" placeholder="最多3位数"/> 公里
|
不足 <input type="text" oninput="checkIsGongLi(this)" name="num9" id="num9" value="${json6.num2}" class="form-control newWidth" placeholder="最多3位数"/> 公里,
|
超出部分每公里加收 <input type="text" oninput="checkIsYuan(this)" name="num10" id="num10" value="${json6.num3}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
<br>
|
<br>
|
超过 <input type="text" oninput="checkIsGongLi(this)" name="num11" id="num11" value="${json6.num4}" class="form-control newWidth" placeholder="最多3位数"/> 公里
|
不足 <input type="text" oninput="checkIsGongLi(this)" name="num12" id="num12" value="${json6.num5}" class="form-control newWidth" placeholder="最多3位数"/> 公里时,
|
超出部分每公里加收 <input type="text" oninput="checkIsYuan(this)" name="num13" value="${json6.num6}" id="num13" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
<br/>
|
<br>
|
超过 <input type="text" oninput="checkIsGongLi(this)" name="num14" id="num14" value="${json6.num7}" class="form-control newWidth" placeholder="最多3位数"/> 公里以后,
|
超出部分每公里加收 <input type="text" oninput="checkIsYuan(this)" name="num15" id="num15" value="${json6.num8}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
@if(json6.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBox1()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
@for(json7 in json7a){
|
|
@if(json7.num10 !=null ){
|
<div class="form-group" id="night">
|
<label class="col-sm-2 control-label">夜间行驶费用设置:</label>
|
@}else{
|
<div class="form-group" >
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
<input type="text" name="num16" id="num16-1" value="${json7.num1}" class="form-control newWidth night" placeholder="选择时间"/> 点为夜间行驶时间,
|
起步价变为 <input type="text" oninput="checkIsYuan(this)" name="num17" id="num17" value="${json7.num2}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
<br>
|
<br>
|
里程费为每公里 <input type="text" oninput="checkIsYuan(this)" name="num18" id="num18" value="${json7.num3}" class="form-control newWidth" placeholder="最多5位数"/> Rp,
|
时长费为每分钟 <input type="text" oninput="checkIsYuan(this)" name="num19" id="num19" value="${json7.num4}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
<br>
|
<br>
|
远途费为每公里加收 <input type="text" oninput="checkIsYuan(this)" name="num20" id="num20" value="${json7.num5}" class="form-control newWidth" placeholder="最多5位数"/>
|
、 <input type="text" oninput="checkIsYuan(this)" name="num21" id="num21" value="${json7.num6}" class="form-control newWidth" placeholder="最多5位数"/>
|
、 <input type="text" oninput="checkIsYuan(this)" name="num22" id="num22" value="${json7.num7}" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
@if(json7.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBox2()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
|
</div>
|
|
<div class="row btn-group-m-t">
|
<div class="col-sm-10 col-sm-offset-5">
|
<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.editSubmit()"/>
|
<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TSystemPriceInfoDlg.close()"/>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
@}
|
@if(language==2){
|
<div class="form-horizontal" id="specialPriceInfoForm">
|
<div class="row">
|
<div class="col-sm-111">
|
|
|
|
<input hidden id="oldType" value="${item.userType}">
|
<input hidden id="oldOpenCityId" value="${item.openCityId}">
|
<input hidden id="oldServer" value="${carType}">
|
<div class="box">
|
<div id="SupendButton-one" type="button" class="button button-primary button-small " onclick=changeColor(this);>
|
<p>Driver</p>
|
</div>
|
<div id="SupendButton-two" type="button" class="button button-primary button-small " onclick=changeColor1(this);>
|
<p>User</p>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Select vehicle type:</label>
|
<div class="col-sm-10">
|
<select class="form-control" id="serverCarModelId" name="serverCarModelId" style="width: 200px;">
|
@for(obj in modelList!){
|
<option value="${obj.id}" ${obj.id == carType ? 'selected=selected' : ''}>${obj.name}</option>
|
@}
|
</select>
|
</div>
|
</div>
|
|
<div class="form-group" style="display: flex">
|
<label class="col-sm-2 control-label">Select city:</label>
|
<div class="col-sm-10" style="display: flex">
|
<select class="form-control" id="openCityId" name="openCityId" style="width: 200px;" onclick="provinceChange(this)">
|
@for(obj in openCity){
|
<option value="${obj.id}" ${obj.id == item.openCityId ? 'selected=selected' : ''}>${obj.englishName}</option>
|
@}
|
</select>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Starting price setting:</label>
|
<div class="col-sm-10">
|
The starting price is <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1" value="${json1.num1}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp,
|
and the starting time includes . <input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2" value="${json1.num2}" class="form-control newWidth" placeholder="Up to 3 digits"/> kilometers,
|
<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3" value="${json1.num3}" class="form-control newWidth" placeholder="Up to 3 digits"/> minutes
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Mileage fee setting:</label>
|
<div class="col-sm-10">
|
Rp per kilometer after exceeding the starting mileage <input type="text" oninput="checkIsYuan(this)" name="num4" id="num4" value="${json2.num1}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Time fee setting:</label>
|
<div class="col-sm-10">
|
Rp per minute after the start time. <input type="text" oninput="checkIsYuan(this)" name="num5" id="num5" value="${json3.num1}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Waiting fee setting:</label>
|
<div class="col-sm-10">
|
The waiting fee will be charged after <input type="text" oninput="checkIsMinute(this)" name="num6" id="num6" value="${json4.num1}" class="form-control newWidth" placeholder="Up to 3 digits"/> minutes after the driver arrives at the appointment place,
|
which <input type="text" oninput="checkIsYuan(this)" name="num7" id="num7" value="${json4.num2}" class="form-control newWidth" placeholder="Up to 5 digits"/> is Rp/minute. If it is less than one minute, it will be calculated as one minute.
|
<br/>
|
</div>
|
</div>
|
|
@for(json5 in json5a){
|
@if(json5.num10 !=null ){
|
<div class="form-group" id="fastigium">
|
<label class="col-sm-2 control-label">Peak period expense setting:</label>
|
@}else{
|
<div class="form-group">
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
<input type="text" name="num24" id="num24-1" value="${json5.num1}" class="form-control newWidth fastigium" placeholder="Select a time period"/> is the peak driving time,
|
and the starting price becomes. <input type="text" oninput="checkIsYuan(this)" name="num25" id="num25" value="${json5.num2}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
<br>
|
<br>
|
The mileage fee is <input type="text" oninput="checkIsYuan(this)" name="num26" id="num26" value="${json5.num3}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp,
|
per kilometer and the duration fee is Rp per minute. <input type="text" oninput="checkIsYuan(this)" name="num27" id="num27" value="${json5.num4}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
@if(json5.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBoxend()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
@for(json6 in json6a){
|
@if(json6.num10 !=null ){
|
<div class="form-group" id="far">
|
<label class="col-sm-2 control-label">Long-distance fee setting:</label>
|
@}else{
|
<div class="form-group" >
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
The total mileage is more than <input type="text" oninput="checkIsGongLi(this)" name="num8" id="num8" value="${json6.num1}" class="form-control newWidth" placeholder="Up to 3 digits"/> kilometers
|
but less than <input type="text" oninput="checkIsGongLi(this)" name="num9" id="num9" value="${json6.num2}" class="form-control newWidth" placeholder="Up to 3 digits"/> kilometers,
|
and the excess part will be charged Rp per kilometer. <input type="text" oninput="checkIsYuan(this)" name="num10" id="num10" value="${json6.num3}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
<br>
|
<br>
|
When the mileage is more than <input type="text" oninput="checkIsGongLi(this)" name="num11" id="num11" value="${json6.num4}" class="form-control newWidth" placeholder="Up to 3 digits"/> kilometers
|
but less than <input type="text" oninput="checkIsGongLi(this)" name="num12" id="num12" value="${json6.num5}" class="form-control newWidth" placeholder="Up to 3 digits"/> kilometers,
|
the excess part will be charged Rp per kilometer <input type="text" oninput="checkIsYuan(this)" name="num13" value="${json6.num6}" id="num13" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
<br/>
|
<br>
|
After more than <input type="text" oninput="checkIsGongLi(this)" name="num14" id="num14" value="${json6.num7}" class="form-control newWidth" placeholder="Up to 3 digits"/> kilometers,
|
the excess part will be charged Rp per kilometer. <input type="text" oninput="checkIsYuan(this)" name="num15" id="num15" value="${json6.num8}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
@if(json6.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBox1()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
@for(json7 in json7a){
|
|
@if(json7.num10 !=null ){
|
<div class="form-group" id="night">
|
<label class="col-sm-2 control-label">Night driving cost setting:</label>
|
@}else{
|
<div class="form-group" >
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
<input type="text" name="num16" id="num16-1" value="${json7.num1}" class="form-control newWidth night" placeholder="Select a time period"/> is the night driving time,
|
and the starting price will be. <input type="text" oninput="checkIsYuan(this)" name="num17" id="num17" value="${json7.num2}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
<br>
|
<br>
|
The mileage fee is <input type="text" oninput="checkIsYuan(this)" name="num18" id="num18" value="${json7.num3}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp,
|
per kilometer and the duration fee is Rp per minute. <input type="text" oninput="checkIsYuan(this)" name="num19" id="num19" value="${json7.num4}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
<br>
|
<br>
|
The long-distance fee will be added and Rp per kilometer. <input type="text" oninput="checkIsYuan(this)" name="num20" id="num20" value="${json7.num5}" class="form-control newWidth" placeholder="Up to 5 digits"/>
|
、 <input type="text" oninput="checkIsYuan(this)" name="num21" id="num21" value="${json7.num6}" class="form-control newWidth" placeholder="Up to 5 digits"/>
|
、 <input type="text" oninput="checkIsYuan(this)" name="num22" id="num22" value="${json7.num7}" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
@if(json7.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBox2()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
|
</div>
|
|
<div class="row btn-group-m-t">
|
<div class="col-sm-10 col-sm-offset-5">
|
<#button btnCss="info" name="Submit" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.editSubmit()"/>
|
<#button btnCss="danger" name="Cancel" id="cancel" icon="fa-eraser" clickFun="TSystemPriceInfoDlg.close()"/>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
@}
|
@if(language==3){
|
<div class="form-horizontal" id="specialPriceInfoForm">
|
<div class="row">
|
<div class="col-sm-111">
|
|
|
|
<input hidden id="oldType" value="${item.userType}">
|
<input hidden id="oldOpenCityId" value="${item.openCityId}">
|
<input hidden id="oldServer" value="${carType}">
|
<div class="box">
|
<div id="SupendButton-one" type="button" class="button button-primary button-small " onclick=changeColor(this);>
|
<p>Pengemudi</p>
|
</div>
|
<div id="SupendButton-two" type="button" class="button button-primary button-small " onclick=changeColor1(this);>
|
<p>Pengguna</p>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pilih Jenis Kendaraan:</label>
|
<div class="col-sm-10">
|
<select class="form-control" id="serverCarModelId" name="serverCarModelId" style="width: 200px;">
|
@for(obj in modelList!){
|
<option value="${obj.id}" ${obj.id == carType ? 'selected=selected' : ''}>${obj.name}</option>
|
@}
|
</select>
|
</div>
|
</div>
|
|
<div class="form-group" style="display: flex">
|
<label class="col-sm-2 control-label">Pilih Kota:</label>
|
<div class="col-sm-10" style="display: flex">
|
<select class="form-control" id="openCityId" name="openCityId" style="width: 200px;" onclick="provinceChange(this)">
|
@for(obj in openCity){
|
<option value="${obj.id}" ${obj.id == item.openCityId ? 'selected=selected' : ''}>${obj.indonesianName}</option>
|
@}
|
</select>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pengaturan harga mulai:</label>
|
<div class="col-sm-10">
|
Harga awal adalah <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1" value="${json1.num1}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp,
|
dan waktu mulai termasuk. <input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2" value="${json1.num2}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> kilometer,
|
<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3" value="${json1.num3}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> menit
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pengaturan biaya jarak tempuh:</label>
|
<div class="col-sm-10">
|
Rp per kilometer setelah melebihi jarak tempuh awal <input type="text" oninput="checkIsYuan(this)" name="num4" id="num4" value="${json2.num1}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pengaturan biaya waktu:</label>
|
<div class="col-sm-10">
|
Rp per menit setelah waktu mulai. <input type="text" oninput="checkIsYuan(this)" name="num5" id="num5" value="${json3.num1}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pengaturan biaya tunggu:</label>
|
<div class="col-sm-10">
|
Biaya tunggu akan dibebankan setelah <input type="text" oninput="checkIsMinute(this)" name="num6" id="num6" value="${json4.num1}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> menit setelah pengemudi tiba di tempat janji temu,
|
yaitu <input type="text" oninput="checkIsYuan(this)" name="num7" id="num7" value="${json4.num2}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp/menit. Jika kurang dari satu menit, itu akan dihitung sebagai satu menit.
|
<br/>
|
</div>
|
</div>
|
|
@for(json5 in json5a){
|
@if(json5.num10 !=null ){
|
<div class="form-group" id="fastigium">
|
<label class="col-sm-2 control-label">Pengaturan Biaya Periode Puncak:</label>
|
@}else{
|
<div class="form-group">
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
<input type="text" name="num24" id="num24-1" value="${json5.num1}" class="form-control newWidth fastigium" placeholder="Pilih periode waktu"/> adalah waktu mengemudi puncak,
|
dan harga awal menjadi. <input type="text" oninput="checkIsYuan(this)" name="num25" id="num25" value="${json5.num2}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
<br>
|
<br>
|
Biaya jarak tempuh adalah <input type="text" oninput="checkIsYuan(this)" name="num26" id="num26" value="${json5.num3}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp,
|
per kilometer dan biaya durasi adalah Rp per menit. <input type="text" oninput="checkIsYuan(this)" name="num27" id="num27" value="${json5.num4}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
@if(json5.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBoxend()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
@for(json6 in json6a){
|
@if(json6.num10 !=null ){
|
<div class="form-group" id="far">
|
<label class="col-sm-2 control-label">Pengaturan biaya jarak jauh:</label>
|
@}else{
|
<div class="form-group" >
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
Total jarak tempuh lebih dari <input type="text" oninput="checkIsGongLi(this)" name="num8" id="num8" value="${json6.num1}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> kilometer
|
tetapi kurang dari <input type="text" oninput="checkIsGongLi(this)" name="num9" id="num9" value="${json6.num2}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> kilometer,
|
dan kelebihan bagian akan dibebankan Rp per kilometer. <input type="text" oninput="checkIsYuan(this)" name="num10" id="num10" value="${json6.num3}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
<br>
|
<br>
|
Ketika jarak tempuh lebih dari <input type="text" oninput="checkIsGongLi(this)" name="num11" id="num11" value="${json6.num4}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> kilometer
|
tetapi kurang dari <input type="text" oninput="checkIsGongLi(this)" name="num12" id="num12" value="${json6.num5}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> kilometer,
|
bagian berlebih akan dikenakan biaya Rp per kilometer. <input type="text" oninput="checkIsYuan(this)" name="num13" value="${json6.num6}" id="num13" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
<br/>
|
<br>
|
Setelah lebih dari <input type="text" oninput="checkIsGongLi(this)" name="num14" id="num14" value="${json6.num7}" class="form-control newWidth" placeholder="Sehingga 3 digit"/> kilometer,
|
bagian berlebih akan dibebankan Rp per kilometer. <input type="text" oninput="checkIsYuan(this)" name="num15" id="num15" value="${json6.num8}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
@if(json6.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBox1()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
@for(json7 in json7a){
|
|
@if(json7.num10 !=null ){
|
<div class="form-group" id="night">
|
<label class="col-sm-2 control-label">Pengaturan biaya mengemudi malam:</label>
|
@}else{
|
<div class="form-group" >
|
<label class="col-sm-2 control-label"></label>
|
@}
|
<div class="col-sm-10">
|
<input type="text" name="num16" id="num16-1" value="${json7.num1}" class="form-control newWidth night" placeholder="Pilih periode waktu"/> adalah waktu mengemudi malam,
|
dan harga awal akan. <input type="text" oninput="checkIsYuan(this)" name="num17" id="num17" value="${json7.num2}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
<br>
|
<br>
|
Biaya jarak tempuh adalah <input type="text" oninput="checkIsYuan(this)" name="num18" id="num18" value="${json7.num3}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp,
|
per kilometer dan biaya durasi adalah Rp per menit. <input type="text" oninput="checkIsYuan(this)" name="num19" id="num19" value="${json7.num4}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
<br>
|
<br>
|
Biaya jarak jauh akan ditambahkan dan Rp per kilometer. <input type="text" oninput="checkIsYuan(this)" name="num20" id="num20" value="${json7.num5}" class="form-control newWidth" placeholder="Sehingga 5 digit"/>
|
、 <input type="text" oninput="checkIsYuan(this)" name="num21" id="num21" value="${json7.num6}" class="form-control newWidth" placeholder="Sehingga 5 digit"/>
|
、 <input type="text" oninput="checkIsYuan(this)" name="num22" id="num22" value="${json7.num7}" class="form-control newWidth" placeholder="Sehingga 5 digit"/> Rp
|
@if(json7.num10 !=null ){
|
<i class="fa fa-plus" onclick="addBox2()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
</div>
|
</div>
|
@}
|
|
|
|
</div>
|
|
<div class="row btn-group-m-t">
|
<div class="col-sm-10 col-sm-offset-5">
|
<#button btnCss="info" name="Kirim" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.editSubmit()"/>
|
<#button btnCss="danger" name="Batal" id="cancel" icon="fa-eraser" clickFun="TSystemPriceInfoDlg.close()"/>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
@}
|
</div>
|
|
</div>
|
|
|
<script src="${ctxPath}/modular/system/tSystemPrice/tSystemPrice_info.js"></script>
|
<script type="text/javascript">
|
var language = $("#language").val()
|
laydate.render({
|
elem: '#num23-1'
|
,type: 'time',
|
range:"-"
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '#num24-1'
|
,type: 'time',
|
range:"-"
|
,format: 'HH:mm'
|
});
|
laydate.render({
|
elem: '#num16-1'
|
,type: 'time',
|
range:"-"
|
,format: 'HH:mm'
|
});
|
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】Medan input tidak dapat melebihi 5 digit. Dua tempat perpuluhan 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】Medan input tidak dapat melebihi 3 digit. Dua tempat perpuluhan disimpan");
|
}
|
}
|
if (obj.id == "num9"){
|
$("#num11").val(num);
|
}else if (obj.id == "num12"){
|
$("#num14").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】Medan input tidak dapat melebihi 3 digit");
|
}
|
}
|
}
|
|
|
function addBoxend() {
|
var i = $(".fastigium").length +1
|
|
|
if(language==1){
|
var a =" <div class=\"form-group\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>"+
|
" <div class=\"col-sm-10\">\n" +
|
" <input type=\"text\" name=\"num24\" id=\"num24-"+i+"\" class=\"form-control newWidth fastigium\" placeholder=\"时间\"/> 为高峰期行车时间,\n" +
|
" 起步价变为 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num25\" id=\"num25\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" 里程费为每公里 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num26\" id=\"num26\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp,\n" +
|
" 时长费为每分钟 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num27\" id=\"num27\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" 远途费为每公里加收 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num28\" id=\"num28\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num29\" id=\"num29\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num30\" id=\"num30\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
"\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>"+
|
" <div class=\"col-sm-10\">\n" +
|
" <input type=\"text\" name=\"num24\" id=\"num24-"+i+"\" class=\"form-control newWidth fastigium\" placeholder=\"Time\"/> is the peak driving time,\n" +
|
" and the starting price becomes.\n" +
|
" <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num25\" id=\"num25\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" The mileage fee is <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num26\" id=\"num26\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp,\n" +
|
" per kilometer and the duration fee is Rp per minute. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num27\" id=\"num27\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
"\n" +
|
" <br/>\n" +
|
" </div>\n" +
|
" </div>"
|
}else {
|
var a =" <div class=\"form-group\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>"+
|
" <div class=\"col-sm-10\">\n" +
|
" <input type=\"text\" name=\"num24\" id=\"num24-"+i+"\" class=\"form-control newWidth fastigium\" placeholder=\"Time\"/> adalah waktu mengemudi puncak,\n" +
|
" dan harga awal menjadi.\n" +
|
" <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num25\" id=\"num25\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" Biaya jarak tempuh adalah <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num26\" id=\"num26\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp,\n" +
|
" per kilometer dan biaya durasi adalah Rp per menit <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num27\" id=\"num27\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
"\n" +
|
" <br/>\n" +
|
" </div>\n" +
|
" </div>"
|
}
|
|
|
|
$("#fastigium").append($(a))
|
laydate.render({
|
elem: '#num24-'+i
|
,type: 'time',
|
range:"-"
|
,format: 'HH:mm'
|
});
|
|
}
|
|
function delBox(o) {
|
$(o).parent("div").parent("div").remove()
|
}
|
|
function addBox1() {
|
if(language==1){
|
var a=" <div class=\"form-group\" id=\"far\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>\n" +
|
" <div class=\"col-sm-10\">\n" +
|
" 总里程超过 <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num8\" id=\"num8\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/> 公里\n" +
|
" 不足 <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num9\" id=\"num9\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/> 公里,\n" +
|
" 超出部分每公里加收 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" 超过 <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num11\" id=\"num11\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/> 公里\n" +
|
" 不足 <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/> 公里时,\n" +
|
" 超出部分每公里加收 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <br/>\n" +
|
" <br>\n" +
|
" 超过 <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/> 公里以后,\n" +
|
" 超出部分每公里加收 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <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\" id=\"far\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>\n" +
|
" <div class=\"col-sm-10\">\n" +
|
" The total mileage is more than <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num8\" id=\"num8\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/> km\n" +
|
" but less than <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num9\" id=\"num90\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/> km,\n" +
|
" and the excess part will be charged Rp per kilometer. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" When the mileage is more than <input type=\"text\" oninput=\"checkIsGongLi(this)\" readonly name=\"num11\" id=\"num110\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/> km\n" +
|
" kilometers but less than <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num12\" id=\"num120\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/> Km,\n" +
|
" he excess part will be charged Rp per kilometer <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <br/>\n" +
|
" <br>\n" +
|
" After more than <input type=\"text\" oninput=\"checkIsGongLi(this)\" readonly name=\"num14\" id=\"num140\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/> Km,\n" +
|
" the excess part will be charged Rp per kilometer. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" </div>\n" +
|
" </div>"
|
}else {
|
var a=" <div class=\"form-group\" id=\"far\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>\n" +
|
" <div class=\"col-sm-10\">\n" +
|
" Total jarak tempuh lebih dari <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num8\" id=\"num8\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/> Km\n" +
|
" tetapi kurang dari <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num9\" id=\"num90\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/> Km,\n" +
|
" bagian berlebih akan dikenakan biaya Rp per kilometer. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" Setelah lebih dari <input type=\"text\" oninput=\"checkIsGongLi(this)\" readonly name=\"num11\" id=\"num110\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/> Km\n" +
|
" tetapi kurang dari <input type=\"text\" oninput=\"checkIsGongLi(this)\" name=\"num12\" id=\"num120\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/> Km,\n" +
|
" dan kelebihan bagian akan dibebankan <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <br/>\n" +
|
" <br>\n" +
|
" Ketika jarak tempuh lebih dari <input type=\"text\" oninput=\"checkIsGongLi(this)\" readonly name=\"num14\" id=\"num140\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/> Km,\n" +
|
" dan kelebihan bagian akan dibebankan Rp per kilometer. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" </div>\n" +
|
" </div>"
|
}
|
|
|
$("#far").append($(a))
|
}
|
|
function addBox2() {
|
var i = $(".night").length +1;
|
if(language==1){
|
var a ="<div class=\"form-group\" id=\"night\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>\n" +
|
" <div class=\"col-sm-10\">\n" +
|
" <input type=\"text\" name=\"num16\" id=\"num16-"+i+"\" class=\"form-control newWidth night\" placeholder=\"时间\"/> 点为夜间行驶时间,\n" +
|
" 起步价变为 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num17\" id=\"num17\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" 里程费为每公里 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num18\" id=\"num18\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp,\n" +
|
" 时长费为每分钟 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num19\" id=\"num19\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" 远途费为每公里加收 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num20\" id=\"num20\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num21\" id=\"num21\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num22\" id=\"num22\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" </div>\n" +
|
" </div>\n"
|
}else if(language==2){
|
var a ="<div class=\"form-group\" id=\"night\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>\n" +
|
" <div class=\"col-sm-10\">\n" +
|
" <input type=\"text\" name=\"num16\" id=\"num16-"+i+"\" class=\"form-control newWidth\" placeholder=\"Time\"/> is the night driving time,\n" +
|
" and the starting price will be Rp.\n" +
|
" <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num17\" id=\"num17\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" The mileage fee is Rp per kilometer <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num18\" id=\"num18\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp,\n" +
|
" and the duration fee is Rp per minute <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num19\" id=\"num19\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" The long-distance fee will be added and Rp per kilometer. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num20\" id=\"num20\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num21\" id=\"num21\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num22\" id=\"num22\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" </div>\n" +
|
" </div>\n"
|
}else {
|
var a ="<div class=\"form-group\" id=\"night\">\n" +
|
" <label class=\"col-sm-2 control-label\"></label>\n" +
|
" <div class=\"col-sm-10\">\n" +
|
" <input type=\"text\" name=\"num16\" id=\"num16-"+i+"\" class=\"form-control newWidth\" placeholder=\"Time\"/> adalah waktu mengemudi malam,\n" +
|
" dan harga awal akan Rp.\n" +
|
" <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num17\" id=\"num17\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" Biaya jarak tempuh adalah <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num18\" id=\"num18\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp,\n" +
|
" per kilometer dan biaya durasi adalah Rp per menit. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num19\" id=\"num19\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <br>\n" +
|
" <br>\n" +
|
" Biaya jarak jauh akan ditambahkan dan Rp per kilometer. <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num20\" id=\"num20\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num21\" id=\"num21\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> \n" +
|
" 、 <input type=\"text\" oninput=\"checkIsYuan(this)\" name=\"num22\" id=\"num22\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/> Rp\n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" </div>\n" +
|
" </div>\n"
|
}
|
|
|
laydate.render({
|
elem: '#num16-'+i
|
,type: 'time',
|
range:"-"
|
,format: 'HH:mm'
|
});
|
|
$("#night").append($(a))
|
}
|
|
</script>
|
@}
|