-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusercenter.php
33 lines (33 loc) · 1.18 KB
/
usercenter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
include_once("func.php");loadHeader();
?>
<style type="text/css">
.topic img{max-width:50%;height:150px;}
</style>
<div id="main_left">
<div class="box">
<?php
ConnectDb();
echo '<p class="nmp" style="margin-bottom:5px;">我的帖子 - '.getUsername().' [本页仅显示30条记录]</p>';
echo "<hr />";
$results = mysql_query("SELECT * FROM Posts WHERE username='".getUsername()."' and parent=1 ORDER BY createtime DESC LIMIT 0,30");
while($result = mysql_fetch_array($results)){
$content=indexpage_filter($result['content']);
echo "<div class='topic clearfix'>";
echo "<p class='nmp' style='font-size:18px;'><a href='posts.php?p={$result['PID']}'>{$result['title']}</a></p>";
echo "<p class='nmp' style='font-size:14px;'>{$content}</p>";
echo "<span style='font-size:12px;float:right;'>回复数:{$result['replycount']} | 最后回复:{$result['lastreplytime']} | 发布时间:{$result['createtime']}</span>";
echo "</div>";
}
DisconnectDb();
?>
</div>
</div>
<div id="main_right">
<?php loaduserinfo() ?>
<p class="nmp">最新回复:</p>
<div class="box">
该功能未完成,敬请期待!
</div>
</div>
<?php loadFooter(); ?>