D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
gallery
/
Filename :
update-gallery-category.php
back
Copy
<?php include("../include/config.php"); include("../include/sessionhandle.php"); include("../include/header.php"); $kit_faq_id = $_GET['id']; $sql1m = "select * from `gallery_category` WHERE `gallery_category`.`id` = '$kit_faq_id'"; //echo $sql1m ." ". $l_id; $result1m = mysqli_query($conn, $sql1m); if (mysqli_num_rows($result1m) > 0) { $i=1; while($row1m = mysqli_fetch_assoc($result1m)) { $catgtn = $row1m['g_category_name']; } } ?> <style> #d_Gallery ul li:nth-child(1) { background-color: #eb6a4e; } #d_Gallery ul li:nth-child(1) a { color: #fff; } #d_Gallery ul li:nth-child(1) a:hover { background-color: #eb6a4e; } #srkproperty_details .course-detailsa img { width: 100% !important; max-height: 250px !important; } hr { margin-top: 5px !important; margin-bottom: 5px !important; border: 0; border-top: 1px solid #eee; } .img_container { position: relative; padding: 5px; } .overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .3s ease; background-color: #423e3e70; } .img_container:hover .overlay { opacity: 1; } .icon { color: red; font-size: 50px !important; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); text-align: center; } .fa-user:hover { color: #eee; } </style> <script> window.onload = function() { document.getElementById('d_Gallery').classList.add("active"); document.getElementById('d_Gallery1').classList.add("in"); }; </script> <div class="small-header"> <div class="hpanel"> <div class="panel-body"> <div id="hbreadcrumb" class="pull-right"> <ol class="hbreadcrumb breadcrumb"> <li><a href="<?php echo $admin_baseurl . 'dashboard.php';?>">Dashboard</a></li> <li class="active"> <span>Gallery</span> </li> </ol> </div> <h2 class="font-light m-b-xs"> Gallery Category </h2> </div> </div> </div> <div class="content"> <div class="hpanel"> <div class="hpanel"> <div class="panel-heading hbuilt"> <div class="panel-tools"> <a class="showhide"><i class="fa fa-chevron-up"></i></a> <a class="fullscreen"><i class="fa fa-expand"></i></a> </div> Update Gallery Category </div> <div class="panel-body"> <form class="form-horizontal" action="execute.php" method="post"> <div class="form-group"> <div class="col-md-8"> <label class="control-label">Gallery Category Name</label> <input type="text" class="form-control" name="galley_categ" placeholder="Gallery Category" value="<?php echo $catgtn;?>" required> </div> <div class="col-md-4"> <div class="form-group" style="padding:0 20px;"> <br> <div class="text-right"> <input type="hidden" name="categId" value="<?php echo $kit_faq_id;?>"> <button type="reset" class="btn btn-default">Cancel</button> <button type="submit" name="update_galleryCategory" class="btn btn-primary">Submit</button> </div> </div> </div> </div> </form> </div> </div> </div> </div> <br> <div class="content"> <div class="hpanel"> <div class="panel-heading hbuilt"> <div class="panel-tools"> <a class="showhide"><i class="fa fa-chevron-up"></i></a> <a class="fullscreen"><i class="fa fa-expand"></i></a> </div> View All Gallery Category </div> <div class="panel-body"> <div class="table-responsive"> <table id="userPermission_dataTable" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>#</th> <th>Category</th> <th>Action</th> </tr> </thead> <tbody> <?php $srno = 0; $sqlAssign1 = "SELECT * FROM `gallery_category` ORDER BY `gallery_category`.`id` DESC"; // echo $sqlAssign1; $resultAssign1 = mysqli_query($conn, $sqlAssign1); if (mysqli_num_rows($resultAssign1) > 0) { while($rows = mysqli_fetch_assoc($resultAssign1)) { $id = $rows['id']; $title = $rows['g_category_name']; $t_status = $rows['status']; ?> <tr> <th scope="row"><?php echo $srno += 1;?></th> <td><?php echo $title;?></td> <td> <div class="action_btns"> <form method="post" action="update-gallery-category.php?id=<?php echo $id;?>"> <button type="submit" class="actionbtn"><i class="fa fa-pencil-square-o text-success" aria-hidden="true"></i></button> </form> <form method="post" action="execute.php?id=<?php echo $id;?>"> <button type="submit" name="Delete_gCateg_details" class="actionbtn" onclick="return confirm('Do you want to delete this data?')"><i class="fa fa-trash text-danger" aria-hidden="true"></i></button> </form> <?php if($t_status == 'active'){?> <form method="post" action="execute.php?id=<?php echo $id;?>"> <button type="submit" name="status_deactive_gCateg" class="actionbtn"><i class="fa fa-toggle-on text-success" aria-hidden="true"></i></button> </form> <?php }else{?> <form method="post" action="execute.php?id=<?php echo $id;?>"> <button type="submit" name="status_active_gCateg" class="actionbtn"><i class="fa fa-toggle-off text-danger" aria-hidden="true"></i></button> </form> <?php }?> </div> </td> </tr> <?php }}?> </tbody> </table> </div> </div> </div> </div> <br> <?php include('../include/footer.php'); ?>