Files
Testing/leptesting/browse_contest.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

112 lines
6.1 KiB
Smarty

{include file='header.tpl'}
{* $Id: browse_videos.tpl 13 2009-01-11 06:04:29Z john $ *}
<div class='page_header'><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">BATEWORLD VIDEO CHANNEL ENTRIES</span></div>
WANT TO SUBMIT A VIDEO? <a href="/content.php?page=video-channel-page-1">CLICK HERE</a>
<div style='padding: 7px 10px 7px 10px; background: #000000; margin: 10px 0px 10px 0px; font-weight: bold;'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
{lang_print id=5500071}&nbsp;
</td>
<td>
<select class='small' name='v' onchange="window.location.href='browse_videos.php?s={$s}&v='+this.options[this.selectedIndex].value;">
<option value='0'{if $v == "0"} SELECTED{/if}>{lang_print id=5500072}</option>
{if $user->user_exists}<option value='1'{if $v == "1"} SELECTED{/if}>{lang_print id=5500073}</option>{/if}
</select>
</td>
<td style='padding-left: 20px;'>
{lang_print id=5500074}&nbsp;
</td>
<td>
<select class='small' name='s' onchange="window.location.href='browse_videos.php?v={$v}&s='+this.options[this.selectedIndex].value;">
<option value='video_datecreated DESC'{if $s == "video_dateupdated DESC"} SELECTED{/if}>{lang_print id=5500075}</option>
<option value='video_views DESC'{if $s == "video_views DESC"} SELECTED{/if}>{lang_print id=5500144}</option>
<option value='video_cache_rating_weighted DESC'{if $s == "video_cache_rating_weighted DESC"} SELECTED{/if}>{lang_print id=5500156}</option>
</select>
</td>
</tr>
</table>
</div>
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p=1"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p-1' p=$p}'><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='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$maxpage}"><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_videos}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_videos}
{/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="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
{/if}
<div class="insidesearch">
{section name=video_loop loop=$videos}
{* ENSURE VIDEO TITLE ISN'T BLANK *}
{if $videos[video_loop].title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].title}{/if}
{capture assign="image"}./contests/{$videos[video_loop].id}_thumb.jpg{/capture}
<div class='videoTab' style='width: 275px;'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style='vertical-align: top;'>
<a href='view_contest.php?user={$videos[video_loop].video_author->user_info.user_username}&amp;video_id={$videos[video_loop].id}'><img src='{if $image|file_exists}{$image}{else}./images/video_placeholder.gif{/if}' border='0' width='{$setting.setting_video_thumb_width}' height='{$setting.setting_video_thumb_height}'></a>
</td>
<td style='vertical-align: top; padding-left: 5px;'>
<div class='video_row_title'><a href='view_contest.php?user={$videos[video_loop].video_author->user_info.user_username}&amp;video_id={$videos[video_loop].id}'>{$video_title|truncate:55:'...':true}</a></div>
<div class='video_row_info' style=" color:#777777;"><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a><br />
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}</div>
<div>
{section name=full_loop start=0 loop=$videos[video_loop].video_rating_full}
<!--<img src='./images/icons/video_rating_full_small.gif' border='0'>-->
{/section}
{if $videos[video_loop].video_rating_part}<!--<img src='./images/icons/video_rating_part_small.gif' border='0'>-->{/if}
{section name=none_loop start=0 loop=$videos[video_loop].video_rating_none}
<!--<img src='./images/icons/video_rating_none_small.gif' border='0'>-->
{/section}
</div>
</td>
</tr>
</table>
</div>
{cycle values=",,<div style='clear: both; height: 0px;'></div>"}
{/section}
<div style='clear: both; height: 0px;'></div>
</div>
{if $maxpage > 1}
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p=1"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p-1' p=$p}'><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='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$maxpage}"><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_videos}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_videos}
{/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="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
{/if}
{include file='footer.tpl'}