index.php 1.44 KB
<HTML>
<HEAD>
<TITLE>Ñòàòèñòèêà çàêàçîâ</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<META Name="KEYWORDS" Content="<? echo $keywords; ?>">
<META Name="DESCRIPTION" Content="<? echo $description;?>">
<link href="../css/admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<?
 include ("../config/config.php");
 include ("./func.php");

 $db = mysql_connect($DB_HOST, $DB_USER, $DB_PSW);
       mysql_select_db($DB_BASE);

if (!isset($_SESSION['admin']['login'])) {

   echo "Íóæíà àâòîðèçàöèÿ";

} else {

?>
<!--<table cellpadding="5" cellspacing="5" width="100%">
 <tr>
  <td class="td_1">
   <a href="/order/index.php?type_stat=1">Ñòàòèñòèêà ïî çàêàçàì</a>
  </td>
  <td class="td_1">
   <a href="/order/index.php?type_stat=2">Ñòàòèñòèêà ïî ïîëüçîâàòåëÿì</a>
  </td>
  <td class="td_1">
    <a href="/order/index.php?type_stat=3">Ñòàòèñòèêà ïî ðóáðèêàì êàòàëîãà</a>
  </td>
 </tr>
</table>-->
<table cellpadding="5" cellspacing="5" width="100%">
 <tr>
  <td class="td_1">
   <center><strong>Ñòàòèñòèêà ïî çàêàçàì</strong></center>
  </td>
 </tr>
</table>
<?
if (!empty($_GET['pro']))
{
  include ("./link.php");
  echo "11111111111111111111111111111111";
}
if (!isset($_GET['type_stat']))
{
  $_GET['type_stat'] = 1;
}
if ($_GET['type_stat'] == 1)
{
  include ("./order_stat.php");
}
if ($_GET['type_stat'] == 2)
{
  include ("./user_stat.php");
}
if ($_GET['type_stat'] == 3)
{
  include ("./catalog_stat.php");
}
}
?>
</body>