<!--
<?php
print <<<EOT
-->
<link type="text/css" rel="stylesheet" href="$webdb[www_url]/images/default/guestbook.css"/>
<div class="guestbook_sort">留言分类:
<!--
EOT;
foreach($Fid_db[name] AS $key=>$value){
$ck=$key==$fid?'class="ck"':'';
print <<<EOT
-->
	<a href="./?fid=$key" {$ck}>$value</a>
<!--
EOT;
}$ck=$fid?'':'class="ck"';
print <<<EOT
-->
	<a href="./" {$ck}>全部留言</a>
</div>
<div class="guestbook_cont">
  <div class="guestbook_head"><span>用户留言</span></div>
  <div class="guestbook_list">
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
  <dl>
    <dt><a href="$webdb[www_url]/member/homepage.php?uid=$rs[uid]" $rs[onclick] target="_blank">
	  <p><img src="$rs[icon]" onerror="this.src='$webdb[www_url]/images/default/noface.gif'"></p>
	  <span>{$rs[username]}</span>
	</a></dt>
	<dd>
	  <div class="guestbook">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
            <tr> 
              <td class="content"><img src="$webdb[www_url]/images/default/faceicon/$rs[ico].gif" width="20" height="20"  >{$rs[content]}</td>
            </tr>
        </table>
	  </div>
	  
	</dd>
	<dd class="guestbook_bottom">
	  <div class="guestbook_other">
	    <p class="time">{$rs[posttime]}</p>
		<a href="mailto:{$rs[email]}" class="mail"></a><a href="javascript:" title="$rs[ip]" class="ip"></a>
		{$rs['_blogurl']} {$rs[oicq]} {$rs[_mobphone]} {$rs['delete']}
	  </div>
	</dd>
  </dl>
<!--
EOT;
}
print <<<EOT
-->
  <div class="showpage">{$showpage}</div>
  </div>
</div>
<style type="text/css">
<!--
.selected {filter:Alpha(opacity=100);border:1px solid #FF9900}
.unselected {filter:Alpha(opacity=50);border:1px solid #EDF8DD}
-->
</style>
<script>
var prevIcon;
function icon(num){
num.className="selected";
if(typeof(prevIcon)!="undefined"){
	prevIcon.className="unselected";
}else{
	document.all.firstface.className="unselected";
}
if(num.className=="unselected"){
	num.className="selected";
}
prevIcon=num;
document.all.face.value=num.firstChild.id;
}
</script>
<div class="my_guestbook">
  <div class="my_head"><span>我要留言</span></div>
<form name="form1" method="post" action="?$timestamp"><ul>
  <li>
    <span style="padding-left:39px;">昵称： <input type="text" name="postdb[username]" value="$lfjid"></span>
	<span style="padding-left:10px;">手机号码：<input type="text" name="postdb[mobphone]" size="11"></span>
	<span>QQ: <input type="text" name="postdb[oicq]" size="11"></span>
	<!-- <span>个人站网址：<input type="text" name="postdb[weburl]" size="35"></span> -->
  </li>
  <li>
    <span style="padding-left:28px;">微信号：<input type="text" name="postdb[blogurl]" size="35"></span>
	<span>联系Email： <input type="text" name="postdb[email]"></span>
    
  </li>
<!--
EOT;
if($webdb[yzImgGuestBook]&&!$web_admin){
print <<<EOT
-->
<li><span style="padding-left:29px;">
  验证码：<input type="text" name="yzimg" size="8">
  <em>
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write('<img border="0" id="yz_Img" name="imageField" onclick="this.src=this.src+Math.random();" src="$webdb[www_url]/do/yzimg.php?'+Math.random()+'">');
//-->
</SCRIPT>
  </em>
</span></li>
<!--
EOT;
}
print <<<EOT
-->
<li class="face_icon">
  <span style="padding-left:38px;">表情：
  <em class="selected" onClick="icon(this)" id="firstface" style="cursor:hand"><img src="$webdb[www_url]/images/default/faceicon/1.gif" width="20" height="20" id="1"></em>
<!--
EOT;
for($i=2;$i<15;$i++){
print <<<EOT
-->
  <em class="unselected" onClick="icon(this)" style="cursor:hand"><img src="$webdb[www_url]/images/default/faceicon/$i.gif" width="20" height="20" id="$i"></em>
<!--
EOT;
}
print <<<EOT
-->
  </span><span><input name="face" type="hidden" value="1"></span>
</li>

<li class="my_textarea">
  <span><em>留言内容: </em><textarea name="postdb[content]" cols="80" rows="7"></textarea></span>
</li>
<li class="my_button">
    <span><input type="submit" name="Submit" value="提 交"></span>
    <input type="hidden" name="step" value="post">
    <input type="hidden" name="fid" value="$fid">
</li>
</ul></form>
</div>
<!--
EOT;
?>
-->
