Location: PHPKode > projects > Uchome and Discuz > template/default/network.htm
<!--{eval $_TPL['nosidebar']=1;}-->
<!--{template header}-->
<div id="network">

<script>
function setintro(type) {
	var intro = '';
	var bPosition = '';
	if(type == 'doing') {
		intro = 'Let other know what are you doing/Feeling/Status';
		bPosition = '0';
	} else if(type == 'mtag') {
		intro = 'Create own world, photo & file sharing, Events  Discuss hot topics, share interests and more...';
		bPosition = '175px';
	} else if(type == 'pic') {
		intro = 'Upload photos and share lifes special moments';
		bPosition = '55px';
	} else if(type == 'app') {
		intro = 'Dare to Play, all new variety of apps and try to beat your friends see who is the real MAAFIA';
		bPosition = '118px';
	} else {
		intro = 'What are you waiting register now, Bet you wont be feel like other site, Coz Fun only matter here ';
		bPosition = '0';
	}
	$('guest_intro').innerHTML = intro + '......';
	$('guest_intro').style.backgroundPosition = bPosition + ' 100%'
}
function scrollPic(e, LN, Width, Price, Speed) {
	id = e.id;
	if(LN == 'Last'){ scrollNum = Width; } else if(LN == 'Next'){ scrollNum = 0 - Width; }
	scrollStart = parseInt(e.style.marginLeft, 10);
	scrollEnd = parseInt(e.style.marginLeft, 10) + scrollNum;
	
	MaxIndex = (e.getElementsByTagName('li').length / Price).toFixed(0);
	sPicMaxScroll = 0 - Width * MaxIndex;

	if(scrollStart == 0 && scrollEnd == Width){
		scrollEnd = -1806;
		e.style.marginLeft = parseInt(e.style.marginLeft, 10) - Speed + 'px';
	} else if(scrollStart == sPicMaxScroll + Width && scrollEnd == sPicMaxScroll){
		scrollEnd = 0;
		e.style.marginLeft = parseInt(e.style.marginLeft, 10) + Speed + 'px';
	}
	scrollShowPic = setInterval(scrollShow, 1);
	
	function scrollShow() {
		if(scrollStart > scrollEnd) {
			if(parseInt(e.style.marginLeft, 10) > scrollEnd) {
				$(id + '_last').onclick = function(){ return false; };
				$(id + '_next').onclick = function(){ return false; };
				e.style.marginLeft = parseInt(e.style.marginLeft, 10) - Speed + 'px';
			} else {
				clearInterval(scrollShowPic);
				$(id + '_last').onclick = function(){ scrollPic(e, 'Last', Width, Price, Speed);return false; };
				$(id + '_next').onclick = function(){ scrollPic(e, 'Next', Width, Price, Speed);return false; };
			}
		} else {
			if(parseInt(e.style.marginLeft, 10) < scrollEnd) {
				$(id + '_last').onclick = function(){ return false; };
				$(id + '_next').onclick = function(){ return false; };
				e.style.marginLeft = parseInt(e.style.marginLeft, 10) + Speed + 'px';
			} else {
				clearInterval(scrollShowPic);
				$(id + '_last').onclick = function(){ scrollPic(e, 'Last', Width, Price, Speed);return false; };
				$(id + '_next').onclick = function(){ scrollPic(e, 'Next', Width, Price, Speed);return false; };
			}					
		}
	}
}
function scrollShowNav(e, Width, Price, Speed) {
	id = e.id;
	$(id + '_last').onclick = function(){ scrollPic(e, 'Last', Width, Price, Speed);return false; };
	$(id + '_next').onclick = function(){ scrollPic(e, 'Next', Width, Price, Speed);return false; };
	
}
function getUserTip(obj) {
	var tipBox = $('usertip_box');
	tipBox.childNodes[0].innerHTML = '<strong>' + obj.rel + ':<\/strong> ' + obj.rev + '...';
	
	var showLeft;
	if(obj.parentNode.offsetLeft > 730) {
		showLeft = $('showuser').offsetLeft + obj.parentNode.offsetLeft - 148;
		tipBox.childNodes[0].style.right = 0;
	} else {
		tipBox.childNodes[0].style.right = 'auto';
		showLeft = $('showuser').offsetLeft + obj.parentNode.offsetLeft;
	}
	tipBox.style.left = showLeft + 'px';
	
	var showTop; 
	if(obj.className == 'uonline') {
		showTop = $('showuser').offsetTop + obj.parentNode.offsetTop - tipBox.childNodes[0].clientHeight;
	} else {
		showTop = $('showuser').offsetTop + obj.parentNode.offsetTop + 48;
	}
	tipBox.style.top = showTop + 'px';
	
	tipBox.style.visibility = 'visible';
}
</script>

