Files
Testing/leptesting/introvideos.tpl

139 lines
6.0 KiB
Smarty
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
{include file='header.tpl'}
{* $Id: search_advanced.tpl 217 2009-08-11 23:20:02Z phil $ *}
{* SHOW PAGE TITLE *}
<!--<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;">Intro Videos</span></div>
<br><br>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='padding-left: 10px;' valign='top'>
<div class="gallery gallerylep">
<div class='header'>Random Users with Intro Videos</div>
<div class='portal_content'>
{if !empty($signups)}
<div class="holder">
<ul>
{section name=signups_loop loop=$signups max=18}
<li>
{if !empty($signups[signups_loop])}
<a href='{$url->url_create("profile",$signups[signups_loop]->user_info.user_username)}' style="font-size:12px;">{$signups[signups_loop]->user_displayname|regex_replace:"/&#039;/":"'"|truncate:9:"...":true}</a><br />
<a href='{$url->url_create("profile",$signups[signups_loop]->user_info.user_username)}'><img src='{$signups[signups_loop]->user_photo("./images/nophoto.png", TRUE)}' class='photo' width='60' height='60' border='0' alt='' /></a>
{/if}
</li>
{/section}
</ul>
</div>
{else}
{lang_print id=667}
{/if}
</div>
<div class="control">
<a href="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}#" class="prev">prev</a>
<a href="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}#" class="next">next</a>
</div>
</div>
{literal}
<script type="text/javascript">
function donot(){a=null;}
window.addEvent("domready", function() {
/* Example 1 */
var gallery1 = new slideGallery($$(".gallerylep"), {
steps: 10,
mode: "circle",
random: false,
autoplay: true,
stop: ".stop",
start: ".start",
duration: 4000,
speed: 800
});
});
</script>{/literal}
{* SHOW MESSAGE IF NO RESULTS FOUND *}
{if $total_users == 0 && ($showfields == 0 || $cats_menu != NULL)}
<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}
<div class='browse_pages'>
<div class="divright">&nbsp;
Sort by:
<select name="sort" onchange="window.location.href='introvideos.php?p={$p}&sortby='+this.value">
<option value="1" {if $sort=='1'}selected="selected"{/if}>Newest Videos</option>
<option value="2" {if $sort=='2'}selected="selected"{/if}>Newest Users</option>
</select>&nbsp;
</div><div class="clear"></div>
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
{if $p != 1}<a href='introvideos.php?p=1&amp;sortby={$sort}'><span class="white arrow">&#171;</span></a> <a href='introvideos.php?p={math equation='p-1' p=$p}&amp;sortby={$sort}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='introvideos.php?p={$foo}&amp;sortby={$sort}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='introvideos.php?p={math equation='p+1' p=$p}&amp;sortby={$sort}'><span class="white arrow">&#8250;</span></a> <a href='introvideos.php?p={$maxpage}&amp;sortby={$sort}'><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</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" action="introvideos.php?sortby=2">Go to Page: <input type="text" name="p" class="gotext" />
{$hidden}<input type="submit" value="Go" /></form>
{/if} </div>
<div class="insidesearch1">
{* 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;'>&nbsp;</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='introvideos.php?p=1&amp;sortby={$sort}'><span class="white arrow">&#171;</span></a> <a href='introvideos.php?p={math equation='p-1' p=$p}&amp;sortby={$sort}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='introvideos.php?p={$foo}&amp;sortby={$sort}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='introvideos.php?p={math equation='p+1' p=$p}&amp;sortby={$sort}'><span class="white arrow">&#8250;</span></a> <a href='introvideos.php?p={$maxpage}&amp;sortby={$sort}'><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</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" action="introvideos.php">Go to Page: <input type="text" name="p" class="gotext" />
{$hidden}<input type="submit" value="Go" /></form>
</div>
{/if}
{/if}
</td>
</tr>
</table>
{include file='footer.tpl'}