phpoashisheng/richeng_list.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

 <?php 
include_once 'conn.php';
$lb=$_GET["lb"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title> <?php echo $lb;?></title><link rel="stylesheet" href="css.css" type="text/css">
</head>

<body>

<p>已有 <?php echo $lb;?>列表:</p>
 
 
 
 
 
 
 
 
 
 
 
  <?php 
$year = date ( 'Y' );   //获得年份, 例如: 2006  
$month = date ( 'n' );  //获得题目, 例如: 04  
$day = date ( 'j' );    //获得日期, 例如: 3  
$firstDay = date ( "w", mktime ( 0, 0, 0, $month, 1, $year ) );  
                                        //获得当月第一天  
$daysInMonth = date ( "t", mktime ( 0, 0, 0, $month, 1, $year ) );  
                                        //获得当月的总天数  
//echo $daysInMonth;  
$tempDays = $firstDay + $daysInMonth;   //计算数组中的日历表格数  
$weeksInMonth = ceil ( $tempDays/7 );   //算出该月一共有几周(即表格的行数)  
//创建一个二维数组  
for($j = 0; $j < $weeksInMonth; $j ++) {  
    for($i = 0; $i < 7; $i ++) {  
        $counter ++;  
        $week [$j] [$i] = $counter;  
        //offset the days  
        $week [$j] [$i] -= $firstDay;  
        if (($week [$j] [$i] < 1) || ($week [$j] [$i] > $daysInMonth)) {  
            $week [$j] [$i] = "";  
        }  
    }  
}  
?> 
<script type="text/JavaScript" src="calendar.js"></script> 
<table width="900" border="1" cellpadding="2" cellspacing="2"  bgcolor="#66CC99"> 
    <tr> 
        <th colspan='7'> 
             <?php 
            echo date ( 'M', mktime ( 0, 0, 0, $month, 1, $year ) ) . ' ' .             $year;  
            ?> 
        </th> 
    </tr> 
    <tr bgcolor="#FFCC00"> 
        <th width="120" >Sun</th> 
后面还有 77 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。