";
echo "共:".$total."篇".$total_page."页 |
";
if(empty($page))
$page=0;
if(空($offset))
$offset=0;
$offset=$pagenum*$page;
if(!empty($type))
$query="select * from $table where type='$type' $sec order by id desc limit $offset,$pagenum";
else
$query="select * from $table $fir order by id desc limit $offset,$pagenum";
$res=mysql_db_query("$database",$query);
if(@mysql_num_rows($res)>0)
while($topic=mysql_fetch_array($res))
{
if(strlen($topic[title])>40)
{
$topic[タイトル] =substr($topic[タイトル],0,40) ;
$topic[タイトル]=$topic[タイトル]."....";
}
if(trim($topic[時刻])==date(年月日))
$topic[時刻]="$topic[時刻] echo" [$topic[type]]$topic[title]< ;font size=1>($topic[time])"; if($topic[comm]==1) echo ""; if($topic[locked]==1) echo ""; echo " | gt;
阅读:$topic[hits] 次;评论:$topic[p_num]次 |
";
}
else
echo "この列には記事がありません!!!";
$pre=$page-1; 1; if($page>0) echo "前のページ
"; echo "前のページ
"; > |
echo " 次のページ
"; else echo "次のページ
" ; |
|
## ################read_article.php################# ########
require"./inc/func.php";
if(!$id)
echo"<script>window.close();</script> ;" <br>} <br>mscon (); <br>$query="select * from $table where id='$id'"; <br> if(!$res) <br> { <br> echo "記事が削除されたか、この記事はありません!!"; <br> exit(); <br> } <br>$data=mysql_fetch_array($res); <br>add_hits($data[id]) echo " $data[title]--[$data] [タイプ]]";?> <br></TITLE> <br><META http-equiv=Content-Type content="text/html"> <br> <style type=text/css> <br> <!-- <br>body,table,td,input,textarea { font-family: "宋体"; font-size: 9pt} <br>select { font-family: "宋体" ; <br>code {フォントファミリー: "Courier" ; フォントサイズ: 10pt} <br>a { color: #005500} <br>a:hover { color: #CC0000} <br>.border {border: 1px #000000 solid; background-color:transparent; list-style-position: inside; list-style-type: square} <br>--> <br></style> <br><script language="javascript"> <br>function name() <br>{ <br> var theResult = true; <br> var elem4 = null; <br><br> if (document.forms[0].elements[0].value == "" || document.forms[0].elements[0].value == "undefined" || document.forms[0].elements[0].value == "null") <br> { <br> elem4 = prompt("请输入您的姓名:",""); <br> theResult = false; <br> document.forms[0].elements[0].value = elem4; <br> } <br> return theResult; <br>} <br>function mail() <br>{ <br> var theResult = true; <br> var elem1 = null <br> if ((document.forms[0].elements[1].value.indexOf('@') == -1 || document.forms[0].elements[1].value == "" || document.forms[0].elements[1].value.indexOf('.') == -1)) <br> { <br> elem1 = prompt("请输入您的正确的电子邮件地址。谢谢!!",""); <br> theResult = false; <br> document.forms[0].elements[1].value = elem1; <br> } <br> return theResult; <br>} <br>function go() <br>{ <br>var theResult=true; <br>theResult = name()&&mail(); <br>return theResult; <br>} <br></script>
cellPadding=0 align=center borderColorLight=#000000 border=1 width=545>
|
|
if($data[locked]<>0) { echo "对不起!本文已经被管理员锁定!"; } else if($data[html]==1) highlight_string($data[cont]); else echo nl2br($data[cont]); ?> |