    <div class="content">
         <div class="main">    
<div class="box message">
<h3>网友留言</h3>
	    <div class="custom_meg" id="cscms_book">
<?php
	global $db;
	$sql="select * from ".Getdbname('gbook')." where CS_Usera='".$cscms_name."' order by cs_id desc";
		$Arr=getuserpage($sql,"20",$op,$cscms_uid,$pages);//sql,每页显示条数
		$result=$db->query($Arr[2]);
                $num=$db->num_rows($result);
		if($result){
			while ($row = $db ->fetch_array($result)){
                        $cs_uid=getuser('uid',$row['CS_Userb']);
?>
                <dl class="msg_list">
                <dt><a target="_blank" href="<?php echo userlink('index',$cs_uid)?>"><img width="48" height="48" src="<?php echo getuser('pic',$row['CS_Userb'])?>" alt="<?php echo $row['CS_Userb']?>"></a></dt>
                <dd>
                    <div class="msg_tit"><span class="lt"><a href="<?php echo userlink('index',$cs_uid)?>"><?php echo $row['CS_Userb']?></a><em><?php echo $row["CS_AddTime"]?></em></span></div>
                    <div class="msg_view"><br><?php echo facehtml(stripslashes(html_entity_decode($row['CS_Neir'])))?></div>
                </dd>
                </dl>
<?php
			}
		}
?>
	    </div>
		<div class="page_list"><?php if($num>0) echo $Arr[0];?></div>
</div>       
<div class="box message">
    <h4>发表留言</h4>
    <div class="face_tit">
    <div class="login">
<?php if(isset($_COOKIE["cs_name"])){ ?>
             欢迎您：&nbsp;&nbsp;<?php echo $_COOKIE["cs_name"]?>&nbsp;&nbsp;<input id="username" name="username" type="hidden" value="csdjcms">
<?php }else{ ?>
             通行证：<input type="text" size="12" name="username" id="username" value="">密码：<input type="text" size="12" id="userpass" name="userpass" value="">
<?php } ?>
    </div>
    <div class="stick_face"><a href="###" onclick="faceadd('facelist');"><font id="face">插入表情</font></a></div>
    <div class="face_all gb_face" style="display:none" id="facelist">
<?php
    	for($i=1;$i<=30;$i++){
              echo "<img src=\"http://".CS_WebUrl.CS_WebPath."public/faces/".$i.".gif\" onclick=\"insertsmilie('[em:".$i."]')\" />";
        }
?>
    </div>
    </div>
    <div class="msg_vel">
    <textarea name="CS_Content" rows="8" id="CS_Content"></textarea>
    </div><input id="CS_Usera" name="CS_Usera" type="hidden" value="<?php echo $cscms_name?>"><input id="CS_Userb" name="CS_Userb" type="hidden" value="<?php echo $_COOKIE["cs_name"]?>">
    <div class="cl"></div>
    <div class="sub">
    <button id="Feedback" onClick="Gbookadd()" type="button">发表留言</button>
    &nbsp;&nbsp;<a href="http://<?php echo CS_WebUrl.CS_WebPath?>user/reg.php" target="_blank">我要注册</a>&nbsp;&nbsp;请遵守国家法律法规，发布广告一律删号。</div>
</div>
                        
                        
    </div>
              
    <div class="right">
            
<div class="rig user">  
	<h3><a href="javascript:CopyUrl('<?php echo userlink('index',$cscms_uid)?>','复制地址成功,您可以发给你的好友分享!');">推荐</a><span><?php echo userlink('index',$cscms_uid)?></span></h3>
	<div class="user_info">
		<p class="user_pic"><img alt="用户头像" src="<?php echo $cscms_logo?>"  onerror="javascript:this.src='images/none.gif'" /></p>
		<ul class="people">
            <li>
            <div class="number"><?php echo $cscms_hycount?></div>
            <a href="<?php echo userlink('hy',$cscms_uid)?>" target="_blank">关注</a>
            </li>
            <li>
            <div class="number"><?php echo $cscms_fscount?></div>
            <a href="<?php echo userlink('fs',$cscms_uid)?>" target="_blank">粉丝</a>
            </li>
            <li class="dele">
            <div class="number"><?php echo $cscms_hits?></div>
            <a href="javascript:;">人气</a>
            </li>
    </ul>
    <div class="about" id="about"><a href="javascript:;" onclick="AddFriend('<?php echo $cscms_name?>');" class="see">+ 关注</a><a href="<?php echo userlink('gbook',$cscms_uid)?>" class="rep">留言</a></div>
		<h2><?php echo $cscms_nichen?></h2>
		<div class="medal">
		    <ul><li><img src="images/special/<?php echo $vip?>.gif" border="0" title="VIP会员"></li><li><img src="images/special/<?php echo $realname?>.gif" border="0" title="头像认证"></li><li><img src="images/special/<?php echo $musician?>.gif" border="0" title="音乐人"></li><li><img src="images/special/<?php echo $recommend?>.gif" border="0" title="推荐歌手"></li><li><img src="images/special/<?php echo $star?>.gif" border="0" title="明星会员"></li></ul>
		    <ul></ul>
		    <p class="user_mode">
			    会员ID： <?php echo $cscms_uid?><br />
			    来自：<?php echo $cscms_city?><br />
                            当前：<?php echo $cscms_zx?><br />
			    注册时间：<?php echo $cscms_addtime?><br />
			    上次登录：<?php echo $cscms_logtime?>
            </p>
		</div>
	</div>
</div>
        <div class="rig intro">
	        <h3><a href="javascript:;">更多&gt;&gt;</a> 个人介绍</h3>
	        <p><?php echo stripslashes(html_entity_decode($cscms_qianm))?></p>
        </div>
                        
    </div>
              
    </div>