<!--{if empty($_SGLOBAL[supe_uid])}-->
<div id="guestbar" class="nbox">
	<div class="nbox_c">
		<p id="guest_intro">What are you waiting register now, Bet you wont be feel like other site, Coz Fun only matter here.</p>
		<a href="do.php?ac=$_SCONFIG[register_action]" id="regbutton" onmouseover="setintro('register');">Register Now</a>
		<p id="guest_app">
			<a href="javascript:;" class="appdoing" onmouseover="setintro('doing');">Doing</a>
			<a href="javascript:;" class="appphotos" onmouseover="setintro('pic');">Photos</a>
			<a href="javascript:;" class="appgames" onmouseover="setintro('app');">Game/Apps</a>
			<a href="javascript:;" class="appgroups" onmouseover="setintro('mtag');">Groups</a>
		</p>
	</div>	
	<div class="nbox_s side_rbox" id="nlogin_box">
		<h3 class="ntitle">Existing user? Login here</h3>
		<div class="side_rbox_c">
			<form name="loginform" action="do.php?ac=$_SCONFIG[login_action]&$url_plus&ref" method="post">
				<p><label for="username">Username</label> <input type="text" name="username" id="username" class="t_input" value="$membername" /></p>
				<p><label for="password">Password</label>  ~  <a href="do.php?ac=lostpasswd">I Forgot help?</a>
					<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" /> <input type="password" name="password" id="password" class="t_input" value="$password" /></p>
				<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" $cookiecheck style="margin-bottom: -2px;" /><label for="cookietime">Remember me</label>  <input type="hidden" name="refer" value="space.php?do=home" />
					<input type="submit" id="loginsubmit" name="loginsubmit" value="Login" class="submit" />				</p>
			</form>
		</div>
	</div>
</div>
<!--{/if}-->

<div class="nbox">
	<div class="nbox_c">
			<h2 class="ntitle"><span class="r_option"><a href="space.php?do=blog&view=all">More Blog</a></span> Blog &raquo;</h2>
			<ul class="bloglist">
			<!--{loop $bloglist $key $value}-->
				<li <!--{if $key%2==1}-->class="list_r"<!--{/if}-->>
					<h3><a href="space.php?uid=$value[uid]&do=blog&id=$value[blogid]" target="_blank">$value[subject]</a></h3>
					<div class="d_avatar avatar48"><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}" target="_blank"><!--{avatar($value[uid],small)}--></a></div>
					<p class="message">$value[message] ...</p>
					<p class="nhot"><a href="space.php?uid=$value[uid]&do=blog&id=$value[blogid]">$value[hot] Recommend</a></p>
					<p class="gray">By <a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a> <!--{date('d-m H:i',$value[dateline],1)}--></p>
				</li>
			<!--{/loop}-->
			</ul>
	</div>
	<div class="nbox_s side_rbox side_rbox_w">
		<h2 class="ntitle"><span class="r_option"><a href="space.php?do=doing&view=all">more doings</a></span> Doing &raquo;</h2>
		<div class="side_rbox_c">
			<ul class="side_rbox_c doinglist">
				<!--{loop $dolist $value}-->
				<li>
					<p>
						<a href="space.php?uid=$value[uid]&do=doing&doid=$value[doid]" target="_blank" class="gray r_option dot" style="margin:0;background-position-y: 0;"><!--{date('H:i',$value[dateline],1)}--></a>
						<a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}" class="s_avatar"><!--{avatar($value[uid],small)}--></a>
						<a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a>
					</p>
					<p class="message" title="$value[title]">$value[message]</p>
				</li>
			<!--{/loop}-->
			</ul>
		</div>
	</div>
