|
Server IP : 2a02:4780:3:2287:0:3736:a38e:8 / Your IP : 216.73.217.146 Web Server : LiteSpeed System : Linux sg-nme-web2187.main-hosting.eu 5.14.0-611.54.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 6 18:03:03 EDT 2026 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/jssgokak.in/public_html/../public_html/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include('header.php');
$news_letter_class = "newsletter-area-3";
if(isset($_GET['q']))
{
$sub_menu = $_GET['q'];
?>
<section class="page-banner">
<div class="page-banner-bg bg_cover" style="background-image: url(assets/images/page-banner.jpg);">
<div class="container">
<div class="banner-content text-center">
<h2 class="title"><?php echo $sub_menu; ?></h2>
</div>
</div>
</div>
</section>
<section class="about-area">
<div class="container">
<div class="mt-5 mb-5">
<ul class="nav" id="myTab" role="tablist">
<?php
$sel=mysqli_query($con,"select * from menu_with_tab where sub_menu='$sub_menu' order by tab_order_number asc");
$index = 1;
while($row_menu=mysqli_fetch_array($sel))
{
?>
<li class="nav-item" role="presentation">
<button class="tab-button btn text-primary <?php if($index == 1) { echo "active"; } ?>" id="menu-tab-<?php echo $row_menu['id']; ?>" data-toggle="tab" data-target="#tab-content-<?php echo $row_menu['id']; ?>" type="button" role="tab" aria-controls="home" aria-selected="true"><?php echo $row_menu['tab_name']; ?></button>
</li>
<?php
$index++;
}
?>
</ul>
<div class="tab-content page-tab-content" id="myTabContent">
<?php
$sel=mysqli_query($con,"select * from menu_with_tab where sub_menu='$sub_menu' order by tab_order_number asc");
$indexC = 1;
while($row_menu=mysqli_fetch_array($sel))
{
?>
<div class="tab-pane fade show <?php if($indexC == 1) { echo "active"; } ?>" id="tab-content-<?php echo $row_menu['id']; ?>" role="tabpanel" aria-labelledby="home-tab-content-<?php echo $row_menu['id']; ?>">
<?php echo $row_menu['content']; ?>
</div>
<?php
$indexC++;
}
?>
</div>
</div>
</div>
</section>
<style>
.footer-area {
clear:both;
}
.about-area {
padding-top: 30px;
}
<?php if($index <= 2) { ?>
.tab-button {
display:none;
}
<?php } ?>
</style>
<?php include('footer.php'); ?>
<?php
}
else
{
echo"<script>alert('Something went to wrong...');window.location='index.php';</script>";
}
?>