📄 mydoc.php
字号:
<?
include("pwdtx.php");
include("connect.inc.php");
include("char.inc.php");
$nowdatetime=strftime('%m/%d/%Y %H:%M:%S %p');
list($date,$time,$amorpm)=explode(" ",$nowdatetime);
list($m1,$d,$y)=explode("/",$date);
//list($h,$m2,$s)=explode(":",$time);
$newd=$d-1;
if($newd<10)$newd="0".$newd;
list($date2,$time2,$amorpm2)=explode(" ",$outarray["dateandtime"]);
list($y2,$m12,$d2)=explode("-",$date2);
//list($h2,$m22,$s2)=explode(":",$time2);
?>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb_2312-80">
<meta HTTP-EQUIV="Expires" CONTENT="0">
<link rel="stylesheet" type="text/css" href="forum.css">
<title>查 询 结 果</title>
</head>
<body bgcolor="#dcf6ce" text="#666600" link="#009900" alink="#00FF00" vlink="#006600">
<?
$sql="select name from zmis41197 where studentnumber=".$userid;
$classbcquery=mysql_query($sql,$conn);
$recordcount = mysql_num_rows($classbcquery);
if ($recordcount!=0){
$classbcarray=mysql_fetch_array($classbcquery);
$myname=$classbcarray["name"];
}
echo "<strong>".$myname."</strong>发表的帖子";
echo " <a href='announce.php?userid=".$userid."' target='bottom'>我要发言</a> <a href='list.php?userid=".$userid."'>刷新浏览</a> <br>".chr(13).chr(10);
$sql="select * from guestbook where vnumber=".$userid." ORDER BY id desc ";
$gbquery=mysql_query($sql,$conn);
$recordcount=mysql_num_rows($gbquery);
if ($recordcount==0)
{
echo "<center><big>没有帖子:o(</big></center>";
}else{
echo " 查询结果,找到 ".$recordcount."条<ul>";
while ($gbarray=mysql_fetch_array($gbquery))
{
echo "<li>";
$newimgstr="";
if (($y2.$m12.$d2)>($y.$m1.$newd))
{
$newimgstr="<img src='images/".$gbarray["expression"]."' border=0>";
}
echo $newimgstr;
$iroot=$gbarray["rootid"];
if ($gbarray["rootid"]==0) $iroot=$gbarray["id"];
echo "<a href='showannounce.php?userid=".$userid."&rootid=".(string)$gbarray["rootid"]."&id=".(string)$gbarray["id"]."' target='bottom'>";
if ($gbarray["length"]==0) $t=" <无内容>";
else $t="";
echo $gbarray["topic"].$t;
$bytestr="(".$gbarray["length"];
if ($gbarray[$length]-1==1)
{
$bytestr=$bytestr+" Byte)";
}else{
$bytestr=$bytestr+" Bytes)";
}
echo "</a> - <strong>";
echo $gbarray["vnickname"];
echo " </strong><em><font color='red'>".$gbarray["dateandtime"]."</font></em> "."[ID:".$gbarray["id"]." 点击:".$gbarray["hits"]."] ".$bytestr." <font color='red'>(".$gbarray["child"].")</font>";
if(($y2.$m12.$d2)>($y.$m1.$newd))
{
$outtext=$outtext."<img src='images/new.gif'>";
echo $outtext;
}
echo "<a href='delete.php?userid=".$userid."&id=".$gbarray["id"]."'>删除</a>";
echo "</li>".chr(13).chr(10);
}
}
echo "</ul>".chr(13).chr(10);
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -