D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ipuco
/
public_html
/
superadmin
/
Filename :
allpagesseocontent_edit.php
back
Copy
<?php ob_start(); session_start(); include('include/connection.php'); $emailid = $_SESSION['emailid']; $adminid = $_SESSION['id']; $per = mysqli_query($conn, "select * from admin where id='" . $adminid . "'"); $perq1 = mysqli_fetch_array($per); if (!(isset($_SESSION['emailid']) && $_SESSION['emailid'] != '')) { header("Location: index.php"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimal-ui"> <title> Update All Pages SEO Tag Management</title> <meta content="Admin Dashboard" name="description"> <meta content="Themesbrand" name="author"> <link rel="shortcut icon" href="assets/images/favicon.ico"> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <link href="assets/css/metismenu.min.css" rel="stylesheet" type="text/css"> <link href="assets/css/icons.css" rel="stylesheet" type="text/css"> <link href="assets/css/style.css" rel="stylesheet" type="text/css"> <script src="https://cdn.ckeditor.com/4.14.0/standard/ckeditor.js"></script> </head> <body> <!-- Begin page --> <div id="wrapper"> <!-- Top Bar Start --> <?php include('include/top-header.php'); ?> <!-- Top Bar End --> <!-- ========== Left Sidebar Start ========== --> <div class="left side-menu"> <?php include('include/left-menu.php'); ?> <!-- Sidebar -left --> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="content-page"> <!-- Start content --> <div class="content"> <div class="container-fluid"> <div class="page-title-box"> <div class="row align-items-center"> <div class="col-sm-10"> <h4 class="page-title">Edit All Pages SEO Tag Management</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="dashboard.php">Dashboard</a></li> <li class="breadcrumb-item active">Update All Pages SEO Tag Management</li> </ol> </div> <div class="col-sm-2"> </div> </div> </div> <?php if (isset($_POST['submit'])) { $meta_title = addslashes($_POST['meta_title']); $meta_keyword = addslashes($_POST['meta_keyword']); $meta_description = addslashes($_POST['meta_description']); $og_title = addslashes($_POST['og_title']); $og_type = addslashes($_POST['og_type']); $og_url = addslashes($_POST['og_url']); $og_image = addslashes($_POST['og_image']); $og_description = addslashes($_POST['og_description']); $google_analytics_code = addslashes($_POST['google_analytics_code']); $allpagesseo_id = $_POST['allpagesseo_id']; $other_tag = $_POST['other_tag']; if (mysqli_query($conn, "update allpagesseo set meta_title = '$meta_title',meta_keyword = '$meta_keyword',meta_description = '$meta_description',og_title = '$og_title',og_type = '$og_type',og_url= '$og_url',og_image = '$og_image',og_description = '$og_description',google_analytics_code = '$google_analytics_code',other_tag = '$other_tag' where allpagesseo_id=" . $_REQUEST['id'])) { ?><script type="text/javascript"> //alert("Data Inserted Successfully"); window.location = 'list-of-homepageseo.php'; </script><?php } else { ?><script type="text/javascript"> alert("Error! Data Not Updated"); window.location = 'list-of-homepageseo.php'; </script><?php echo mysql_error(); } } $fetch = mysqli_query($conn, "select * from allpagesseo where allpagesseo_id='" . $_REQUEST['id'] . "'"); $fetch1 = mysqli_fetch_array($fetch); ?> <!-- end row --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <h4 class="mt-0 header-title"><i class="ti-agenda text-primary mr-2"></i>Edit <?php echo $fetch1['page_name']; ?> SEO Tag</h4> <p class="text-muted m-b-30"></p> <p class="text-muted m-b-30"></p> <form action="" method="post" enctype="multipart/form-data" class="form-horizontal"> <input type="hidden" name="allpagesseo_id" value="<?php echo $fetch1['allpagesseo_id']; ?>" /> <div class="col-12"> <div class="card"> <div class="card-body"> <h4 class="mt-0 header-title"></h4> <p class="text-muted m-b-30"></p> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">Your Meta Title</label> <div class="col-sm-10"><input class="form-control" type="text" name="meta_title" value="<?php echo $fetch1['meta_title']; ?>" /></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">Your Meta keywords</label> <div class="col-sm-10"><input class="form-control" type="text" name="meta_keyword" value="<?php echo $fetch1['meta_keyword']; ?>" /></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">Your Meta Description</label> <div class="col-sm-10"><textarea required="" name="meta_description" class="form-control" rows="3"><?php echo $fetch1['meta_description']; ?></textarea></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">OG Title</label> <div class="col-sm-10"><input class="form-control" type="text" name="og_title" value="<?php echo $fetch1['og_title']; ?>" /></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">OG Type</label> <div class="col-sm-10"><input class="form-control" type="text" name="og_type" value="<?php echo $fetch1['og_type']; ?>" /></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">OG URL</label> <div class="col-sm-10"><input class="form-control" type="text" name="og_url" value="<?php echo $fetch1['og_url']; ?>" /></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">OG Images</label> <div class="col-sm-10"><input class="form-control" type="text" name="og_image" value="<?php echo $fetch1['og_image']; ?>" /></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">OG Description</label> <div class="col-sm-10"><input class="form-control" type="text" name="og_description" value="<?php echo $fetch1['og_description']; ?>" /></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">Google Analytics Code</label> <div class="col-sm-10"><textarea required="" name="google_analytics_code" class="form-control" rows="6"><?php echo $fetch1['google_analytics_code']; ?></textarea></div> </div> <div class="form-group row"><label for="example-password-input" class="col-sm-2 col-form-label">Other Tags</label> <div class="col-sm-10"> <textarea placeholder="With code" name="other_tag" class="form-control" rows="6"><?php echo $fetch1['other_tag']; ?></textarea></div> </div> <div class="form-group row"><label for="example-text-input-sm" class="col-sm-2 col-form-label"></label> <div class="col-sm-10"><button type="submit" class="btn btn-success waves-effect waves-light" name="submit">Update</button></div> </div> </div> </div> </div> </form> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- content --> <?php include_once('include/admin-footer.php'); ?> </div> <!-- ============================================================== --> <!-- End Right content here --> <!-- ============================================================== --> </div> <!-- END wrapper --> <script> CKEDITOR.replace('editor1'); </script> <!-- jQuery --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.bundle.min.js"></script> <script src="assets/js/metisMenu.min.js"></script> <script src="assets/js/jquery.slimscroll.js"></script> <script src="assets/js/waves.min.js"></script> <!-- App js --> <script src="assets/js/app.js"></script> </body> </html>