159 lines
7.4 KiB
Smarty
159 lines
7.4 KiB
Smarty
{include file='header.tpl'}
|
|
|
|
{* $Id: search_advanced.tpl 217 2009-08-11 23:20:02Z phil $ *}
|
|
|
|
{* SHOW PAGE TITLE *}
|
|
{if $showfields == 1}
|
|
<!--<img src='./images/icons/search48.gif' border='0' class='icon_big'>-->
|
|
<div class='page_header'><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">{lang_print id=1087}</span></div>
|
|
<div>A complete list of BateWorld Members. To send an Instant Message, see to the <a href="/onlinemembers.php">Online Members Page</a>.</div>
|
|
{elseif $showfields == 0}
|
|
<!--<img src='./images/icons/search48.gif' border='0' class='icon_big'>-->
|
|
<div class='page_header'>{lang_sprintf id=1083 1="`$linked_field_title`: `$linked_field_value`"}</div>
|
|
<div>
|
|
We found {$total_users} member{if $total_userss!=1}s{/if} with profiles that match {"`$linked_field_title`: `$linked_field_value`"}.
|
|
</div>
|
|
{/if}
|
|
|
|
<br><br>
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
|
<tr>
|
|
<td style='width: 200px; vertical-align: top;'>
|
|
|
|
{* SHOW FIELDS IF USER IS DOING A MANUAL SEARCH *}
|
|
{if $showfields == 1}
|
|
|
|
{* SHOW ERROR IF NO FIELDS *}
|
|
|
|
{include_php file='/home/thebate/public_html/searchsidebar.php'}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
</td>
|
|
<td style='padding-left: 10px;' valign='top'>
|
|
|
|
|
|
|
|
{* SHOW MESSAGE IF NO RESULTS FOUND *}
|
|
{if $total_users == 0 }
|
|
<br>
|
|
<table cellpadding='0' cellspacing='0' align='center'>
|
|
<tr><td class='result'><!--<img src='./images/icons/bulb22.gif' border='0' class='icon'>--> {lang_print id=1085}</td></tr>
|
|
</table>
|
|
|
|
|
|
{* SHOW RESULTS *}
|
|
{elseif $total_users != 0}
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
{if $maxpage > 1}
|
|
<div class='browse_pages'>
|
|
{if $p != 1}<a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p=1&introvids={$introvids}'><span class="white arrow">«</span></a> <a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={math equation='p-1' p=$p}&introvids={$introvids}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for item=foo}
|
|
<a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={$foo}&introvids={$introvids}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p != $maxpage}<a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={math equation='p+1' p=$p}&introvids={$introvids}'><span class="white arrow">›</span></a> <a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={$maxpage}&introvids={$introvids}'><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_users}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_users}
|
|
{/if}</span><br />
|
|
|
|
<form method="get">Go to Page: <input type="text" name="p" class="gotext" />
|
|
{$hidden}<input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
<div class="insidesearch2">
|
|
{* DISPLAY BROWSE RESULTS IN THUMBNAIL FORM *}
|
|
{section name=user_loop loop=$users}
|
|
<div class='browse_result' style='float: left; padding: 5px; width: 100px; height: 100px; text-align: center;'>
|
|
<a href='{$url->url_create('profile',$users[user_loop]->user_info.user_username)}'><img src='{$users[user_loop]->user_photo('./images/nophoto.png', TRUE)}' class='photo' style='display: block; margin-left: auto; margin-right: auto;' width='60' height='60' border='0' alt="{lang_sprintf id=509 1=$users[user_loop]->user_displayname_short}">{$users[user_loop]->user_displayname|truncate:20:"...":true}</a>
|
|
{if $users[user_loop]->is_online == 1}<div style='margin-top: 3px;'><!--<img src='./images/icons/online16.gif' border='0' class='icon2'>-->{lang_print id=1086}</div>{/if}
|
|
</div>
|
|
{cycle name="newrow" values=",,,,,<div style='clear: both; margin-top: 10px;'> </div>"}
|
|
{/section}
|
|
<div style='clear: both;'></div>
|
|
</div>
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
{if $maxpage > 1}
|
|
<div class='browse_pages'>
|
|
{if $p != 1}<a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p=1&introvids={$introvids}'><span class="white arrow">«</span></a> <a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={math equation='p-1' p=$p}&introvids={$introvids}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for item=foo}
|
|
<a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={$foo}&introvids={$introvids}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p != $maxpage}<a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={math equation='p+1' p=$p}&introvids={$introvids}'><span class="white arrow">›</span></a> <a href='search_advanced.php?{$url_string1}cat_selected={$cat_selected}&task={$task}&sort={$sort}&user_online={$user_online}&user_withphoto={$user_withphoto}&p={$maxpage}&introvids={$introvids}'><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_users}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_users}
|
|
{/if}</span><br />
|
|
|
|
<form method="get">Go to Page: <input type="text" name="p" class="gotext" />
|
|
{$hidden}<input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
function ShowHideDeps(field_id, field_value, field_type) {
|
|
|
|
if(field_type == 6) {
|
|
|
|
if($('field_'+field_id+'_option'+field_value)) {
|
|
|
|
if($('field_'+field_id+'_option'+field_value).style.display == "block") {
|
|
|
|
$('field_'+field_id+'_option'+field_value).style.display = "none";
|
|
|
|
} else {
|
|
$('field_'+field_id+'_option'+field_value).style.display = "block";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
var divIdStart = "field_"+field_id+"_option";
|
|
|
|
for(var x=0;x<$('field_options_'+field_id).childNodes.length;x++) {
|
|
|
|
if($('field_options_'+field_id).childNodes[x].nodeName == "DIV" && $('field_options_'+field_id).childNodes[x].id.substr(0, divIdStart.length) == divIdStart) {
|
|
if($('field_options_'+field_id).childNodes[x].id == 'field_'+field_id+'_option'+field_value) {
|
|
|
|
$('field_options_'+field_id).childNodes[x].style.display = "block";
|
|
|
|
} else {
|
|
|
|
$('field_options_'+field_id).childNodes[x].style.display = "none";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
{include file='footer.tpl'}
|