File "service-detail.php"

Full Path: /home/ovanhxso/public_html/PHPMailer/fonts/2612db/service-detail.php
File size: 4.44 KB
MIME-type: text/x-php
Charset: utf-8

<?php include("include/header1.php"); ?>

<head>
        <!-- common meta tags -->
        <title>OVA Services | Empowering Communities</title>
        <meta name="description" content="Discover our range of services, including sustainability, psychosocial support, language exchange, and more.">
        <meta name="keywords" content="OVA services, volunteer programs, social services, sustainability, community development">
        <meta name="robots" content="index, follow">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="language" content="English">
        <link rel="canonical" href="https://www.ova.ngo/service.php">
        <!-- facebook meta tags -->
        <meta property="og:title" content="OVA Services | Empowering Communities">
        <meta property="og:description" content="Discover our range of services, including sustainability, psychosocial support, language exchange, and more.">
        <meta property="og:image" content="assets/images/logo.png">
        <meta property="og:url" content="https://www.ova.ngo/service.php">

        <!-- Twiiter meta tags -->
        <meta name="twitter:title" content="OVA Services | Empowering Communities">
        <meta name="twitter:description" content="Discover our range of services, including sustainability, psychosocial support, language exchange, and more.">
        <meta name="twitter:url" content="https://www.ova.ngo/service.php">
        <meta name="twitter:card" content="summary">
    </head> 


<?php 
if (isset($_POST['id'])) {
  $rty=$conn->prepare("SELECT * FROM service WHERE id=? AND delete_status= 0");
$rty->execute([$_POST['id']]); // code...
}
if (isset($_GET['id'])) {
     $rty=$conn->prepare("SELECT * FROM service WHERE id=? AND delete_status= 0");
      $rty->execute([$_GET['id']]); 
}

$roy=$rty->fetch();
 ?>
<section class="page-title bg-background-area" data-bg="../../assets/images/bg5.jpg">
   <div class="overlay"></div>
   <div class="page-title-container">
      <div class="page-title-wrapper">
         <div class="container">
            <div class="row">
               <div class="col col-xs-12">
                  <h2><?php echo $roy['heading'];?></h2>
                  <ol class="breadcrumb">
                     <li><a href="../.././">Home</a></li>
                     <li><?php echo $roy['heading'];?></li>
                  </ol>
               </div>
            </div>
            <!-- end row -->
         </div>
         <!-- end container -->
      </div>
   </div>
</section>
<section class="blog-single-section blog-single-left-sidebar-section section-padding data-bg-image" data-background="../../assets/images/connecting.png">
   <div class="container">
      <div class="row">
         <div class="col col-md-8 col-md-push-4">
            <div class="blog-content">
               <div class="post format-standard-image">
                  <div class="entry-media">
                     <img src="../../panel/assets/images/<?php echo $roy['photo'];?>" alt="OVA services">
                  </div>
                  <div class="date-entry-meta">
                  </div>
                  <h2><?php echo html_entity_decode($roy['short_content']);?></h2>
                  <p class="text-justify"><?php echo html_entity_decode($roy['content']) ;?>
                  </p>
               </div>
            </div>
         </div>
         <div class="col col-md-4 col-md-pull-8">
            <div class="blog-sidebar">
               <div class="widget category-widget">
                  <h3>Services</h3>
                
                      <?php 
$stm18=$conn->prepare("SELECT * FROM service where delete_status = 0");
$stm18->execute();
$ro18=$stm18->fetchAll();

  $activeId = isset($_GET['id']) ? $_GET['id'] : null;
?>
               <ul id="service-menu">
  <?php foreach ($ro18 as $ke18) { 
    // Check if this item is the active item
    $isActive = ($ke18['id'] == $activeId) ? 'active' : '';
  ?>
    <li id="menu-item-<?php echo $ke18['id']; ?>" class="<?php echo $isActive; ?>">
      <a href="#" onclick="submitForm1(event, <?php echo $ke18['id'] ?>,'<?php echo $ke18['heading'] ?>', '../../service-detail.php')">
        <?php echo $ke18['heading']; ?>
      </a>
    </li>
  <?php } ?>
</ul>
               </div>
            </div>
         </div>
      </div>
   </div>
   <!-- end container -->
</section>
<?php include("include/footer1.php"); ?>