File "update-setting-page.php"

Full Path: /home/u165092617/domains/tadzz.com/public_html/admin/update-setting-page.php
File size: 9.1 KB
MIME-type: text/html
Charset: utf-8


<?php session_start();
include("./../config/config.php");  
$page = $_GET['page'];
//echo $page;
$sql_tag = "SELECT * FROM meta_tag_setting WHERE pages = '$page'";

$mydara_sql = $conn->query($sql_tag);
$fetch_tag = $mydara_sql->fetchAll();
$rows_tag =$mydara_sql->rowCount();

if($rows_tag !=0 ){
	foreach( $fetch_tag  as $rowcon ) {
		$title = $rowcon['title'];
		$description  = $rowcon['description'];
		$keyword = $rowcon['keyword'];
      $page_name = $rowcon['pages'];
	}
}
//var_dump($mydara_sql);
?>
   <!DOCTYPE html>
   <html lang="en">
      <head>
         <meta charset="UTF-8">
         <title>Support - iCouponWorld | Coupons | Discounts| Promo Codes</title>
         <meta http-equiv="X-UA-Compatible" content="IE=edge">
         <link id="favicon" rel="icon" type="image/x-icon" href="../images/web-images/home/favicon.png">
         <meta name="robots" content="index, follow" />
         <meta name="author" content="Design Collection">
         <meta name="description" content="If you have a question or a comment, please call us on +91 7987887047 (9.30am to 5.30pm. Monday to Saturday.) or email us">
      <meta name="keywords" content="contact us, reach us, email us, whatsapp us, call us">
      <link rel="canonical" href="update-setting-page.php"/>
         <!-- Viewport configuration, scaling options -->
         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
         <!-- Bootstrap CSS -->
         <link href="../css/icouponworld.css" rel="stylesheet">
         <!-- CSS Stylesheet -->
         <link href="../css/dashboard.css" rel="stylesheet">
         <!-- Font Awesome icon -->
         <link href="../fontawesome/css/fontawesome.css" rel="stylesheet" />
         <!-- Roboto font  -->
         <link rel="preconnect" href="https://fonts.googleapis.com">
         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
         <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
          <!-- sweetalert.min.js  -->
		 <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
         <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
         <!--[if lt IE 9]>
         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
         <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
         <![endif]-->
      </head>
      <body>
         <!--unique id begin -->
         <div id="s_mm">
         
            <!--scroll-top Begin-->
            <div id="scroll-top">
               <!--sidebarwrapper Begin-->
               <div id="sidebarwrapper">
               <!--Sidebarmenu Begin-->
             <?php include("./includefiles/sidebar.php"); ?>
               <!--Sidebarmenu End-->
                  <!--content-wrapper Begin-->
                  <div id="content-wrapper" class="d-flex flex-column dashboard-navbar">
                     <div id="maincontent">
                           <!-- Navbar Topbar Begin-->
                               <?php include("./includefiles/header.php"); ?>
                           <!-- Navbar Topbar End-->
                         <!-- Support Begin-->
						 <div class="container-fluid px-4">
						 <div class="card bg-white  border-0 shadow mb-4">
                                    <div class="card-header bg-white border-bottom py-3">
                                       <h6 class="m-0 font-weight-bold">Edit <?=$page_name?> Page</h6>
                                    </div>
                                     <form action="./backend/update-tag-setting.php" method="post">
                                    <div class="card-body">
                                       <div class="row">
                                          <div class="col-md-12 pt-1">
                                             <div class="mb-3">
                                                <label for="meta-tilte" class="form-label">Meta Title</label>
                                                <input type="text" name="<?=SESS_MASTER?>title" class="form-control" value="<?=$title?>" maxlength="70" id="meta-tilte" aria-describedby="meta-tilte" placeholder="Meta Titles Paste here">
												<input type="hidden" name="<?=SESS_MASTER?>page" value="<?=$page?>">
                                             </div>
                                          </div>
                                          <div class="col-md-12 pt-1">
                                             <div class="mb-3">
                                                <label for="meta-description" class="form-label">Meta Description</label>
                                                <input type="text" name="<?=SESS_MASTER?>description" class="form-control" value="<?=$description?>" maxlength="200" id="meta-description" aria-describedby="meta-description" placeholder="Enter description">
                                             </div>
                                          </div>                                       
                                         
                                          
                                          <div class="col-lg-12 col-sm-12 pt-1">
                                             <div class="mb-3">
                                                <label for="state" class="form-label">Meta Keyword</label>
                                                <input type="text" maxlength="200" name="<?=SESS_MASTER?>keyword" class="form-control" value="<?=$keyword?>" id="state" placeholder="Enter Keyword">
                                             </div>
                                          </div>
                                         
                                         
                                          <div class="col-lg-6 col-sm-12 pt-1">
                                             <div class="mb-3">
                                                <button type="submit" name="submit"  class="btn btn-primary">Save </button>
                                             </div>
                                             <div class="mb-3 text-success">

                                                <?php 
                                                 echo $_SESSION['message'];
                                                
                                                 ?>
                                                 <?php
         
         unset($_SESSION['message']);
            ?>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                 </form>
                                 </div>
								 <div class="d-flex justify-content-center">
								 <a href="./meta-tag.php" class="btn btn-primary m-auto">Back to meta tag page </a>
                                  </div>
                               </div>
                        </div>
                        <!-- Support End-->
                     </div>
</div>
                  <!--Copyright Begin-->
               <?php include("./includefiles/footer.php"); ?>
                  <!--Copyright End-->
                  </div>
                  <!--content-wrapper End-->
               </div>
               <!--sidebarwrapper End-->
               <!--Scroll to top Begin-->
               <a class="scroll-to-top rounded" href="#scroll-top">
               <i class="fas fa-angle-up"></i>
               </a>
               <!--Scroll to top End-->
               <!-- Jquery Script -->
               <script src="../js/jquery-3.4.1.min.js"></script>
               <!-- Bootstrap Script -->
               <script src="../js/bootstrap.bundle.min.js"></script>
               <!-- ashboard-icouponworld Script -->
               <script src="../js/dashboard-icouponworld.js"></script>
            </div>
            <!--scroll-top End-->
         </div>
         <!--unique id End -->
      </body>
       <!-- Script for search table data in footer Begin-->
	  <script>
         $(document).ready(function () {
         $('#affiliatecompany tfoot th, #merchant tfoot th, #company_wise tfoot th').each(function () {
         var title = $(this).text();
         $(this).html('<input type="text" class="form-control" placeholder="Search ' + title + '" />');
         
         });
         
         // DataTable
         
         var table = $('#affiliatecompany, #merchant , #company_wise').DataTable({
         searchPanes: true,
         initComplete: function () {
          // Apply the search
          this.api()
             .columns()
             .every(function () {
         
                var that = this;
                $('input', this.footer()).on('keyup change clear', function () {
                   if (that.search() !== this.value) {
                      that.search(this.value).draw();
                   }
                });
             });
         },
         });
         })
          
      </script>
       <!-- Script for search table data in footer End-->
   </html>