</div>



<div class="nbox" id="photolist">
	<h2 class="ntitle">
		<a href="space.php?do=album&view=all" class="r_option">More photos</a>
		Photo &raquo;
		</h2>
	<div id="p_control">
		<a href="javascript:;" id="spics_last">Prev</a>
		<a href="javascript:;" id="spics_next">Next</a>
		<ul id="p_control_pages">
			<li>Page 1</li>
			<li>Page 2</li>
			<li>Page 3</li>
			<li>Page 4</li>
		</li>
	</div>
	<div id="spics_wrap">
	<ul id="spics" style="margin-left: 0;">
	<!--{loop $piclist $key $value}-->
		<li class="spic_$key">
			<div class="spic_img"><a href="space.php?uid={$value[uid]}&do=album&picid={$value[picid]}" target="_blank"><strong>$value[hot]</strong><img src="$value[pic]" alt="$value[albumname]" /></a></div>
			<p><a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a></p>
			<p><!--{date('d-m H:i',$value[dateline],1)}--></p>
		</li>
	<!--{/loop}-->
	</ul>
	</div>
</div>
<script type="text/javascript">
scrollShowNav($('spics'), 903, 7, 43);
</script>

<div id="searchbar" class="nbox s_clear">
	<div class="floatleft">
		<form method="get" action="cp.php">
			<input name="searchkey" value="" size="15" class="t_input" type="text" style="padding:5px;">
			<input name="searchsubmit" value="Find people" class="submit" type="submit"> &nbsp;
				Search: <a href="cp.php?ac=friend&op=search&view=sex" target="_blank">Female/Male Friend</a><span class="pipe">|</span>
				<a href="cp.php?ac=friend&op=search&view=reside" target="_blank">City</a><span class="pipe">|</span>
				<a href="cp.php?ac=friend&op=search&view=birth" target="_blank">Fellow</a><span class="pipe">|</span>
				<a href="cp.php?ac=friend&op=search&view=birthyear" target="_blank">Zodiac Signs Friend</a><span class="pipe">|</span>
				<a href="cp.php?ac=friend&op=search&view=edu" target="_blank">Classmate</a><span class="pipe">|</span>
				<a href="cp.php?ac=friend&op=search&view=work" target="_blank">Colleague</a><span class="pipe">|</span>
				<a href="space.php?do=top&view=online" target="_blank">Online Now($olcount)</a>
			<input type="hidden" name="searchmode" value="1" />
			<input type="hidden" name="ac" value="friend" />
			<input type="hidden" name="op" value="search" />
		</form>
	</div>
	<div class="floatright">
		<form method="get" action="space.php">
			<input name="searchkey" value="" size="15" class="t_input" type="text" style="padding:5px;">
			<select name="do">
			<option value="event">Event</option>
			<option value="blog">Blog</option>
			<option value="album">Album</option>
			<option value="thread">Discussion</option>
			<option value="poll">Poll</option>
			</select>
			<input name="searchsubmit" value="Search" class="submit" type="submit">
			<input type="hidden" name="view" value="all" />
			<input type="hidden" name="orderby" value="dateline" />
		</form>
	</div>
</div>

