php模拟OICQ的用户信息查看部分
时间:2007-02-17 来源:PHP爱好者
查看聊天纪录的部分和删除部分
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
session_start();
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$place="查看留言";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
require("require.php");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if($loginsign!=1)header("location:memberonly.php");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if(($action == "send")&&($receiver != "")&&($body != ""))
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "select name from userinfo where name='$receiver'";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if(mysql_num_rows($result=mysql_query($query)) != 0)
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "insert into forumtalk (sender,receiver,readsign,body,date)
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
values('$name','$receiver',0,'$body',".date("U").")";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
header("location:memberviewtalk.php?returnmsg=发送成功");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
elseif( ($action == "delete") && ($delid != ""))
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "delete from forumtalk where id=$delid";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
header("location:memberviewtalk.php?returnmsg=删除成功");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
elseif($action == "delall")
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "delete from forumtalk where receiver='$name'";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
header("location:memberviewtalk.php?returnmsg=删除成功");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if($talkto == "")$query = "select * from forumtalk where receiver='$name' order by date
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
desc";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
else $query = "select * from forumtalk where (sender='$name' and receiver='$talkto') or
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
(sender='$talkto' and receiver='$name') order by date desc";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$result = mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$totalnum = mysql_num_rows($result);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<html>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<head>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<title>察看留言/短信息</title>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<link rel="stylesheet" type="text/css" href="member/shequ/default.css">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<!-- <?//require("menujs.htm")?> -->
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</head>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<body bgcolor="#FFFFFF" text="#000000" leftmargin="4" topmargin="4">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?require("menu.php")?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<? if($msg!="")echo $returnmsg?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="640" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr bgcolor="A2C8F8">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="2" bgcolor="eeeeee">察看留言</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<hr size="1">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="400" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<form method=post action=memberviewtalk.php?action=send>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="2">发送新的留言</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="100">留言对象</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="300">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<input type="text" name="receiver" size="20" maxlength="20" <?if($talkto!="")echo
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
"value='$talkto'"?>>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td>留言内容</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<textarea name="body" cols="40" rows="3"></textarea>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="2">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<input type="submit" name="Submit" value="发送">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</form>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="640" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td align="center" bgcolor="eeeeee" height="20">共有留言
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?echo $totalnum?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<a href=memberviewtalk.php?action=delall>清空</a></td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<hr size="1">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if($totalnum == 0) echo "还没有留言!";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
else
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
for($i=0;$i<$totalnum;$i++)
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$talk = mysql_fetch_array($result);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="640" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="50" height="17">发言者</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td height="17" width="200">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?echo "<a href=userinfo.php?id=".$talk['sender'].">".$talk['sender']."</a>"?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="50" height="17">时间</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td height="17" width="200">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?echo date("Y年m月d日 H:i",$talk['date'])?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="100" height="17"><a
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
href=member/shequ/viewtalk.php?action=delete&delid=<?echo $talk['id']?>>删除</a> <a
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
href=member/shequ/viewtalk.php?talkto=<?echo $talk['sender']?>>回复</a>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?if($talk['readsign']==0){?><img src="member/shequ/images/new.gif" width="33"
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
height="16"><?}?></td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td valign="top">内容</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="6"><?echo $talk['body']?></td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table><hr size=1>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query("update forumtalk set readsign=1 where receiver='$name'");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<p>?/p>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</body>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</html>
php爱好者站 http://www.phpfans.net php基础|php进阶|php模板.
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
session_start();
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$place="查看留言";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
require("require.php");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if($loginsign!=1)header("location:memberonly.php");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if(($action == "send")&&($receiver != "")&&($body != ""))
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "select name from userinfo where name='$receiver'";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if(mysql_num_rows($result=mysql_query($query)) != 0)
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "insert into forumtalk (sender,receiver,readsign,body,date)
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
values('$name','$receiver',0,'$body',".date("U").")";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
header("location:memberviewtalk.php?returnmsg=发送成功");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
elseif( ($action == "delete") && ($delid != ""))
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "delete from forumtalk where id=$delid";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
header("location:memberviewtalk.php?returnmsg=删除成功");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
elseif($action == "delall")
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$query = "delete from forumtalk where receiver='$name'";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
header("location:memberviewtalk.php?returnmsg=删除成功");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if($talkto == "")$query = "select * from forumtalk where receiver='$name' order by date
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
desc";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
else $query = "select * from forumtalk where (sender='$name' and receiver='$talkto') or
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
(sender='$talkto' and receiver='$name') order by date desc";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$result = mysql_query($query);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$totalnum = mysql_num_rows($result);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<html>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<head>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<title>察看留言/短信息</title>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<link rel="stylesheet" type="text/css" href="member/shequ/default.css">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<!-- <?//require("menujs.htm")?> -->
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</head>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<body bgcolor="#FFFFFF" text="#000000" leftmargin="4" topmargin="4">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?require("menu.php")?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<? if($msg!="")echo $returnmsg?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="640" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr bgcolor="A2C8F8">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="2" bgcolor="eeeeee">察看留言</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<hr size="1">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="400" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<form method=post action=memberviewtalk.php?action=send>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="2">发送新的留言</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="100">留言对象</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="300">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<input type="text" name="receiver" size="20" maxlength="20" <?if($talkto!="")echo
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
"value='$talkto'"?>>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td>留言内容</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<textarea name="body" cols="40" rows="3"></textarea>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="2">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<input type="submit" name="Submit" value="发送">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</form>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="640" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td align="center" bgcolor="eeeeee" height="20">共有留言
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?echo $totalnum?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<a href=memberviewtalk.php?action=delall>清空</a></td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<hr size="1">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
if($totalnum == 0) echo "还没有留言!";
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
else
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
for($i=0;$i<$totalnum;$i++)
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
{
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
$talk = mysql_fetch_array($result);
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<table width="640" border="0" cellspacing="0" cellpadding="2" align="center">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="50" height="17">发言者</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td height="17" width="200">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?echo "<a href=userinfo.php?id=".$talk['sender'].">".$talk['sender']."</a>"?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="50" height="17">时间</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td height="17" width="200">
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?echo date("Y年m月d日 H:i",$talk['date'])?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td width="100" height="17"><a
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
href=member/shequ/viewtalk.php?action=delete&delid=<?echo $talk['id']?>>删除</a> <a
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
href=member/shequ/viewtalk.php?talkto=<?echo $talk['sender']?>>回复</a>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?if($talk['readsign']==0){?><img src="member/shequ/images/new.gif" width="33"
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
height="16"><?}?></td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td valign="top">内容</td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<td colspan="6"><?echo $talk['body']?></td>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</tr>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</table><hr size=1>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<?
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
mysql_query("update forumtalk set readsign=1 where receiver='$name'");
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
}
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
?>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
<p>?/p>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</body>
www.c hinaitpower.comlKplN6OYgRxNzU86AypvMpFxd7
</html>
php爱好者站 http://www.phpfans.net php基础|php进阶|php模板.
相关阅读 更多 +