<?php
require "config.inc.php";
if($user!="" and is_dir("$config[data]/$user")) {
  $config[curr_user]="$config[data]/$user/";
}else {
  $config[curr_user]="";
  $config[user_name]=$config[name];
  $config[user_base]=$config[base];
}
require "$config[curr_user]config.inc.php";  
?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Top</title>
<base target="main">
<link rel="stylesheet" type="text/css" href="images/style.css">
</head>

<body topmargin="0" leftmargin="0" bgcolor="#32A1DB" onLoad="window.defaultStatus='[ ::: 创  想  中  文  网:::  ]';">
<table border="0" cellpadding="0" cellspacing="0" width="796" height="100%">
  <tr>
    <td width="100%" align="center" valign="bottom">
      <table border="0" cellpadding="0" cellspacing="0" width="702">
        <tr>
          <td height="1" bgcolor="#085878"></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" width="702">
        <tr>
          <td width="1" bgcolor="#085878"></td>
          <td bgcolor="#1070A2">
          <table border="0" cellpadding="3" cellspacing="0" width="702">
          <tr><td align="center" width=70% class="shadow" ><?echo"<a href=\"$config[user_base]\" target=\"_blank\" style=\"color: yellow; text-decoration: none\">$config[user_name]</a>";?></font>之网酷统计系统</td>
            <td align="right" width="18%">
              <script>var style="icon";var url="http://www.cx365.com/php/stat";</script><script src="http://www.cx365.com/php/stat/stat.js"></script><a href="http://www.cx365.com" target="_blank"><img src="images/stat.gif" width="95" height="13" border="0" align="absmiddle"></a>
            </td>
            <td class="shadow" width="12%" align="left">
<?

include "config.inc.php";
if($user and is_dir("$config[data]/$user")) {
  $user="user=$user";
  $admin="admin/useradmin.php?$user";
}else {
  $user="";
  $admin="admin/superadmin.php";
}

echo"              <a href=\"$admin\" style=\"color: #FFFFFF; text-decoration: none\">[管理]</a>&nbsp;";
if($config[multiuser])
  echo"<a href=\"http://www.cx365.com/php/stat/register.php\" style=\"color: #FFFFFF; text-decoration: none\" target=\"_blank\">[申请]</a>&nbsp;";
echo"&nbsp;\n";

?>
            </td>
          </tr>
          </table>
          <td width="1" bgcolor="#085878"></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" width="702">
        <tr>
          <td height="1" bgcolor="#085878"></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" width="702">
        <tr>
          <td width="1" bgcolor="#085878"></td>
          <td>
          <table border="0" cellpadding="0" cellspacing="0" width="700">
          <tr>
<?

if($user) $user="&".$user;
print <<<EOT
            <td><a href="view.php?type=general$user"><img src="images/button1.gif" width="116" height="25" border="0"></a></td>
            <td><a href="view.php?type=year$user"><img src="images/button2.gif" width="117" height="25" border="0"></a></td>
            <td><a href="view.php?type=detail$user"><img src="images/button3.gif" width="116" height="25" border="0"></a></td>
            <td><a href="view.php?type=hour$user"><img src="images/button4.gif" width="117" height="25" border="0"></a></td>
            <td><a href="view.php?type=pageview$user"><img src="images/button5.gif" width="116" height="25" border="0"></a></td>
            <td><a href="view.php?type=agent$user"><img src="images/button6.gif" width="118" height="25" border="0"></a></td>
EOT;

?>
          </tr>
          </table>
          <td width="1" bgcolor="#085878"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>

</html>