<div id="showuser" class="nbox">
	<div id="user_recomm">
		<h2>Top Spcaes</h2>
		<!--{loop $star $value}-->
		<div class="s_avatar"><a href="space.php?uid=$value[uid]" target="_blank"><!--{avatar($value[uid],middle)}--></a></div>
		<div class="s_cnts">
			<h3><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}">{$_SN[$value[uid]]}</a></h3>
			<p>Hits: $value[viewnum]</p>
			<p>Points: $value[credit]</p>
			<hr />
			<p>Friends:$value[friendnum]</p>
			<p>Last Update:<!--{date('H:i',$value[updatetime],1)}--></p>
		</div>
		<!--{/loop}-->
	</div>
	<div id="user_wall" onmouseout="javascript:$('usertip_box').style.visibility = 'hidden';">
		<div id="user_pay" class="s_clear">
			<h2><a href="space.php?do=top">Toppers</a></h2>
			<ul>
			<!--{loop $showlist $value}-->
				<li><a href="space.php?uid=$value[uid]" target="_blank" rel="{$_SN[$value[uid]]}" rev="$value[note]" onmouseover="getUserTip(this)"><!--{avatar($value[uid],small)}--></a></li>
			<!--{/loop}-->
			</ul>
			<p><a href="space.php?do=top">I wanna Topper</a></p>
		</div>
		<div id="user_online" class="s_clear">
			<h2><a href="space.php?do=top&view=online">Now Online</a></h2>
			<ul>
			<!--{loop $onlinelist $value}-->
				<li><a href="space.php?uid=$value[uid]" target="_blank" rel="{$_SN[$value[uid]]}" rev="$value[note]" class="uonline" onmouseover="getUserTip(this)"><!--{avatar($value[uid],small)}--></a></li>
			<!--{/loop}-->
			</ul>
		</div>
	</div>
</div>
<div id="usertip_box"><div></div></div>

<div class="nbox">
	<div class="nbox_c">
		<h2 class="ntitle"><span class="r_option"><a href="space.php?do=thread&view=all">More Topics</a></span>Discussion &raquo;</h2>
		<div class="tlist">
			<table cellpadding="0" cellspacing="1">
				<tbody>
				<!--{loop $threadlist $key $value}-->
					<tr <!--{if $key%2==1}-->class="color_row"<!--{/if}-->>
						<td class="ttopic"><div class="ttop"><div><span>$value[hot]</span></div></div><a href="space.php?uid=$value[uid]&do=thread&id=$value[tid]" target="_blank">$value[subject]</a></td>
						<td class="tuser"><a href="space.php?uid=$value[uid]" target="_blank"><!--{avatar($value[uid],small)}--></a> <a href="space.php?uid=$value[uid]" target="_blank">{$_SN[$value[uid]]}</a></td>
						<td class="tgp"><a href="space.php?do=mtag&tagid=$value[tagid]">$value[tagname]</a></td>
					</tr>
				<!--{/loop}-->
				</tbody>
			</table>
		</div>
	</div>
	<div id="npoll" class="nbox_s side_rbox side_rbox_w">
		<div class="side_rbox_c">
			<h2 class="ntitle"><span class="r_option"><a href="space.php?do=poll">More Polls</a></span>Poll &raquo;</h2>
			<ul>
			<!--{loop $polllist $key $value}-->
				<li class="poll_$key"><a href="space.php?uid=$value[uid]&do=poll&pid=$value[pid]" target="_blank">$value[subject]</a><!--{if $key == 0}--><p><a href="">Have $value[voternum] Voter</a></p><!--{/if}--></li>
			<!--{/loop}-->
			</ul>
		</div>
	</div>
</div>

<!--{if $myappcount}-->
<div class="nbox">
	<div class="nbox_c" style="border: none;">
		<ul class="applist">
		<!--{loop $myapplist $value}-->
			<li>
				<p class="aimg"><a href="userapp.php?id=$value[appid]" target="_blank"><img src="http://appicon.manyou.com/logos/$value[appid]" alt="$value[appname]" /></a></p>
				<p><a href="userapp.php?id=$value[appid]" target="_blank">$value[appname]</a></p>
			</li>
		<!--{/loop}-->
		</ul>
	</div>
	<div class="susb">
		<div class="ye_r_t"><div class="ye_l_t"><div class="ye_r_b"><div class="ye_l_b">
			<div class="appmo">
				<p>Total <span>$myappcount</span> Apps/Game/Quiz</p>
				<p class="appmobutton"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist">View More Apps</a></p>
			</div>
		</div></div></div></div>	
	</div>
</div>
<!--{/if}-->

