D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ksclnmuac
/
public_html
/
ci_panel
/
application
/
views
/
admin
/
Filename :
contact.php
back
Copy
<!DOCTYPE html> <html lang="en" class="light-style layout-menu-fixed " dir="ltr" data-theme="theme-default" data-assets-path="../assets/" data-template="vertical-menu-template-free"> <head> <?php $data = []; $data['title'] = "Enquiries"; $this->load->view('admin/components/header_link', $data); ?> </head> <body> <!-- Layout wrapper --> <div class="layout-wrapper layout-content-navbar "> <div class="layout-container"> <?php $this->load->view('admin/components/menu'); ?> <!-- Layout container --> <div class="layout-page"> <!-- Navbar --> <?php $this->load->view('admin/components/navbar'); ?> <!-- / Navbar --> <!-- Content wrapper --> <div class="content-wrapper"> <!-- Content --> <div class="container-xxl flex-grow-1 container-p-y"> <div class="row"> <div class="col-lg-12 mb-4 order-0"> <div class="card"> <div class="card-header d-flex justify-content-between align-items-center"> <h5 class="mb-0">View Enquiries</h5> </div> <div class="card-body"> <div class="table-responsive text-nowrap"> <table class="table datatable table-hover table-striped"> <thead> <tr> <th>S. No.</th> <th>Name</th> <th>Email</th> <th>Mobile</th> <th>Message</th> <th>Date</th> <th>Actions</th> </tr> </thead> <tbody> <?php $i = 1; if(isset($contact)){ foreach($contact as $contact){ ?> <tr> <td><?php echo $i; ?></td> <td><?php echo $contact['fname']." ".$contact['lname']; ?></td> <td><?php echo $contact['email']; ?></td> <td><a href="tel:<?php echo $contact['mobile']; ?>"><span class="badge bg-label-info me-1"><?php echo $contact['mobile']; ?></span></a></td> <td><?php echo $contact['message'] ?></td> <td><?php echo date('d-M-Y', strtotime($contact['date'])) ?></td> <td> <div class="dropdown"> <button type="button" class="btn p-0 dropdown-toggle hide-arrow" data-bs-toggle="dropdown"><i class="bx bx-dots-vertical-rounded"></i></button> <div class="dropdown-menu"> <a class="dropdown-item" href="javascript:void(0);" onclick="deleteContact(<?php echo $contact['con_id'] ?>)"><i class="bx bx-trash me-1"></i> Delete</a> </div> </div> </td> </tr> <?php $i++; } } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <!-- / Content --> <?php $this->load->view('admin/components/footer'); ?> <?php $this->load->view('admin/components/footer_link'); ?> <script> function deleteContact(id){ if(window.confirm("Are you sure, you want to delete this enquiry?")){ window.location.href = "<?php echo base_url().'admin/contact/delete/' ?>"+id; } } </script> </body> </html>