CHANGE_ table ordering asc : GWM
This commit is contained in:
parent
54557c8190
commit
49b76fec0c
@ -273,7 +273,7 @@
|
|||||||
var datatable_bikeModel ='';
|
var datatable_bikeModel ='';
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
datatable_bikeModel = $('#datatable-bikeModel').DataTable({
|
datatable_bikeModel = $('#datatable-bikeModel').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -42,8 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php endif?>
|
<?php endif?>
|
||||||
@ -63,8 +62,8 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
datatable_client = $('#datatable-client').DataTable({
|
datatable_client = $('#datatable-client').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']],
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip',
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
{extend: 'copy',text: 'Copy', titleAttr: 'Copy',},
|
{extend: 'copy',text: 'Copy', titleAttr: 'Copy',},
|
||||||
@ -108,7 +107,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
});
|
||||||
|
|
||||||
function datatableMake(value) {
|
function datatableMake(value) {
|
||||||
console.log(value);
|
console.log(value);
|
||||||
|
|
||||||
|
|||||||
@ -193,7 +193,7 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
datatable_complaint = $('#datatable-complaint').DataTable({
|
datatable_complaint = $('#datatable-complaint').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -299,7 +299,7 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
datatable_make = $('#datatable-make').DataTable({
|
datatable_make = $('#datatable-make').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -157,7 +157,7 @@
|
|||||||
var datatable_manufacturer ='';
|
var datatable_manufacturer ='';
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
datatable_manufacturer = $('#datatable-manufacturer').DataTable({
|
datatable_manufacturer = $('#datatable-manufacturer').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -206,7 +206,7 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
datatable_outsource = $('#datatable-outsource').DataTable({
|
datatable_outsource = $('#datatable-outsource').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -96,7 +96,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#datatable-buttons-2').DataTable({
|
$('#datatable-buttons-2').DataTable({
|
||||||
"order": [[2, 'desc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'desc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [ {
|
"buttons": [ {
|
||||||
extend: 'pdfHtml5',
|
extend: 'pdfHtml5',
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
datatable_service = $('#datatable-service').DataTable({
|
datatable_service = $('#datatable-service').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
<table id="datatable-user" class="table table-striped dt-responsive nowrap w-100">
|
<table id="datatable-user" class="table table-striped dt-responsive nowrap w-100">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>email</th>
|
<th>email</th>
|
||||||
<th>Mobile</th>
|
<th>Mobile</th>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<?php foreach ($users as $index => $value) :
|
<?php foreach ($users as $index => $value) :
|
||||||
if ($value['isactive'] == 1) : ?>
|
if ($value['isactive'] == 1) : ?>
|
||||||
<tr class="tr_<?php echo $index+1; ?>">
|
<tr class="tr_<?php echo $index+1; ?>">
|
||||||
<td><?= $value['user_id']; ?></td>
|
|
||||||
<td><?= $value['name']; ?></td>
|
<td><?= $value['name']; ?></td>
|
||||||
<td><?= $value['email']; ?></td>
|
<td><?= $value['email']; ?></td>
|
||||||
<td><?= $value['mobile_no']; ?></td>
|
<td><?= $value['mobile_no']; ?></td>
|
||||||
@ -79,7 +79,7 @@
|
|||||||
var datatable_user ='';
|
var datatable_user ='';
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
datatable_user = $('#datatable-user').DataTable({
|
datatable_user = $('#datatable-user').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -72,7 +72,7 @@
|
|||||||
var datatable_vehicle ='';
|
var datatable_vehicle ='';
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
datatable_vehicle = $('#datatable-vehicle').DataTable({
|
datatable_vehicle = $('#datatable-vehicle').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
@ -30,13 +30,10 @@
|
|||||||
<table id="datatable-vendor" class="table dt-responsive nowrap w-100">
|
<table id="datatable-vendor" class="table dt-responsive nowrap w-100">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
|
||||||
<th>Vendor Name</th>
|
<th>Vendor Name</th>
|
||||||
<th>Mobile No</th>
|
<th>Mobile No</th>
|
||||||
<th>Category</th>
|
<th>Category</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -44,7 +41,6 @@
|
|||||||
<?php foreach ($vendor as $index => $value) :
|
<?php foreach ($vendor as $index => $value) :
|
||||||
if ($value['isactive'] == 1) : ?>
|
if ($value['isactive'] == 1) : ?>
|
||||||
<tr class="tr_<?php echo $index+1; ?>">
|
<tr class="tr_<?php echo $index+1; ?>">
|
||||||
<td><?= $value['vendor_id']; ?></td>
|
|
||||||
<td><?= $value['vendor_name']; ?></td>
|
<td><?= $value['vendor_name']; ?></td>
|
||||||
<td><?= $value['contact_person_mobile1']; ?></td>
|
<td><?= $value['contact_person_mobile1']; ?></td>
|
||||||
<td><?= $value['category']; ?></td> <!-- Call the model method -->
|
<td><?= $value['category']; ?></td> <!-- Call the model method -->
|
||||||
@ -76,7 +72,7 @@
|
|||||||
var datatable_vendor ='';
|
var datatable_vendor ='';
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
datatable_vendor = $('#datatable-vendor').DataTable({
|
datatable_vendor = $('#datatable-vendor').DataTable({
|
||||||
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
|
"order": [[0, 'asc']], // Set initial sorting to descending on the first column
|
||||||
"dom": 'Bfrtip', // Show export buttons
|
"dom": 'Bfrtip', // Show export buttons
|
||||||
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
|
||||||
{extend: 'print',title: 'Products',text: 'Print',},
|
{extend: 'print',title: 'Products',text: 'Print',},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user