news.php

(开头部分) 2KB

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

<?php
 include("top.php");
?>
<table width="980" height="438" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="220"  height="438" valign="top"><?php include("left.php");?></td>
    <td width="760" align="right" valign="top" bgcolor="#FFFFFF">      <table width="750" height="30" border="0" cellpadding="0" cellspacing="0" class="nav1">
                <tr>
                  <td align="left" class="con2">&nbsp;&nbsp;&nbsp;<b>公告信息</b></td>
        </tr>
              </table>
      <?php
	   $sql=mysql_query("select count(*) as total from news",$conn);
	   $info=mysql_fetch_array($sql);
	   $total=$info['total'];
	   if($total==0)
	   {
	     echo "本站暂无公告!";
	   }
	   else
	   {
	   ?>
      <table width="750" border="0" align="right" cellpadding="0" cellspacing="0" style="border:#d7d8d8 1px solid">
        <?php
 
    
	       $pagesize=20;
		   if ($total<=$pagesize){
		      $pagecount=1;
			} 
			if(($total%$pagesize)!=0){
			   $pagecount=intval($total/$pagesize)+1;
			
			}else{
			   $pagecount=$total/$pagesize;
			
			}
			$page = !empty($_GET['page']) ? trim($_GET['page']) : '';
			if(($page)==""){
			    $page=1;
			
			}else{
			    $page=intval($_GET['page']);
			
			}
			
			 
             $sql1=mysql_query("select * from news order by time desc limit ".($page-1)*$pagesize.",$pagesize ",$conn);
             while($info1=mysql_fetch_array($sql1))
		     {
		  ?>
        <tr>
          <td width="17" height="33" align="left" class="line">&nbsp;</td>
          <td width="609" align="left" class="line"><a href="newshow.php?id=<?php echo $info1['id'];?>"><?php echo $info1['title'];?></a></td>
          <td width="119" height="30" class="line">&nbsp;<?php echo $info1['time'];?></td>
        </tr>
        <?php
	    }
		
		?>
后面还有 25 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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