Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/inventory/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("include/db.php");; ?> <!doctype html> <html lang="en"> <!-- Mirrored from themesdesign.in/morvin/layouts/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 04 Apr 2022 13:25:02 GMT --> <head> <?php include 'include/head.php'; ?> </head> <body> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'include/header.php'; ?> <!-- ========== Left Sidebar Start ========== --> <div class="vertical-menu"> <?php include 'include/sidebar.php'; ?> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <!-- start page title --> <div class="page-title-box"> <div class="container-fluid"> <div class="row align-items-center"> <div class="col-sm-6"> <div class="page-title"> <h4>All Task </h4> <!-- <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);">Morvin</a></li> <li class="breadcrumb-item"><a href="javascript: void(0);">Tables</a></li> <li class="breadcrumb-item active">Data Tables</li> </ol> --> <!-- <div class="btn-group moreaction" role="group" > <button id="btnGroupVerticalDrop1" type="button" class="btn btn-light dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> More Actions <i class="mdi mdi-chevron-down"></i> </button> <div class="dropdown-menu" aria-labelledby="btnGroupVerticalDrop1" style=""> <a class="dropdown-item" id="btn_acti">Mark as Active</a> <a class="dropdown-item" id="btn_ina">Mark as Inactive</a> <a class="dropdown-item" id="btn_">Delete</a> </div> </div> --> </div> </div> <div class="col-sm-6"> <!-- <div class="float-end d-none d-sm-block" style="margin-right: 9px;"> <a href="add_task.php" class="btn btn-success"><i class="fa fa-plus" aria-hidden="true"></i> New</a> </div> --> </div> </div> </div> </div> <!-- end page title --> <div class="container-fluid"> <div class="page-content-wrapper"> <!-- end row --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <?php if(@$_SESSION['flash_message'] == 'add') { $message = $_SESSION['flash_message']; unset($_SESSION['flash_message']); ?> <div class="alert alert-success login-error"><?php echo 'Data Added Sucessfully'; ?></div> <?php } if(@$_SESSION['flash_message'] == 'edit') { $message = $_SESSION['flash_message']; unset($_SESSION['flash_message']); ?> <div class="alert alert-success login-error"><?php echo 'Data Edit Sucessfully'; ?></div> <?php } if(@$_SESSION['flash_message'] == 'tdelete') { $message = $_SESSION['flash_message']; unset($_SESSION['flash_message']); ?> <div class="alert alert-danger login-error"><?php echo 'Data Delete Sucessfully '; ?></div> <?php } ?> <div class="table-responsive"> <table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;"> <thead> <tr> <th>#</th> <th>Status</th> <th>Project</th> <th>Task Name</th> <th>Priority</th> <th>Owner</th> <th>Start Date</th> <th>Due Date </th> </tr> </thead> <tbody> <?php $count = 1; $sql = "select * from tbl_task where owner='$se'"; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); while ($sql_row = mysqli_fetch_assoc($sql_res)){ $status = $sql_row['status']; $project = $sql_row['project']; $owner = $sql_row['owner']; $sqls = "select * from tbl_project where id='$project' "; $sql_ress = mysqli_query($con, $sqls) or die(mysqli_error($con)); $sql_rows = mysqli_fetch_assoc($sql_ress); $sqlp = "select * from tbl_admin where id='$owner' "; $sql_resp = mysqli_query($con, $sqlp) or die(mysqli_error($con)); $sql_rowp = mysqli_fetch_assoc($sql_resp); ?> <tr> <td> <?php echo $count; ?> </td> <td><?php if ($status == '0') { ?> <a href="./task_status.php?id=<?php echo $sql_row['id']; ?>" class=" text-primary"> <?php echo 'open'; ?> </a> <?php } elseif ($status == '1') { ?> <a href="./task_status.php?id=<?php echo $sql_row['id']; ?>" class=" text-primary"> <?php echo 'In Progress'; ?> </a> <?php } elseif ($status == '2') { ?> <a href="./task_status.php?id=<?php echo $sql_row['id']; ?>" class=" text-primary"> <?php echo 'Cancelled'; ?> </a> <?php } elseif ($status == '3') { ?> <a href="./task_status.php?id=<?php echo $sql_row['id']; ?>" class=" text-primary"> <?php echo 'Closed'; ?> </a> <?php } ?></td> <td><?php echo $sql_rows['name']; ?> </td> <td><?php echo $sql_row['task_name']; ?> </td> <td><?php echo $sql_row['priority']; ?> </td> <td><?php echo $sql_rowp['name']; ?> </td> <td><?php echo $sql_row['start_date']; ?> </td> <td><?php echo $sql_row['due_date']; ?> </td> </tr> <?php $count++; } ?> </tbody> </table> </div> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <!-- model --> <footer class="footer"> <?php include 'include/footer.php'; ?> </footer> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- Right bar overlay--> <div class="rightbar-overlay"></div> <!-- JAVASCRIPT --> <?php include 'include/bscript.php'; ?> </body> <script> $(document).ready(function() { $('.login-error').delay(3000).fadeOut(300); }); </script> <script> $(document).ready(function() { //set initial state. $('.moreaction').hide(); $('.slect_all').click(function() { if (this.checked) { $('.checkbox').each(function() { this.checked = true; $('.moreaction').show(); }); } else { $('.checkbox').each(function() { this.checked = false; $('.moreaction').hide(); }); } }); }); </script> <script> // $(document).ready(function() { // //set initial state. // $('.moreaction').hide(); // $('.checkbox').click(function() { // var id = $(this).attr('id').split('e').pop(); // alert(id); // if (this.checked) { // $('#sd'+id).(function() { // this.checked = true; // $('.moreaction').show(); // }); // } else { // $('#sd'+id).each(function() { // this.checked = false; // $('.moreaction').hide(); // }); // } // }); // }); </script> <script> $(document).ready(function(){ $("#btn_").click(function(){ var favorite = []; $.each($("input[name='ratec']:checked"), function(){ favorite.push($(this).val()); }); // alert("My favourite sports are: " + favorite.join(", ")); var a =favorite.join(","); $.ajax ({ url: 'Ajax/delete_customer.php', data: {"city": a}, type: 'post', success: function(result) { alert('Data delete Sucessfully'); location.reload(); // window.location.href = "change_rate.php?id="+result; } }); }); }); </script> <script> $(document).ready(function(){ $("#btn_ina").click(function(){ var favorite = []; $.each($("input[name='ratec']:checked"), function(){ favorite.push($(this).val()); }); // alert("My favourite sports are: " + favorite.join(", ")); var a =favorite.join(","); $.ajax ({ url: 'Ajax/inactive_customer.php', data: {"city": a}, type: 'post', success: function(result) { alert('Customer Deactive Sucessfully'); location.reload(); // window.location.href = "change_rate.php?id="+result; } }); }); }); </script> <script> $(document).ready(function(){ $("#btn_acti").click(function(){ var favorite = []; $.each($("input[name='ratec']:checked"), function(){ favorite.push($(this).val()); }); // alert("My favourite sports are: " + favorite.join(", ")); var a =favorite.join(","); $.ajax ({ url: 'Ajax/active_customer.php', data: {"city": a}, type: 'post', success: function(result) { alert('Customer Active Sucessfully'); location.reload(); // window.location.href = "change_rate.php?id="+result; } }); }); }); </script> <!-- Mirrored from themesdesign.in/morvin/layouts/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 04 Apr 2022 13:25:42 GMT --> </html>