CHANGE_ table ordering asc : GWM

This commit is contained in:
bitbucket 2024-06-20 17:23:50 +05:30
parent 54557c8190
commit 49b76fec0c
11 changed files with 17 additions and 21 deletions

View File

@ -273,7 +273,7 @@
var datatable_bikeModel ='';
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -42,8 +42,7 @@
</div>
</div>
</td>
<td>
</td>
</tr>
<?php endif?>
@ -63,8 +62,8 @@
$(document).ready(function() {
datatable_client = $('#datatable-client').DataTable({
"order": [[1, 'asc']], // Set initial sorting to descending on the first column
"dom": 'Bfrtip', // Show export buttons
"order": [[0, 'asc']],
"dom": 'Bfrtip',
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},
{extend: 'copy',text: 'Copy', titleAttr: 'Copy',},
@ -108,7 +107,8 @@
})
});
function datatableMake(value) {
console.log(value);

View File

@ -193,7 +193,7 @@
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -299,7 +299,7 @@
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -157,7 +157,7 @@
var datatable_manufacturer ='';
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -206,7 +206,7 @@
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -96,7 +96,7 @@
<script>
$(document).ready(function() {
$('#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
"buttons": [ {
extend: 'pdfHtml5',

View File

@ -65,7 +65,7 @@
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -30,7 +30,7 @@
<table id="datatable-user" class="table table-striped dt-responsive nowrap w-100">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>email</th>
<th>Mobile</th>
@ -45,7 +45,7 @@
<?php foreach ($users as $index => $value) :
if ($value['isactive'] == 1) : ?>
<tr class="tr_<?php echo $index+1; ?>">
<td><?= $value['user_id']; ?></td>
<td><?= $value['name']; ?></td>
<td><?= $value['email']; ?></td>
<td><?= $value['mobile_no']; ?></td>
@ -79,7 +79,7 @@
var datatable_user ='';
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -72,7 +72,7 @@
var datatable_vehicle ='';
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},

View File

@ -30,13 +30,10 @@
<table id="datatable-vendor" class="table dt-responsive nowrap w-100">
<thead>
<tr>
<th>#</th>
<th>Vendor Name</th>
<th>Mobile No</th>
<th>Category</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@ -44,7 +41,6 @@
<?php foreach ($vendor as $index => $value) :
if ($value['isactive'] == 1) : ?>
<tr class="tr_<?php echo $index+1; ?>">
<td><?= $value['vendor_id']; ?></td>
<td><?= $value['vendor_name']; ?></td>
<td><?= $value['contact_person_mobile1']; ?></td>
<td><?= $value['category']; ?></td> <!-- Call the model method -->
@ -76,7 +72,7 @@
var datatable_vendor ='';
$(document).ready(function() {
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
"buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',},
{extend: 'print',title: 'Products',text: 'Print',},