<?php 
session_start();
$username=$_SESSION['user'];
include('opendb.php');
$result=mysqli_query($db,"select * from useraccess where user_name='$username' and br_code='$brcode'");
   while($row = mysqli_fetch_array($result))
  {
  $add_cust=$row['supplier'];
  $sales_reporting=$row['financer'];
  $prod_quot=$row['branch'];
  $unman_quot_sales=$row['advance_receipt'];
  $serve_quot=$row['op_stock'];
  $service_report=$row['order_form'];
  $serv_quotat=$row['sea_order_form'];
  $self_analys_serv=$row['list_in_active'];
  $service_reporting=$row['purchase_order'];
  $product_inward=$row['vehicle_purchase'];
  $send_to_service=$row['purchase_return'];
  $receiving_after=$row['inv_type_master'];
  $product_outward=$row['inv_vehicle'];
  $add_cust1=$row['sea_invoice'];
  $quotation_modification_product=$row['sales_returns_veh'];
  $send_sms=$row['debit_note'];
  $send_sms_group=$row['cr_note_dis_allow'];
  $add_supplier=$row['service_call'];
  $send_mail_group=$row['stock_trans_in_reg'];
  $send_greetings_group=$row['stock_trans_out_reg'];


  $quotation_modification_service=$row['veh_stock_report'];
  $edit_unmanaged_quotation=$row['veh_stock_repo_dw'];
  $customer_request_product=$row['stock_ledger'];
  $customer_request_service=$row['purchase_register']; 	
  $quotation_search=$row['sales_register'];
  $sales_search=$row['pur_ret_register'];
  $service_search=$row['sales_ret_register'];
  $create_mailing_label=$row['credit_note_reg'];
  $sales_n_service_allotment=$row['cred_note_reg_spares'];
 
  
  $add_product_details=$row['veh_stock_repo'];
  $send_purchase_request=$row['stock_trans_in'];
  $sales_report=$row['stock_trans_out'];
  $service_report=$row['corporate']; 
  $company_visited_reports=$row['model_master']; 	
  $followup_and_pending=$row['conf_master']; 	
  $view_customers=$row['segment_master']; 	
  $view_distributers=$row['engine_master']; 
   $view_suppliers=$row['service_report']; 	
  $view_employees=$row['serv_history']; 
  $ta_settings=$row['inq_source'];
  $add_designation=$row['prospect'];	
  $units=$row['customer'];
  $tax_master=$row['term_condition'];
  $target_master=$row['transport'];
  $prefix_master=$row['cust_list_all'];
  $cust_type=$row['cust_list_credit'];


  $division=$row['division'];
  $department=$row['department'];
  $allowances=$row['allowances'];
  $deductions=$row['deductions'];
  $ceiling=$row['ceiling'];
 $payroll=$row['payroll'];
$edit_payroll=$row['edit_payroll'];
 $esi_incentive=$row['esi_incentive'];
 $esi_pf_group=$row['esi_pf_group'];
  
}


?>
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <title>PSN Telcon</title>
    <script type="text/javascript" src="scripts/jquery-latest.js"></script>
	<link type="text/css" href="includes/style1.css" rel="stylesheet" />
      <link type="text/css" href="css/form.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script src="rightclick_deactive.js"></script>

    <script type="text/javascript">
        $(function() {
          if ($.browser.msie && $.browser.version.substr(0,1)<7)
          {
			$('li').has('ul').mouseover(function(){
				$(this).children('ul').show();
				}).mouseout(function(){
				$(this).children('ul').hide();
				})
          }
        });        
    </script>
	<script type="text/javascript">
    $(document).ready(function() {
        var cont_left = $("#container").position().left;
        
        
        $(".img").each(function(index) {
            var left = (index * 160) + cont_left;
            $(this).css("left", left + "px");
        });
    });
    </script>


