?? index.php
字號(hào):
<?
$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統(tǒng)計(jì)計(jì)數(shù)器>");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">主頁(yè)</a></td>
<td width="10%">◆<font color="#FF0000">文章教程</font></td>
<td width="10%">◆<a href="../my/index.php">站長(zhǎng)作品</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">網(wǎng)頁(yè)制作</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>所有內(nèi)容</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">全部?jī)?nèi)容</option>
<option value="yes" selected>文章標(biāo)題</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">經(jīng)<br>
驗(yàn)<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"> </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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -