Index of /home/htscrtms/newcrm.htshah.com/hslider
<?php //session_start();
include('lib/db_connect.php'); ?>
<!-- BEGIN SIDEBAR -->
<div class="sidebar-wrapper sidebar-theme">
<nav id="sidebar">
<div class="shadow-bottom"></div>
<ul class="list-unstyled menu-categories" id="accordionExample">
<li class="menu">
<a href="home.php" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
<span>Home</span>
</div>
</a>
</li>
<?php if(isset($_SESSION['name']) && $_SESSION['name']!=""){ ?>
<li class="menu">
<a href="forum-topics.php" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-airplay"><path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon></svg>
<span>Forum Topics</span>
</div>
</a>
</li>
<?php
$sele="select * from `tabl_employees` where userName='".$_SESSION['name']."'";
$qrye=mysqli_query($con,$sele);
$rse=mysqli_fetch_array($qrye);
$seld="select * from `tabl_department` where id='".$rse['department']."'";
$qryd=mysqli_query($con,$seld);
$rsd=mysqli_fetch_array($qryd);
$hbyed = @explode(",",$rsd['dept_roles']);
?>
<?php if(isset($_SESSION['seln']) && $_SESSION['seln']!="Client"){ ?>
<li class="menu">
<a href="#components" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-box"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>
<span>Admin</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="components" data-parent="#accordionExample">
<?php if(array_search("Manage Attendance", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="attendance_list.php">Manage Attendance</a></li>
<?php } ?>
<?php if(array_search("Manage Department", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="dept_list.php">Manage Department</a></li>
<?php } ?>
<?php if(array_search("Manage Clients", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="client_list.php">Manage Clients</a></li>
<?php } ?>
<?php if(array_search("Manage Employees", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="employees_list.php">Manage Employees</a></li>
<?php } ?>
<?php if(array_search("Manage Messages", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="messages_list.php">Manage Messages</a></li>
<?php } ?>
<?php if(array_search("Manage Slider", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="mainslider_list.php">Manage Slider</a></li>
<?php } ?>
<li><a href="forum_list.php">Manage Forum Topics</a></li>
<?php if(array_search("Manage Quotations", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="manageQuotes.php">Manage Quotations</a></li>
<?php } ?>
</ul>
</li>
<li class="menu">
<a href="#forms" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-clipboard"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect></svg>
<span>Consignments</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="forms" data-parent="#accordionExample">
<?php if(array_search("Add Import Arrival", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="add_importarrival.php">Add Import Arrival</a></li>
<?php } ?>
<?php if(array_search("Add Import Booking", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="add_importbooking.php">Add Import Booking</a></li>
<?php } ?>
<?php if(array_search("View Import Entries", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewimports.php">View Import Entries</a></li>
<?php } ?>
<?php if(array_search("View Booking Imports", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewbooking.php">View Booking Imports</a></li>
<?php } ?>
<?php if(array_search("Add Export Entry", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="add_exportentry.php">Add Export Entry</a></li>
<?php } ?>
<?php if(array_search("View Export Entries", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewexports.php">View Export Entries</a></li>
<?php } ?>
<?php if(array_search("Add Import Claim", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="add_importclaim.php">Add Import Claim</a></li>
<?php } ?>
<?php if(array_search("View Import Claim", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewimportclaim.php">View Import Claim</a></li>
<?php } ?>
<?php if(array_search("Add Export Claim", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="add_exportclaim.php">Add Export Claim</a></li>
<?php } ?>
<?php if(array_search("View Export Claim", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewexportclaim.php">View Export Claim</a></li>
<?php } ?>
<?php if(array_search("Add Export Consultancy", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="add_exportconsultancy.php">Add Export Consultancy</a></li>
<?php } ?>
<?php if(array_search("View Export Consultancy", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewexportconsultancy.php">View Export Consultancy</a></li>
<?php } ?>
<?php if(array_search("Icegate Email Extraction", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="iceEmailExtract.php">Icegate Email Extraction</a></li>
<?php } ?>
<?php if(array_search("View Custom Orders", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="manageCustOrders.php">View Custom Orders</a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<li class="menu">
<a href="#Reports" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline></svg>
<span>Reports</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="Reports" data-parent="#accordionExample">
<?php if(array_search("Booking Import Report", $hbyed) !== false || $_SESSION['name']=="Superadmin" || $_SESSION['seln']=="Client"){?>
<li><a href="importBookingReport.php">Booking Import Report</a></li>
<?php } ?>
<?php if(array_search("Arrival Import Report", $hbyed) !== false || $_SESSION['name']=="Superadmin" || $_SESSION['seln']=="Client"){?>
<li><a href="importArrivalReport.php">Arrival Import Report</a></li>
<?php } ?>
<?php if(array_search("Import Deleted Report", $hbyed) !== false || $_SESSION['name']=="Superadmin" || $_SESSION['seln']=="Client"){?>
<li><a href="importDeletedReport.php">Import Deleted Report</a></li>
<?php } ?>
<?php if(array_search("Export Report", $hbyed) !== false || $_SESSION['name']=="Superadmin" || $_SESSION['seln']=="Client"){?>
<li><a href="exportReport.php">Export Report</a></li>
<?php } ?>
<?php if(array_search("Export Deleted Report", $hbyed) !== false || $_SESSION['name']=="Superadmin" || $_SESSION['seln']=="Client"){?>
<li><a href="exportDeletedReport.php">Export Deleted Report</a></li>
<?php } ?>
<?php if(isset($_SESSION['seln']) && $_SESSION['seln']!="Client"){ ?>
<?php if(array_search("Import Claim Report", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewimportclaimreport.php">Import Claim Report</a></li>
<?php } ?>
<?php if(array_search("Export Claim Report", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="viewexportclaimreport.php">Export Claim Report</a></li>
<?php } ?>
<?php if(array_search("Export Consultancy Report", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="exportconsultancy-report.php">Export Consultancy Report</a></li>
<?php } ?>
<?php if(array_search("Export Consultancy Deleted Report", $hbyed) !== false || $_SESSION['name']=="Superadmin"){?>
<li><a href="exportconsultancy-deletedreport.php">Expt Cons Deleted Report</a></li>
<?php } ?>
<?php } ?>
</ul>
</li>
<?php } ?>
<li class="menu">
<a href="#aboutus" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-target"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle></svg>
<span>About Us</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="aboutus" data-parent="#accordionExample">
<?php
$selpg="select * from `tabl_aboutpgs` order by id desc";
$qrypg=mysqli_query($con,$selpg);
while($rspg=mysqli_fetch_array($qrypg)){ ?>
<li><a href="aboutpg/<?php echo $rspg['pagetitle'];?>"><?php echo $rspg['pagetitle'];?></a></li>
<?php } ?>
<?php if(isset($_SESSION['name']) && $_SESSION['name']!=""){ ?>
<li><a href="aboutpgs_list.php">Manage Pages</a></li>
<?php } ?>
</ul>
</li>
<li class="menu">
<a href="#business" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-airplay"><path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon></svg>
<span>Business</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="business" data-parent="#accordionExample">
<?php
$selbpg="select * from `tabl_businesspgs` order by id desc";
$qrybpg=mysqli_query($con,$selbpg);
while($rsbpg=mysqli_fetch_array($qrybpg)){ ?>
<li><a href="businesspg/<?php echo $rsbpg['pagetitle'];?>"><?php echo $rsbpg['pagetitle'];?></a></li>
<?php } ?>
<?php if(isset($_SESSION['name']) && $_SESSION['name']!=""){ ?>
<li><a href="businesspgs_list.php">Manage Pages</a></li>
<?php } ?>
</ul>
</li>
<li class="menu">
<a href="contact-us.php" aria-expanded="false" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-move"><polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line></svg>
<span>Contact Us</span>
</div>
</a>
</li>
</ul>
</nav>
</div>
<!-- END SIDEBAR -->