File manager - Edit - G:/PleskVhosts/indiaminerals.in/vgm.INFOFIXDEVELOPERS.COM/admin/Logs_Report.aspx
Back
<%@ Page Title="" Language="C#" MasterPageFile="~/admin/main.Master" AutoEventWireup="true" CodeBehind="Logs_Report.aspx.cs" Inherits="WebApp.admin.Logs_Report" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <form runat="server" id="asdd"> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" /> <div class="wrapper"> <div class="content-wrapper"> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th scope="col">Date</th> <th scope="col">Time</th> <th scope="col">Tittle</th> <th scope="col">Details</th> </tr> </thead> <tbody> <!-- Sample data, replace this with actual dynamic data --> <tr> <td>2024-01-01</td> <td>14:43:32</td> <td>Login</td> <td>Admin Login</td> </tr> </tbody> </table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </section> <!-- /.content --> </div> </div> <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> <script src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap4.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.7.1/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.bootstrap4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.html5.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.print.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.colVis.min.js"></script> <script type="text/javascript"> // Avoid conflicts with other libraries jQuery.noConflict(); jQuery(document).ready(function ($) { // Function to initialize DataTable function initializeDataTable(data) { // Empty the existing table body $("#example1 tbody").empty(); // Append header row $("#example1 tbody").append('<tr><th>Date</th><th>Time</th><th>Title</th><th>Details</th></tr>'); var rs = ""; if (data.length > 0) { // Loop through the data and append rows for (var i = 0; i < data.length; i++) { rs = '<tr><td>' + data[i].Date + '</td><td>' + data[i].Time + '</td><td>' + data[i].Tittle + '</td><td>' + data[i].Details + '</td></tr>'; $("#example1 tbody").append(rs); } } // Initialize DataTable after appending data $("#example1").DataTable({ "responsive": true, "lengthChange": false, "autoWidth": false, "buttons": [ { extend: 'copy', text: 'Copy' }, { extend: 'csv', text: 'CSV' }, { extend: 'excel', text: 'Excel' }, { extend: 'pdf', text: 'PDF' }, { extend: 'print', text: 'Print' }, { extend: 'colvis', text: 'Column Visibility' } ], "searching": true // Enable searching }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)'); } // Call the function to initialize DataTable with dynamic data function onSuccess(response) { // Parse the JSON response var data = JSON.parse(response); initializeDataTable(data); } function onError(error) { console.error("Error fetching data: " + error.get_message()); } // Assuming PageMethods.GetLogData is correctly defined elsewhere PageMethods.GetLogData("~/data/LogData.csv", onSuccess, onError); }); </script> </form> </asp:Content>
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings