<?
$user_name  = $this->session->userdata('user_name');
$level  = $this->session->userdata('level');
$fullName  = $this->session->userdata('fullName');
?>



<html>
<head>
<title><?=SITE_TITLE?></title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="<?=base_url()?>css/ie.css" />
<![endif]-->

<script type="text/javascript" src="<?=base_url()?>js/common.js"></script>


<script type="text/javascript" src="<?=base_url()?>js/periodFunctions.js"></script>
<script type="text/javascript" src="<?=base_url()?>js/tabpane.js"></script>
<script type="text/javascript" src="<?=base_url()?>js/interface.js"></script>

<link href="<?=base_url()?>css/classic.css" rel="stylesheet" type="text/css">
<link href="<?=base_url()?>css/is.css" rel="stylesheet" type="text/css">


</head>
<!-- End -->

<body>

<table id="mainPanel" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>

<!-- MENU -->
<td id="menuPart">
<table class="logoPanel" border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td>
<table id="logoPanel" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td bgcolor="#FFFFFF"><img src="<?=base_url()?>images/bansberry.gif" alt=""  height="53" align="left"></td>
</tr>
</tbody></table>


<table class="menuBlock" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><button class="sectionNameOpened" id="nameSection1" onclick="javascript:menuSwitch('Section1');this.blur();">
<div>User Section</div></button></td>
</tr>

<tr id="itemsSection1">

<td>

<table class="sectionItems" border="0" cellpadding="2" cellspacing="0">
<tbody>
<?
if($level==3)
{
?>
<tr>
<td width="16"><img src="<?=base_url()?>images/menuIcon_032.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('reseller/addFormReseller2')?>" title="Ditails Repots" >New Reseller II</a></td>
</tr>

<tr>
<td width="16"><img src="<?=base_url()?>images/menuIcon_015.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('reseller/reseller2List')?>" title="Graph Reports" >Reseller List</a></td>
</tr>

<?
}
if($level==2)
{
?>

<tr>
<td width="16px"><img src="<?=base_url()?>images/menuIcon_032.gif" border="0" height="16px" width="16px"/></td>
<td><a href="<?=site_url('reseller2/addFormReseller1')?>" title="Ditails Repots" >New Reseller I</a></td>
</tr>

<tr>
<td width="16px"><img src="<?=base_url()?>images/menuIcon_015.gif" border="0" height="16px" width="16px"/></td>
<td><a href="<?=site_url('reseller2/reseller1List')?>" title="Graph Reports" >Reseller List</a></td>
</tr>

<?
}
if($level==1)
{
?>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_032.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('gk_register/clientList')?>" title="GK/Register Clients" >New Clinet</a></td>
</tr>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_015.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('gk_register/clientLotList')?>" title="GK/Register Lots" >Clients List</a></td>
</tr>


<?
}
?>



</tbody>
</table>


</td>
</tr>
</tbody>
</table>



<table class="menuBlock" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
    <td><button class="sectionNameOpened" id="nameSection12" onclick="javascript:menuSwitch('Section12');this.blur();"><div>Rate Chart</div></button></td>
</tr>
<tr id="itemsSection12">
    <td>
    <table class="sectionItems" border="0" cellpadding="2" cellspacing="0">
            <tbody>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_010.gif" border="0" height="16" width="16"></td>
<td>
<a href="<?=site_url('tariff/add_tariff')?>">New Rate Chart</a></td>
</tr>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_002.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('tariff/baseTariff')?>">Base Rate Chart</a></td>
</tr>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_027.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('tariff/index')?>">My Rate Chart</a></td>
</tr>


</tbody>
</table>
</td>
</tr>
</tbody>
</table>





<table class="menuBlock" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
    <td><button class="sectionNameOpened" id="nameSection2" onclick="javascript:menuSwitch('Section2');this.blur();"><div>Call Reports</div></button></td>
</tr>
<tr id="itemsSection2">
    <td>
    <table class="sectionItems" border="0" cellpadding="2" cellspacing="0">
            <tbody>



<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_030.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('calls/reseller3ActiveCalls')?>">Current Calls</a></td>
</tr>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_022.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('calls/reseller3SucessCalls')?>">Sucess Calls</a></td>
</tr>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_012.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('calls/reseller3Profit')?>">Client wise Call</a></td>
</tr>

<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_029.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('calls/reseller3distCall')?>">Distination wise Call</a></td>
</tr>


<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_009.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('payment/reseller2Payment')?>">Client Payment Summary</a></td>
</tr>


</tbody>
</table>
</td>
</tr>
</tbody>
</table>




<script type="text/javascript">menuSwitch('Section3');</script>


<table class="menuBlock" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
    <td><button class="sectionNameClosed" id="nameSection4" onclick="javascript:menuSwitch('Section4');this.blur();"><div>My Account</div></button></td>
</tr>
<tr style="display: none;" id="itemsSection4">
    <td>
    <table class="sectionItems" border="0" cellpadding="2" cellspacing="0">
            <tbody>


<tr>
<td width="20"><img src="<?=base_url()?>images/menuIcon_010.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('payment/ownPayment')?>">My Payment History</a></td>
</tr>


<tr>
<td width="20"><img src="<?=base_url()?>images/CHANGE_PASS.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('admin/cpanel/changepwd')?>" class="listingLink"  title="Change Password">Change Password</a></td>
</tr>

<tr>
<td width="20"><img src="<?=base_url()?>images/logout.gif" border="0" height="16" width="16"></td>
<td><a href="<?=site_url('logout')?>">Log Out</a></td>
</tr>



</tbody>
</table>
</td>
</tr>
</tbody>
</table>


<script type="text/javascript">menuSwitch('Section4');</script>




<script type="text/javascript">menuSwitch('Section5');</script>




    </td></tr></tbody></table></td>
    <!-- /MENU -->

    <td id="sliderPanel">
	<button id="sliderButton" class="sliderToLeft" onclick="sliderSwitch();this.blur();"></button></td>
   <td id="bodyPart">



    <table id="topBar" class="bar" border="0" cellpadding="0" cellspacing="0">
      <tbody>
		    <tr>
		        <td rowspan="2" align="right" valign="middle" >

		        <div id="headerLoad">
		       <?=SITE_TITLE?>&nbsp;|&nbsp;Level : &nbsp;<?=$level?> &nbsp;|&nbsp;Reseller: <?=$user_name?> &nbsp;| &nbsp; Balance: <?=$this->generallib->getResellerBalance($user_name,$level)?> USD &nbsp;|&nbsp; <a href="<?=site_url('logout')?>">Logout</a>
		        </div>

		        </td>




