<div class="content">
  
    <div class="main">
        <div class="box lyc_list">
	        <h3><a href="http://<?php echo CS_WebUrl.CS_WebPath?>user/space.php?ac=news&op=add">发布文章</a> 文章</h3>
	        <div class="pq_trends">
                <div class="line_blue"></div>
<?php
global $db;
	$sql="select * from ".Getdbname('news')." where CS_User='".$cscms_name."' and cs_yid=0 order by cs_id desc";
		$Arr=getuserpage($sql,"10",$op,$cscms_uid,$pages);//sql,每页显示条数
		$result=$db->query($Arr[2]);
                $num=$db->num_rows($result);
		if($result){
			while ($row = $db ->fetch_array($result)){
                $plnum= $db -> num_rows($db -> query("select * from  ".Getdbname('pl')."  where CS_DID=".$row['CS_ID']." and CS_SID=2"));
                $dataall=explode("-",GetTime($row["CS_AddTime"]));
$tags = 'table|td|th|tr|i|b|u|strong|img|p|br|div|strong|em|ul|ol|li|dl|dd|dt|a';
$StrArr=explode('|',$tags);
$neir=$row['CS_Content'];
for($i=0;$i<count($StrArr);$i++){
    $neir=str_replace($StrArr[$i],'',$neir);
}
?>
        <div class="qbox pq_wen">
            <div class="tr_time"><em><?php echo $dataall[0]?></em> <?php echo $dataall[1]?>/<?php echo $dataall[2]?></div>
            <div class="tr_main">
            
                <h3 class="tr_main_tit"><a href="http://<?php echo CS_WebUrl.LinkUrl('show','news','id',$row['CS_CID'],$row['CS_ID'])?>"><?php echo $row["CS_Name"]?></a></h3>
                    
                <div class="tr_info">
                    <table>
                        <tr>
                            <td>
                                <?php echo stripslashes(html_entity_decode(h(cnsubstr($neir,100))))?>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="tr_do">
                    <span class="tr_all"><a href="http://<?php echo CS_WebUrl.LinkUrl('show','news','id',$row['CS_CID'],$row['CS_ID'])?>">阅读全文</a></span>
                    <span class="tr_commt"><a href="http://<?php echo CS_WebUrl.LinkUrl('show','news','id',$row['CS_CID'],$row['CS_ID'])?>">评论:<?php echo $plnum?></a>&nbsp;&nbsp;|&nbsp;&nbsp;浏览:<span><?php echo $row['CS_Hits']?></span></span>
                </div>
            </div>
        </div>
<?php
			}
		}
?>
			<div class="page_list"><?php echo $Arr[0];?></div>
            </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>