guestbook.htm
3.77 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
88
89
90
91
92
93
94
95
96
97
98
99
100
{dede:include file='header.htm'/}
<div id="side" class="left">
{dede:include file='side_icon.htm' /}
{dede:include file='side_visitor.htm' /}
</div>
<!--begin main-->
<div id="main" class="right">
<div class="box">
<h2>留言列表</h2>
<!--begin-->
<div class="text">
<!--begin comment-->
<div class="comment bb">
<div id="newgbook"></div>
{dede:datalist}
<a name="1"></a>
<dl id="dl_1">
<dd class="comment-pic left">
<?php if($fields['face']==''){
$face=($fields['sex']=='女')? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png';
echo '<img src="'.$face.'" width="50" height="50"/>';
}else{
echo '<img src="'.$fields['face'].'" width="50" height="50" alt="'.$fields['uname'].'的头像" />';
} ?>
</dd>
<dd>
<a href="index.php?uid={dede:field.userid/}" class="big b">{dede:field.uname/}</a>
<span class="gray">{dede:field.dtime function="MyDate('Y-m-d H:i',@me)" /}</span>
</dd>
<dd class="comment-content">
<div>{dede:field.msg function="Text2Html(@me)" /}</div>
<span id="s_1"></span>
<div id="r_1">
<div class="re-comment" style="display:none;">
<b><a href='index.php?uid={dede:field.uname/}'></a> 于 回复:</b>
<div id="r_content_1"></div>
</div>
</div>
</dd>
</dl>
{/dede:datalist}
<div class="big"><div class="pages">{dede:pagelist/}</div></div>
<div class="post-comment">
<h5>发表留言:</h5>
<div>
<form action="index.php" name="form1" method="post">
<input type="hidden" id="guser" value="{dede:var.uname /}" />
<input type="hidden" name="action" value="guestbooksave" />
<input type="hidden" name="uidnum" value="{dede:var.mid/}" />
<input type="hidden" name="uid" value="{dede:var.userid/}" />
<input type="hidden" name="uname" value="<?php if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!='') echo $cfg_ml->M_LoginID; ?>" />
</div>
<div>标题:<input name="title" type="text" id="title" class="ip" style="width:250px;height:15px;" /></div>
<div>
<textarea class="ip" name="msg" id="msg" style="width:95%;height:8em"></textarea>
<span style="margin-top:-1em;padding:3px; text-align:right; width:200px; position:absolute">
</div>
</span>
</div>
<!--table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:10px;">
<tr>
<td height="26" width="15%">你的昵称:</td>
<td><input name="uname" type="text" id="uname" value="<?php if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!='') echo $cfg_ml->M_LoginID; ?>" style="width:250px;" /></td>
</tr>
<tr>
<td height="26">电子邮箱:</td>
<td><input name="email" type="text" id="email" style="width:250px;" /></td>
</tr>
<tr>
<td height="26">即时通信软件:</td>
<td><input name="qq" type="text" id="qq" style="width:250px;" />
(注明QQ或MSN等)</td>
</tr>
<tr>
<td height="26">联系电话:</td>
<td><input name="tel" type="text" id="tel" style="width:250px;" /></td>
</tr>
</table-->
<table border="0" cellspacing="0" cellpadding="5" style="height:36px;">
<tr>
<td> 验证码:</td>
<td><input name="vdcode" type="text" id="vdcode" size="10" style="height:16px;width:60px;" class="ip" /></td>
<td><img src='../include/vdimgck.php' width='60px' height='20px' /></td>
<td> <input name="sbbt" type="submit" value="发送留言" style="width:60px;height:22px" /></td>
</tr>
</table>
</div>
</form>
<div class="c"></div>
</div>
<!--begin comment-->
</div>
<!--end-->
</div>
</div>
<!--end main-->
{dede:include file='footer.htm'/}