MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.224.30.113
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/abrgarments.com/../leatheroncall.in/../samingpvtltd.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/abrgarments.com/../leatheroncall.in/../samingpvtltd.com/service-detail.php
<html>
                        <?php
include_once'admin/config.php';
$id = $_GET['id'];
$query="SELECT * FROM `tb5_course` WHERE id='$id'";
$run = mysqli_query($db,$query) or die("Query Not run");
while($data = mysqli_fetch_assoc($run)){
 ?>
<head> 
<?php include 'headlinks.php';?> 
<title><?php echo $data['meta_title']?></title>
<meta name="description" content="<?php echo $data['meta_desc']?>">
<meta name="keywords" content="<?php echo $data['meta_keyword']?>">
<link rel="canonical" href="https://webkey.biz/designs4u/demo/dy/samingpvtltd/<?php echo $data['course_name']?>" />
<meta name="author" content="Mission Engineering">
<style>
    .filterDiv {
      float: left;
      /*background-color: #2196F3;*/
      color: black;
      width: 100%;
      height: 100px;
      padding: 30px;
      margin: 2px;
      display: none;
      box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
    }

    .show {
      display: block;
    }

    .container {
      margin-top: 20px;
      overflow: hidden;
    }

    /* Style the buttons */
    .btnn {
      border: none;
      outline: none;
      padding: 12px 16px;
      margin: 5px;
      background-color: #f1f1f1;
      cursor: pointer;
      width: 300px;
    }

    .btnn:hover {
      background-color: #ddd;
    }

    .btnn.active {
      background-color: #666;
      color: white;
    }
    .course-img
    {
    width: 100px;
    height: 60px;
    margin: 14px;
    padding: 10;
    }
    .cousre-name
    {
        margin-top: 50px;
    }
    .course-banner img
    {
        width:100%;
        height:400px;
    }
  </style>
</head>
<?php 
}
?>
<body> 
<?php include "header.php" ?>
  <!--banner-->
  <section class="hero-wrap hero-wrap-2" style="background-image: url('img/banner.jpg');">
    <div class="overlay"></div>
    <div class="container">
      <div class="row no-gutters slider-text align-items-center justify-content-center">
          
                    <?php
include_once'admin/config.php';
$id = $_GET['id'];
$query="SELECT * FROM `tb5_course` WHERE id='$id'";
$run = mysqli_query($db,$query) or die("Query Not run");
while($data = mysqli_fetch_assoc($run)){
 ?>
        <div class="col-md-9 ftco-animate text-center">
          <h1 class="mb-4 bread"><?php echo $data['course_name']?></h1>
          <p class="breadcrumbs">
            <span class="mr-2">
              <a href="index.php">Home <i class="ion-ios-arrow-forward"></i>
              </a>
            </span>
            <span>/<?php echo $data['course_name']?><i class="ion-ios-arrow-forward"></i>
            </span>
          </p>
        </div>
        <?php
}
?>
      </div>
    </div>
  </section>
  <!--banner-->
  <section>
    <div class="container">
      <div class="row">
          <?php
include_once'admin/config.php';
$id = $_GET['id'];
$query="SELECT * FROM `tb5_course` WHERE id='$id'";
$run = mysqli_query($db,$query) or die("Query Not run");
while($data = mysqli_fetch_assoc($run)){
 ?>
        <div class="col-md-9">
          <!--course banner-->
          <div class="container">
            <div class="row">
              <div class="course-banner">
                  <input type="hidden" value="<?php echo $data['id']?>">
                <img class="img-fluid" src="img/course/<?php echo $data['course_image']?>">
              </div>
            </div>
            <div class="row">
              <!--<div id="myBtnContainer">-->
              <!--  <button class="btnn" onclick="filterSelection('entrance')"> <?php echo $data['course_name']?> Entrance</button>-->
              <!--  <button class="btnn" onclick="filterSelection('subject')"><?php echo $data['course_name']?> Subjects</button>-->
              <!--</div>-->
              <div class="container">
                <div class="filterDiv entrance"><?php echo $data['entrance_info']?></div>
                <div class="filterDiv subject"><?php echo $data['subject_info']?></div>
              </div>
            </div>
          </div>
          <!--course banner-->
        </div>

              <?php 
}
?>  
        <div class="col-md-3">

            <div class="card other-courses p-2 mt-3">
                <center><h4>Other Services</h4></center>
                                      <?php
include_once'admin/config.php';

$query="SELECT * FROM `tb5_course` LIMIT 5";
$run = mysqli_query($db,$query) or die("Query Not run");
while($data = mysqli_fetch_assoc($run)){
 ?>
                    <a href="course-detail.php?id=<?php echo $data['id']?>">
                        <div class="d-flex flex-row">
                        <div class="course-img">
                            <img class="img-fluid  m-2" src="img/course/<?php echo $data['course_image']?>">
                        </div>
                        
                        <div class="cousre-name">
                            <h6><?php echo $data['course_name']?></h6>
                        </div>
                    </div>
                    </a>
                                              <?php 
}
?>
            </div>
            <br>

        </div>
      </div>
    </div>
  </section>
  <script>
    filterSelection("entrance")

    function filterSelection(c) {
      var x, i;
      x = document.getElementsByClassName("filterDiv");
      if (c == "all") c = "";
      for (i = 0; i < x.length; i++) {
        w3RemoveClass(x[i], "show");
        if (x[i].className.indexOf(c) > -1) w3AddClass(x[i], "show");
      }
    }

    function w3AddClass(element, name) {
      var i, arr1, arr2;
      arr1 = element.className.split(" ");
      arr2 = name.split(" ");
      for (i = 0; i < arr2.length; i++) {
        if (arr1.indexOf(arr2[i]) == -1) {
          element.className += " " + arr2[i];
        }
      }
    }

    function w3RemoveClass(element, name) {
      var i, arr1, arr2;
      arr1 = element.className.split(" ");
      arr2 = name.split(" ");
      for (i = 0; i < arr2.length; i++) {
        while (arr1.indexOf(arr2[i]) > -1) {
          arr1.splice(arr1.indexOf(arr2[i]), 1);
        }
      }
      element.className = arr1.join(" ");
    }
    // Add active class to the current button (highlight it)
    var btnContainer = document.getElementById("myBtnContainer");
    var btns = btnContainer.getElementsByClassName("btnn");
    for (var i = 0; i < btns.length; i++) {
      btns[i].addEventListener("click", function() {
        var current = document.getElementsByClassName("active");
        current[0].className = current[0].className.replace(" active", "");
        this.className += " active";
      });
    }
  </script> <?php include "footer.php" ?>
</body>
</html>

MMCT - 2023