Location: PHPKode > projects > Uchome and Discuz > template/default/space_album_list.htm
<!--{eval $_TPL['titles'] = array('Albums');}-->
<!--{eval $friendsname = array(1 => 'Only friends',2 => 'Selected People',3 => 'Only Me',4 => 'Password protected');}-->

<!--{template header}-->

<!--{if !empty($_SGLOBAL[inajax])}-->
	<div id="space_photo">
		<h3 class="feed_header">
			<a href="cp.php?ac=upload" class="r_option" target="_blank">Upload pictures</a>
			 Albums(Total $count )</h3>
		<!--{if $count}-->
		<table cellspacing="4" cellpadding="4" width="100%">
		<tr>
			<!--{loop $list $key $value}-->
			<td width="85" align="center"><a href="space.php?uid=$space[uid]&do=album&id=$value[albumid]" target="_blank"><img src="$value[pic]" alt="$value[albumname]" width="70" /></a></td>
			<td width="165">
				<h6><a href="space.php?uid=$space[uid]&do=album&id=$value[albumid]" target="_blank" title="$value[albumname]">$value[albumname]</a></h6>
				<p class="gray">$value[picnum] Images</p>
				<p class="gray">Updated  <!--{date('m-d',$value[dateline],1)}--></p>
			</td>
			<!--{if $key%2==1}--></tr><tr><!--{/if}-->
			<!--{/loop}-->
		</tr>
		</table>
		<!--{if $pricount}-->
		<div class="c_form">This page has total  $pricount albums, There is some album can not accessible due to privacy settings!</div>
		<!--{/if}-->
		<div class="page">$multi</div>
		<!--{else}-->
		<div class="c_form">Oops! There is no album found..!</div>
		<!--{/if}-->
	</div><br>
<!--{else}-->

<!--{if $space[self]}-->
<div class="searchbar floatright">
	<form method="get" action="space.php">
		<input name="searchkey" value="" size="15" class="t_input" type="text">
		<input name="searchsubmit" value="Search Albums" class="submit" type="submit">
		<input type="hidden" name="do" value="album" />
		<input type="hidden" name="view" value="all" />
		<input type="hidden" name="orderby" value="dateline" />
	</form>
</div>
<h2 class="title"><img src="image/app/album.gif">Albums</h2>
<div class="tabs_header">
	<ul class="tabs">
		<!--{if $space[friendnum]}--><li$actives[we]><a href="space.php?uid=$space[uid]&do=$do&view=we"><span>Friend's Album</span></a></li><!--{/if}-->
		<li$actives[all]><a href="space.php?uid=$space[uid]&do=$do&view=all"><span>All Albums</span></a></li>
		<li$actives[me]><a href="space.php?uid=$space[uid]&do=$do&view=me"><span>My Album</span></a></li>
		<li$actives[click]><a href="space.php?uid=$space[uid]&do=$do&view=click"><span>Most Popular</span></a></li>
		<li class="null"><a href="cp.php?ac=upload">Upload Album</a></li>
	</ul>
</div>
<!--{else}-->
<!--{eval 
	$_TPL['spacetitle'] = "Album";
	$_TPL['spacemenus'][] = "<a href=\"space.php?uid=$space[uid]&do=album&view=me\">Share All Albums</a>";
}-->
<!--{template space_menu}-->
<!--{/if}-->

<!--{if $_GET['view'] == 'me'}-->
<div>
<!--{else}-->
<div id="content" style="width:640px;">
<!--{/if}-->


<!--{if $_GET['orderby'] && $_GET['orderby'] != 'dateline'}-->
<div class="h_status">
	By Update Staus: <br>
	<a href="space.php?do=album&view=all&orderby=$_GET[orderby]"{$day_actives[0]}>All</a><span class="pipe">|</span>
	<a href="space.php?do=album&view=all&orderby=$_GET[orderby]&day=1"{$day_actives[1]}>Recently</a><span class="pipe">|</span>
	<a href="space.php?do=album&view=all&orderby=$_GET[orderby]&day=2"{$day_actives[2]}>2 days</a><span class="pipe">|</span>
	<a href="space.php?do=album&view=all&orderby=$_GET[orderby]&day=7"{$day_actives[7]}>7 days</a><span class="pipe">|</span>
	<a href="space.php?do=album&view=all&orderby=$_GET[orderby]&day=30"{$day_actives[30]}>30 days</a><span class="pipe">|</span>
	<a href="space.php?do=album&view=all&orderby=$_GET[orderby]&day=90"{$day_actives[90]}>3 motnhs</a><span class="pipe">|</span>
	<a href="space.php?do=album&view=all&orderby=$_GET[orderby]&day=120"{$day_actives[120]}>6 months</a>
</div>
<!--{/if}-->

