<?php
//error_reporting(0);
include_once('include.php');
session_start();
if(!isset($_SESSION['titles']) || !isset($_SESSION['positions'])|| !isset($_SESSION['usernames'])){
header("location:index.php");
}
if(isset($_SESSION['usernames'])){
$usrr=$_SESSION['usernames'];}

$conn=mysqli_connect("localhost","salehljr","!2n+l)a3iX~U","salehljr_diana");

$sqlst="select group_dbid from acs where user_names='".$_SESSION['usernames']."' ";
$qry=mysqli_query($conn,$sqlst);

$rst=mysqli_fetch_row($qry);
if($rst[0]==1){
printf("<div style='position:absolute;top:100;left:200;font-size:16;'>Access Denied</div>");}
else{

?>

<!doctype html>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<ol class="breadcrumb">
<li><a href="maindash.php"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">GT-Reports</li>
</ol>
</section>
<br>

<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-4">
<div class="box box-success">
<div class="box-header">
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active">
    Sales Reports
</a>
<!--<a href="region_type.php" target='_blank' class="list-group-item list-group-item-action">Region</a>-->
<a href="region_type.php" class="list-group-item list-group-item-action">Region-Graph</a>
<a href="/prd/rpmrdslregionln2.php" class="list-group-item list-group-item-action">Region-Detail</a>
<a href="dbsalesvalue.php" class="list-group-item list-group-item-action">Distributor</a>
<a href="/prd/prtmdays.php" target='_blank' class="list-group-item list-group-item-action">Daily Sales</a>
<a href="/prd/prtmmonths.php?$starts=<?php echo '2021-04-01';?>" class="list-group-item list-group-item-action">Monthly Sales</a>
</div>
</div> 
</div>
</div>
<div class="col-md-4">
<div class="box box-success">
<div class="box-header">

<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active">
    Product Range Reports
</a>
<a href="rangesales.php" target='_blank' class="list-group-item list-group-item-action">Range</a>
<a href="productsku.php" target='_blank' class="list-group-item list-group-item-action">SKU</a>
<a href="/prd/dnregionrangesales.php" target='_blank' class="list-group-item list-group-item-action">Region-Range</a>
<a href="/prd/dndbrangesales.php" class="list-group-item list-group-item-action">Distributor-Range</a>
</div>
</div> 
</div>
</div>
<div class="col-md-4">
<div class="box box-danger">
<div class="box-header">
    <div class="list-group">
<a href="#" class="list-group-item list-group-item-action active">
   Sales Trend Reports
</a>
<a href="/prd/regionsalestrend.php" class="list-group-item list-group-item-action">Region-Primary Value</a>

<a href="/prd/regionsalestrendton.php" class="list-group-item list-group-item-action">Region-Primary Tonnage</a>

<a href="/prd/vtprregiontgtrendnew.php" class="list-group-item list-group-item-action">Region-Primary Ach</a>
<a href="/prd/vtprregiontgtrendnew.php" class="list-group-item list-group-item-action">Region-Primary Ach</a>
<a href="/prd/dbprsalesterndd.php" class="list-group-item list-group-item-action">DB-Sales(Primary)</a>
<a href="/prd/dbprsalesternd.php" class="list-group-item list-group-item-action">DB-Sales(RD)</a>
<a href="/prd/dbrangesalesternd.php" class="list-group-item list-group-item-action">DB-Range(Primary)</a>
<a href="/prd/dbrangesalesterndd.php" class="list-group-item list-group-item-action">DB-Range[RD]</a>
<a href="/prd/rangesaletrendprimarynew.php" class="list-group-item list-group-item-action">Product Range</a>
<a href="/prd/sku_saletrendprimarynew.php" class="list-group-item list-group-item-action">Product SKU</a>
</div> 
</div>
</div>
</section>

<section class="content">
<div class="row">
<div class="col-md-4">
<div class="box box-success">
<div class="box-header">
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active">
    Discount & Tonnage Reports
</a>
<a href="#" target='_blank' class="list-group-item list-group-item-action disabled">Region</a>
<a href="#" target='_blank' class="list-group-item list-group-item-action disabled">Distributor</a>
<a href="/prd/rangesaletrendprimarynewton.php" target='_blank' class="list-group-item list-group-item-action">Product Range</a>
<a href="#" class="list-group-item list-group-item-action disabled">SKU</a>
</div>
</div> 
</div>
</div>
<div class="col-md-4">
<div class="box box-success">
<div class="box-header">

<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active">
    Other Reports
</a>
<a href="rangesales.php" target='_blank' class="list-group-item list-group-item-action disabled">Regional(Cash/Credit)</a>
<a href="productsku.php" target='_blank' class="list-group-item list-group-item-action disabled">Distributor(Cash/Credit)</a>
<a href="#" target='_blank' class="list-group-item list-group-item-action disabled">Primary Invoice</a>
<a href="#" class="list-group-item list-group-item-action disabled">Distributor-Margin</a>
</div>
</div> 
</div>
</div>
<div class="col-md-4">
<div class="box box-danger">
<div class="box-header">
    <div class="list-group">
<a href="#" class="list-group-item list-group-item-action active">
   Achivement Trend Reports
</a>
<a href="#" class="list-group-item list-group-item-action disabled">Region</a>
<a href="#" class="list-group-item list-group-item-action disabled">Distributor</a>
<a href="#" class="list-group-item list-group-item-action disabled">Product Range</a>
<a href="#" class="list-group-item list-group-item-action disabled">Product SKU</a>
</div> 
</div>
</div>
</section>
</div>
<?php include_once('footer.php');}?>

</body>
</html>

