-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonal.htm
More file actions
87 lines (85 loc) · 3.32 KB
/
personal.htm
File metadata and controls
87 lines (85 loc) · 3.32 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心</title>
<style type="text/css">
.floatl{float:left;}
.floatr{float:right;}
.clear{clear:both;}
.title{ padding-left:100px; margin-top:5px;}
.width{ width:350px;}
.margintop{ margin-top:10px;}
.marginleft{ margin-left:50px;}
.marginleft_s{ margin-left:10px;}
.marginright{ margin-right:300px;}
.submit{ margin:10px 0 0 500px;}
textarea{width:490px; height:50px;}
.content{ margin:0 auto; width:908px;}
li{list-style: none;}
p{font-size:20px;}
div{font-size: 14px;}
.backcontent{width: 473px;}
.top{ position:fixed; border:1px solid black; text-decoration: none; top:500px; left:1200px;}
</style>
</head>
<body>
<?php include 'head.php' ?>
<a href="#top" class="top"> top </a>
<!--查看留言部分-->
<div class="content margintop">
<fieldset>
<legend>我所发表的话题</legend>
<div class="session">
<?php
$bgstcontent=$bglist->fetch($value="*",$condition="binary UName='$usename'");
while($result=mysql_fetch_array($bgstcontent))
{
$ID=$result['ID'];
$IDs="ContentID=$ID";
?>
<fieldset>
<legend>我说:</legend>
<p><?php echo $result['Title']?></p>
<div class="marginright floatl marginleft"><?php echo $result['Content']?></div>
<span class="submit">回帖数<?php echo $click=$result['Click']?></span><span class="marginleft">时间:<?php echo $result['Time']?></span>
</fieldset>
<ul>
<?php
//var_dump($sscontent);
$value="*";
$bgsscontent=$bgsession->fetch($value,$IDs);
while($sresult=mysql_fetch_array($bgsscontent))
{
$SID=$sresult['ID'];
?>
<li>
<span><?php echo $sresult['UserName']?>说:<?php echo $sresult['Content']?></span>
<span class="floatr"><?php echo $sresult['Time']?></span>
</li>
<?php } ?>
</ul>
<?php } ?>
</div>
</fieldset>
<fieldset>
<legend>我所参与的留言</legend>
<div class="session">
<ul>
<?php
$bgscontent=$bgsession->fetch($value="*",$condition="binary UserName='$usename'");
$bgds_content=$bgds_session->fetch($value="*",$condition="binary UserName='$usename'OR ToName='$usename'");
while($ssresult=mysql_fetch_array($bgscontent)){
?>
<li>我说:<?php echo $ssresult['Content']?></li>
<?php } while ($dsresult=mysql_fetch_array($bgds_content)) {
?>
<li><?php echo $dsresult['UserName']?>对<?php echo $dsresult['ToName']?>说:<?php echo $dsresult['Content']?><?php echo $dsresult['Time']?></li>
<?php }?>
</ul>
</div>
</fieldset>
</div>
<?php include 'footer.php' ?>
</body>
</html>