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

📄 index.php

📁 这是一个新闻管理的软件
💻 PHP
字号:
<?
	$filename = "downloadata.php";
	$message = file($filename);
?>	

<html>
<head>
<title>文章教程</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../default.css">
</head>

<body bgcolor="#FFFFFF" leftmargin="4" topmargin="4">
<table width="770" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="176" height="60" valign="top"><img src="../image/php2000.gif" width="176" height="60"></td>
    <td width="468" height="70" align="center" valign="top"> 
      <p><a href="http://easytoad.com/cgi-bin/banner.cgi?action=url&user=php2000" target="_blank"> <img width="468" height="60" src="http://easytoad.com/cgi-bin/banner.cgi?action=img&user=php2000&target=Comp" border="0"></a> </p>
    </td>
    <td height="60" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center"> 
          <td> 
            <script>document.write("<a href=http://top1.263.net/count/top.dll?Type=sharkpwd&id=A7908&ReferID=A7908 target=_blank>");document.write("<img src=http://top1.263.net/count/top.dll?Type=Img5&add=1&id=A7908&refer="+escape(top.document.referrer)+" border=0  alt=263统计计数器>");document.write("</a>");</script>
          </td>
        </tr>
        <tr align="center"> 
          <td><? print(date("Y年m月d日")); ?> </td>
        </tr>
        <tr align="center"> 
          <td>-_-</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="2" bgcolor="99cc99">
  <tr align="center"> 
    
		<td width="10%">◆<a href="../index.html">主页</a></td>
    <td width="10%">◆<font color="#FF0000">文章教程</font></td>
    
  <td width="10%">◆<a href="../my/index.php">站长作品</a></td>
    <td width="10%">◆<a href="../freecode/index.php">代码共享</a></td>
    <td width="10%">◆<a href="../bbs/index.php">PHP 论坛</a></td>
    <td width="10%">◆<a href="../homepage/javascript/index.htm">网页制作</a></td>
    
  <td width="10%">◆<a href="../download/index.php">软件下载</a></td>
  </tr>
</table>
<center>
  <table width="580" border="0" cellspacing="0" cellpadding="0">
    <tr valign="middle"> 
      <td height="10" align="center"><img src="../image/linepoint.gif" width="100%" height="1"></td>
    </tr>
    <tr valign="top"> 
      <td width="580"> 
        <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolorlight="e0e0e0" bordercolordark="ffffff">
          <form method=post action=search.php>
            <tr> 
              <td height="30" colspan="4" align="center">文章搜索 
                <input type="text" name="keyword" size="35" maxlength="50">
                类型 
                <select name="searchtype">
                  <option selected>所有内容</option>
                <?
	$searchtype=file("downloadata.php");
	for($i=1;$i<count($searchtype);$i++)
	{
		$type=split("\|\|",$searchtype[$i],99);
		print("<option value=$type[0]>$type[1]</option>");
	}
?> 
                </select>
								部位 
								<select name="searchtitle">
									<option value="no">全部内容</option>
									<option value="yes" selected>文章标题</option>
									<option value="subid">子分类</option>
								</select>
								<input type="submit" name="Submit42" value="搜索">
              </td>
            </tr>
          </form>
          <tr bgcolor="99cc99"> 
            <td height="5" colspan="4" align="left"><img src="../image/dd.jpg" width="10" height="10"></td>
          </tr>
          <tr> 
            <td rowspan="2" bgcolor="99cc99" width="20" align="center">经<br>
              验<br>
              精<br>
              粹</td>
            <td width="10" height="30" valign="top"><img src="../image/jiao-lefttop99cc99.gif" width="10" height="10"></td>
            <td colspan="2" align="center" rowspan="2"> 
              <table width="100%" border="0" cellpadding="2" cellspacing="0">
                <?
	$timecurrent = date("U");
	for($i=1;$i<count($message);$i+=2)
	{		
		$newsign1=$newsign2=0;
		$msg1=split("\|\|",$message[$i],99);
		$total1 = @file("$msg1[0]/$msg1[0].php");
		if(file_exists("$msg1[0]/lastmodify.php"))
			$time1 = file("$msg1[0]/lastmodify.php");
		else $time1 = 0;
		if( ($timecurrent - chop($time1[0])) < 3600*24) $newsign1=1;
		if( ($i+1)<count($message))
		{
			$msg2=split("\|\|",$message[$i+1],99);
			$total2 = file("$msg2[0]/$msg2[0].php");
			$time2 = @file("$msg2[0]/lastmodify.php");
			if( ($timecurrent - chop($time2[0])) < 3600*24) $newsign2=1;
		}
		else
		{
?> 
                <tr align="center"> 
                  <td width=115 height="25"><a href=show.php?id=<?print($msg1[0]);?>><?print($msg1[1]);?></a></td>
                  <td width=110 align=left height="25">(共<?print($total1[0]);?>篇)<?if($newsign1==1){?><img src="../image/new.gif" width="33" height="16" border="0"><?}?></td>
                  <td width=115 height="25"></td>
                  <td width=110 align=left height="25"></td>
                </tr>
                <?
			break;
		}
?> 
                <tr align="center"> 
                  <td width=115 height="25"><a href=show.php?id=<?print($msg1[0]);?>><?print($msg1[1]);?></a></td>
                  <td width=110 align=left height="25">(共<?print($total1[0]);?>篇)<?if($newsign1==1){?><img src="../image/new.gif" width="33" height="16" border="0"><?}?></td>
                  <td width=115 height="25"><a href=show.php?id=<?print($msg2[0]);?>><?print($msg2[1]);?></a></td>
                  <td width=110 align=left height="25">(共<?print($total2[0]);?>篇)<?if($newsign2==1){?><img src="../image/new.gif" width="33" height="16" border="0"><?}?></td>
                </tr>
                <?	
	}
?> 
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr valign="top">
      <td width="580">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="20">&nbsp;</td>
          </tr>
          <tr bgcolor="99cc99"> 
            
						<td height="20"><a name="tuijian"></a>◆推荐文章</td>
          </tr>
<?
	$tuijian = file("tuijian.dbf");
	$total = count($tuijian);
	if($total >1)
	{
	if(($total > 10)&&($showalltuijian != "yes"))$end = $total-10;
	for($i=($total-1);($i>=$end)&&($i>=0);$i--)
	{
		$tmp = split("&&php2000&&",$tuijian[$i],99);
 	$tmpfile = file($tmp[0]."/".$tmp[1].".php");
		$title = split("\|\|",$tmpfile[0],99);
?>
          <tr> 
            <td height="20"><?print("<a href=show.php?id=$tmp[0]&&name=$tmp[1]&&showdetail=yes>$title[0]</a>")?></td>
          </tr>
<?
}
}
?>
          <tr> 
            <td height="20"></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</center>
  <? include("bottom.php") ?> 
</body>
</html>

⌨️ 快捷键说明

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