Şuanki Dizin: /home/wwwdreamtechnolo/public_html/balajimall.com/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/balajimall.com/admin/bottom-links.php |
<?php require_once("../lib/functions.php"); $db = new login_function(); $flag = 0; $title=""; $success_msg = 0; $links = ""; $succ_msg = 0; if(!isset($_SESSION['current_login_admin'])) { header("Location:index.php"); } if(isset($_SESSION['current_login_admin'])) { $email = $_SESSION['current_login_admin']; } if(isset($_POST['add_btn'])) { $links = $_POST['links']; $title = $_POST['title']; if($flag == 0) { if($db->add_bottom_links($title,$links)) { $success_msg = 1 ; $links = ""; } } } if(isset($_GET['delete_id'])) { $del_id = $_GET['delete_id']; $db->delete_bottom_links_info($del_id); $succ_msg = 1; } ?> <?php require_once('header.php'); ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> Bottom Links </h1> <?php if($success_msg == 1) { ?> <div class="alert alert-success"> Information Updated Successfully. </div> <?php } ?> <?php if($succ_msg == 1) { ?> <div class="alert alert-danger"> Information Updated Successfully. </div> <?php } ?> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> Bottom Links </div> <div class="panel-body"> <div class="row"> <div class="col-lg-6"> <form role="form" method="post" enctype="multipart/form-data"> <div class="form-group"> <label>Title</label> <input class="form-control" placeholder="Enter Title" name="title" type="text" value="<?php echo $title; ?>" required></center> </div> <div class="form-group"> <label>Links</label> <input class="form-control" placeholder="Enter Links" name="links" type="text" value="<?php echo $links; ?>" required> </div> <button type="submit" class="btn btn-success" name="add_btn">Bottom Links</button> <br /><br /> </form> </div> </div> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="table2excel"> <thead> <tr class="noExl"> <th width="20">Sr. No</th> <th>Title</th> <th>Links</th> <th width="50">Action</th> <th width="50">Action</th> </tr> </thead> <tbody> <?php $report_details = $db->get_all_bottom_links(); if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $title = $report_details[$counter][1]; $links = $report_details[$counter][2]; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $title; ?></td> <td><?php echo $links; ?></td> <td><a href="update-bottom-links.php?up_id=<?php echo $id; ?>">Edit</a></td> <td><a href="bottom-links.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td> </tr> <?php $counter ++; } }else { ?> <td colspan="11">No Data Found...</td> <?php } ?> </tbody> </table> </div> <!-- /.table-responsive --> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4