108 lines
6.0 KiB
Smarty
108 lines
6.0 KiB
Smarty
{include file='header.tpl'}
|
||
|
||
{* $Id: browse_clubs.tpl 247 2009-11-14 03:30:43Z phil $ *}
|
||
|
||
<div class='page_header'>
|
||
<span class="defaultheader">Adopt clubs</span>
|
||
|
||
<div class="clearfix"></div>
|
||
|
||
<div>These clubs are in need of new leaders. Want to run one? You don’t need any special skills. Just click on the club you’re interested in. If you’re not already a member make sure to join the club, and refresh your screen. Then just follow the directions that appear at the top of the club page. Click any club below to get started.
|
||
</div>
|
||
<br>
|
||
<br>
|
||
|
||
|
||
<div class="col-sm-11">
|
||
|
||
|
||
{* NO clubS AT ALL *}
|
||
{if $clubs|@count == 0}
|
||
<br>
|
||
<table cellpadding='0' cellspacing='0' align='center'>
|
||
<tr>
|
||
<td class='result'>
|
||
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon' />-->
|
||
{lang_print id=2000132}
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
{/if}
|
||
|
||
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
||
{if $maxpage > 1}
|
||
<div class='browse_pages'>
|
||
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&clubcat_id={$clubcat_id}&p=1"><span class="white arrow">«</span></a> <a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&clubcat_id={$clubcat_id}&p={math equation='p-1' p=$p}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
||
| {foreach from=$for item=foo}
|
||
<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&clubcat_id={$clubcat_id}&v={$v}&p={$foo}'>{$foo}</a>
|
||
{/foreach} |
|
||
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&clubcat_id={$clubcat_id}&p={math equation='p+1' p=$p}'><span class="white arrow">›</span></a> <a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&clubcat_id={$clubcat_id}&v={$v}&p={$maxpage}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
||
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
|
||
{lang_sprintf id=184 1=$p_start 2=$total_clubs}
|
||
{else}
|
||
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_clubs}
|
||
{/if}</span><br />
|
||
|
||
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="clubcat_id" value="{$clubcat_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
|
||
{section name=club_loop loop=$clubs}
|
||
<div style='padding: 10px; border: 1px solid #CCCCCC; background: #000000; margin-bottom: 10px;'>
|
||
<table cellpadding='0' cellspacing='0'>
|
||
<tr>
|
||
<td style="width:60px; vertical-align:top;" >
|
||
<a href='{$url->url_create("club", $smarty.const.NULL, $clubs[club_loop].club->club_info.club_id)}'>
|
||
<img src='{$clubs[club_loop].club->club_photo()}' onerror="this.src='{$imagecdn}images/nophoto.png'" border='0' width='60' height='60' />
|
||
</a>
|
||
</td>
|
||
<td style='vertical-align: top; padding-left: 10px;'>
|
||
<div style='font-weight: bold; font-size: 13px;'>
|
||
<a href='{$url->url_create("club", $smarty.const.NULL, $clubs[club_loop].club->club_info.club_id)}'>
|
||
{$clubs[club_loop].club->club_info.club_title}
|
||
</a>
|
||
</div>
|
||
<div style='color: #777777; font-size: 9px; margin-bottom: 5px;'>
|
||
{assign var='club_dateupdated' value=$datetime->time_since($clubs[club_loop].club->club_info.club_dateupdated)}
|
||
{capture assign="updated"}{lang_sprintf id=$club_dateupdated[0] 1=$club_dateupdated[1]}{/capture}
|
||
{capture assign='club_leader'}<a href='{$url->url_create("profile", $clubs[club_loop].club_leader->user_info.user_username)}'>{$clubs[club_loop].club_leader->user_displayname}</a>{/capture}
|
||
{lang_sprintf id=2000133 1=$clubs[club_loop].club_members 2=$club_leader} - {lang_sprintf id=2000134 1=$updated}
|
||
</div>
|
||
<div>
|
||
{$clubs[club_loop].club->club_info.club_desc|strip_tags|truncate:300:"...":true}
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
{/section}
|
||
|
||
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
||
{if $maxpage > 1}
|
||
<div class='browse_pages'>
|
||
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&clubcat_id={$clubcat_id}&p=1"><span class="white arrow">«</span></a> <a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&clubcat_id={$clubcat_id}&p={math equation='p-1' p=$p}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
||
| {foreach from=$for item=foo}
|
||
<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&clubcat_id={$clubcat_id}&v={$v}&p={$foo}'>{$foo}</a>
|
||
{/foreach} |
|
||
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&clubcat_id={$clubcat_id}&p={math equation='p+1' p=$p}'><span class="white arrow">›</span></a> <a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&clubcat_id={$clubcat_id}&v={$v}&p={$maxpage}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
||
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
|
||
{lang_sprintf id=184 1=$p_start 2=$total_clubs}
|
||
{else}
|
||
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_clubs}
|
||
{/if}</span><br />
|
||
|
||
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="clubcat_id" value="{$clubcat_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
|
||
</div>
|
||
{/if}
|
||
|
||
</div>
|
||
|
||
|
||
<div class="clearfix"></div>
|
||
</div>
|
||
|
||
<div class="clearfix"></div>
|
||
|
||
{include file='footer.tpl'} |