|
|
|
@@ -6,7 +6,7 @@ |
|
|
|
|
|
|
|
@section('content') |
|
|
|
<style type="text/css"> |
|
|
|
select.form-control, select.form-control:focus, select.form-control:hover { |
|
|
|
select.form-control, select.form-control:focus, select.form-control:hover { |
|
|
|
border: 1px solid #ccc !important; |
|
|
|
height: auto !important; |
|
|
|
} |
|
|
|
@@ -86,7 +86,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@@ -152,7 +152,7 @@ |
|
|
|
var SITEURL = '{{URL::to('')}}'; |
|
|
|
var tableP, tablePl; |
|
|
|
var queryString1 = '', queryString2 = '', token = "{{ csrf_token() }}"; |
|
|
|
|
|
|
|
|
|
|
|
$('#viewParkir').hide(); $('#link').hide(); |
|
|
|
$('#viewPelbagai').hide(); $('#link1').hide(); |
|
|
|
</script> |
|
|
|
@@ -162,7 +162,7 @@ |
|
|
|
<script type="text/javascript"> |
|
|
|
$('#tapis').on('click', function (e) { |
|
|
|
e.preventDefault(); |
|
|
|
var form = $("#filter_form")[0]; |
|
|
|
var form = $("#filter_form")[0]; |
|
|
|
if(form.checkValidity() === false) { |
|
|
|
e.stopPropagation(); |
|
|
|
var isValid = form.reportValidity(); |
|
|
|
@@ -213,48 +213,31 @@ |
|
|
|
$('#viewParkir').show(); |
|
|
|
tableP.ajax.url(SITEURL +'/api/list/compound'+ queryString1).load(); |
|
|
|
|
|
|
|
}else if($('#type_C').val() == "Pelbagai"){ |
|
|
|
|
|
|
|
queryString2 = '?'+form_data; |
|
|
|
$('#viewPelbagai').show(); |
|
|
|
$('#viewParkir').hide(); |
|
|
|
tablePl.ajax.url(SITEURL +'/api/list/compound'+ queryString2).load(); |
|
|
|
}else if($('#type_C').val() == "Pelbagai_JPB"){ |
|
|
|
|
|
|
|
queryString2 = '?'+form_data; |
|
|
|
$('#viewPelbagai').show(); |
|
|
|
$('#viewParkir').hide(); |
|
|
|
tablePl.ajax.url(SITEURL +'/api/list/compound'+ queryString2).load(); |
|
|
|
}else if($('#type_C').val() == "Pelbagai_KT"){ |
|
|
|
tableP2.ajax.url(SITEURL +'/api/list/compound'+ queryString2).load(); |
|
|
|
|
|
|
|
queryString2 = '?'+form_data; |
|
|
|
$('#viewPelbagai').show(); |
|
|
|
$('#viewParkir').hide(); |
|
|
|
tablePl.ajax.url(SITEURL +'/api/list/compound'+ queryString2).load(); |
|
|
|
}else if($('#type_C').val() == "Pelbagai_PA"){ |
|
|
|
|
|
|
|
queryString2 = '?'+form_data; |
|
|
|
$('#viewPelbagai').show(); |
|
|
|
$('#viewParkir').hide(); |
|
|
|
tablePl.ajax.url(SITEURL +'/api/list/compound'+ queryString2).load(); |
|
|
|
}else if($('#type_C').val() == "Pelbagai_LESEN"){ |
|
|
|
}else if($('#type_C').val() == "Pelbagai_KT"){ |
|
|
|
|
|
|
|
queryString2 = '?'+form_data; |
|
|
|
$('#viewPelbagai').show(); |
|
|
|
$('#viewParkir').hide(); |
|
|
|
tablePl.ajax.url(SITEURL +'/api/list/compound'+ queryString2).load(); |
|
|
|
tableP2.ajax.url(SITEURL +'/api/list/compound'+ queryString2).load(); |
|
|
|
} |
|
|
|
|
|
|
|
console.log(SITEURL +'/api/list/compound'+ queryString1); |
|
|
|
console.log(SITEURL +'/api/list/compound'+ queryString2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
}); |
|
|
|
|
|
|
|
$('#submit').on('click', function (e) { |
|
|
|
e.preventDefault(); |
|
|
|
var form = $("#updateSt")[0]; |
|
|
|
var form = $("#updateSt")[0]; |
|
|
|
if(form.checkValidity() === false) { |
|
|
|
e.stopPropagation(); |
|
|
|
var isValid = form.reportValidity(); |
|
|
|
@@ -298,7 +281,7 @@ |
|
|
|
alert('Kemaskini status dibatalkan'); |
|
|
|
$('#kemaskiniC').modal('hide'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
function getDetail(id) { |
|
|
|
@@ -308,4 +291,4 @@ |
|
|
|
}) |
|
|
|
}; |
|
|
|
</script> |
|
|
|
@endsection |
|
|
|
@endsection |