D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
kavyaeventz.in
/
admin
/
Filename :
faqs.php
back
Copy
<?php include('include/header.php'); // $sno = 1; ?> <style> .txt { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; height: 46px; border: none; /* color: #fff!important; */ -webkit-line-clamp: 2; -webkit-box-orient: vertical; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <div class="container-full"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="d-flex align-items-center"> <div class="me-auto"> <h4 class="page-title">Add Blog</h4> </div> </div> </div> <?php $per_page_record = 4; // Number of entries to show in a page. // Look for a GET variable page if not found default is 1. if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; } $start_from = ($page-1) * $per_page_record; $query = "SELECT * FROM blog LIMIT $start_from, $per_page_record"; ?> <!-- Main content --> <section class="content"> <div class="box"> <div class="box-header with-border d-flex justify-content-between" > <h4 class="box-title" style="margin-left: 20px;margin-top: 10px;">Event List</h4> <button type="button" class="waves-effect waves-light btn btn-rounded btn-success mb-5 ed-btn text-right"><a href="faqs-form.php">Add New FAQ's</a></button> </div> <!-- /.box-header --> <div class="box-body pt-0"> </div> <!-- /.box-body --> <div class="box-body no-padding "> <input type="search" placeholder="Search By Keyword ..." class="form-control search-input my-3 searchin" data-table="customers-list"> <input type="hidden" id="deleteId"> <div class="table-responsive"> <table class="table table-hover customers-list"> <tbody id="showdata"> <thead> <tr> <th width="5%">S No.</th> <th width="20%">Service category</th> <th width="20%">Sub Category</th> <th width="20%">Question</th> <th width="20%">Answer</th> <th colspan="2" width="10%" class="text-center">Action</th> </tr> </thead> <?php $sno = 1; $fetch2 = mysqli_query($conn, "SELECT * FROM `faqs`"); while ($row=mysqli_fetch_array($fetch2)) { ?> <tr> <td><?php echo $sno++; ?></td> <td><?php echo $row['category']; ?></td> <td><?php echo $row['sub_category']; ?></td> <td><?php echo $row['question']; ?></td> <td><?php echo $row['answer']; ?></td> <td><button type="button" class="waves-effect waves-light btn-success mb-5 ed-btn"><?php echo "<a href='faqs-form.php?eid=".$row['id']."'><i class='fas fa-edit'></i></a>";?></button></td> <td><button type="button" class="waves-effect waves-light btn-danger mb-5 ed-btn"><a onclick="javascript: return confirm('Are you Sure to Delete This Fee?'); " href="ajax/delete-faqs.php?did=<?= $row['id'];?>"><i class="fas fa-trash-alt"></i></a></button></td> <?php }?> </tbody></table> </div> <div class="pagination"> </div> </div> </div> <!-- Delete --> <div class="modal fade" id="delete-item" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered "> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Delete Product</h5> <button type="button" class="btn-close close-modal" data-bs-dismiss="modal" aria-label="Close"> <i class="fe fe-x"></i> </button> </div> <div> <div class="modal-body py-0"> <div class="del-modal"> <p>Are you sure want to Delete?</p> </div> </div> <div class="modal-footer pt-0"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button> <button type="submit" onclick="confirmDelete()" class="btn btn-primary">Yes</button> </div> </div> </div> </div> </div> <!-- /Delete --> </section> <!-- /.content --> </div> </div> <!-- /.content-wrapper --> <?php include('include/footer.php') ?>