<?php include_once('database_connection.php');
if(isset($_SESSION['Picture']) && $_SESSION['Picture']!="")
{
    $picture="images/".$_SESSION['Picture'];
}
else
{
$picture="assets/images/user/user.png";
}
/*    // define the path and name of cached file
    $cachefile = ''.date('M-d-Y').'.html';
    // define how long we want to keep the file in seconds. I set mine to 5 hours.
    $cachetime = 18000;
    // Check if the cached file is still fresh. If it is, serve it up and exit.
    if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) {
    include($cachefile);
        exit;
    }
    // if there is either no file OR the file to too old, render the page and capture the HTML.
    ob_start();
*///$StartDate=$_SESSION['StartDate'];


?>
<?php 


if(isset($_SESSION['userid']))
{
/*$StartDate=$_SESSION['StartDate'];
$EndDate=$_SESSION['EndDate'];*/
/*if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); 
*///echo "here";
$Userid=$_SESSION['userid'];//10;
?>
<?php include_once('headerindex.php');?>
 <style type="text/css" media="print">
 @media print {
    .page-main-header, #Footer { display: none !important; }
}
@media print {
    body{
        margin:0px !important;
        padding: 0px;
    }
.page-main-header, .hide { visibility: hidden !important;}
}
@media print
   {
    body{
        margin:0px !important;
                padding: 0px;
    }
      .noprint { display: none; }
    }
            
  </style>


<body>

<!-- Loader starts -->

<!-- Loader ends -->

<!--page-wrapper Start-->
<div class="page-wrapper">
<iframe src="#" name="download" height="0" width="0" id="download"></iframe>
    <!--Page Header Start-->
    <div class="page-main-header noprint">
        <div class="main-header-left">
            <div class="logo-wrapper">
                <a href="<?php echo SITEURL;?>index.php">
                    <img src="<?php echo SITEURL;?>assets2/images/its-logo.png" width=190 class="image-dark" alt=""  style="height:55px !important">
                    <img src="<?php echo SITEURL;?>assets2/images/its-logo-invert.png" class="image-light" alt="">
                </a>
            </div>
        </div>
        <div class="main-header-right row noprint">
            <div class="mobile-sidebar">
                <div class="media-body text-right switch-sm">
                    <label class="switch">
                        <input type="checkbox" id="sidebar-toggle" checked="">
                        <span class="switch-state"></span>
                    </label>
                </div>
            </div>
            <div class="nav-right col noprint">
                <ul class="nav-menus">
                    <div style="width: 80%;text-align: left;">
                    <li id="menuList" class="custom-scrollbar slim" style="a: left;margin: 0;padding: 0;max-height: 40px;list-style-type: none;max-height: 100%;overflow: hidden;display: inline-block;overflow-x:auto;width: 100%;/* max-width:500px; display: grid;">

                        <ul class="nav nav-pills custom-scrollbar slim" id="pills-icontab" role="tablist" style="margin: 0;padding: 0;/* max-height: 40px; *//* list-style-type: none; */line-height: 26px;/* max-height: 40px; */overflow: hidden;display: inline-block;white-space: nowrap;overflow-x:auto;position:relative;">
                            
                            <li class="nav-item">
                                <a class="nav-link active" id="pills-0-tab" data-toggle="pill" href="<?php echo SITEURL;?>index.php#pills-0" role="tab" aria-controls="pills-0" aria-selected="false">
                                    <i class="icon-desktop icon-sidebar" style="margin-left:0px;margin-right:5px;font-size:10px"></i>Dashboard<i class="icon-close" onclick="closeTab(this,&#39;0&#39;)" style="margin-left:5px;margin-right:0px;font-size:10px"></i>
                                </a>
                            </li>
                
                            
                        </ul>


                    </li>
                

                    </div>
<!-- 
                    <li >
                        <form class="form-inline search-form">
                            <div class="form-group">
                                <label class="sr-only">Email</label>
                                <input type="search"  class="form-control-plaintext" placeholder="Search.." >
                                <span class="d-sm-none mobile-search">
                                </span>
                            </div>
                        </form>
                    </li>
                
                     -->
<li>
                        <a href="<?php echo SITEURL;?>index.php#!" onclick="javascript:toggleFullScreen()" class="text-dark">
                            <img class="align-self-center pull-right mr-2" src="<?php echo SITEURL;?>assets2/images/browser.png" alt="header-browser">
                        </a>
                    </li>
                    <!-- <li class="onhover-dropdown">
                        <a href="#!" class="txt-dark">
                            <img class="align-self-center pull-right mr-2" src="./assets2/images/dashboard/translate.png" alt="header-translate">
                        </a>
                        <ul class="language-dropdown onhover-show-div p-20">
                     <li>
                                <a href="#" data-lng="en">
                                    <i class="flag-icon flag-icon-ws"></i> English
                                </a>
                            </li>
<li>
                                <a href="#" data-lng="es">
                                    <i class="flag-icon flag-icon-va"></i> Spanish
                                </a>
                            </li>
<li>
                                <a href="#" data-lng="pt">
                                    <i class="flag-icon flag-icon-id"></i> Portuguese
                                </a>
                            </li>
<li>
                                <a href="#" data-lng="fr">
                                    <i class="flag-icon flag-icon-fr"></i> French
                                </a>
                            </li>
                          </ul>
                    </li>
                     -->

                    <li class="onhover-dropdown">
                        <a href="<?php echo SITEURL;?>index.php#!" class="txt-dark">
                            <img class="align-self-center pull-right mr-2" src="<?php echo $picture;?>" alt="header-notification" width=30 height=30 style="border-color:gray;">
                            <span class="badge badge-pill badge-primary notification"></span>
                        </a>
                        <ul class="notification-dropdown onhover-show-div">
<li>Notification <span class="badge badge-pill badge-secondary text-white text-uppercase pull-right">0 New</span></li>
<!--
<li>
                                <div class="media">
                                    <i class="align-self-center notification-icon icofont icofont-shopping-cart bg-primary"></i>
                                    <div class="media-body">
                                        <h6 class="mt-0">Your order ready for Ship..!</h6>
                                        <p class="mb-0">Lorem ipsum dolor sit amet, consectetuer elit.</p>
                                        <span><i class="icofont icofont-clock-time p-r-5"></i>Just Now</span>
                                    </div>
                                </div>
                            </li>
                        
<li>
                                <div class="media">
                                    <i class="align-self-center notification-icon icofont icofont-download-alt bg-success"></i>
                                    <div class="media-body">
                                        <h6 class="mt-0 txt-success">Download Complete</h6>
                                        <p class="mb-0">Lorem ipsum dolor sit amet, consectetuer elit.</p>
                                        <span><i class="icofont icofont-clock-time p-r-5"></i>5 minutes ago</span>
                                    </div>
                                </div>
                            </li>
                        
<li>
                                <div class="media">
                                    <i class="align-self-center notification-icon icofont icofont-recycle bg-danger"></i>
                                    <div class="media-body">
                                        <h6 class="mt-0 txt-danger">250 MB trush files</h6>
                                        <p class="mb-0">Lorem ipsum dolor sit amet, consectetuer elit.</p>
                                        <span><i class="icofont icofont-clock-time p-r-5"></i>25 minutes ago</span>
                                    </div>
                                </div>
                            </li>
     
                            <li class="text-center">You have Checked <a href="<?php echo SITEURL;?>index.php#">all</a> notification  </li>
                        
                        </ul>

                    </li>
                
                    <li class="onhover-dropdown">
                        <div class="media  align-items-center">
                            <img class="align-self-center pull-right mr-2" src="<?php echo SITEURL;?>assets2/images/user.png" alt="header-user">
                            <div class="media-body">
                                <h6 class="m-0 txt-dark f-16">
                                    
                                    <i class="fa fa-angle-down pull-right ml-2"></i>
                                </h6>
                          
-->
<li>
                                <a href="<?php echo SITEURL;?>index.php#">
                                    <i class="icon-lock"></i>
                                    </a><a href="<?php echo SITEURL;?>index.php#" onclick="changePassword()">Change Password</a>
                                
                            </li>
                        
<li>
<a href="<?php echo SITEURL;?>index.php#" onclick="changePasscode()">                                    <i class="icon-key"></i>
                                    Change PassCode
                                </a>
                            </li>
                        
<li>
<a href="<?php echo SITEURL;?>index.php#" onclick="editProfile()">
                                    <i class="icon-check-box"></i>
                                    Edit Profile
                                </a>
                            </li>
                        
<!-- <li>
                                <a href="#">
                                    <i class="icon-comments"></i>
                                    Chat
                                </a>
                            </li>
 -->                          
<li>
                                <a href="<?php echo SITEURL;?>index.php#">
                                    <i class="icon-power-off"></i>
                                    </a><a href="#" onclick="formlogout()">Logout</a>
                                
                            </li>
                        
                        </ul>
                    </li>
                               </ul>
                <div class="d-lg-none mobile-toggle">
                    <i class="icon-more"></i>
                </div>
            </div>
        </div>
    </div>
    <!--Page Header Ends-->

    
    <!--Page Body Start-->
    <div class="page-body-wrapper" style="padding-left:0px!important;padding-right:0px!important">
        <!--Page Sidebar Start-->
        <div class="page-sidebar custom-scrollbar  navigation-bordered">
            <div class="sidebar-user text-center">
                <div>
                    <!-- <img class="img-50 rounded-circle" src="./assets2/images/custom/its-logo.png" alt="#"> -->
                    <img class="img-100 rounded-circle" src="<?php echo $picture;?>" alt="#">

                </div>
                <h6 class=" f-12" id="fullname" style="text-transform: capitalize;font-weight:bold;margin: 0px;padding-bottom: 0px;padding-top: 10px;font-size: 15px;"><?php if(isset($_SESSION['fullname']))echo  $_SESSION['fullname'];?></h6>
                <h6 class="mt-1 f-12" id="user_name" style="text-transform: lowercase;color:black;margin:2px;font-weight:bold;padding-bottom: 0px;"><?php echo  $_SESSION['UserName'];?></h6>
            </div>
            <ul class="sidebar-menu" id="main-page-sidebar">
                
<!-- 

<li>
                    <div class="sidebar-title">General</div>
                    <a href="sample-page.html" class="sidebar-header">
                        <i class="icon-file"></i><span> Sample page</span>
                    </a>
                </li>
 -->

                
                <li class="active">
                    
                    <a href="index.php" onclick="javascript:navigateTo(this,&#39;./dashboard.html&#39;,&#39;Dashboard&#39;,0)" class="sidebar-header active">
                        <i class="icon-desktop icon-sidebar"></i><span class="sub-header-title">DASHBOARD</span>
                    </a>
                </li>
            
                   <?php
 $permission=userrights($Userid,399,'Display',$connection);
if($permission==1)
{
?>
<li>
<div class="sidebar-title">Sales Module</div>
        <a href="<?php echo SITEURL;?>#" class="sidebar-header">
           <i class="icon-menu-alt icon-sidebar"></i><span class="sub-header-title">SALES</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
$permission=userrights($Userid,101,'Display',$connection);

if($permission==1)
{
?>
<li><a href="#" onclick="javascript: navigateTo(this, &#39;./viewdealers.php&#39;, &#39;Dealers&#39;, &#39;20&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DEALERS</a></li>
<?php 
}
 $permission=userrights($Userid,103,'Display',$connection);
if($permission==1)
{
?>
<li><a href="#" onclick="javascript: navigateTo(this, &#39;./viewleads.php&#39;, &#39;LEADS MANAGEMENT&#39;, &#39;20&#39;, &#39;&#39;)" ><i class="fa fa-angle-right"></i>LEADS MANAGEMENT</a></li>

 <?php 
}
?>
<?php 

 $permission=userrights($Userid,103,'Display',$connection);
if($permission==1)
{
?>
<li><a href="#" onclick="javascript: navigateTo(this, &#39;./viewopportunity.php&#39;, &#39;OPPORTUNITY MANAGEMENT&#39;, &#39;20&#39;, &#39;&#39;)" ><i class="fa fa-angle-right"></i>OPPORTUNITY MANAGEMENT</a></li>

 <?php 
}
?>
<?php
 $permission=userrights($Userid,100,'Display',$connection);
if($permission==1)
{
?>
<li><a href="#" onclick="javascript: navigateTo(this, &#39;./pages/quotation.html?CompanyID=1&InvoiceType=12&#39;, &#39;QUOTATION&#39;, &#39;100&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>QUOTATION</a></li>
<?php 
}

 $permission=userrights($Userid,100,'Display',$connection);
if($permission==1)
{
?>
<li><a href="#" onclick="javascript: navigateTo(this, &#39;./pages/contracts.html?CompanyID=1&InvoiceType=12&#39;, &#39;Contracts&#39;, &#39;100&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>CONTRACTS</a></li>
<?php 
}

 
?>
<?php
 $permission=userrights($Userid,102,'Display',$connection);
if($permission==1)
{
?>
<li><a href="#" onclick="javascript: navigateTo(this, &#39;./pages/Vehicles.html&#39;, &#39;Vehicle&#39;, &#39;20&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHCILE MASTER</a></li>
<?php 
}
?>

<?php
 $permission=userrights($Userid,103,'Display',$connection);
if($permission==1)
{
?>
<li><a href="#" onclick="javascript: navigateTo(this, &#39;./viewvisits.php&#39;, &#39;CLIENT VISIT&#39;, &#39;20&#39;, &#39;&#39;)" ><i class="fa fa-angle-right"></i>CLIENT  VISIT</a></li>

 <?php 
}
?>
</ul>
</li>
<?php
}


//end sales module
 $permission=userrights($Userid,331,'Display',$connection);
if($permission==1)
{
?>
<li>
<div class="sidebar-title">FINANCE</div>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-menu-alt icon-sidebar"></i><span class="sub-header-title">GL ACCOUNTS</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,2,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/accounts_group.html&#39;, &#39;GROUP SETUP&#39;, &#39;2&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>GROUP SETUP</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,3,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/ledger.html&#39;, &#39;ACCOUNT SETUP&#39;, &#39;3&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ACCOUNT SETUP</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,22,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/supplier_account.html&#39;, &#39;SUPPLIER SETUP&#39;, &#39;22&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>SUPPLIER SETUP</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,21,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/customer_account.html&#39;, &#39;CUSTOMER SETUP&#39;, &#39;21&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>CUSTOMER SETUP</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,20,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/bank_account.html&#39;, &#39;BANK SETUP&#39;, &#39;20&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>BANK SETUP</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,52,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/fixed_assets.html&#39;, &#39;FIXED ASSETS&#39;, &#39;52&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>FIXED ASSETS</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end finance
?>
<?php
 $permission=userrights($Userid,334,'Display',$connection);
if($permission==1)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icofont icofont-law-document icon-sidebar"></i><span class="sub-header-title">TRANSACTION</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,5,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/pvouchers.html?VoucherTypeID=10&#39;, &#39;Petty Cash (GEN)&#39;, &#39;5&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>Petty Cash (GEN)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,5,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/vouchers.html?VoucherTypeID=5&#39;, &#39;RECEIPT VCHR (GEN)&#39;, &#39;5&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>RECEIPT VCHR (GEN)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,68,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/vouchers.html?VoucherTypeID=5&amp;CreditGLStartsWith=1.1.2&#39;, &#39;RECEIPT VCHR (CUST)&#39;, &#39;68&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>RECEIPT VCHR (CUST)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,6,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/vouchers.html?VoucherTypeID=6&#39;, &#39;PAYMENT VCHR (GEN)&#39;, &#39;6&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PAYMENT VCHR (GEN)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,69,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/vouchers.html?VoucherTypeID=6&amp;DebitGLStartsWith=2.1.6&#39;, &#39;PAYMENT VCHR (SUPP)&#39;, &#39;69&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PAYMENT VCHR (SUPP)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,7,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/vouchers.html?VoucherTypeID=7&#39;, &#39;JOURNAL VOUCHER&#39;, &#39;7&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>JOURNAL VOUCHER</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,104,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/Postingvouchers.html?sidebarid=104&VoucherTypeID=7&#39;, &#39;VOUCHER POSTING&#39;, &#39;104&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VOUCHER POSTING</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,40,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/bank_reconciliation.html&#39;, &#39;BANK RECONCILIATION&#39;, &#39;40&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>BANK RECONCILIATION</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,105,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/cheque-approval.html&#39;, &#39;CHEQUE DEPOSIT&#39;, &#39;40&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>CHEQUE DEPOSIT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,77740,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/cheque-preparation.html&#39;, &#39;Cheque Preparation&#39;, &#39;40&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>Cheque Preparation</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,51,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/depreciation.html?VoucherTypeID=7&#39;, &#39;DEPRECIATION&#39;, &#39;51&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DEPRECIATION</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end transaction
?>
<?php
 $permission=userrights($Userid,50,'Display',$connection);
if($permission==1)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-printer icon-sidebar"></i><span class="sub-header-title">FINANCE REPORTING</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,13,'Display',$connection);
if($permission==1)
{
?>
<?php
 $permission=userrights($Userid,13,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/ChartOfAccounts.trdx"  href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?height=100&refresh=1&reportFileName=ChartOfAccounts.html&#39;, &#39;CHART OF ACCOUNT&#39;, &#39;13&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>CHART OF ACCOUNT</a></li>
<?php 
}
?><?php
}
?>
<?php
 $permission=userrights($Userid,16,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/VoucherReport.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?height=150&refresh=1&amp;reportFileName=VoucherReport.html&#39;, &#39;VOUCHER REPORT &#39;, &#39;16&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VOUCHER REPORT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,15,'Display',$connection);
if($permission==1)
{
?>
<li><a  target2="_blank" href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/LedgerReport.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=LedgerWiseStatement.html&#39;, &#39;GENERAL LEDGER&#39;, &#39;15&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>GENERAL LEDGER</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,96,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/AccountsPayableReport.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&reportFileName=AccountsPayableReport.html&#39;, &#39;ACCOUNTS PAYABLE&#39;, &#39;96&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ACCOUNTS PAYABLE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,97,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/AccountsReceivableReport.trdx" href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=AccountsReceivableReport.html&#39;, &#39;ACCOUNTS RECEIVABLE&#39;, &#39;97&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ACCOUNTS RECEIVABLE</a></li>
<?php 
}
?>

<?php
 $permission=userrights($Userid,14,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank"   href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/TrialBalanceReport.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=ReceivableAging.html&#39;, &#39;CUSTOMER AGING &#39;, &#39;14&#39;, &#39;&#39; )" ><i class="fa fa-angle-right"></i>CUSTOMER AGING </a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,14,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank"   href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/TrialBalanceReport.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=SupplierAging.html&#39;, &#39;SUPPLIER AGING &#39;, &#39;14&#39;, &#39;&#39; )" ><i class="fa fa-angle-right"></i>SUPPLIER AGING </a></li>
<?php 
}
?>
<!-- onclick="javascript: navigateTo(this, &#39;mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&amp;reportFileName=reports/TrialBalanceReport.trdx&#39;, &#39;TRIAL BALANCE REPORT&#39;, &#39;14&#39;, 2 )"-->

<?php
 $permission=userrights($Userid,14,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank"   href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/TrialBalanceReport.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=TrialBalance.html&#39;, &#39;TRIAL BALANCE REPORT&#39;, &#39;14&#39;, &#39;&#39; )" ><i class="fa fa-angle-right"></i>TRIAL BALANCE REPORT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,38,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" target2="_blank" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/BalanceSheet.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=BalanceSheet.html&#39;, &#39;BALANCE SHEET&#39;, &#39;38&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>BALANCE SHEET</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,39,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/ProfitAndLoss.trdx"  onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=ProfitLoss.html&#39;, &#39;PROFIT/LOSS&#39;, &#39;39&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PROFIT/LOSS</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end finance reporting
?>
<?php
 $permission=userrights($Userid,3311,'Display',$connection);
if($permission==1)
{
?>
<li>
<div class="sidebar-title">HR</div>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-menu-alt icon-sidebar"></i><span class="sub-header-title">HR MASTER</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,12,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/designation.html&#39;, &#39;DESIGNATION&#39;, &#39;12&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DESIGNATION</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,19,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/department.html&#39;, &#39;DEPARTMENT&#39;, &#39;19&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DEPARTMENT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,18,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/timing_setup.html&#39;, &#39;TIMINGS SETUP&#39;, &#39;18&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>TIMINGS SETUP</a></li>
<?php 
}
?>

<?php
 $permission=userrights($Userid,17,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/employee_setup.html&#39;, &#39;ENROLL EMPLOYEE&#39;, &#39;17&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ENROLL EMPLOYEE</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end HR MASTER
?>
<?php
 $permission=userrights($Userid,3353,'Display',$connection);
if($permission==1)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-printer icon-sidebar"></i><span class="sub-header-title">HR REPORTING</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,23,'Display',$connection);
if($permission==1)
{
?>
<li><a target="_blank" href="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/EmployeeInformation.trdx" href2="<?php echo SITEURL;?>index.php#" onclick2="javascript: navigateTo(this, &#39;./reportViewer.php?refresh=1&amp;reportFileName=reports/EmployeeInformation.trdx&#39;, &#39;LIST OF EMPLOYEES&#39;, &#39;23&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>LIST OF EMPLOYEES</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,24,'Display',$connection);
if($permission==1)
{
?>
<li><a target="_blank" href="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/Tito_DateWise.trdx" href2="<?php echo SITEURL;?>index.php#" onclick2="javascript: navigateTo(this, &#39;./reportViewer.php?refresh=1&amp;reportFileName=reports/Tito_DateWise.trdx&#39;, &#39;ATT RPT (DT)&#39;, &#39;24&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ATT RPT (DT)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,25,'Display',$connection);
if($permission==1)
{
?>
<li><a target="_blank" href="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/Tito_EmployeeWise.trdx" href2="<?php echo SITEURL;?>index.php#" onclick2="javascript: navigateTo(this, &#39;./reportViewer.php?refresh=1&amp;reportFileName=reports/Tito_EmployeeWise.trdx&#39;, &#39;ATT RPT (EMP)&#39;, &#39;25&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ATT RPT (EMP)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,26,'Display',$connection);
if($permission==1)
{
?>
<li><a target="_blank" href="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/AttendanceRegister.trdx" href2="<?php echo SITEURL;?>index.php#" onclick2="javascript: navigateTo(this, &#39;./reportViewer.php?refresh=1&amp;reportFileName=reports/AttendanceRegister.trdx&#39;, &#39;ATT REGISTER&#39;, &#39;26&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ATT REGISTER</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end HR Reporting
?>
<?php
 $permission=userrights($Userid,41,'Display',$connection);
if($permission==1 || $permission==0)
{
?>
<li>
<div class="sidebar-title">PROCUREMENT/STORE</div>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-menu-alt icon-sidebar"></i><span class="sub-header-title">PRODUCT SETUP</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">

<?php
 $permission=userrights($Userid,42,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/product_category.html?CategorySideBarID=42&amp;ProductBaseType=ITEM&#39;, &#39;ITEM CATEGORY&#39;, &#39;42&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ITEM CATEGORY</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,44,'Display',$connection);
if($permission==1 || $permission==0)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/product_information.html?CategorySideBarID=42&amp;UnitSideBarID=43&amp;ProductBaseType=ITEM&#39;, &#39;ITEM MASTER&#39;, &#39;44&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ITEM MASTER</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,44,'Display',$connection);
if($permission==1 || $permission==0)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/documentation.html?CategorySideBarID=42&amp;UnitSideBarID=43&amp;ProductBaseType=ITEM&#39;, &#39;DOCUMENTATION &#39;, &#39;44&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DOCUMENTATION</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,43,'Display',$connection);
if($permission==1 || $permission==0)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/unit_of_measure.html&#39;, &#39;UNIT OF MEASURE&#39;, &#39;43&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>UNIT OF MEASURE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,43,'Display',$connection);
if($permission==1 || $permission==0)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/createorder3.html&#39;, &#39;Create Order&#39;, &#39;43&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>Create Order</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end product setup
?>
<?php
 $permission=userrights($Userid,3345,'Display',$connection);
if($permission==1)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icofont icofont-law-document icon-sidebar"></i><span class="sub-header-title">PURCHASE</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,46,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=1&amp;ProductBaseType=ITEM&#39;, &#39;MATERIAL REQUEST&#39;, &#39;46&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>MATERIAL REQUEST</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,47,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request_approval.html?ProductSideBarID=44&amp;InvoiceType=1&amp;ProductBaseType=ITEM&#39;, &#39;MRQ APPROVAL&#39;, &#39;47&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>MRQ APPROVAL</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,58,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=100&amp;ProductBaseType=ITEM&#39;, &#39;LPO&#39;, &#39;58&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>LPO</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,59,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=2&amp;ProductBaseType=ITEM&#39;, &#39;STOCK RECEIVING&#39;, &#39;59&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>STOCK RECEIVING</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,67,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=4&amp;ProductBaseType=ITEM&amp;VoucherTypeID=7&#39;, &#39;PURCHASE INVOICE&#39;, &#39;67&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PURCHASE INVOICE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,85,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=3&amp;ProductBaseType=ITEM&amp;VoucherTypeID=7&#39;, &#39;PURCHASE RETURN&#39;, &#39;85&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PURCHASE RETURN</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,86,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=6&amp;ProductBaseType=ITEM&#39;, &#39;STORE ISSUE SLIP&#39;, &#39;86&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>STORE ISSUE SLIP</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,86,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=16&amp;ProductBaseType=ITEM&#39;, &#39;STORE RETURN &#39;, &#39;86&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>STORE RETURN </a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,94,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=7&amp;ProductBaseType=ITEM&#39;, &#39;DEPART ISSUE NOTE&#39;, &#39;94&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DEPART ISSUE NOTE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,94,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/material_request.html?ProductSideBarID=44&amp;InvoiceType=17&amp;ProductBaseType=ITEM&#39;, &#39;DEPART RETURN NOTE&#39;, &#39;94&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DEPART RETURN NOTE</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end purchases
?>
<?php
 $permission=userrights($Userid,3349,'Display',$connection);
if($permission==1)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-printer icon-sidebar"></i><span class="sub-header-title">PURCHASE REPORTS </span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,49,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=LPOReport2.html&#39;, &#39;LPO REPORT&#39;, &#39;49&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>LPO REPORT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,60,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=stockSummaryReport.html&#39;, &#39;STOCK REPORT&#39;, &#39;60&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>STOCK REPORT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,56,'Display',$connection);
if($permission==1)
{
?>
<li><a  target2="_blank1" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/ListOfProducts.trdx" href22="<?php echo SITEURL;?>index.php#" onclick="javascript:navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=ListofProducts.html&#39;, &#39;LIST OF PRODUCTS&#39;, &#39;56&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>LIST OF PRODUCTS</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,61,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=MRQReport.html&#39;, &#39;MRQ STATUS&#39;, &#39;61&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>MRQ STATUS</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,62,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/Stock_Receiving.trdx"  href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;report_files/reportViewer.html?refresh=1&reportFileName=StockReceivingReport.html&#39;, &#39;GOODS RECEIPT&#39;, &#39;62&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>GOODS RECEIPT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,63,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=PurchaseReport2.html&#39;, &#39;PURCHASE INVOICE&#39;, &#39;63&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PURCHASE INVOICE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,64,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/Awaited_Bills.trdx" href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&reportFileName=Awaited_Bill.html&#39;, &#39;AWAITED BILLS&#39;, &#39;64&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>AWAITED BILLS</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,65,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/Pending_Supplies.trdx" href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=Pending_Supplies.html&#39;, &#39;PENDING SUPPLIES&#39;, &#39;65&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PENDING SUPPLIES</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end purchase report
?>
<?php
 $permission=userrights($Userid,33107,'Display',$connection);
if($permission==1)
{
?>
<li>
<div class="sidebar-title">SEMNOX CARD</div>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-menu-alt icon-card"></i><span class="sub-header-title">SEMNOX CARD</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
 <?php
 $permission=userrights($Userid,108,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/topupcard.html?SideBarID=108&amp;UnitSideBarID=43&amp;ProductBaseType=ITEM&#39;, &#39;TOPUP CARD &#39;, &#39;44&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>TOPUP CARD</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,109,'Display',$connection);
if($permission==1)
{
?>
<li><a  target2="_blank" href="<?php echo SITEURL;?>index.php#" href2="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/LedgerReport.trdx" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&amp;reportFileName=CardWiseStatement.html&#39;, &#39;CARD LEDGER&#39;, &#39;109&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>CARD LEDGER</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,110,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/membercard_setup.html?SIDEBARID=110&#39;, &#39;ENROLL MEMBER CARD&#39;, &#39;17&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ENROLL MEMBER CARD</a></li>
<?php 
}
?>
        </ul>
    </li>
<?php
}
?>
<?php
 $permission=userrights($Userid,3389,'Display',$connection);
if($permission==1)
{
?>
<li>
<div class="sidebar-title">POINT OF SALE</div>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-menu-alt icon-sidebar"></i><span class="sub-header-title">POINT OF SALE</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,9033,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/pospage.html?U2FsdGVkX1+qXbK/TK+R+u/MWx5J42UBApr/HzZbuHXk4raXYqaKAWaeT0Vz+U5tn4KiJ8a0Hi6Ot/jsVm2QRVXwbNnHrWzmKO/Ga6T2far+8tEhrLPY6f4yjMkRVWuZJds6OBB6LGAC6iCuiBv76goR20S0Zh7HwsdBN4cYEftNhs9hzvSebtkIkSq9gisWYjX26dR6e2uDgqR4DCRNfzZwDHzZT7DWbb5V+g7FciSi/4CKEm5jG96mirnV1/Xv&#39;, &#39;POS (MVR)&#39;, &#39;90&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>POS VAN</a></li>
<?php 
}
?>

<?php
 $permission=userrights($Userid,90,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/point-of-sale.html?U2FsdGVkX1+qXbK/TK+R+u/MWx5J42UBApr/HzZbuHXk4raXYqaKAWaeT0Vz+U5tn4KiJ8a0Hi6Ot/jsVm2QRVXwbNnHrWzmKO/Ga6T2far+8tEhrLPY6f4yjMkRVWuZJds6OBB6LGAC6iCuiBv76goR20S0Zh7HwsdBN4cYEftNhs9hzvSebtkIkSq9gisWYjX26dR6e2uDgqR4DCRNfzZwDHzZT7DWbb5V+g7FciSi/4CKEm5jG96mirnV1/Xv&#39;, &#39;POS (MVR)&#39;, &#39;90&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>POS (MVR)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,91,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/point-of-sale.html?U2FsdGVkX19ebb1xPIbQXJk57ChBJYSlCGu1lA3BC/JkindQIQNTnPgUfXUi9S1cS+/DzVR8he3hF8g2SiFy4QlsPgZEtUZdZ3gkrZhOXNHrrbbRyioKAmyz9qIIf2+e0iZss5daxn4w7iVmlLGB6JwTPh1jSgzozxf89sJoZanZcqsldHF4as9RLZ8ip+jZs7vqAd3midCBhZkMf4toXKj6BASanl/9mLRE8g4AODEIKfEW6pNTwvHVGIkqC4+m&#39;, &#39;POS (CCL)&#39;, &#39;91&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>POS (CCL)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,92,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/point-of-sale.html?U2FsdGVkX1/UNcttDObjyCBHY4qOxhe5UofMBew/Iv95CFDgjiG1okykAHFlZVgcMWihtOflPAEdcKJVFnGYOeoj/O2mpMOKcNbHCgAhJcVt2m0hyV4tEUOlKdjcJ3T+urUQHomQdCVEDIycP1LeB0jJbNS5LrMCZvNVeeDly15mlR28RL4Pvi5qW48reZWHKRaFhqjs48XOhGmZlP9CE/scyDuJzNBzKk1zsEyYjnt0U4Tf2ZrSKTwwsUVQigdm&#39;, &#39;POS (RDL)&#39;, &#39;92&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>POS (RDL)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,93,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/point-of-sale.html?U2FsdGVkX1+l8vD6CP6FQ/CKZe3fzF+rOMBThU+W9MDCiE7xYXGLl1fwhouKaOOoenCZVHoh5IeddU+qgrmTtWU0vr7rGlRx0wqGcQwgV0hUiq0QEH82sU/dGKM/qqrmEztVZUREWg5gvvM6nGOi3l2jEaSx3B+thxcmG7lUOTPQ7fi2yY79RcmfCz290qINZv8WCOucns7qEmOYU2a2b4sF9On1D3+EsQffwgnSXJCvjtT38CYOlscTLv0mo+KC&#39;, &#39;POS (PSW)&#39;, &#39;93&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>POS (PSW)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,93,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/point-of-sale2.html?U2FsdGVkX1+l8vD6CP6FQ/CKZe3fzF+rOMBThU+W9MDCiE7xYXGLl1fwhouKaOOoenCZVHoh5IeddU+qgrmTtWU0vr7rGlRx0wqGcQwgV0hUiq0QEH82sU/dGKM/qqrmEztVZUREWg5gvvM6nGOi3l2jEaSx3B+thxcmG7lUOTPQ7fi2yY79RcmfCz290qINZv8WCOucns7qEmOYU2a2b4sF9On1D3+EsQffwgnSXJCvjtT38CYOlscTLv0mo+KC&#39;, &#39;POS (PSW2)&#39;, &#39;93&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>POS (PSW2)</a></li>
<?php 
}
?>

</ul>
</li>
<?php 
}//end POS 
?>
<?php
 $permission=userrights($Userid,3380,'Display',$connection);
if($permission==1)
{
?>
<li>
<div class="sidebar-title">OPERATIONS</div>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-menu-alt icon-sidebar"></i><span class="sub-header-title">MASTER</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,42,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/package.html&#39;, &#39;PACKAGES&#39;, &#39;43&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>PACKAGES</a></li>
<?php 
}
?>            
<?php
 $permission=userrights($Userid,57,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/service_pricing.html?CategorySideBarID=42&amp;UnitSideBarID=43&amp;ProductBaseType=SERVICE&#39;, &#39;SERVICE PRICING&#39;, &#39;57&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>SERVICE PRICING</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,66,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/product_category.html?CategorySideBarID=42&amp;ProductBaseType=SERVICE&#39;, &#39;SERVICE CATEGORY&#39;, &#39;66&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>SERVICE CATEGORY</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end operations
?>
<?php
 $permission=userrights($Userid,3370,'Display',$connection);
if($permission==1 || $permission==0)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icofont icofont-ui-clip-board icon-sidebar"></i><span class="sub-header-title">SALES ORDER</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,71,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/job_card_rta.html?CompanyID=1&#39;, &#39;JOB CARD (RTA)&#39;, &#39;71&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>JOB CARD (RTA)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,71,'Display',$connection);
if($permission==1 || $permission==0)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/job_card_customer_service.html?CompanyID=1&#39;, &#39;SALES ORDER (ONLINE)&#39;, &#39;71&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>SALES ORDER (ONLINE)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,106,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/job_card2.html?CompanyID=0&#39;, &#39;JOB CARD GROUP&#39;, &#39;106&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>JOB CARD GROUP</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,82,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/job_card.html?CompanyID=2&#39;, &#39;JOB CARD (CCL)&#39;, &#39;82&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>JOB CARD (CCL)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,83,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/job_card.html?CompanyID=3&#39;, &#39;JOB CARD (RDL)&#39;, &#39;83&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>JOB CARD (RDL)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,84,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/job_card.html?CompanyID=4&#39;, &#39;JOB CARD (PSW)&#39;, &#39;84&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>JOB CARD (PSW)</a></li>
<?php 
}
?>

<?php
 $permission=userrights($Userid,87,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/point-of-sale2.html?U2FsdGVkX1+XTVCA71Tpq97AG/nFEXAfyYO0u+vbkOdhhvLX67Fbs/NHfQKCeH/yc8/df26Us+mxkDzkci91VNSst21pedG4rl/zMA+m3qA=&#39;, &#39;JOB CARD (PSW2)&#39;, &#39;87&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>JOB CARD (PSW2)</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,112,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/point-of-sale2.html?U2FsdGVkX18QTwwMTLaAKyHbQPx0jU5RVdFA1tlkcq2kgVTh+fMp74Ss10wTcgN4ZJifMI81T/I2RlP8bNxLD566ARs2fbNS4DTvL3rcIPylCDaDq8gYT2xR9BEk0Cd/qczckFWyI8bH+5fNkjZCPtVQaoRAa+OxyvKxQ/4iNIs3trF21GbA7yfrXswRp7Ryr6o+z5xg1EVhlQglPEiIbCzfRmbtUJuuRen1O/H6ztZmCGGgOhc3xUQfL4dlQjfs&#39;, &#39;JOB CARD (MVR2)&#39;, &#39;87&#39;, &#39;2&#39; )"><i class="fa fa-angle-right"></i>JOB CARD (MVR2)</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end job card
?>
<?php
 $permission=userrights($Userid,3371,'Display',$connection);
if($permission==1)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icon-printer icon-sidebar"></i><span class="sub-header-title">REPORTS</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,98,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href22="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/DailyCollectionReport.trdx" href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&reportFileName=DailyCollectionReport.html&#39;, &#39;DAILY COLLECTION RPT&#39;, &#39;98&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>DAILY COLLECTION RPT</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,98,'Display',$connection);
if($permission==1)
{
?>
<li><a target2="_blank" href22="http://mutakamela.ddns.net:53556/reportViewer.aspx?refresh=1&reportFileName=reports/DailyCollectionReport.trdx" href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./report_files/reportViewer.html?refresh=1&reportFileName=SalesReport.html&#39;, &#39;SALES REPORT&#39;, &#39;98&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>SALES REPORT</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end job card report
?>
<?php
 $permission=userrights($Userid,8,'Display',$connection);
if($permission==1)
{
?>
<li>
<div class="sidebar-title">GENERAL</div>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icofont icofont-users icon-sidebar"></i><span class="sub-header-title">ADMINISTRATION</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,9,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/user-accounts1.html&#39;, &#39;USER ACCOUNTS&#39;, &#39;9&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>USER ACCOUNTS</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,9,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/roles-accounts.html&#39;, &#39;USER ROLES&#39;, &#39;9&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>USER ROLES</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,95,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/godowns.html&#39;, &#39;COMPANY SETUP&#39;, &#39;95&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>COMPANY SETUP</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end general
?>
<?php
 $permission=userrights($Userid,3331,'Display',$connection);
if($permission==1)
{
?>
<li>
        <a href="<?php echo SITEURL;?>index.php#" class="sidebar-header">
           <i class="icofont icofont-law-document icon-sidebar"></i><span class="sub-header-title">MASTER FORMS</span>
           <i class="fa fa-angle-right pull-right"></i>
        </a>        <ul class="sidebar-submenu">
<?php
 $permission=userrights($Userid,37,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_accounts.html?TextBoxName=AccountSetup&#39;, &#39;ACCOUNT SETUP&#39;, &#39;37&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>ACCOUNT SETUP</a></li>
<?php 
}
?>

<?php
 $permission=userrights($Userid,37,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=CUSTOMERTYPE&#39;, &#39;CUSTOMER TYPE&#39;, &#39;37&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>CUSTOMER TYPE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,81,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=SupplierType&#39;, &#39;SUPPLIER TYPE&#39;, &#39;81&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>SUPPLIER TYPE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,32,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=ItemType&#39;, &#39;SERVICE PRODUCT TYPE&#39;, &#39;32&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>SERVICE PRODUCT TYPE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,33,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=ApplicationArea&#39;, &#39;APPLICATION AREA&#39;, &#39;33&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>APPLICATION AREA</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,34,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=CURRENCYTYPE&#39;, &#39;CURRENCY TYPE&#39;, &#39;34&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>CURRENCY TYPE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,35,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=STATUS&#39;, &#39;STATUS&#39;, &#39;35&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>STATUS</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,36,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=FIELDOFBUSINESS&#39;, &#39;FIELD OF BUSINESS&#39;, &#39;36&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>FIELD OF BUSINESS</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,55,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=VEHICLE TYPE&#39;, &#39;VEHICLE TYPES&#39;, &#39;55&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE TYPES</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,72,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=MAKE&#39;, &#39;VEHICLE BRAND&#39;, &#39;72&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE BRAND</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,73,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=Model&#39;, &#39;VEHICLE MODEL&#39;, &#39;73&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE MODEL</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,74,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=VEHICLE SIZE&#39;, &#39;VEHICLE SIZE&#39;, &#39;74&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE SIZE</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,75,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=VEHICLE COLORS&#39;, &#39;VEHICLE COLORS&#39;, &#39;75&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE COLORS</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,76,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=YEAR&#39;, &#39;VEHICLE YEAR&#39;, &#39;76&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE YEAR</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,77,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=CHECK LIST&#39;, &#39;VEHICLE CHECK LIST&#39;, &#39;77&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE CHECK LIST</a></li>
<?php 
}
?>
<?php
 $permission=userrights($Userid,78,'Display',$connection);
if($permission==1)
{
?>
<li><a href="<?php echo SITEURL;?>index.php#" onclick="javascript: navigateTo(this, &#39;./pages/master_values.html?TextBoxName=WARNING LIST&#39;, &#39;VEHICLE WARNING LIGHTS&#39;, &#39;78&#39;, &#39;&#39; )"><i class="fa fa-angle-right"></i>VEHICLE WARNING LIGHTS</a></li>
<?php 
}
?>
</ul>
</li>
<?php 
}//end master form
?>
</ul>
<?php 

foreach ($_SESSION['SETTING'] as $key => $value) {
    # code...
echo '<input type="hidden" title="'.$key.'" name="'.$key.'" id="'.$key.'" value="'.$value.'">';    
}
?>


<input type="hidden" name="gender" id="gender" value="">
<input type="hidden" name="phone" id="phone" value="">
<input type="hidden" name="fullname" id="fullname" value="">
<input type="hidden" name="StartDate" id="StartDate" value="">
<input type="hidden" name="EndDate" id="EndDate" value="">
<input type="hidden" name="PassCode" id="PassCode" value="">
            <div class="sidebar-widget text-center noprint">
                <div class="sidebar-widget-top">
                    <h6 class="mb-2 fs-14">Need Help</h6>
                    <i class="icon-bell"></i>
                </div>
                <div class="sidebar-widget-bottom p-1 m-10">
                    <p>+971 (0)42 811 851 (Ext.151)
                        <br>itsupport@itscircle.com
                        <!-- <br>ITSUPPORT@ALMUTAKAMELA.AE -->
                        <!-- <br><a href="#">Visit FAQ</a> -->
                    </p>
                </div>
            </div>
        </div>
        <!--Page Sidebar Ends-->

        <div class="page-body" style="padding-left:0px!important;padding-right:0px!important">

            <div class="tab-content" id="pills-icontabContent">
                <div class="tab-pane fade show active" id="pills-0" role="tabpanel" aria-labelledby="pills-0-tab" id="frame_body">
                    <!-- http://mutakamela.ddns.net:53556/-->
                    <iframe src="pages/dashboard-statistics.html" class="container-fluid" style="position:absolute; overflow:hidden; height:100%;border:none;padding-right:0px!important;padding-left:0px!important;" id="frame_body1w" name="frame_body1w"></iframe>
                </div>

            </div>
            



                
        </div>
        <!--Page Body Ends-->
    </div>
    <!--Page Body Ends-->

</div>
<!--page-wrapper Ends-->
<!--Passcode modal-->
    <div class="modal fade" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"
        id="PassCodeModal">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
            <?php include('login2.html');?>    
            </div>
        </div>
    </div>
<?php include_once('footerindex.php');?>

</body></html>
<Script>
    function d2h(d) { return (+d).toString(16).toUpperCase(); }

    function checksession()
    {
        var resp=0;
$.ajax({


                url: globalWebServiceInventoryPath + 'ajaxdata.php?action=checkusersession',

                type: 'post',
                dataType: 'json',
                // timeout: 2000,
                data: $(this).serialize(document.forms[0]),
         
                success: function (data) {

                       //        alert('resp='+data);
 
                },
                error: function (jqXHR, textStatus) {
    $('#PassCodeModal').modal('show');
                  /*  $.notify({ message: "Error, please check your internet connection status!" }, alertTypeCritical);*/
                }, complete: function () {
                   // $(form).find(":submit").prop("disabled", null);
                   console.log('complete');
                }
            
            });

/*            $request_textbox.then(function (data) {
                alert('resp='+data);
                if(data==1 || data==true)
        {
            //session active
        }
        else
        {
    $('#PassCodeModal').modal('show');
            //logout
        }
            });

*/    }
    $('#PassCodeModal').modal('hide');
    window.setInterval(function(){
        //check session
        var res=checksession();
       // alert(res);
        
    },1500000);
    function fresh()
    {
      //  window.frames['frame_body1w'].location.reload();
$('#frame_body1w').html('');
        var iframe = document.getElementById('frame_body1w');
        var temp=iframe.src;
iframe.src ='';
 iframe.src=temp+'&refresh='+Math.random()*100;
 //alert(temp);
//    document.getElementById('frame_body1w').contentDocument.location.replace(temp);
    $('#frame_body1w').attr('src',$('#frame_body1w').attr('src'));// $('#frame_body1w').attr('src'));

    }
    document.getElementById('PassCode').value=<?php echo $_SESSION['PassCode'];?>;
    document.getElementById('StartDate').value='<?php echo $_SESSION['StartDate'];?>';
    document.getElementById('fullname').value='<?php echo $_SESSION['fullname'];?>';
    document.getElementById('phone').value='<?php echo $_SESSION['phone'];?>';        
    document.getElementById('EndDate').value='<?php echo $_SESSION['EndDate'];?>';
   // alert(document.getElementById('StartDate').value);
    //document.getElementById('PassCode').value=<?php //echo $_SESSION['PassCode'];?>            
//localstorage.setItem('PassCode',<?php //echo $_SESSION['PassCode'];?>);
    </Script>
<?php

/*    // We're done! Save the cached content to a file
    $fp = fopen($cachefile, 'w');
    fwrite($fp, ob_get_contents());
    fclose($fp);
    // finally send browser output
    ob_end_flush();*/
}
else
{
  //  echo "here";
    echo "<script>window.location='login.html';</script>";
}
?>