<div id="wrap" >
<div id="blue_banner"></div>
<div id="space_page">
<div id="ubar" >
<div id="space_avatar" >
<tpl> if $space_array.picture eq '' </tpl>
	<img src="<tpl>$site_url</tpl>/app/space/templates/images/untitled_big.bmp" alt="<tpl> $space_array.username </tpl>" />
<tpl> else </tpl>
	<img src="<tpl>$site_url</tpl>/<tpl> $space_array.picture </tpl>" alt="<tpl> $space_array.username </tpl>" width="200" height="200" />
<tpl> /if </tpl>
</div>
<div id="space_avatar"><tpl> $space_array.spacename </tpl></div>
<ul class="line_list">
<tpl> if $s_login_id eq $space_array.uid </tpl>
<li><img src="<tpl> $template_dir </tpl>/home/images/profile.gif" align="absmiddle"><a href="member.php?action=profile" title="<tpl> $langSpaceEditSpace </tpl>"><tpl> $langSpaceEditSpace </tpl></a></li>
<tpl> /if </tpl>
<tpl> if $s_login_id neq '' && $s_login_id neq $space_array.uid </tpl>
	<tpl> if $is_friend eq '1' </tpl>
		<li><img src="<tpl> $template_dir </tpl>/home/images/friend_add.gif" align="absmiddle"><a href="javascript:;" onclick="if ( confirm( '<tpl> $langSpaceAffirmDeleteFriend </tpl>' ) ) window.location.href='member.php?action=friend_del&id=<tpl> $friend_id </tpl>'"><tpl> $langSpaceDeleteFriend </tpl></a></li>
	<tpl> else </tpl>
		<li><img src="<tpl> $template_dir </tpl>/home/images/friend_add.gif" align="absmiddle"><a href="member.php?action=friend_save_add&txtUsername=<tpl> $space_array.username </tpl>" title="<tpl> $langSpaceIndexFriend1 </tpl> <tpl> $space_array.username </tpl> <tpl> $langSpaceIndexFriend2 </tpl>"><tpl> $langSpaceIndexFriend1 </tpl> <tpl> $space_array.username </tpl> <tpl> $langSpaceIndexFriend2 </tpl></a></li>
	<tpl> /if </tpl>
<tpl> /if </tpl>
</ul>
<h2 style="margin-top:5px;"><tpl> $langSpaceVisitor </tpl></h2>
<div class="mb10">
			<div class="p10"></div>
				<tpl> if !$visitor_array </tpl>
					<div id="novisitorlistdiv" class="c9">
					<tpl> $langSpaceVisitorNone </tpl>
					</div>
				<tpl> else </tpl>
					<tpl> section name=v loop=$visitor_array</tpl>
						<div class="zj" >
							<div class="l50_s_list"><a href="index.php?uid=<tpl> $visitor_array[v].vuid </tpl>" title="<tpl> $visitor_array[v].vusername </tpl>" target="_blank">
							<tpl> if $visitor_array[v].picture_small neq '' </tpl>
								<img src="<tpl>$site_url</tpl>/<tpl> $visitor_array[v].picture_small </tpl>" width="45" height="45">
							<tpl> else </tpl>
								<img src="<tpl>$site_url</tpl>/app/space/templates/images/untitled.bmp" alt="<tpl> $space_array.username </tpl>" width="45" height="45"/>
							<tpl> /if </tpl>
							</a></div>
							<div class="zj2" ><a href="index.php?uid=<tpl> $visitor_array[v].vuid </tpl>" class="sl" title="<tpl> $visitor_array.vusername </tpl>" target="_blank"><tpl> $visitor_array[v].vusername </tpl></a></div>
							<div class="zj3" style="margin-top: -3px; font-size: 10px; font-family: Arial;"><tpl> $visitor_array[v].dateline </tpl></div>
						</div>						
					<tpl> /section </tpl>
				<tpl> /if </tpl>
				<div class="c"></div>
			</div>
</div>

