📄 stat_set.php
字号:
<?php
include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/stat.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 71 );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n";
echo "<s";
echo "cript>\r\nfunction clearall () {\r\n\tif (confirm (\"";
echo $strStatNotice1;
echo "\")) {\r\n\t\twindow.location = \"stat_set.php?clearall=yes\";\r\n\t}\r\n}\r\nfunction clearcount () {\r\n\tif (confirm (\"";
echo $strStatNotice2;
echo "\")) {\r\n\t\twindow.location = \"stat_set.php?clearcount=yes\";\r\n\t}\r\n}\r\n</script></head>\r\n\r\n<body class=\"NormalPage\">\r\n<div align=\"center\">\r\n <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n <tr> \r\n <td width=\"250\" > <img src=\"images/bar.gif\"> ";
echo $strStatSet;
echo "</td>\r\n <td > </td>\r\n <td width=\"100\" > </td>\r\n </tr>\r\n \r\n </table>";
$clearall = $_REQUEST['clearall'];
$clearcount = $_REQUEST['clearcount'];
$step = $_REQUEST['step'];
if ( $clearall == "yes" )
{
$msql->query( "delete from {$tbl_stat_count}" );
$msql->query( "delete from {$tbl_stat_come}" );
}
if ( $clearcount == "yes" )
{
$msql->query( "delete from {$tbl_stat_date}" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
$msql->query( "INSERT INTO {$tbl_stat_date} VALUES (12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" );
sayok( $strStatNotice3, "", "" );
exit( );
}
$hour = $_REQUEST['hour'];
$minute = $_REQUEST['minute'];
$second = $_REQUEST['second'];
$month = $_REQUEST['month'];
$day = $_REQUEST['day'];
$year = $_REQUEST['year'];
$ShowCount = $_REQUEST['ShowCount'];
$ShowCountType = $_REQUEST['ShowCountType'];
$ShowCountSize = $_REQUEST['ShowCountSize'];
$ShowCountStat = $_REQUEST['ShowCountStat'];
$CountIpExp = $_REQUEST['CountIpExp'];
if ( $step == "mod" )
{
$starttime = @mktime( $hour, $minute, $second, $month, $day, $year );
$msql->query( "update {$tbl_stat_base} set \r\n\tShowCount = '{$ShowCount}',\r\n\tShowCountType = '{$ShowCountType}',\r\n\tShowCountSize = '{$ShowCountSize}',\r\n\tShowCountStat = '{$ShowCountStat}',\r\n\tCountIpExp = '{$CountIpExp}',\r\n\tstarttime = '{$starttime}'\r\n\t" );
}
echo "\r\n";
$msql->query( "select * from {$tbl_stat_base}" );
if ( $msql->next_record( ) )
{
$ShowCount = $msql->f( "ShowCount" );
$ShowCountType = $msql->f( "ShowCountType" );
$ShowCountSize = $msql->f( "ShowCountSize" );
$ShowCountStat = $msql->f( "ShowCountStat" );
$CountIpExp = $msql->f( "CountIpExp" );
$start_time = $msql->f( "starttime" );
}
echo " \r\n\r\n \r\n \r\n <center>\r\n <br>\r\n <table width=\"625\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"22\">\r\n <tr> \r\n <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strStatSet;
echo "</td>\r\n <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n </tr>\r\n </table>\r\n <table width=\"625\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n <form action=\"\" method=\"post\">\r\n <tr> \r\n <td align=\"right\" class=title width=\"150\">";
echo $strStatIfuse;
echo "</td>\r\n <td colspan=\"3\" class=con> \r\n ";
echo "<s";
echo "elect name=\"ShowCountStat\">\r\n <option value=\"1\" ";
echo seld( $ShowCountStat, 1 );
echo ">";
echo $strYes;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $ShowCountStat, 0 );
echo ">";
echo $strNo;
echo "</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td align=\"right\" class=title width=\"150\">";
echo $strStatStart;
echo "</td>\r\n <td colspan=\"3\" class=con> \r\n ";
echo "<s";
echo "elect name=\"year\">\r\n ";
$thisyear = date( "Y", $start_time );
$y = 2006;
for ( ; $y <= 2008; $y++ )
{
echo " \r\n <option value=\"";
echo $y;
echo "\" ";
echo seld( $thisyear, $y );
echo ">";
echo $y;
echo "</option>\r\n ";
}
echo " \r\n </select>\r\n ";
echo $strYear;
echo " \r\n ";
echo "<s";
echo "elect name=\"month\">\r\n ";
$mon = date( "n", $start_time );
$m = 1;
for ( ; $m <= 12; $m++ )
{
echo " \r\n <option value=\"";
echo $m;
echo "\" ";
echo seld( $mon, $m );
echo ">";
echo $m;
echo "</option>\r\n ";
}
echo " \r\n </select>\r\n ";
echo $strMonth;
echo " \r\n ";
echo "<s";
echo "elect name=\"day\">\r\n ";
$date = date( "j", $start_time );
$d = 1;
for ( ; $d <= 31; $d++ )
{
echo " \r\n <option value=\"";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -