File manager - Edit - /home/custbahd/scorisinternationaljunior.com/admin/faqs/index.php
Back
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Admin | SIJSU ©</title> <!--Boxicons--> <link href="boxicons/boxicon.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="datatable/dataTable.bootstrap.min.css"> <style> .top-btns { padding: 20px; } .bx { color: #253b70; } /*Industry*/ .industry-section { margin-top: 30px; } .industry { width: 95%; margin-left: 10px; margin-bottom: 10px; border-radius: 10px; box-shadow: 0 0 4px 0 #253b70; } .industry h3 { text-transform: uppercase; font-weight: bold; font-size: 14px; color: #253b70; padding: 20px 0 0 0; text-align: center; } .industry a{ font-size: 20px; margin: 20px; } .industry a:nth-child(1) { color: #253b70; } .industry a:nth-child(2) { color: #253b70; } .industry h6{ font-weight: bold; font-size: 12px; text-transform: uppercase; text-align: center; color: #253b70; margin-top: 10px; } .industry a.img{ margin: 0 !important; } .industry img{ width: 100%; height: 220px; margin: 0; margin-bottom: 10px; } .industry b { font-size: 10px; color: #e0f9fa; margin-left: 2px; padding: 5px 10px; border-radius: 30px; background: #253b70; } .industry b:nth-child(1) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .industry b:nth-child(2) { border-top-left-radius: 0; border-bottom-left-radius: 0; } .industry .price a{ font-size: 14px; text-align: center; color: #253b70; padding: 10px; margin-top: 20px; margin-bottom: 20px; } .industry .subject { font-size: 14px; text-align: center; color: #253b70; padding: 10px; width: 85%; margin-top: 20px; margin-bottom: 20px; background: gray; border-radius: 10px 10px 10px 0; } .industry .message { font-size: 12px; text-align: center; color: white; padding: 60px; width: 85%; border-radius: 0 10px 10px 10px; margin-top: 20px; margin-bottom: 20px; background: gray; } .industry .message span { } .count { text-align: center; font-weight: 700; color: #2b3c6b; font-size: 18px; text-align: center; text-transform: uppercase; text-decoration: underline; } .bx-trash { font-size: 16px; color: #ff7162; border-radius: 100px; width: 35px; height: 35px; padding: 10px 0; background: #2b3c6b; margin-bottom: 10px; transition: 1s; } .bx-trash:hover { color: #2b3c6b; background: #ff7162; } </style> </head> <body> <div align="center"> <a href="../"><img src="../../images/logo/ico4.png" class="page-header text-center" width="150px"></a> </div> <br> <br> <br> <br> <?php if(isset($_SESSION['error'])){ echo " <div class='alert alert-danger text-center'> <button class='close'>×</button> ".$_SESSION['error']." </div> "; unset($_SESSION['error']); } if(isset($_SESSION['success'])){ echo " <div class='alert alert-success text-center'> <button class='close'>×</button> ".$_SESSION['success']." </div> "; unset($_SESSION['success']); } ?> <div class="count"> <?php include_once('db/count_db.php'); // of college_data table $sql = "SELECT count(*) FROM faqs"; $result = $conn->query($sql); // Display data on web page while($row = mysqli_fetch_array($result)) { if ($row['count(*)']==0) { echo "No FAQs requests!"; } elseif ($row['count(*)']==1) { echo $row['count(*)']. " FAQs request!"; }else { echo $row['count(*)']. " FAQs requests!"; } echo "<br />"; } // Close the connection $conn->close(); ?> </div> <br> <br> <div align="center"> <a href="mark/all.php" class="btn btn-success" style="background: #253b70;border: none;"><span class="bx bxs-check-circle" style="color: white;margin-right: 5px;"></span>Mark All As Answered</a> </div> <section> <div class='row' align='center'> <?php include_once('db/connection.php'); $sql = "SELECT * FROM faqs ORDER BY id DESC"; //use for MySQLi-OOP $query = $conn->query($sql); while($row = $query->fetch_assoc()){ if ($row['message']=='') { } else { echo "<div class='col-lg-4 col-md-6 col-sm-12 col-12'>"; echo "<div class='industry-section'>"; echo "<div class='industry'>"; echo "<h3>".$row['name']."</h3>"; if ($row['email']) { echo "<div class='price'><a href='mailto:$row[email]'>".$row['email']."</a></div>"; } else { } echo "<div class='message'><span>".$row['message']."</span></div>"; echo "<hr>"; echo "<div align='center'>"; echo "<a href='#delete_".$row['id']."' data-toggle='modal'><i class='bx-fw bx bx-trash'></i></a>"; echo "</div>"; echo "<div align='center'>"; if ($row['mark']=="") { echo "<a href=\"mark/?id=$row[id]\" onClick=\"return confirm('Are you sure you want to mark this message as read?')\">Mark As Seen</a> "; } elseif ($row['mark']==1) { echo "<a><i class='bx bxs-check-circle'></i> Seen</a> "; } echo "</div>"; echo "<br>"; echo "</div>"; echo "</div>"; echo "</div>"; include('edit_delete_modal.php'); } } ?> </div> </section> <!--endd Industry--> <script src="jquery/jquery.min.js"></script> <script src="bootstrap/js/bootstrap.min.js"></script> <script src="datatable/jquery.dataTables.min.js"></script> <script src="datatable/dataTable.bootstrap.min.js"></script> <!-- generate datatable on our table --> <script> $(document).ready(function(){ //inialize datatable $('#myTable').DataTable(); //hide alert $(document).on('click', '.close', function(){ $('.alert').hide(); }) }); </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 1.71 |
proxy
|
phpinfo
|
Settings