guestbook.htm
3.25 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
{dede:include file='header.htm'/}
<div class="wrapper mT10">
<div class="west">
{dede:include file='side_icon.htm' /}
{dede:include file='side_news.htm' /}
{dede:include file='side_visitor.htm' /}
</div>
<div class="east">
<dl class="border">
<dt class="caption"><strong>留言</strong></dt>
<dd class="body pB10"> {dede:datalist}
<div class="allList pTB10 dashed">
<div class="img"> <a href="index.php?uid={dede:field.uname/}&action=infos" title="{dede:field.uname/}" target="_blank">
<?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'].'的头像" />';
} ?> </a> </div>
<div class="txt">
<p class="p1 mB5">
<h5 class="fLeft"><a href='index.php?uid={dede:field.uname/}'>{dede:field.uname/}</a>:</h5>
<?php
if($_vars['userid']==$cfg_ml->M_LoginID){
echo "<span style='float:right'><a href='index.php?action=guestbookdel&aid=".$fields['aid']."&uid=".$_vars['userid']."&mid=".$fields['mid']."'>删除</a></span>";
}
?>
<span class="aGray fRight">{dede:field.dtime function="MyDate('Y-m-d H:i',@me)" /}</span>
</p>
<p class="p2 lh22 f14 aBlack clear">{dede:field.msg function="Text2Html(@me)" /}</p>
</div>
<div class="clearfix"></div>
</div>
{/dede:datalist}
<div class="fRight mTB10 pd10">{dede:pagelist/}</div>
<div class="clearfix"></div>
</dd>
</dl>
<dl class="border mT10">
<dt class="caption"><strong>给我留言</strong></dt>
<dd class="body pB10">
<form action="index.php" name="form1" method="post" class="f14">
<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/}" />
<label>标题:</label>
<input name="title" type="text" id="title" class="ip" style="width:250px;height:15px;" />
<textarea name="msg" id="msg" style="width:98%; height:120px;" class="clear mB10 text"></textarea>
<button class="fRight button buttonBlue2" type="submit">提交</button>
<label>昵称:</label>
<input name="uname" type="text" id="uname" value="<?php if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!='') echo $cfg_ml->M_LoginID; ?>" class="text" style="width:100px;" />
<label>验证码:</label>
<input name="vdcode" type="text" class="text" id="vdcode" style="width:50px;text-transform:uppercase;" />
<img src='../include/vdimgck.php' width='50' height='20' align="absmiddle" /><a href="resetpassword.php" class="mL10 mR5">找回密码</a><a href="../member/index_do.php?fmdo=user&dopost=regnew" title="注册">注册</a>
</form>
<p class="mp10 textCenter aGray">以上网友发言只代表其个人观点,不代表本站的观点或立场。</p>
</dd>
</dl>
</div>
</div>
{dede:include file='footer.htm'/}
</body>
</html>