<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>

<body>
<div id="container">
	<!--头部开始-->
	<?php include(dirname(__FILE__)."/member_head.htm");?>
    <!--头部结束-->
    <!--中间开始-->
    <div id="spacemain">
    	<div id="space_main">
        	<?php include(dirname(__FILE__)."/member_left.htm");?>
        	<!--左边结束-->
            
            <div id="space_right"><!--右边开始-->
            	<div class="space_notice"><!--空间公告-->
                	<div class="space_title01">
                    	<ul>
                        <li>空间公告</li>
                        </ul>
                    </div>
                    <div class="space_notice_text"><?php echo $news?>
                    </div>
                </div>
                <div class="space_notice"><!--空间公告-->
                	<div class="space_title02">
                    	<ul>
                        <li>最新文档</li>
                        </ul>
                    </div>
                    <div class="space_notice_text">
                    <?php 
                        $squery = "
                           Select arc.*,tp.typedir,tp.typename
                           From `#@__full_search` arc left join #@__arctype tp on tp.ID = arc.typeid
                           where arc.mid='$userNumID' order by arc.aid desc limit 0,6;
                        ";
                        $dsql->SetQuery($squery);
                        $dsql->Execute();
                        while($row = $dsql->GetArray()){
                            $row['arcurl'] = $row['url'];
                            if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
                            if($cfg_multi_site=='是'){
                            if(!eregi("^http://",$row['litpic'])){
                                $row['litpic'] = $cfg_mainsite.$row['litpic'];
                            }
                        }
                        ?>
                    	<dl>
                        <dd class="space_biaoti"><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a> </dd>
                        <dd class="space_dianji">点击:<?php echo $row['click']?></dd>
                        <dd class="clear">
                        </dd>
                        </dl>
                        <?php 
                        }
                        ?>
                        <div class="space_news_text"><a href="member_archives.php?uid=<?php echo $uid?>">&lt;&lt; 浏览该用户所有文档 &gt;&gt;</a>
                        </div>
                    </div>
                </div>
            </div><!--右边结束-->
            <div class="clear">
            </div>
        </div>
    </div>
    <!--中间结束-->
    <!--底部开始-->
	<?php include(dirname(__FILE__)."/member_footer.htm");?>
    <!--底部结束-->
    
</div>
</body>
</html>
