⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.php

📁 晕了
💻 PHP
字号:
<?
require("functions.php");
$conn=DBConnect();
$sql="SELECT count(*) FROM links_hits WHERE TO_DAYS(NOW())=TO_DAYS(time)";
$result=mysql_fetch_array(mysql_query($sql,$conn));
$todayclicks=$result[0];

$sql="SELECT sum(account_in),sum(counter) FROM links_users";
$result=mysql_fetch_array(mysql_query($sql,$conn));
$totalclicks=$result[0]+$todayclicks;
$totalshow=$result[1];
if($totalshow==0){
	$click_show=0;
}
else{
	$click_show=$totalclicks/$totalshow*100;
}
// 
$fmsg=@file("setup/news.txt");
$msg="<u1>";
for($i=0;$i<sizeof($fmsg);$i++){
	$msg.="<li>".trim($fmsg[$i])."</li>";
}
$msg.="</u1>";
?>
<html>
<head>
<title>"<?echo $SITE_TITLE;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="cssset.css">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="5" topmargin="0" marginwidth="5" marginheight="0">
<table border=0 cellpadding=0 cellspacing=0 width="100%">
  <tbody>
  <tr>
    <td colspan="3">
<?include("setup/pg_head.php");?>
    </td>
  </tr>
  <tr>
    <td bgcolor=#6699FF height=8 valign=top width="18%">&nbsp;</td>
    <td bgcolor=#6699FF height=8>&nbsp;</td>
    <td bgcolor=#6699FF height=8 valign=top width="18%">&nbsp;</td>
  </tr>
  <tr>
    <td background=table_bg.gif  height="380" width="20%" valign="top">
<?MakeMenu(-2);?>
    </td>
    <td align=middle valign=top>
      <br>
      <table width="95%" cellspacing="0" height="95%">
        <tr>
          <td valign="top">
            <table width=99.8% bgcolor=#CADBFF cellspacing=0>
              <tr>
                <td height=20>系统公告</td>
              </tr>
            </table>
            <table width=100% height=300 bordercolorlight=#CADBFF bordercolordark=#ffffff border=1 cellspacing=0>
              <tr>
                <td><marquee direction='up' width='100%' height='100%' scrolldelay='10' scrollamount='1' onMouseover="this.stop()" onMouseOut="this.start()"><?echo $msg;?></marquee></td>
              </tr>
            </table>

          </td>
        </tr>
        <tr>
          <td valign="bottom">
            <script src="links.php?id=1&style=3"></script>
          </td>
        </tr>
      </table>
    </td>
    <td align=center background=bg_3.gif width=20%>
      <table width=100%>
        <tr><td height=30><b><font size=4>统计信息</font></b></td></tr>
        <tr><td>今日点击:<?echo $todayclicks;?></td></tr>
        <tr><td>累计点击:<?echo $totalclicks;?></td></tr>
        <tr><td>累计显示:<?echo $totalshow;?></td></tr>
        <tr><td>点击比:<?printf("%01.2f",$click_show);?>%</td></tr>
      </table>
      <img src=corner_t_bg.gif width=100% height=1>
      <table width=100%>
        <tr><td height=30><b><font size=4>最新加入</font></b></td></tr>
<?
        $sql="select id,sitename,siteurl,signupday from links_users group by sitename order by signupday DESC limit 0,5";
        $result=mysql_query($sql,$conn);
        while($obj=mysql_fetch_object($result)){
          echo "<tr><td><a href=".$GLOBALS["LINKS_URL"]."click.php?from=1&to=".$obj->id." target=_blank>$obj->sitename</a></td></tr>\n";
        }
?>
      </table>
      <img src=corner_t_bg.gif width=100% height=1>
      <table width=100%>
        <tr align=center><td colspan=3 height=30><b><font size=4><?echo $GLOBALS["LINKS_NAME"];?>排行榜</font></b></td></tr>
        <tr>
          <td>&nbsp;</td>
          <td>站点名称</td>
          <td align=right>浏览量</td>
        </tr>
<?
        $i=1;
        $sql="select id,sitename,siteurl,counter from links_users group by sitename order by counter DESC limit 0,10";
        $result=mysql_query($sql,$conn);
        while($obj=mysql_fetch_object($result)){
          echo "<tr>\n";
          echo "<td align='right'>$i.</td>\n";
          echo "<td><a href=".$GLOBALS["LINKS_URL"]."click.php?from=1&to=$obj->id target=_blank>$obj->sitename</a></td>\n";
          echo "<td align='right'>$obj->counter</td>\n";
          echo "</tr>\n";
          $i++;
        }
        DBClose($conn);
?>
      </table>
    </td>
  </tr>
  <tr>
    <td colspan="3">
<?include("setup/pg_foot.php");?>
    </td>
  </tr>
  </tbody>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -