File "menu.php"
Full Path: /home/krishnamexports/public_html/panel/vendors/tinymce/plugins/table/menu.php
File size: 11.43 KB
MIME-type: text/plain; charset=us-ascii
Charset: utf-8
<nav class="sidebar sidebar-offcanvas" id="sidebar">
<ul class="nav">
<li class="nav-item nav-profile">
<div class="nav-link">
<div class="user-wrapper">
<div class="profile-image">
<img src="images/faces/avatar.png" style="height:40px" alt="profile image">
</div>
<div class="text-wrapper">
<p class="profile-name"><?php echo $sqlUserData['name'];?></p>
<div>
<?php
$sqlDesignation = mysqli_query($cn, "select `name` from `tbl_designation` where `id`='".$sqlUserData['designation_id']."'");
$sqlDesignationData = mysqli_fetch_array($sqlDesignation);?>
<small class="designation text-muted"><?php echo strtoupper($sqlDesignationData['name']);?></small>
<span class="status-indicator online"></span>
</div>
</div>
</div>
</div>
</li>
<?php
$sqlEmployeePer = mysqli_query($cn, "select * from `tbl_permission` where `employee_id`='".$sqlUserData['id']."'");
$sqlEmployeeDataPer = mysqli_fetch_array($sqlEmployeePer);
?>
<li class="nav-item">
<a class="nav-link" href="home.php"><i class="menu-icon mdi mdi-television"></i><span class="menu-title">Dashboard</span></a>
</li>
<?php
if($sqlEmployeeDataPer['assign_permission']==1){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-rollaccess" aria-expanded="false" aria-controls="ui-basic"><i class="menu-icon mdi mdi-content-copy"></i><span class="menu-title">Role Access</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-rollaccess">
<ul class="nav flex-column sub-menu">
<li class="nav-item"><a class="nav-link" href="?pages=assignPermission">Assign Permission</a></li>
</ul>
</div>
</li>
<?php }?>
<?php
if(($sqlEmployeeDataPer['home_setting']==1) || ($sqlEmployeeDataPer['slider']==1) || ($sqlEmployeeDataPer['designation_master']==1) || ($sqlEmployeeDataPer['currencyMaster']==1) || ($sqlEmployeeDataPer['state']==1) || ($sqlEmployeeDataPer['city']==1) || ($sqlEmployeeDataPer['pincode']==1)){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic"><i class="menu-icon mdi mdi-content-copy"></i><span class="menu-title">Master</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-basic">
<ul class="nav flex-column sub-menu">
<?php if($sqlEmployeeDataPer['home_setting']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=home_setting">Home Setting</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['slider']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=slider">Slider</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['designation_master']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=designationMaster">Designation Master</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['currency_master']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=currencyMaster">Currency</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['state']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=state">State</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['city']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=city">City</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['pincode']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=pincode">Pincode</a></li>
<?php }?>
</ul>
</div>
</li>
<?php }?>
<?php
if(($sqlEmployeeDataPer['employee_registration']==1) || ($sqlEmployeeDataPer['employee_list']==1)){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-employee" aria-expanded="false" aria-controls="ui-blog"><i class="menu-icon mdi mdi-backup-restore"></i><span class="menu-title">Employee Section</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-employee">
<ul class="nav flex-column sub-menu">
<?php if($sqlEmployeeDataPer['employee_registration']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=employeeRegistration">Employee Registration</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['employee_list']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=employeeList">Employee List</a></li>
<?php }?>
</ul>
</div>
</li>
<?php }?>
<?php
if(($sqlEmployeeDataPer['signup_list']==1) || ($sqlEmployeeDataPer['dealer_registration']==1)){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-blog" aria-expanded="false" aria-controls="ui-blog"><i class="menu-icon mdi mdi-backup-restore"></i><span class="menu-title">Customer Section</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-blog">
<ul class="nav flex-column sub-menu">
<?php if($sqlEmployeeDataPer['signup_list']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=sign_up">Signup User</a></li>
<?php }?>
</ul>
</div>
</li>
<?php }?>
<?php
if(($sqlEmployeeDataPer['category']==1) || ($sqlEmployeeDataPer['subcategory']==1) || ($sqlEmployeeDataPer['polish']==1) || ($sqlEmployeeDataPer['add_product']==1) || ($sqlEmployeeDataPer['product_list']==1) || ($sqlEmployeeDataPer['stock_list']==1) || ($sqlEmployeeDataPer['generate_barcode']==1)){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-Album" aria-expanded="false" aria-controls="ui-Album"><i class="menu-icon mdi mdi-chart-line"></i><span class="menu-title">Product Section</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-Album">
<ul class="nav flex-column sub-menu">
<?php if($sqlEmployeeDataPer['category']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=category">Category</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['subcategory']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=subcategory">Subcategory</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['polish']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=polish">Polish</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['size']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=size">Size</a></li>
<?php }?>
<?php /*if($sqlEmployeeDataPer['stone']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=stone">Stone</a></li>
<?php }*/?>
<?php if($sqlEmployeeDataPer['add_product']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=product">Add Product</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['product_list']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=productList">Product List</a></li>
<?php }?>
</ul>
</div>
</li>
<?php }?>
<?php
if(($sqlEmployeeDataPer['order_list']==1)){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-blogs" aria-expanded="false" aria-controls="ui-blogs"><i class="menu-icon mdi mdi-sticker"></i><span class="menu-title">Order Section</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-blogs">
<ul class="nav flex-column sub-menu">
<?php if($sqlEmployeeDataPer['order_list']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=order">Order List</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['custom_order']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=customOrder">Custom Order List</a></li>
<?php }?>
</ul>
</div>
</li>
<?php }?>
<?php
if(($sqlEmployeeDataPer['page']==1) || ($sqlEmployeeDataPer['page_list']==1) || ($sqlEmployeeDataPer['testimonials']==1) || ($sqlEmployeeDataPer['social_links']==1) || ($sqlEmployeeDataPer['selfie_contest']==1) || ($sqlEmployeeDataPer['customer_video']==1) || ($sqlEmployeeDataPer['partner_selfie']==1) || ($sqlEmployeeDataPer['partner_video']==1)){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-page" aria-expanded="false" aria-controls="ui-page"><i class="menu-icon mdi mdi-table"></i><span class="menu-title">Page Section/Others</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-page">
<ul class="nav flex-column sub-menu">
<?php if($sqlEmployeeDataPer['page']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=page">Page</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['page_list']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=page_list">Page List</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['testimonials']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=testimonials">Testimonials</a></li>
<?php }?>
<?php if($sqlEmployeeDataPer['social_links']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=icon">Social Links</a></li>
<?php }?>
</ul>
</div>
</li>
<?php }?>
<?php
if(($sqlEmployeeDataPer['contact_enquiry']==1)){?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-enquiry" aria-expanded="false" aria-controls="ui-basic"><i class="menu-icon mdi mdi-content-copy"></i><span class="menu-title">Enquiry</span><i class="menu-arrow"></i></a>
<div class="collapse" id="ui-enquiry">
<ul class="nav flex-column sub-menu">
<?php if($sqlEmployeeDataPer['contact_enquiry']==1){?>
<li class="nav-item"><a class="nav-link" href="?pages=contactEnquiry">Contact Enquiry</a></li>
<?php }?>
</ul>
</div>
</li>
<?php }?>
</ul>
</nav>