<div id="content">
<!--页头导航-->
<tpl> if $type eq 'home' </tpl>
	<div class="tabs_header">
	<ul class="tabs">
	<li class="myhome <tpl> if $smarty.get.action eq '' </tpl> active <tpl> /if </tpl>"><a href="index.php?uid=<tpl> $space_array.uid </tpl>"><span><tpl> $langSpaceHome </tpl></span></a></li>
	<li class="myblog <tpl> if $smarty.get.action eq 'blog' || $smarty.get.action eq 'blog_view' </tpl> active <tpl> /if </tpl>"><a href="index.php?action=blog&uid=<tpl> $space_array.uid </tpl>"><span><tpl> $langSpaceBlog </tpl></span></a></li>
	<li class="mywall <tpl> if $smarty.get.action eq 'message' </tpl> active <tpl> /if </tpl>"><a href="index.php?action=message&uid=<tpl> $space_array.uid </tpl>"><span><tpl> $langSpaceMessage </tpl></span></a></li>
	<li class="mythread <tpl> if $smarty.get.action eq 'commend' || $smarty.get.action eq 'blog_commend_view' </tpl> active <tpl> /if </tpl>"><a href="index.php?action=commend&uid=<tpl> $space_array.uid </tpl>"><span><tpl> $langSpaceCommend </tpl><h1></h1></span></a></li>
	<li class="myfriend <tpl> if $smarty.get.action eq 'friend' </tpl> active <tpl> /if </tpl>"><a href="index.php?action=friend&uid=<tpl> $space_array.uid </tpl>"><span><tpl> $langSpaceFriend </tpl></span></a></li>
	<tpl> if $s_login_id neq '' && $s_login_id neq $space_array.uid </tpl>
	<li class="myfriend"><a href="index.php?uid=<tpl> $s_login_id </tpl>"><span><tpl> $langMySpace </tpl></span></a></li>
	<li style="margin: 2px 0 0 15px; padding: 0 0 0 21px; height: 23px; background: url(templates/images/add_button.gif) no-repeat 0 bottom; line-height: 23px;"><a href="member.php?action=collection&type=space&id=<tpl> $space_array.uid </tpl>" style="padding: 0 6px 0 0; height: 23px; background: url(templates/images/add_button.gif) no-repeat right bottom; color: #FFF; font-size: 12px;"><tpl> $langCollectionSpace </tpl></a></li>
	<tpl> /if </tpl>
	</ul>
	</div>
<tpl> else </tpl>
	<div class="tabs_header1">
	<ul class="tabs">
	<li class="myhome"><a href="index.php?uid=<tpl> $s_login_id </tpl>"><span><tpl> $langSpaceBackHome </tpl></span></a></li>
	<li class="myhome <tpl> if $smarty.get.action eq 'profile' </tpl> active <tpl> /if </tpl>"><a href="member.php?action=profile"><span><tpl> $langSpaceMember </tpl></span></a></li>
	<li class="myblog <tpl> if $smarty.get.action eq 'blog_list' || $smarty.get.action eq 'blog_add' || $smarty.get.action eq 'blog_edit' </tpl> active <tpl> /if </tpl>"><a href="member.php?action=blog_list"><span><tpl> $langSpaceBlogManage </tpl></span></a></li>
	<li class="myhome <tpl> if $smarty.get.action eq 'category_list' || $smarty.get.action eq 'category_add' </tpl> active <tpl> /if </tpl>" ><a href="member.php?action=category_list"><span><tpl> $langCategoryManage </tpl></span></a></li>
	<li class="mythread <tpl> if $smarty.get.action eq 'blog_commend' || $smarty.get.action eq 'blog_commend_add' || $smarty.get.action eq 'blog_commend_edit' </tpl> active <tpl> /if </tpl>"><a href="member.php?action=blog_commend"><span><tpl> $langSpaceCommendManage </tpl></span></a></li>
	<li class="myfriend <tpl> if $smarty.get.action eq 'friend_list' || $smarty.get.action eq 'friend_add' || $smarty.get.action eq 'friend_invite' </tpl> active <tpl> /if </tpl>"><a href="member.php?action=friend_list"><span><tpl> $langSpaceFriendManage </tpl></span></a></li>
	<li class="myhome <tpl> if $smarty.get.action eq 'collection_list' </tpl> active <tpl> /if </tpl>" ><a href="member.php?action=collection_list"><span><tpl> $langCollectionManage </tpl></span></a></li>
	<li class="myhome <tpl> if $smarty.get.action eq 'templet' </tpl> active <tpl> /if </tpl>"" ><a href="member.php?action=templet"><span><tpl> $langTempletManage </tpl></span></a></li>
	</ul>
	</div>
<tpl> /if </tpl>