mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/IZYIM-Prototype.git
synced 2026-08-19 04:33:55 +00:00
delivery arrangement
This commit is contained in:
+238
-79
@@ -21,7 +21,7 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>IZYIM | Delivery Arrangement</title>
|
||||
<title>IZYIM | Delivery Arrangement</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
||||
<meta content="Preview page of Metronic Admin Theme #1 for statistics, charts, recent events and reports" name="description" />
|
||||
@@ -112,6 +112,37 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
#example2_filter{
|
||||
float:right;
|
||||
}
|
||||
.col_0{
|
||||
width: 50px !important;
|
||||
padding-right: 0px !important;
|
||||
padding-left: 0px !important;
|
||||
}
|
||||
.col_1{
|
||||
width: 50px !important;
|
||||
padding-right: 0px !important;
|
||||
padding-left: 0px !important;
|
||||
}
|
||||
.col_2{
|
||||
width: 50px !important;
|
||||
}
|
||||
.col_3{
|
||||
width: 60px !important;
|
||||
}
|
||||
.col_4{
|
||||
width: 60px !important;
|
||||
}
|
||||
.col_5{
|
||||
width: 60px !important;
|
||||
}
|
||||
.blue{
|
||||
color: #337ab7;
|
||||
line-height: 14px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: 14px;
|
||||
text-rendering: auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<!-- END HEAD -->
|
||||
@@ -159,6 +190,11 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
</li>
|
||||
<!-- END USER LOGIN DROPDOWN -->
|
||||
|
||||
<li class="dropdown dropdown-quick-sidebar-toggler">
|
||||
<a href="javascript:;" class="dropdown-toggle">
|
||||
<i class="icon-logout"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- END TOP NAVIGATION MENU -->
|
||||
@@ -220,14 +256,14 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="chat.html" class="nav-link nav-toggle">
|
||||
<a href="chat.html?menu=true" class="nav-link nav-toggle">
|
||||
<i class="fa fa-comments-o"></i>
|
||||
<span class="title">Messenger</span>
|
||||
<span class="selected"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="trackorder.html" class="nav-link nav-toggle">
|
||||
<a href="trackorder.html?menu=true" class="nav-link nav-toggle">
|
||||
<i class="icon-basket"></i>
|
||||
<span class="title">Track Order</span>
|
||||
<span class="selected"></span>
|
||||
@@ -345,9 +381,12 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
|
||||
<div class="table-container">
|
||||
|
||||
<div id="mask"></div>
|
||||
<table id="example" class="table table-striped table-bordered table-hover material-table"></table>
|
||||
<span class='pull-right'><input type='checkbox' class='make-switch pull-right asdasd' checked data-size='small' data-on-color='success' data-on-text='ON' data-off-color='default' data-off-text='OFF'></span>
|
||||
<table id="example" class="table table-striped table-bordered table-hover order-column"></table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -367,7 +406,28 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h5>Driver Details</h5>
|
||||
<div class="form">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>Delivery Type</label>
|
||||
<select id="type" class="form-control" onchange="show_hide(this);">
|
||||
<option value=""> Please Select</option>
|
||||
<option value="1"> Company Transport</option>
|
||||
<option value="2"> Courier Service</option>
|
||||
<option value="3"> Outsource Services</option>
|
||||
<option value="4"> Self Collect</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="own_transport" style="display:none">
|
||||
<h5>Driver Details</h5>
|
||||
<hr>
|
||||
<div class="form">
|
||||
<div class="row">
|
||||
@@ -395,14 +455,54 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="courier" style="display:none">
|
||||
<h5>Courier Details</h5>
|
||||
<hr>
|
||||
<div class="form">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>Courier Service</label>
|
||||
<input class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Tracking Number</label>
|
||||
<input class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="self_collect" style="display:none">
|
||||
<h5>Self Collect Details</h5>
|
||||
<hr>
|
||||
<div class="form">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>Address</label>
|
||||
<textarea class="form-control">Block 3730, Persiaran Apec, 63000 Cyberjaya, Selangor, Malaysia</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h5>Order Details</h5>
|
||||
<hr>
|
||||
<div class="table-container">
|
||||
|
||||
<div id="mask"></div>
|
||||
<table id="example2" class="table table-striped table-bordered table-hover material-table"></table>
|
||||
|
||||
<table id="example2" class="table table-striped table-bordered table-hover"></table>
|
||||
<!--<input name="total" id="total" type="text" value=0 />-->
|
||||
<!--<p id="total" class="form-control-static"> </p>-->
|
||||
</div>
|
||||
<br>
|
||||
<div class="form">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@@ -1045,30 +1145,33 @@ Vehicle No: WAA 123 C
|
||||
<script src="../assets/layouts/global/scripts/quick-nav.min.js" type="text/javascript"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
|
||||
<!-- END THEME LAYOUT SCRIPTS -->
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
|
||||
var dataSet = [
|
||||
["1","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00006 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0008","CTN56","Bangi<br>Selangor","123456","03-07-2017","<span style='color:red'><strong>03-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#F1C40F;font-weight: 700;'>Sent</span>"],
|
||||
["2","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00005 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0008","CTN56","Bangi<br>Selangor","123456","03-07-2017","<span style='color:red'><strong>03-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#F1C40F;font-weight: 700;'>Sent</span>"],
|
||||
["3","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00004 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0008","CTN56","Bangi<br>Selangor","123456","03-07-2017","<span style='color:red'><strong>03-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#F1C40F;font-weight: 700;'>Sent</span>"],
|
||||
["4","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Handsome<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00003 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0008","CTN56","Bangi<br>Selangor","123456","03-07-2017","<span style='color:red'><strong>03-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#36c6d3;font-weight: 700;'>Accepted</span>"],
|
||||
["5","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Hantam<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00002 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0008","CTN56","Bangi<br>Selangor","123456","03-07-2017","<span style='color:red'><strong>03-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#ed6b75;font-weight: 700;'>Refused</span>"],
|
||||
["6","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00001 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0008","CTN56","Bangi<br>Selangor","123456","03-07-2017","<span style='color:red'><strong>03-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#36c6d3;font-weight: 700;'>Accepted</span>"]
|
||||
["1","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00006 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0008","CTN56","Bangi<br>Selangor","123456","03-07-2017","<span style='color:red'><strong>03-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#F1C40F;font-weight: 700;'>Sent</span>", "Not Completed"],
|
||||
["2","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00005 </a>","CIEF/0007","CTN56","Bangi<br>Selangor","123456","02-07-2017","02-07-2017","Delivery Request <span style='color:#F1C40F;font-weight: 700;'>Sent</span>", "Not Completed"],
|
||||
["3","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00004 </a>","CIEF/0006","CTN56","Bangi<br>Selangor","123456","01-07-2017","<span style='color:red'><strong>01-07-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#F1C40F;font-weight: 700;'>Sent</span>", "Not Completed"],
|
||||
["4","03-07-2017","Vehicle No:JNY1122<br/>Contact Person:Handsome<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00003 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0005","CTN56","Bangi<br>Selangor","123456","30-06-2017","<span style='color:red'><strong>30-06-2017<br/>Delayed</strong></span>","Delivery Request <span style='color:#36c6d3;font-weight: 700;'>Accepted</span><br><div style='margin-top: 10px;' class='btn-group'><a class='btn red btn-xs btn-circle' href='#form_delivery' data-toggle='modal'>Rearrange</a></div>", "Not Completed"],
|
||||
["5","03-07-2017","Vehicle No:JLK3333<br/>Contact Person:Hantam<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00002 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0004","CTN56","Bangi<br>Selangor","123456","29-06-2017","29-06-2017","Delivery Request <span style='color:#ed6b75;font-weight: 700;'>Refused</span><br><div style='margin-top: 10px;' class='btn-group'><a class='btn red btn-xs btn-circle' href='#form_delivery' data-toggle='modal'>Rearrange</a></div>", "Not Completed"],
|
||||
["6","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00001 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0003","CTN56","Bangi<br>Selangor","123456","28-06-2017","28-06-2017","Delivery Request <span style='color:#36c6d3;font-weight: 700;'>Accepted</span><br><div style='margin-top: 10px;' class='btn-group'><a class='btn red btn-xs btn-circle' href='#form_delivery' data-toggle='modal'>Rearrange</a></div>", "Not Completed"],
|
||||
["7","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00001 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0003","CTN56","Bangi<br>Selangor","123456","28-06-2017","28-06-2017","Delivery Request <span style='color:#36c6d3;font-weight: 700;'>Completed</span>", "Completed"],
|
||||
["8","03-07-2017","Vehicle No:JKB1111<br/>Contact Person:Samad<br/>Contact No: 012345689","<a class='chat_link' href='chat.html'> 00001 <span style='margin-bottom: 20px;' class='bb badge badge-danger'>5</span></a>","CIEF/0003","CTN56","Bangi<br>Selangor","123456","28-06-2017","28-06-2017","Delivery Request <span style='color:#36c6d3;font-weight: 700;'>Completed</span>", "Completed"]
|
||||
];
|
||||
|
||||
var dataSet2 = [
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1'><span></span></label>","1","03-08-2017","CTN56","00006","CIEF/0008","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1'><span></span></label>","2","03-08-2017","CTN55","00005","CIEF/0007","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1'><span></span></label>","3","03-08-2017","CTN54","00004","CIEF/0006","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1'><span></span></label>","4","03-08-2017","CTN53","00003","CIEF/0005","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1'><span></span></label>","5","03-08-2017","CTN52","00002","CIEF/0004","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1'><span></span></label>","6","03-08-2017","CTN51","00001","CIEF/0003","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"]
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1' /><span></span></label>","1","03-08-2017","CTN56","00006","CIEF/0008","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1' /><span></span></label>","2","03-08-2017","CTN55","00005","CIEF/0007","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1' /><span></span></label>","3","03-08-2017","CTN54","00004","CIEF/0006","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1' /><span></span></label>","4","03-08-2017","CTN53","00003","CIEF/0005","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1' /><span></span></label>","5","03-08-2017","CTN52","00002","CIEF/0004","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"],
|
||||
["<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='checkboxes' value='1' /><span></span></label>","6","03-08-2017","CTN51","00001","CIEF/0003","Bangi<br>Selangor","CBM :<br/>Weight:<br/>Qty of Carton:"]
|
||||
];
|
||||
|
||||
|
||||
$('#example').DataTable({
|
||||
var table1 = $('#example').DataTable({
|
||||
data: dataSet,
|
||||
|
||||
|
||||
@@ -1083,7 +1186,14 @@ Vehicle No: WAA 123 C
|
||||
"columnDefs": [{ // set default column settings
|
||||
'orderable': false,
|
||||
'targets': [0]
|
||||
},
|
||||
{
|
||||
"targets": [ 11 ],
|
||||
"visible": false
|
||||
}],
|
||||
// scroller extension: http://datatables.net/extensions/scroller/
|
||||
scrollY: 300,
|
||||
|
||||
buttons: [
|
||||
{ extend: 'print', className: 'btn dark btn-outline' },
|
||||
{ extend: 'copy', className: 'btn red btn-outline' },
|
||||
@@ -1105,12 +1215,13 @@ Vehicle No: WAA 123 C
|
||||
"search": "Search:",
|
||||
"zeroRecords": "No matching records found"
|
||||
},
|
||||
"order": [[ 1, "asc" ]],
|
||||
"pageLength": 20,
|
||||
"dom": "<'row' <'col-md-12'T>><'row'<'col-md-6'f><'col-md-6'B>r>t<'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>",
|
||||
buttons: [
|
||||
{
|
||||
text: 'Arrange Delivery',
|
||||
className: 'btn red btn-inline btn-circle qweqwe',
|
||||
text: 'Delivery Arrangement',
|
||||
className: 'btn red btn-inline qweqwe',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$("#qweqwe").trigger('click');
|
||||
}
|
||||
@@ -1118,19 +1229,20 @@ Vehicle No: WAA 123 C
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
fixedHeader:false,
|
||||
columns: [
|
||||
{ title: "No" },
|
||||
{ title: "Delivery<br>Date" },
|
||||
{ title: "Driver<br>Details" },
|
||||
{ title: "Order No." },
|
||||
{ title: "Customer<br>Code" },
|
||||
{ title: "Shipment<br>No" },
|
||||
{ title: "Area<br>State" },
|
||||
{ title: "Container No" },
|
||||
{ title: "ETD" },
|
||||
{ title: "ETA" },
|
||||
{ title: "Status" },
|
||||
{ title: 'Delivery<br>Date <br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_1\')"></span>' },
|
||||
{ title: 'Driver<br>Details<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_2\')"></span>' },
|
||||
{ title: 'Order No<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_3\')"></span>' },
|
||||
{ title: 'Customer<br>Code<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_4\')"></span>' },
|
||||
{ title: 'Shipment<br>No<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_5\')"></span>' },
|
||||
{ title: 'Area<br>State<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_6\')"></span>' },
|
||||
{ title: 'Container No<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_7\')"></span>' },
|
||||
{ title: 'ETD<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_8\')"></span>' },
|
||||
{ title: 'ETA<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_9\')"></span>' },
|
||||
{ title: 'Status<br> <span class="fa fa-filter filterIcon blue" onclick="showFilter(event,\'example_10\')"></span>' },
|
||||
{ title: 'Stats' },
|
||||
],
|
||||
|
||||
initComplete: function () {
|
||||
@@ -1148,9 +1260,9 @@ Vehicle No: WAA 123 C
|
||||
}
|
||||
},
|
||||
"columnDefs": [{ // set default column settings
|
||||
'orderable': false,
|
||||
'targets': [0]
|
||||
'orderable': false,'targets': [0],
|
||||
}],
|
||||
"autoWidth": false,
|
||||
buttons: [
|
||||
{ extend: 'print', className: 'btn dark btn-outline' },
|
||||
{ extend: 'copy', className: 'btn red btn-outline' },
|
||||
@@ -1173,35 +1285,92 @@ Vehicle No: WAA 123 C
|
||||
"zeroRecords": "No matching records found"
|
||||
},
|
||||
"pageLength": 20,
|
||||
"order": [[ 1, "asc" ]],
|
||||
columns: [
|
||||
{ title: "<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='group-checkable' data-set='#example2 .checkboxes' /><span></span></label>"},
|
||||
{ title: "No"},
|
||||
{ title: "ETA"},
|
||||
{ title: "Shipment <br/> No"},
|
||||
{ title: "Order <br/>No"},
|
||||
{ title: "Cust <br/> Code"},
|
||||
{ title: "Area<br/>State"},
|
||||
{ title: "Details"},
|
||||
{ title: "<label class='mt-checkbox mt-checkbox-single mt-checkbox-outline'><input type='checkbox' class='group-checkable' data-set='#example2 .checkboxes' /><span></span></label>", className: "col_0"},
|
||||
{ title: "No", className: "col_1"},
|
||||
{ title: "ETA", className: "col_2"},
|
||||
{ title: "Shipment <br/> No", className: "col_3"},
|
||||
{ title: "Order <br/>No", className: "col_4"},
|
||||
{ title: "Cust <br/> Code", className: "col_5"},
|
||||
{ title: "Area<br/>State", className: "col_6"},
|
||||
{ title: "Details", className: "col_7"},
|
||||
|
||||
],
|
||||
|
||||
"dom": "<'row' <'col-md-12'T>><'row'<'col-md-6'><'col-md-6'f>r>t<'row'<'col-md-5 col-sm-12'<'toolbar'>><'col-md-7 col-sm-12'p>>",
|
||||
initComplete: function () {
|
||||
configFilter(this, [ 2,3, 4,5,6,7,8]);
|
||||
}
|
||||
});
|
||||
});
|
||||
table1.columns( 11 ).search( 'Not Completed' ).draw();
|
||||
$('.asdasd').on('switchChange.bootstrapSwitch', function (event, state) {
|
||||
if(state == true){
|
||||
table1.columns( 11 ).search( 'Not Completed' ).draw();
|
||||
}else{
|
||||
table1.columns( 11 ).search( 'Completed' ).draw();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
$("div.toolbar").html('Total Delivery : <p id="total" class="form-control-static">0</p>');
|
||||
$('#sample_3_tools > li > a.tool-action').on('click', function() {
|
||||
var action = $(this).attr('data-action');
|
||||
$('#example').DataTable().button(action).trigger();
|
||||
});
|
||||
|
||||
var table = $('#example2');
|
||||
|
||||
var tableWrapper = jQuery('#example2_wrapper');
|
||||
|
||||
table.find('.group-checkable').change(function () {
|
||||
var set = jQuery(this).attr("data-set");
|
||||
var checked = jQuery(this).is(":checked");
|
||||
jQuery(set).each(function () {
|
||||
if (checked) {
|
||||
$(this).prop("checked", true);
|
||||
$(this).parents('tr').addClass("active");
|
||||
} else {
|
||||
$(this).prop("checked", false);
|
||||
$(this).parents('tr').removeClass("active");
|
||||
}
|
||||
});
|
||||
var count = $('#example2 .active').length;
|
||||
//document.getElementById('total').value = count;
|
||||
document.getElementById("total").innerHTML = count;
|
||||
});
|
||||
|
||||
table.on('change', 'tbody tr .checkboxes', function () {
|
||||
$(this).parents('tr').toggleClass("active");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
var table = $('#example2');
|
||||
|
||||
var tableWrapper = jQuery('#example2_wrapper');
|
||||
|
||||
|
||||
table.on('change', 'tbody tr .checkboxes', function () {
|
||||
var checked = jQuery(this).is(":checked");
|
||||
if (checked) {
|
||||
var count = $('#example2 .active').length + 1;
|
||||
document.getElementById("total").innerHTML = count;
|
||||
}else{
|
||||
var count = $('#example2 .active').length - 1 ;
|
||||
document.getElementById("total").innerHTML = count;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
//This function initializes the content inside the filter modal
|
||||
function configFilter($this, colArray) {
|
||||
setTimeout(function () {
|
||||
var tableName = $this[0].id;
|
||||
var columns = $this.api().columns();
|
||||
$.each(colArray, function (i, arg) {
|
||||
$('#' + tableName + ' th:eq(' + arg + ')').append('<br/><img src="http://www.icone-png.com/png/39/38556.png" class="filterIcon" onclick="showFilter(event,\'' + tableName + '_' + arg + '\')" />');
|
||||
});
|
||||
// $.each(colArray, function (i, arg) {
|
||||
// $('#' + tableName + ' th:eq(' + arg + ')').append('<br><img src="http://www.icone-png.com/png/39/38556.png" class="filterIcon" onclick="showFilter(event,\'' + tableName + '_' + arg + '\')" />');
|
||||
//});
|
||||
|
||||
var template = '<div class="modal modalFilter modal-scroll in">' +
|
||||
'<div class="modal-dialog modal-full" style="margin-top: 0px;margin-bottom: 0px;">' +
|
||||
@@ -1303,38 +1472,28 @@ Vehicle No: WAA 123 C
|
||||
$('#mask').hide();
|
||||
$('.modalFilter').hide();
|
||||
}
|
||||
function show_hide(val){
|
||||
var drop_val = val.value;
|
||||
if(drop_val == 1 || drop_val == 3){
|
||||
document.getElementById("own_transport").style.display = "";
|
||||
document.getElementById("courier").style.display = "none";
|
||||
document.getElementById("self_collect").style.display = "none";
|
||||
}else if(drop_val == 2){
|
||||
document.getElementById("courier").style.display = "";
|
||||
document.getElementById("own_transport").style.display = "none";
|
||||
document.getElementById("self_collect").style.display = "none";
|
||||
}else if(drop_val == 4){
|
||||
document.getElementById("self_collect").style.display = "";
|
||||
document.getElementById("courier").style.display = "none";
|
||||
document.getElementById("own_transport").style.display = "none";
|
||||
}else{
|
||||
document.getElementById("self_collect").style.display = "none";
|
||||
document.getElementById("courier").style.display = "none";
|
||||
document.getElementById("own_transport").style.display = "none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#clickmewow').click(function()
|
||||
{
|
||||
$('#radio1003').attr('checked', 'checked');
|
||||
});
|
||||
})
|
||||
var options = [];
|
||||
|
||||
$( '.dropdown-menu a' ).on( 'click', function( event ) {
|
||||
|
||||
var $target = $( event.currentTarget ),
|
||||
val = $target.attr( 'data-value' ),
|
||||
$inp = $target.find( 'input' ),
|
||||
idx;
|
||||
|
||||
if ( ( idx = options.indexOf( val ) ) > -1 ) {
|
||||
options.splice( idx, 1 );
|
||||
setTimeout( function() { $inp.prop( 'checked', false ) }, 0);
|
||||
} else {
|
||||
options.push( val );
|
||||
setTimeout( function() { $inp.prop( 'checked', true ) }, 0);
|
||||
}
|
||||
|
||||
$( event.target ).blur();
|
||||
|
||||
console.log( options );
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user