Location: PHPKode > projects > Uchome and Discuz > template/default/space_top.htm
<!--{eval $_TPL['titles'] = array('Rank');}-->
<!--{template header}-->

<div class="searchbar floatright">
<form method="get" action="cp.php">
	<input name="searchkey" value="" size="15" class="t_input" type="text">
	<input name="searchsubmit" value="Find people" class="submit" type="submit">
	<input type="hidden" name="searchmode" value="1" />
	<input type="hidden" name="ac" value="friend" />
	<input type="hidden" name="op" value="search" />
</form>
</div>
<h2 class="title"><img src="image/icon/show.gif" />Popular</h2>
<div class="tabs_header">
	<ul class="tabs">
		<li$actives[show]><a href="space.php?do=top"><span>Auction</span></a>
		<li$actives[mm]><a href="space.php?do=top&view=mm"><span>Top Pretty</span></a>
		<li$actives[gg]><a href="space.php?do=top&view=gg"><span>Top Males</span></a>
		<li$actives[experience]><a href="space.php?do=top&view=experience"><span>Popular</span></a><li$actives[credit]><a href="space.php?do=top&view=credit"><span>Toppers</span></a>
		<li$actives[credit]><a href="space.php?do=top&view=credit"><span>Leader Board</span></a>
		<li$actives[friendnum]><a href="space.php?do=top&view=friendnum"><span>Top Friends</span></a>
		<li$actives[viewnum]><a href="space.php?do=top&view=viewnum"><span>Top Active</span></a>
		<li$actives[online]><a href="space.php?do=top&view=online"><span>Now Online</span></a>
		<li$actives[updatetime]><a href="space.php?do=top&view=updatetime"><span>Renovator</span></a>
	</ul>
</div>

<script type="text/javascript">
	function checkCredit(id) {
		var maxCredit = parseInt($space[credit]);
		var idval = parseInt($(id).value);
		if(idval > maxCredit) {
			alert("Your Current Score:"+maxCredit+",Please fill the Value less then that");
			return false;
		} else if(idval < 1) {
			alert("should not be less then 1");
			return false;
		}
		return true;
	}
</script>

<div class="c_form">
	
	<!--{if $now_pos >= 0}-->
	<div style="padding-bottom:20px;">
		<h3 class="l_status">Auction: Grand Sale List!</h3>
		<!--{if $_GET[view]=='show'}-->
			<!--{if $space[showcredit]}-->
			Current Credit£º$space[showcredit]£¬Current Ranking <span style="font-size:20px;color:red;">$now_pos</span> £¬Moves!
			<!--{else}-->
			You have not listed yet. list yourself, which will bring more traffic to your space
			<!--{/if}-->
			<br>Bid your self here, The more credit points, the more high ranking , your space will be get more and more traffic,
<b>Once you listed your self point will deducted from your total credit,(the point is non-refundable)¡£
		<!--{else}-->
			<!--{if $_GET[view]=='credit'}-->
			<a href="cp.php?ac=credit">current credit: $space[credit]</a>
			<!--{elseif $_GET[view]=='friendnum'}-->
			<a href="space.php?do=friend">Now number of friends:$space[friendnum]</a>
			<!--{elseif $_GET[view]=='experience'}-->
			Expericance: $space[experience]
			<!--{else}-->
			<a href="space.php">Number of hits: $space[viewnum]</a>
			<!--{/if}-->
			£¬Ranking <span style="font-size:20px;color:red;">$now_pos</span> £¬Moves£¡
		<!--{/if}-->
		<!--{if $cache_mode}-->
		<p>List of top 100. Last update before $cache_time mins¡£</p>
		<!--{/if}-->
	</div>
	<!--{/if}-->
	
	<!--{if $_GET['view']=='show'}-->
	<div style="padding: 0 0 20px 0;">
		<table width="100%">
			<tr><td width="50%" valign="top">
			<div class="l_status"><strong>Let your friend know</strong></div>
			<div class="content">
				<form method="post" action="cp.php?ac=top" onsubmit="return checkCredit('stakecredit');">
				<p>
					Friend user name:<br />
					<input type="text" name="fusername" value="" size="20" class="t_input" /><br />
					Free Auction Point(<span class="gray">Not more then their points:$space[credit]</span>)<br />
					<input type="text" id="stakecredit" name="stakecredit" value="100" size="5" class="t_input" onblur="checkCredit('stakecredit');" /> <input type="submit" name="friend_submit" value="Gifted" class="submit" />
				</p>
				<input type="hidden" name="friendsubmit" value="true" />
				<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
				</form>
			</div>
			</td>
			<td width="50%" valign="top">
			<div class="l_status"><strong>I want to be in list</strong></div>
			<div class="content">
				<form method="post" action="cp.php?ac=top" onsubmit="return checkCredit('showcredit');">
				<p>
					Broadcast(<span class="gray">max 100 character can be view</span>)
					<br />
					<input type="text" name="note" value="" size="35" class="t_input" /><br />
					Points increase to bid(<span class="gray">not more than their points:$space[credit]</span>)<br />
					<input type="text" id="showcredit" name="showcredit" value="100" size="5" class="t_input" onblur="checkCredit('showcredit');" /> <input type="submit" name="show_submit" value="Increase" class="submit" />
				</p>
				<input type="hidden" name="showsubmit" value="true" />
				<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" /></form>
			</div>
			</td>
		</tr></table>
	</div>
	<!--{/if}-->

	<!--{template space_list}-->
	
</div>

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