<!--{if $space[self] && $_GET['view']=='me'}-->
<div class="h_status">
You can create you own album from below listed images!<br>
These images from Blog, Discussion, Events, Attachments etc.<a href="space.php?uid=$space[uid]&do=album&id=-1">Default album</a> ¡£
</div>
<!--{/if}-->
	
	
<!--{if $picmode}-->

	<!--{if $pricount}-->
	<div class="h_status">This page include total $pricount images, might be some of can't be accessible due to privacy setting!</div>
	<!--{/if}-->
	
	<!--{if $count}-->
	<table cellspacing="0" cellpadding="0" width="100%" class="pic_list">
		<tr>
		<!--{loop $list $key $value}-->
		<td align="center">
			<div class="pic_bg"><a href="space.php?uid=$value[uid]&do=album&picid=$value[picid]"><img src="$value[pic]" alt="" /></a></div>
			<a href="space.php?uid=$value[uid]&do=$do&id=$value[albumid]">$value[albumname]</a><br>
			<a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a>
		</td>
		<!--{if $key%4==3}--></tr><tr><!--{/if}-->
		<!--{/loop}-->
		</tr>
	</table>
	<div class="page">$multi</div>
	<!--{else}-->
	<div class="c_form">There is no album, Why you don't create one album and be first let others know, you're first one</div>
	<!--{/if}-->
	
<!--{else}-->

	<!--{if $searchkey}-->
	<div class="h_status">The following are search album <span style="color:red;font-weight:bold;">$searchkey</span> Result List</div>
	<!--{/if}-->
	
	<!--{if $pricount}-->
	<div class="h_status">Tip: this page have total $pricount hidden album.</div>
	<!--{/if}-->

	<!--{if $count}-->
	<table class="album_list" cellspacing="0" cellpadding="0" width="100%">
	<tr>
		<!--{loop $list $key $value}-->
		<td style="padding-bottom: 20px;">
			<div class="album_bg"><a href="space.php?uid=$value[uid]&do=$do&id=$value[albumid]"><img src="$value[pic]" alt="$value[albumname]" /></a></div>
			<p><a href="space.php?uid=$value[uid]&do=$do&id=$value[albumid]"><!--{if $value[albumname]}-->$value[albumname]<!--{else}--> Default Album <!--{/if}--></a> <!--{if $value[picnum]}--><span class="gray">($value[picnum])</span><!--{/if}--></p>
			<!--{if $_GET[view]!='me'}--><p><a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a></p><!--{/if}-->
			<!--{if $value[uid]==$_SGLOBAL[supe_uid]}--><p class="gray"><a href="cp.php?ac=album&op=editpic&albumid=$value[albumid]"> Album Setting </a><span class="pipe">|</span><a href="cp.php?ac=upload&albumid=$value[albumid]">Upload picture</a></p><!--{/if}-->
			<!--{if $_GET[view]!='me'}--><p class="gray">Update:  <!--{date('m-d H:i', $value[updatetime], 1)}--></p><!--{/if}-->
		</td>
		<!--{if $key%4==3}--></tr><tr><!--{/if}-->
		<!--{/loop}-->
		</tr>
	</table>
	<div class="page">$multi</div>
	<!--{else}-->
	<div class="c_form">There is no result found!</div>
	<!--{/if}-->
	
<!--{/if}-->

</div>

<!--{if $_GET['view'] != 'me'}-->
<div id="sidebar" style="width:150px;">
	
<!--{if $userlist}-->
	<div class="cat">
	<h3>view by Friend's</h3>
	<ul class="post_list line_list">
		<li>
			Select Friends: <br>
			<select name="fuidsel" onchange="fuidgoto(this.value);">
			<option value="">All Friends</option>
			<!--{loop $userlist $value}-->
			<option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>{$_SN[$value[fuid]]}</option>
			<!--{/loop}-->
			</select>
		</li>
	</ul>
	</div>
<!--{/if}-->

<!--{if $_GET['view'] == 'click'}-->
	<div class="cat">
	<h3>Display Action</h3>
	<ul class="post_list line_list">
		<li$click_actives[all]><a href="space.php?do=album&view=click">All Action</a></li>
		<!--{loop $clicks $value}-->
		<li{$click_actives[$value[clickid]]}>
			<a href="space.php?do=album&view=click&clickid=$value[clickid]">$value[name]</a>
		</li>
		<!--{/loop}-->
	</ul>
	</div>
<!--{elseif $_GET['view'] == 'all'}-->
	<div class="cat">
	<h3>Popular</h3>
	<ul class="post_list line_list">
		<li$all_actives[all]><a href="space.php?do=album&view=all">Top Recomonded</a></li>
		<li$all_actives[dateline]><a href="space.php?do=album&view=all&orderby=dateline">Latest</a></li>
		<li$all_actives[hot]><a href="space.php?do=album&view=all&orderby=hot&day=$_GET[hotday]">Most Popular</a></li>
		<!--{loop $clicks $value}-->
		<li{$all_actives['click_'.$value[clickid]]}><a href="space.php?do=album&view=all&orderby=click_$value[clickid]&day=$_GET[hotday]">{$value[name]}Top</a></li>
		<!--{/loop}-->
	</ul>
	</div>
<!--{/if}-->

</div>
<!--{/if}-->

<script>
function fuidgoto(fuid) {
	window.location.href = "space.php?do=album&view=we&fuid="+fuid;
}
</script>
<!--{/if}-->

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