D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
blogs
/
Filename :
update-blogs_catg.php
back
Copy
<?php include("../include/config.php"); include("../include/sessionhandle.php"); include("../include/header.php"); $l_id = $_GET['id']; $sql1m = "select * from `b_category` WHERE `b_category`.`id` = '$l_id'"; //echo $sql1m ." ". $l_id; $result1m = mysqli_query($conn, $sql1m); if (mysqli_num_rows($result1m) > 0) { $i=1; while($row1m = mysqli_fetch_assoc($result1m)) { $det_det_id = $row1m['id']; $b_category_name = $row1m['b_category_name']; $url=$row1m['url']; $meta_title=$row1m['meta_title']; $meta_description=$row1m['meta_description']; $meta_tags=$row1m['meta_tags']; $meta_keyword=$row1m['meta_keyword']; } } ?> <style> #my_Library ul li:nth-child(1) { background-color: #eb6a4e; } #my_Library ul li:nth-child(1) a { color: #fff; } #my_Library ul li:nth-child(1) a:hover { background-color: #eb6a4e; } #srkproperty_details .course-detailsa img{ width: 100% !important; max-height: 250px !important; } </style> <script> window.onload = function() { document.getElementById('my_Library').classList.add("active"); document.getElementById('my_Library1').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>Category</span> </li> </ol> </div> <h2 class="font-light m-b-xs"> Our Blogs 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 Blogs Category </div> <div class="panel-body"> <form class="form-horizontal" action="execute.php" method="post" > <div class="form-group"> <div class="col-md-12"> <label class="control-label">Add Blogs Category</label> <input required class="form-control" type="text" name="g_categ" value="<?php echo $b_category_name;?>" placeholder="e.g Category name" /> </div> <div class="col-md-12"><br> <label>Custom Url</label> <input name="custom_url" class="form-control" value="<?php echo $url;?>" placeholder="eg.Custom Url..."> </div> <div class="col-md-12"><br> <label>Seo Keywords</label> <input name="keyword" class="form-control" value="<?php echo $meta_keyword;?>" placeholder="eg.Meta Keywords..."> </div> <div class="col-md-12"> <label>Meta Title</label> <input name="meta_title" class="form-control" value="<?php echo $meta_title;?>" placeholder="Meta Title"> </div> <div class="col-md-12"> <label>Meta Description</label> <input name="description" class="form-control" value="<?php echo $meta_description;?>" placeholder="Meta Description"> </div> <div class="col-md-12"> <label>Tags</label> <textarea class="textarea form-control " name="blog_categ_tags" placeholder="e.g. tag1, tag2, tag3" rows="5"><?php echo $meta_tags; ?> </textarea> </div> <div class="col-md-12"> <br> <div class=" text-right"> <input type="hidden" name="g_cat_id" value="<?php echo $det_det_id;?>"> <button type="reset" class="btn btn-default">Cancel</button> <button type="submit" name="update_Gallery_Category" class="btn btn-primary">Submit</button> </div> </div> </div> </form> </div> </div> </div> </div> <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 Blogs images </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 Name</th> <th>Action</th> </tr> </thead> <tbody> <?php $srno = 0; $sqlAssign1 = "SELECT * FROM `b_category` ORDER BY `b_category`.`id` DESC"; $resultAssign1 = mysqli_query($conn, $sqlAssign1); if (mysqli_num_rows($resultAssign1) > 0) { while($rows = mysqli_fetch_assoc($resultAssign1)) { $id = $rows['id']; $g_category_name = $rows['b_category_name']; $slider_status = $rows['status']; ?> <tr> <th scope="row"><?php echo $srno += 1;?></th> <td><p><?php echo $g_category_name;?></p></td> <td> <div class="action_btns"> <form method="post" action="update-blogs_catg.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_gallery_categ" 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($slider_status == 'active'){?> <form method="post" action="execute.php?id=<?php echo $id;?>"> <button type="submit" name="status_deactive_gallery_categ" 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_gallery_categ" 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'); ?>