D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
blogs
/
Filename :
update-blogs-details.php
back
Copy
<?php include("../include/config.php"); include("../include/sessionhandle.php"); include("../include/header.php"); $l_id = $_GET['id']; $sql1m = "select * from `atul_blogs` WHERE `atul_blogs`.`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']; $blogs_categ_id = $row1m['blogs_categ_id']; $det_title = $row1m['title']; $det_blogs_details = $row1m['blogs_details']; $det_post_by = $row1m['post_by']; $det_picture = $row1m['picture']; $det_keyword = $row1m['keyword']; $det_description = $row1m['description']; $custom_url = $row1m['url']; $meta_title = $row1m['meta_title']; $blogs_tags = $row1m['blog_tags']; $posted_date=$row1m['date_add']; } } $sql1m1 = "select * from `b_category` WHERE `b_category`.`id` = '$blogs_categ_id'"; $result1m1 = mysqli_query($conn, $sql1m1); if (mysqli_num_rows($result1m1) > 0) { while($row1m1 = mysqli_fetch_assoc($result1m1)) { $b_category_name = $row1m1['b_category_name']; } } ?> <style> #my_Library ul li:nth-child(3) { background-color: #eb6a4e; } #my_Library ul li:nth-child(3) a { color: #fff; } #my_Library ul li:nth-child(3) 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>Blogs</span> </li> </ol> </div> <h2 class="font-light m-b-xs"> Update Blogs Details </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 Details </div> <div class="panel-body"> <form class="form-horizontal" action="execute-blogs-details.php" method="post" enctype="multipart/form-data"> <div class="form-group"> <div class="col-md-12"> <label class="control-label">Blogs Title</label> <input type="text" name="blogs_title" class="form-control" placeholder="BLogs Title" value="<?php echo $det_title;?>" required> </div> <div class="col-md-9"> <label class="control-label">Custom url</label> <input type="text" name="custom_url" class="form-control" placeholder="BLogs Title" value="<?php echo $custom_url;?>" > </div> <div class="col-md-3"> <label class="control-label">Posted date</label> <input name="custom_date" type="date" class="form-control" value="<?php echo date('Y-m-d',strtotime($posted_date)); ?>"/> </div> <div class="col-md-6"> <label class="control-label">Blogs Posted By</label> <input type="text" name="post_by" class="form-control" placeholder="BLogs Title" value="<?php echo $det_post_by;?>" required> </div> <div class="col-md-6"> <label class="control-label">Select BLogs Category </label> <select name="blogs_categ_id" class="form-control" required> <option value="<?php echo $blogs_categ_id;?>"> <?php echo $b_category_name;?></option> <option value="" disabled>-- Select Blogs Category --</option> <?php $sql1mq = "SELECT * FROM `b_category` WHERE `b_category`.`id` NOT IN ('$blogs_categ_id') ORDER BY `b_category`.`b_category_name` ASC"; echo $sql1mq; $result1mq = mysqli_query($conn, $sql1mq); if (mysqli_num_rows($result1mq) > 0) { while($row1mq = mysqli_fetch_assoc($result1mq)) { $det_det_ids = $row1mq['id']; $b_category_name = $row1mq['b_category_name']; ?> <option value="<?php echo $det_det_ids?>"> <?php echo $b_category_name;?></option> <?php } } ?> </select> </div> <div class="col-md-12"> <label class="control-label">Details</label> <textarea required class="textarea form-control " id="ckeditor_library_course_details" name="ckeditor_library_course_details" placeholder="Enter text ..." rows="15" data-height="100"> <?php echo htmlspecialchars($det_blogs_details); ?></textarea> </div> <div class="col-md-6"> <label class="control-label">Blogs Image</label> <input type="file" id="file" class="form-control" name="image_a" multiple="multiple" accept="image/*"> </div> <div class="col-md-6"> <img src="<?php echo $admin_baseurl . 'blogs/blogs-files/'. $det_picture;?>" style="width:100px;"> </div> <div class="col-md-12"> <label>Meta Title</label> <input name="meta_title" class="form-control" placeholder="Meta Title" value="<?php echo $meta_title;?>"> </div> <div class="col-md-12"><br> <label>Seo Keywords</label> <input name="keyword" class="form-control" placeholder="eg.Seo Keywords..." value="<?php echo $det_keyword;?>"> </div> <div class="col-md-12"> <label>Meta Description</label> <input name="description" class="form-control" placeholder="Meta Description" value="<?php echo $det_description;?>"> </div> <div class="col-md-12"> <label>Tags</label> <textarea class="textarea form-control " name="blogs_tags" placeholder="e.g. tag1, tag2, tag3" rows="5"><?php echo $blogs_tags;?></textarea> </div> <div class="col-md-12"> <div class="form-group" style="padding:0 20px;"> <br> <div class="text-right"> <input type="hidden" name="blogs_id" value="<?php echo $det_det_id;?>"> <input type="hidden" name="blogs_images" value="<?php echo $det_picture;?>"> <button type="reset" class="btn btn-default">Cancel</button> <button type="submit" name="update_blogs_details" class="btn btn-primary">Submit</button> </div> </div> </div> </div> </form> </div> </div> </div> </div> <br> <script> $(function() { CKEDITOR.replace('ckeditor_library_course_details', { height: 350, filebrowserUploadUrl: "<?php echo $admin_baseurl . 'blogs/ckupload.php'; ?>", filebrowserUploadMethod: 'form' }); }); </script> <?php include('../include/footer.php'); ?>