<?php session_start(); include("conn/conn.php"); include("function.php");
$self=$_SERVER['HTTP_REFERER']; //获取链接到当前页面的前一页面的 URL 地址
$u=$_SERVER['HTTP_HOST']; //获取当前请求的Host头信息的内容
$r=$_SERVER['PHP_SELF']; //获取当前正在执行脚本的文件名
$l=$_SERVER['QUERY_STRING']; //获取查询(query)的字符串(URL 中第一个问号 ? 之后的内容)
$url="http://"."$u"."$r"."?"."$l"; //将获取的变量组成一个字符串,即完整的路径
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>明日编程者之家</title>
</head>
<style type="text/css">
<!--
body {
background-color: #8394BF;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.STYLE11 {
font-size: 12px;
color: #656766;
}
-->
</style>
<script src="js/UBBCode.js"></script>
<script src="js/text.js"></script>
<script language="javascript">
function check(){
if(myform.tag.value==1){
alert("该帖已经结贴!");myform.restore_subject.focus();return false;
}
if(myform.restore_subject.value==""){
alert("帖子标题不允许为空!");myform.restore_subject.focus();return false;
}
if(myform.file.value==""){
alert("帖子内容不允许为空!");myform.file.focus();return false;
}
// myform.submit();
}
</script>
<body>
<?php include_once("enter.php");?>
<table width="950" height="62" border="4" align="center" cellpadding="4" cellspacing="4" bordercolor="#C8C8C8" bgcolor="#FFFFFF">
<tr>
<td height="40" colspan="2"> <?php echo $_GET[send_big_type];?>>>><?php echo $_GET[send_small_type];?></td>
</tr>
<tr>
<td height="22"> <?php
$query_3=mysql_query("select * from tb_forum_send where tb_send_id='$_GET[send_id]'");
$myrow_3=mysql_fetch_array($query_3);
echo $myrow_3[tb_send_subject];
?> </td>
<?php if($_SESSION[tb_forum_user]==true){ ?>
<form name="form1" method="post" action="my_collection.php?forum_subject=<?php echo
$myrow_3[tb_send_subject];?>&&collection_user=<?php echo $_SESSION[tb_forum_user];?>">
<td width="173" height="22" align="center" valign="bottom">
<input type="hidden" name="my_collection" value="<?php echo $url;?>">
<input type="submit" name="Submit" value=" 添加到我的收藏夹 ">
</td>
</form>
<?php } ?>
</tr>
</table>
<table width="950" height="180" border="4" align="center" cellpadding="4" cellspacing="4" bordercolor="#C8C8C8" bgcolor="#FFFFFF">
<tr>
<td width="200" rowspan="3" align="center" bgcolor="#FDF8CE"><span class="STYLE11">
<!--从数据库中读取出指定帖子的发布人的信息-->
<?php
$query_1=mysql_query("select * from tb_forum_send where tb_send_id='$_GET[send_id]'",$conn);
$myrow_1=mysql_fetch_array($query_1);
$query_2=mysql_query("select * from tb_forum_user where tb_forum_user='$myrow_1[tb_send_user]'",$conn);
$myrow_2=mysql_fetch_array($query_2);
echo "<img src='$myrow_2[tb_forum_picture]'>"."<br>";
echo "发帖人:";
echo $myrow_2[tb_forum_user]."<br>";
echo "注册时间:"."<br>";
echo $myrow_2[tb_forum_date]."<br>";
echo "积分:";
echo $myrow_2[tb_forum_grade]."<br>";
if($_SESSION[tb_forum_user]==true){
echo "<a href='send_mail.php?receiving_person=$myrow_2[tb_forum_user]&&sender=$_SESSION[tb_forum_user]' target='_blank'><img src='images/index_8.jpg' width='76' height='24' border='0'></a>"."<br>";
echo "<a href='my_friend.php?friend=$myrow_2[tb_forum_user]&&my=$_SESSION[tb_forum_user]' target='_blank'><img src='images/index_8 (1).jpg' width='82' height='24' border='0'></a>";
}
?></span></td>
<td width="780" height="20%" bgcolor="#FFFFFF"><?php echo $myrow_3[tb_send_date]; ?> 楼主
<?php
if($myrow_1[tb_forum_end]!=1){
?>
<a href="end_forum.php?send_id=<?php echo $_GET[send_id];?>&send_user=<?php echo $myrow_3[tb_send_user];?>">结贴</a>
<?php
}else{
echo "已结贴";
}
?></td>
</tr>
<tr>
<td height="60%" bgcolor="#FFFFFF"><?php
echo $myrow_3[tb_send_content];
/* $length=strlen($myrow_3[tb_send_content]);
$page_count=ceil($length/80);
if($length<80){
echo $myrow_3[tb_send_content];
}else{
for($i=1; $i<$page_count;$i++){
$c=msubstr($myrow_3[tb_send_content],0,($i-1)*80);
$c1=msubstr($myrow_3[tb_send_content],0,$i*80);
echo unhtml(substr($c1,strlen($c),strlen($c1)-strlen($c)));
echo "\n";
}
}*/
?></td>
</tr>
<tr>
<td height="20%" align="right" bgcolor="#FFFFFF"><?php if($myrow_3[tb_send_accessories]==true){echo "<a href='download.php?accessories=$myrow_3[tb_send_accessories]'>附件</a>";}?> <a href="permute_send.php?permute_id=<?php echo $myrow_3[tb_send_id];?>">置顶</a>、<a href="recompose_send.php?recompose_id=<?php echo $myrow_3[tb_send_id];?>&&recompose_user=<?php echo $myrow_3[tb_send_user];?>">修改</a>、<a href="delete_send.php?delete_id=<?php echo $myrow_3[tb_send_id];?>&&delete_send_forum=<?php echo $myrow_3[tb_send_user];?>">删除</a>、<a href="send_forum_content.php?send_big_type=<?php echo $_GET[send_big_type];?>&&send_small_type=<?php echo $_GET[send_small_type];?>&&send_id=<?php echo $_GET[send_id];?>#bottom">回复</a></td>
</tr>
</table>
<table width="950" height="180" border="4" align="center" cellpadding="4" cellspacing="4" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<?php
$i=0;
$query_4=mysql_query("select * from tb_forum_restore where tb_send_id='$_GET[send_id]'");
while($myrow_4=mysql_fetch_array($query_4)){
$i++;
?>
<tr>
<td width="200" rowspan="3" align="center" bgcolor="#FDF8CE"><span class="STYLE11">
<?php $query_5=mysql_query("select * from tb_forum_user where tb_forum_user='$myrow_4[tb_restore_user]'");
$myrow_5=mysql_fetch_array($query_5);
echo "<img src='$myrow_5[tb_forum_picture]'>"."<br>";
echo "发帖人:";
echo $myrow_5[tb_forum_user]."<br>";
echo "注册时间:"."<br>";
echo $myrow_5[tb_forum_date]."<br>";
echo "积分:";
echo $myrow_5[tb_forum_grade]."<br>";
if($_SESSION[tb_forum_user]==true){
echo "<a href='send_mail.php?receiving_person=$myrow_5[tb_forum_user]&&sender=$_SESSION[tb_forum_user]' target='_blank'><img src='images/index_8.jpg' width='76' height='24' border='0'></a>"."<br>";
echo "<a href='my_friend.php?friend=$myrow_5[tb_forum_user]&&my=$_SESSION[tb_forum_user]' target='_blank'><img src='images/index_8 (1).jpg' width='82' height='24' border='0'></a>";
}
?></span></td>
<td width="780" height="20%" bgcolor="#FFFFFF"><?php echo $myrow_4[tb_restore_subject];?> <?php echo $myrow_4[tb_restore_date]?> <?php echo $i;?>楼</td>
</tr>
<tr>
<td height="60%">
<?php
if($myrow_4[tb_restore_tag]==1){
echo "该帖已被管理员屏蔽!";}else{
echo $myrow_4[tb_restore_content];}
?></td>
</tr>
<tr>
<td height="20%" align="right"><?php
if($myrow_4[tb_restore_tag]==1){
echo "";}else{
if($myrow_4[tb_restore_accessories]==true){echo "<a href='download.php?accessories=$myrow_4[tb_restore_accessories]'>附件</a>";}?> <a href="send_forum_content.php?send_big_type=<?php echo $_GET[send_big_type];?>&&send_small_type=<?php echo $_GET[send_small_type];?>&&send_id=<?php echo $_GET[send_id];?>&&cite=<?php echo $myrow_4[tb_restore_id];?>#bottom">引用</a>、<a href="recompose_restore.php?recompose_id=<?php echo $myrow_4[tb_restore_id];?>&&recompose_user=<?php echo $myrow_4[tb_restore_user];?>">修改</a>、<a href="delete_restore.php?delete_id=<?php echo $myrow_4[tb_restore_id];?>&&delete_restore_user=<?php echo $myrow_4[tb_restore_user];?>">删除</a>
<?php }?></td>
</tr>
<?php }?>
</table>
<table width="950" border="4" align="center" cellpadding="4" cellspacing="4" bordercolor="#C8C8C8" bgcolor="#FFFFFF">
<tr>
<td width="200" align="center" valign="top" bgcolor="#FDF8CE"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" colspan="2" align="center">积分排行榜</td>
</tr>
<?php
$sql=mysql_query("select tb_forum_user,tb_forum_grade from tb_forum_user order by tb_forum_grade desc limit 10");
没有合适的资源?快使用搜索试试~ 我知道了~
php论坛模块php论坛
共336个文件
gif:153个
php:88个
jpg:50个
5星 · 超过95%的资源 需积分: 9 43 下载量 140 浏览量
2011-03-24
15:17:35
上传
评论
收藏 1.06MB ZIP 举报
温馨提示
php论坛系统,有运行的相关描述,完整的数据库,希望有所帮助。。。
资源推荐
资源详情
资源评论
收起资源包目录
php论坛模块php论坛 (336个子文件)
Thumbs.db 9KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
程序使用说明书.doc 596KB
tb_forum_send.frm 9KB
tb_forum_user.frm 9KB
tb_forum_restore.frm 9KB
tb_my_collection.frm 9KB
tb_forum_affiche.frm 9KB
tb_mail_box.frm 9KB
tb_forum_small_type.frm 9KB
tb_forum_big_type.frm 8KB
tb_my_friend.frm 8KB
2.gif 3KB
2.gif 3KB
4.gif 3KB
4.gif 3KB
5.gif 3KB
5.gif 3KB
1.gif 3KB
1.gif 3KB
9.gif 3KB
9.gif 3KB
6.gif 3KB
6.gif 3KB
7.gif 3KB
7.gif 3KB
10.gif 3KB
10.gif 3KB
8.gif 2KB
8.gif 2KB
11.gif 2KB
11.gif 2KB
0.gif 2KB
0.gif 2KB
face3.gif 1KB
face3.gif 1KB
face4.gif 1KB
face4.gif 1KB
face1.gif 1KB
face1.gif 1KB
face0.gif 1KB
face0.gif 1KB
face23.gif 1KB
face9.gif 1KB
face23.gif 1KB
face9.gif 1KB
face2.gif 1KB
face20.gif 1KB
face6.gif 1KB
face2.gif 1KB
face6.gif 1KB
face20.gif 1KB
face12.gif 1KB
face16.gif 1KB
face16.gif 1KB
face12.gif 1KB
face17.gif 1KB
face13.gif 1KB
face17.gif 1KB
face13.gif 1KB
face5.gif 1KB
face5.gif 1KB
face21.gif 1KB
face7.gif 1KB
face7.gif 1KB
face21.gif 1KB
face19.gif 1KB
face15.gif 1KB
face19.gif 1KB
face15.gif 1KB
face11.gif 1KB
face11.gif 1KB
face14.gif 1KB
face18.gif 1KB
face18.gif 1KB
face14.gif 1KB
face10.gif 1KB
face10.gif 1KB
face8.gif 1KB
face22.gif 1KB
face22.gif 1KB
face8.gif 1KB
design.gif 660B
source.gif 626B
paste.gif 392B
table.gif 379B
fontsize.gif 367B
font.gif 353B
undo.gif 337B
redo.gif 335B
img.gif 297B
img.gif 297B
image.gif 293B
date.gif 287B
flash.gif 241B
共 336 条
- 1
- 2
- 3
- 4
资源评论
- qq_239221972014-12-10php+mysql 是我需要的不错
飞飞无语
- 粉丝: 11
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功