<div class="nbox">
	<div class="nbox_c">
	<h2 class="ntitle"><span class="r_option"><a href="space.php?do=event&view=recommend">More Events</a></span> Events &raquo; 
	<!--{loop $_SGLOBAL[eventclass] $value}-->
		&nbsp; <a href="space.php?do=event&view=all&type=going&classid=$value[classid]">$value[classname]</a></li>
	<!--{/loop}-->
	</h2>
		<ul class="elist">
		<!--{loop $eventlist $value}-->
			<li>
				<h3><a href="space.php?do=event&id=$value[eventid]" target="_blank">$value[title]</a></h3>
				<p class="eimage"><a href="space.php?do=event&id=$value[eventid]" target="_blank"><img src="$value[pic]" alt=""/></a></p>
				<p><span class="gray">Time:</span> <!--{date('n-j H:i',$value[starttime])}--> - <!--{date('n-j H:i',$value[endtime])}--></p>
				<p><span class="gray">Loaction:</span> $value[province] $value[city] $value[location]</p>
				<p><span class="gray">Organizer</span> <a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a></p>
				<p class="egz">$value[membernum] Attending<span class="pipe">|</span>$value[follownum] Peoples</p>
			</li>
		<!--{/loop}-->
		</ul>
	</div>
	<div id="nshare" class="nbox_s side_rbox side_rbox_w">
		<h2 class="ntitle"><span class="r_option"><a href="space.php?do=share&view=all">More Shares</a></span>Share &raquo;</h2>
		<div class="side_rbox_c">
			<ul>
			<!--{loop $sharelist $value}-->
				<li><a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a> <em><a href="space.php?uid=$value[uid]&do=share&view=me">$value[title_template]</a></em></li>
			<!--{/loop}-->
			</ul>
		</div>
		</div>
	</div>

	<div class="footerbar">
		<div class="fbtop"></div>
		<div class="nbox_c">
			<div class="foobox">
				<div class="fbox">
					<h2 class="ntitle">Popular</h2>
					<ul>
						<li><a href="space.php?do=doing">Doing</a></li>
						<li><a href="space.php?do=blog">Blog</a></li>
						<li><a href="space.php?do=album">Album</a></li>
						<li><a href="space.php?do=mtag">Group</a></li>
						<li><a href="space.php?do=poll">Poll</a></li>
						<li><a href="space.php?do=event">Event</a></li>
						<li><a href="space.php?do=share">Share</a></li>
					</ul>
				</div>
				<div class="fbox">
					<h2 class="ntitle">Apps</h2>
					<ul>
					<!--{if $myappcount}-->
					<!--{loop $myapplist $value}-->
						<li><a href="userapp.php?id=$value[appid]">$value[appname]</a></li>
					<!--{/loop}-->
						<li><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="alink">²é¿´È«²¿ $myappcount ¸öÓ¦ÓÃ</a></li>
					<!--{else}-->
						<li><a href="#">»¹Ã»ÓÐÓ¦ÓÃ</a></li>
					<!--{/if}-->
					</ul>
				</div>
				<div class="fbox">
					<h2 class="ntitle">Discover</h2>
					<ul>
						<li><a href="space.php?do=blog&view=all">Member's Popular Blog</a></li>
						<li><a href="space.php?do=album&view=all">Members Album</a></li>
						<li><a href="space.php?do=thread&view=all">Discussions in Demand</a></li>
					</ul>
				</div>
			</div>
		</div>
		<div class="nbox_s">
			<h2 class="ntitle">Invite</h2>
			<ul>
				<li><a href="cp.php?ac=invite">Invite Friends, Get higher Ranking</a></li>
				<li><a href="cp.php?ac=invite">QQ Friends</a></li>
				<li><a href="cp.php?ac=invite">163 Email</a></li>
				<li><a href="cp.php?ac=invite">Sina Email</a></li>
				<li><a href="cp.php?ac=invite">Sohu Email</a></li>
				<li><a href="cp.php?ac=invite">Google Gmail</a></li>
				<li><a href="cp.php?ac=invite">MSN Buddies</a></li>
				<li><a href="cp.php?ac=invite">Yahoo! Email</a></li>
				<li><a href="cp.php?ac=invite" class="alink">Many More¡­¡­</a></li>
			</ul>
		</div>
		<div class="fbbottom"></div>
	</div>

</div>

<!--{template footer}-->
Return current item: Uchome and Discuz