<script src="css3-dropdown-menu-demo_files/bsa.js" async="" type="text/javascript"></script><script async="async" src="css3-dropdown-menu-demo_files/s_a5f348233fceef06ba365ab392938d10.js" id="_bsap_js_a5f348233fceef06ba365ab392938d10" type="text/javascript"></script><style id="bsa_css" type="text/css">.one{position:relative}.one .bsa_it_ad{display:block;padding:15px;border:1px solid #e1e1e1;background:#f9f9f9;font-family:helvetica,arial,sans-serif;line-height:100%;position:relative}.one .bsa_it_ad a{text-decoration:none}.one .bsa_it_ad a:hover{text-decoration:none}.one .bsa_it_ad .bsa_it_t{display:block;font-size:12px;font-weight:bold;color:#212121;line-height:125%;padding:0 0 5px 0}.one .bsa_it_ad .bsa_it_d{display:block;font-size:11px;color:#434343;font-size:12px;line-height:135%}.one .bsa_it_ad .bsa_it_i{float:left;margin:0 15px 10px 0}.one .bsa_it_p{display:block;text-align:right;position:absolute;bottom:10px;right:15px}.one .bsa_it_p a{font-size:10px;color:#666;text-decoration:none}.one .bsa_it_ad .bsa_it_p a:hover{font-style:italic}</style></head>
<body bgcolor="EEEECE">
<div class='cont'>


<?php include('includes/top.php'); ?>
<br/>
<table class="container"><tr><td>
<font style="font-family: 'Trebuchet MS',Verdana,Helvetica,sans-serif; font-size:15px;">  &nbsp;&nbsp;Vehicle >> Transactions</font></p>


<table align='center' width='98%' height='100%'><tr><td >


<CENTER>
<table background="back_ground.jpg" border='0' class='tble' id='container'>
<tr><? if($add_cust==1)
{
?><td class="img"><a href="veh/supp-mast.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Supplier</a></td><?
}					
?>
<? if($sales_reporting==1)
{
?>
<td class="img"><a href="veh/fine.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Financer</a></td><?
}					
?>
	
<? if($prod_quot==1)
{
?><td class="img"><a href="veh/branch.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Branch</a></td>	<?
}					
?>
<? if($unman_quot_sales==1)
{
?><td class="img"><a href="veh/advform.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Advance Receipt</a></td> <?
}					
?><? if($serve_quot==1)
{
?>
<td class="img"><a href="veh/veh_opstock.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Op. Stock</a></td><?
}					
?><? if($service_report==1)
{
?><td class="img"><a href="veh/oform.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Order Form</a></td><?
}					
?></tr><tr>
</tr>
<tr><? if($serv_quotat==1)
{
?><td class="img"><a href="veh/seaoform.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Search Order Form</a></td>	<?
}					
?>
<? if($self_analys_serv==1)
{
?>
<td class="img"><a href="veh/oform_inactive.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>List Inactive</a></td><?
}					
?>
<? if($service_reporting==1)
{
?><td class="img"><a href="veh/pur_order.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Purchase Order</a></td><?
}					
?>
<? if($product_inward==1)
{
?>
			<td class="img"><a href="veh/veh_purch1.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Vehicle Purchase</a></td>

<?
}					
?><? if($send_to_service==1)
{
?>
				<td class="img"><a href="veh/purch_ret.php"  style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Purchase Return</a></td>
<?
}					
?><? if($receiving_after==1)
{
?>
		              <td class="img"><a href="veh/ttype.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Invoice Type Master</a></td>
<?
}					
?> </tr>
<tr><? if($product_outward==1)
{
?><td class="img"><a href="veh/invoice1.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Invoice - Vehicle</a></td><?
}					
?>
<? if($add_cust1==1)
{
?>
<td class="img"><a href="veh/seainvoice.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Search Invoice</a></td><?
}					
?>
	
<? if($quotation_modification_product==1)
{
?><td class="img"><a href="veh/veh_sale_ret.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Sales Returns (VEH)</a></td>	<?
}					
?>
<? if($send_sms==1)
{
?><td class="img"><a href="veh/dbnote.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Debit Note</a></td> <?
}					
?><? if($send_sms_group==1)
{
?>
<td class="img"><a href="veh/crnote.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Cr Note (Dis Allowed)</a></td><?
}					
?><? if($add_supplier==1)
{
?><td class="img"><a href="veh/engattend.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Service Call</a></td><?
}					
?></tr>
<tr><? if($send_purchase_request==1)
{
?><td class="img"><a href="veh/veh_transin.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Stock Transfer IN</a></td>	<?
}					
?>
<? if($sales_report==1)
{
?>
<td class="img"><a href="veh/veh_transout.php" style="text-decoration:none;"><img src="images/supplier.png" width="80" height="80"  border='0'><br/>Stock Transfer OUT</a></td><?
}					
?>
</tr>
<tr>

<tr ><th align='center' colspan='4'><!--<input type='hidden' name='imagename'><input type='submit' name='save' value='Set as background image'>--></th></tr></form>
</table>

<br/>



</td></tr></table>
</td></tr></table>
</body></html>
