D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
dash
/
Filename :
view-blog-details.php
back
Copy
<?php session_start(); include 'config.php'; if($_SESSION['design1'] == ''){ echo "<script>location.replace('index.php')</script>"; } $url = base64_decode( $_GET['id'] ); ?> <!DOCTYPE html> <html lang="zxx"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="robots" content="nofollow,noindex"> <meta name="author" content=""> <link rel="icon" href="assets/img/basic/favicon.ico" type="image/x-icon"> <title>DesignPitara | Admin Panel</title> <!-- CSS --> <link rel="stylesheet" href="assets/css/app.css"> <script src='tinymce/tinymce.min.js' type='text/javascript'></script> <script src="jquery.js"></script> <style> .loader { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: #F5F8FA; z-index: 9998; text-align: center; } .plane-container { position: absolute; top: 50%; left: 50%; } </style> </head> <body class="light"> <div id="app"> <?php include 'left-menu.php'; ?> <!--Sidebar End--> <?php include 'top.php'; ?> <!-- Right Sidebar --> <div class="page has-sidebar-left height-full"> <div class="container-fluid relative animatedParent animateOnce"> <div class="tab-content pb-3" id="v-pills-tabContent"> <div class="row"> <?php $sql = "select * from blog where id='$url' order by id desc"; $result = mysqli_query($conn,$sql); while( $row = mysqli_fetch_assoc($result)){ ?> <div class="col-md-12"> <div class="card shadow my-3 no-b"> <div class="card-body"> <div class="col-ms-12" style="text-align:right;"> <a href="edit-blog.php?id=<?php echo base64_encode($row['id']) ?>" class="btn btn-primary">Edit</a> <a href="delete-blog.php?id=<?php echo base64_encode($row['id']) ?>" class="btn btn-danger" onclick="return checkDelete()">Delete</a> </div> <div class="d-flex align-items-center col-md-8" style="margin:0 auto;"> <img src="../image/<?php echo $row['image']?>" alt="<?php echo $row['alt']?>" height="350px"> </div> <div class="text-center"> <p><b>Alt :</b> <?php echo $row['alt'] ?></p> </div> </div> <div class="card-body"> <div class=" justify-content-around s-12"> <h3></i><?php echo $row['heading'] ?></h3> <p><?php echo $row['blog_content'] ?></p> <p><b>Blog Url</b> : <?php echo $row['blog_url'] ?></p> <p><b>Blog Title</b> : <?php echo $row['blog_title'] ?></p> <p><b>Blog Description</b> : <?php echo $row['blog_description'] ?></p> <p><b>Blog Keyword</b> : <?php echo $row['blog_keyword'] ?></p> <p><b>Blog Category</b> : <?php echo $row['category'] ?></p> <p><b>Blog Tags</b> : <?php echo $row['tag'] ?></p> </div> </div> </div> </div> <?php } ?> </div> </div> </div> </div> </div> <!--/#app --> <script src="assets/js/app.js"></script> <script language="JavaScript" type="text/javascript"> function checkDelete(){ return confirm('Are you sure?'); } </script> </body> </html>