@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){
|
活动名称: <input type="text" name="zc1" id="num1" class="form-control newWidth" />
|
@}
|
@if(language==2){
|
Activity name: <input type="text" name="zc1" id="num1" class="form-control newWidth" />
|
@}
|
@if(language==3){
|
Nama aktivitas: <input type="text" name="zc1" id="num1" class="form-control newWidth" />
|
@}
|
</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){
|
司机注册既赠送 <input type="text" id="num2" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
@}
|
@if(language==2){
|
The driver will be given for registration <input type="text" id="num2" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
@}
|
@if(language==3){
|
Pengemudi akan diberikan untuk pendaftaran <input type="text" id="num2" class="form-control newWidth" placeholder="Sehingga 5 digit
|
|
"/> 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){
|
用户注册既赠送 <input type="text" id="num3" class="form-control newWidth" placeholder="最多5位数" /> Rp
|
@}
|
@if(language==2){
|
The user is given <input type="text" id="num3" class="form-control newWidth" placeholder="Up to 5 digits" /> Rp for registration.
|
@}
|
@if(language==3){
|
Pengguna diberikan <input type="text" id="num3" class="form-control newWidth" placeholder="Up to 5 digits" /> 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){
|
摩托车累计在线 <input type="text" id="num4" class="form-control newWidth" placeholder="最多3位数"/>小时奖励 <input type="text" id="num5" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
@}
|
@if(language==2){
|
Motocycle keeping online <input type="text" id="num4" class="form-control newWidth" placeholder="Up to 3 digits"/> hours accumulatively will be reward <input type="text" id="num5" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
@}
|
@if(language==3){
|
MOTOCYCLE Menjaga jam online <input type="text" id="num4" class="form-control newWidth" placeholder="Up to 3 digits"/> jam secara akumulatif akan menjadi hadiah<input type="text" id="num5" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
@}
|
|
<br/>
|
<br/>
|
|
@if(language==1){
|
同城快送累计在线 <input type="text" id="num8" class="form-control newWidth" placeholder="最多3位数" /> 小时奖励
|
<input type="text" id="num9" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
@}
|
@if(language==2){
|
Intra-city express delivery keeping online <input type="text" id="num8" class="form-control newWidth" placeholder="Up to 3 digits" /> hours accumulatively will be reward
|
<input type="text" id="num9" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
@}
|
@if(language==3){
|
Intra-City Express Delivery Keep Online <input type="text" id="num8" class="form-control newWidth" placeholder="Up to 3 digits" /> jam secara akumulatif akan menjadi hadiah
|
<input type="text" id="num9" class="form-control newWidth" placeholder="Up to 5 digits"/> 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){
|
<div id="day">
|
每天 <input type="text" name="staTime" id="staTime-1" class="form-control newWidth staTime" /> <i class="fa fa-plus" onclick="addBox2()"></i>
|
<br/>
|
司机接单完成<input type="text" name="num10" id="num10" class="form-control newWidth" /> 单既奖励
|
<input type="text" name="num11" id="num11" class="form-control newWidth" placeholder="最多5位数" /> Rp <i class="fa fa-plus" onclick="addBox3(1)"></i>
|
<div id = "day1">
|
<br/>司机累计接单完成 <input type="text" name="num12" id="num12" class="form-control newWidth" />单既奖励 <input type="text" name="num13" id="num13" class="form-control newWidth" placeholder="最多5位数"/> Rp
|
</div>
|
</div>
|
@}
|
@if(language==2){
|
<div id="day">
|
Every day <input type="text" name="staTime" id="staTime-1" class="form-control newWidth staTime" /> <i class="fa fa-plus" onclick="addBox2()"></i>
|
<br/>
|
the driver will be rewarded with<input type="text" name="num10" id="num10" class="form-control newWidth" /> Rp for completing the order.
|
<input type="text" name="num11" id="num11" class="form-control newWidth" placeholder="Up to 5 digits" /> Rp <i class="fa fa-plus" onclick="addBox3(1)"></i>
|
<div id = "day1">
|
<br/>The driver has completed the cumulative order <input type="text" name="num12" id="num12" class="form-control newWidth" />Single reward. <input type="text" name="num13" id="num13" class="form-control newWidth" placeholder="Up to 5 digits"/> Rp
|
</div>
|
</div>
|
@}
|
@if(language==3){
|
<div id="day">
|
Setiap hari <input type="text" name="staTime" id="staTime-1" class="form-control newWidth staTime" /> <i class="fa fa-plus" onclick="addBox2()"></i>
|
<br/>
|
pengemudi akan dihargai dengan<input type="text" name="num10" id="num10" class="form-control newWidth" /> Rp untuk menyelesaikan pesanan
|
<input type="text" name="num11" id="num11" class="form-control newWidth" placeholder="Sehingga 5 digit" /> Rp <i class="fa fa-plus" onclick="addBox3(1)"></i>
|
<div id = "day1">
|
<br/>Pemandu telah menyelesaikan perintah kumulatif <input type="text" name="num12" id="num12" class="form-control newWidth" />Hadiah tunggal. <input type="text" name="num13" id="num13" class="form-control newWidth" placeholder="Sehingga 5 digit"/> 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\" /> <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" the driver will be rewarded with <input type=\"text\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" /> Rp for completing the order.\n" +
|
" <input type=\"text\" name=\"num11\" id=\"num11\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\" /> Rp <i class=\"fa fa-plus\" onclick=\"addBox3("+i+")\"></i>\n" +
|
" <br/> <div id ="+v+">The driver will be rewarded with <input type=\"text\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />Rp for completing <input type=\"text\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/> 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\" /> <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" 司机接单完成 <input type=\"text\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" /> 单既奖励\n" +
|
" <input type=\"text\" name=\"num11\" id=\"num11\" class=\"form-control newWidth\" placeholder=\"最多5位数\" /> Rp <i class=\"fa fa-plus\" onclick=\"addBox3("+i+")\"></i>\n" +
|
" <br/> <div id ="+v+">司机累计接单完成 <input type=\"text\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />单既奖励 <input type=\"text\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/> 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\" /> <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" pengemudi akan dihargai dengan <input type=\"text\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" /> Rp untuk menyelesaikan pesanan\n" +
|
" <input type=\"text\" name=\"num11\" id=\"num11\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\" /> Rp <i class=\"fa fa-plus\" onclick=\"addBox3("+i+")\"></i>\n" +
|
" <br/> <div id ="+v+">Pengemudi akan dihargai dengan <input type=\"text\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />Rp untuk menyelesaikan <input type=\"text\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/> 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\" />,司机每在线 <input type=\"text\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" placeholder=\"最多2位数\"/>小时,\n" +
|
" 奖励 <input type=\"text\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"最多5位数\"/>Rp,最多补贴 <input type=\"text\" name=\"num16\" id=\"num16\" class=\"form-control newWidth\" placeholder=\"最多3位数\"/>小时 ; \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 <input type=\"text\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" placeholder=\"Up to 2 digits\"/>hour,\n" +
|
" rewards <input type=\"text\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\"/>Rp,maximum subsidy <input type=\"text\" name=\"num16\" id=\"num16\" class=\"form-control newWidth\" placeholder=\"Up to 3 digits\"/>hour ; \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 <input type=\"text\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" placeholder=\"Sehingga 2 digit\"/>jam,\n" +
|
" hadiah <input type=\"text\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\"/>Rp,subsidy maksimum <input type=\"text\" name=\"num16\" id=\"num16\" class=\"form-control newWidth\" placeholder=\"Sehingga 3 digit\"/>jam ; \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/>司机累计接单完成 <input type=\"text\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />单既奖励 <input type=\"text\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"最多5位数\" /> 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 <input type=\"text\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />Single reward <input type=\"text\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Up to 5 digits\" /> 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  <input type=\"text\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />Hadiah tunggal <input type=\"text\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" placeholder=\"Sehingga 5 digit\" /> 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>
|
@}
|