uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
public_html
/
member
/
scripts
/
jslib.js
/
/
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function() { // $('.datatable').DataTable(); // $('.datepicker').datepicker({ // format: 'yyyy-mm-dd', // }); // $('.datepicker-current').datepicker({ // format: 'yyyy-mm-dd', // startDate: '-0d', // }); } ); //function loadDataTable(domSelector, url, columnMetadata, isShowFooter, columnIndex ){ // var dataTable= $(domSelector).DataTable({ // "ajax": { // url: url, // type: "POST", // dataType: 'json', // /* dataSrc: function ( jsonData ) { // //$.each(jsonData.data, function(key, value){ // // jsonData[key].value = '<a href="/message/'+json[key].vaue+'>View message</a>'; // // }); // return tableData; // }, */ // data: function ( d ) { // var formData = $("#search-form").serializeArray(); // $.each(formData, function(i, field){ // d[field.name] = field.value; // }); // }, // }, // "processing": true, // "serverSide": true, // "pageLength": 500, // //"lengthMenu": [[100, 500, 1000, 2000, -1], [100, 500, 1000, 2000, "All"]], // "lengthMenu": [[100, 500, 1000, 2000, 5000], [100, 500, 1000, 2000, 5000]], // "dom": 'B<"top">rt<"bottom"lp><"clear">', // buttons: [ // 'excel', 'csv', 'pdf', 'print' // ], // // // //"autoWidth": false, // This parameter must be set to false // //"destroy": true, // "columns": columnMetadata, // "footerCallback": function ( row, data, start, end, display ) { // var api = this.api(), data; // // // Remove the formatting to get integer data for summation // if(isShowFooter){ // var intVal = function ( i ) { // return typeof i === 'string' ? // i.replace(/[\$,]/g, '')*1 : // typeof i === 'number' ? // i : 0; // }; // // // Total over all pages // total = api // .column( columnIndex ) // .data() // .reduce( function (a, b) { // return intVal(a) + intVal(b); // }, 0 ); // // // Total over this page // pageTotal = api // .column( columnIndex, { page: 'current'} ) // .data() // .reduce( function (a, b) { // return intVal(a) + intVal(b); // }, 0 ); // // // Update footer // $( api.column( columnIndex ).footer() ).html( // +pageTotal // ); // } // // }, // //"initComplete": function(settings, json) {}, // } // ); // return dataTable; // } // $(document).ready(function () { $("#activate_pin_form").submit(function (e) { //alert("Submitted"); $.ajax({ url: "pin_check.php", type: 'post', data: $('#activate_pin_form').serialize(), dataType: 'json', async: false, success: function (data) { if (data.invalid) { $("#submit").attr("disabled", "true"); alert("Invalid user login id and/or pin"); $("#myModal").modal('hide'); } else { alert("Account activated successfully"); location.reload(); } }}); e.preventDefault(); }); }); /* function pin_check() { var pin = prompt('Enter pin here', 'xxxxxxxxxx'); if (pin) { $.post("pin_check.php", {'pin_no': pin}, function(data) { if (data.invalid) { $("#submit").attr("disabled", "true"); alert("Invalid pin"); } else { alert("Account activated successfully"); location.reload(); } }, "json"); } }*/ function upgrade_user_plan() { var pin = prompt('Enter pin here to upgrade your account', 'xxxxxxxxxx'); if (pin) { $.post("upgrade_user_plan.php", {'pin_no': pin}, function (data) { if (data.invalid) { $("#submit").attr("disabled", "true"); alert("Invalid pin"); } else { alert("Account upgraded successfully"); location.reload(); } }, "json"); } } function get_user_detail_by_value(loginId) { // alert(loginId); $.ajax({ url: "./report/get_user_detail_json.php?login_id=" + loginId, type: 'get', dataType: 'json', async: false, success: function (data) { var html = '<h6 style="color: black">' + data.data.name + ' </h6>'; var html1 = '<h6 style="color: black">'+data.data.is_paid+' </h6>'; $('#loginInfo').html(html); var status = '<h6 style="color: black">' + data.is_paid + ' </h6>'; $('#is_paid').html(html1); }, error: function (ext, exception) { alert(exception); } }); } function view_popup(pin_no){ $("#pin_no").val(pin_no); // $("#myModal").modal() }
/home2/wtmwscom/public_html/member/scripts/jslib.js