date sorting

This commit is contained in:
gandhimathi 2018-05-22 14:58:28 +05:30
parent 189e998344
commit 8e383cf626
22 changed files with 103 additions and 19 deletions

View File

@ -110,8 +110,11 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":3, "type":"date-eu"}],
"info": true,
"autoWidth": false
});
});
</script>
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -78,10 +78,13 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":9, "type":"date-eu"}],
"info": true,
"autoWidth": true
});
});
</script>
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -1,4 +1,4 @@
<style>
.pagination {
margin:0px !important;
@ -18,7 +18,7 @@
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<table id="dataTableHistoriek" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr style="background-color:#ddf">
<th>#</th>
@ -102,16 +102,19 @@
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>
$(function () {
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script>
$(function () {
$('#example1').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
$('#dataTableHistoriek').DataTable({
"paging" : true,
"ordering" : true,
"scrollCollapse" : true,
"searching" : true,
"columnDefs" : [{"targets":3, "type":"date-eu"}],
"bInfo": true
});
});
</script>
</script>

View File

@ -393,9 +393,13 @@ $(function () {
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":2, "type":"date-eu"}],
"info": true,
"autoWidth": true
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -81,6 +81,8 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":7, "type":"date-eu"}],
"info": true,
"autoWidth": true
@ -88,3 +90,5 @@
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -79,6 +79,8 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":3, "type":"date-eu"}],
"info": true,
"autoWidth": true
@ -86,3 +88,5 @@
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -437,6 +437,8 @@ $(function () {
"paging": true,
"lengthChange": true,
"searching": true,
"columnDefs" : [{"targets":4, "type":"date-eu"}],
"ordering": true,
"info": true,
"autoWidth": true
@ -445,4 +447,6 @@ $(function () {
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -98,8 +98,11 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":1, "type":"date-eu"}],
"info": true,
"autoWidth": false
});
});
</script>
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -92,9 +92,13 @@ $(function () {
"searching": true,
"aaSorting": [[ 0, "desc" ]],
"ordering": true,
"columnDefs" : [{"targets":1, "type":"date-eu"}],
"info": true,
"autoWidth": true
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -106,6 +106,8 @@
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script>
$(function () {
@ -113,6 +115,8 @@
"paging": true,
"lengthChange": true,
"searching": true,
"columnDefs" : [{"targets":2, "type":"date-eu"}],
"ordering": true,
"info": true,
"autoWidth": false

View File

@ -382,9 +382,13 @@ $(function () {
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":5, "type":"date-eu"}],
"info": true,
"autoWidth": true
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -383,6 +383,8 @@ $(function () {
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":6, "type":"date-eu"}],
"info": true,
"autoWidth": true
//"data-sort-name":Status
@ -390,3 +392,5 @@ $(function () {
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -126,7 +126,8 @@
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script type="text/javascript">
$(function () {
@ -134,6 +135,8 @@
"paging": true,
"lengthChange": true,
"searching": true,
"columnDefs" : [{"targets":2, "type":"date-eu"}],
"ordering": true,
"aaSorting": [[ 0, "asc" ]],
"info": true,

View File

@ -106,6 +106,8 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":2, "type":"date-eu"}],
"aaSorting": [[ 0, "asc" ]],
"info": true,
"autoWidth": true,
@ -115,3 +117,5 @@
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -381,6 +381,8 @@ $(function () {
"paging": true,
"lengthChange": true,
"searching": true,
"columnDefs" : [{"targets":2, "type":"date-eu"}],
"aaSorting": [[ 0, "desc" ]],
"ordering": true,
"info": true,
@ -389,3 +391,4 @@ $(function () {
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -132,6 +132,7 @@ span.highlight {
</div>
</section>
</div>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script>
$(function () {
@ -140,6 +141,8 @@ span.highlight {
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":7, "type":"date-eu"}],
"aaSorting": [[ 0, "desc" ]],
"info": true,
"autoWidth": true

View File

@ -100,6 +100,8 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":3, "type":"date-eu"}],
"aaSorting": [[ 0, "asc" ]],
"info": true,
"autoWidth": true,
@ -109,3 +111,5 @@
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -163,8 +163,11 @@ $Adv='';
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":13, "type":"date-eu"}],
"info": true,
"autoWidth": false
});
});
</script>
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -151,9 +151,13 @@ $ReqDate = $dt->format('d-m-Y'); echo $ReqDate ?>
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":5, "type":"date-eu"}],
"info": true,
"autoWidth": true
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -391,6 +391,8 @@ function(start, end, label) {
"paging": true,
"lengthChange": true,
"searching": true,
"columnDefs" : [{"targets":2, "type":"date-eu"}],
"ordering": true,
"info": true,
"autoWidth": true
@ -398,3 +400,5 @@ function(start, end, label) {
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>

View File

@ -582,6 +582,7 @@ function validate()
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":6, "type":"date-eu"}],
"info": true,
"autoWidth": false
});
@ -590,12 +591,19 @@ function validate()
"lengthChange": false,
"searching": false,
"ordering": false,
// "columnDefs" : [{"targets":6, "type":"date-eu"}],
"info": false,
"autoWidth": false
});
});
</script><script type="text/javascript">
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#MaterialCode").select2();
//$("#StockAvail").select2();

View File

@ -209,12 +209,16 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":5, "type":"date-eu"}],
"info": true,
"autoWidth": true
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script>
$("#Igrshow").on("shown.bs.modal", function(e) {
var igr = $(e.relatedTarget).data('userid');