Location: PHPKode > projects > Php4dvd - movie database > php4dvd/tpl/default/movies/list.html
{if $totalmovies > 0}
	In total, {$totalmovies} movies are found.<br>
	Showing
	{if $numberdvds > 0}
		{$numberdvds} DVD{if $numberdvds != 1}'s{/if}{if $numberbrs == 0},{/if}
	{/if}
	{if $numberbrs > 0}
		{if $numberdvds > 0}and{/if}
		{$numberbrs} Blu-ray{if $numberbrs != 1}'s{/if},
	{/if}
	{$numberowned} owned and {$numberseen} seen.<br><br>
{/if}
<table width="100%">
	{section name=m loop=$movies}
	{if $smarty.section.m.first && $pages > 1}
	<tr>
		<td colspan="4" align="center">
			{if $previous}<a href="javascript:void(0);" onclick="page=0; showList();">&lt;&lt;&nbsp;first</a>&nbsp;&nbsp;{/if}
			{if $previous}<a href="javascript:void(0);" onclick="page--; showList();">&lt;&nbsp;previous</a>&nbsp;{/if}
			{section name=pages start=$startAt loop=$stopAt+1}
				{if $smarty.section.pages.index == $page}
					&nbsp;<b>{$smarty.section.pages.index}</b>&nbsp;
				{else}
					<a href="javascript:void(0);" onclick="page={$smarty.section.pages.index-1}; showList();">
						&nbsp;{$smarty.section.pages.index}&nbsp;</a>
				{/if}
			{/section}
			{if $next}<a href="javascript:void(0);" onclick="page++; showList();">next&nbsp;&gt;</a>&nbsp;&nbsp;{/if}
			{if $next}<a href="javascript:void(0);" onclick="page={$pages-1}; showList();">last&nbsp;&gt;&gt;</a>{/if}
		</td>
	</tr>
	{/if}
	<tr>
		<td width="40" nowrap>
			{if $loggedin && $User->isEditor()}
			<a id="own_{$movies[m]->id}" href="javascript:void(0);" onclick="setOwn('{$movies[m]->id}', '{if $movies[m]->own}0{else}1{/if}');">
			{/if}
			{if $movies[m]->format == "DVD"}
				{if $movies[m]->own}
					<img src="{$template_dir}images/design/dvd_yes.png" alt="I own this DVD movie" title="I own this DVD movie">
				{else}
					<img src="{$template_dir}images/design/dvd_no.png" alt="I do not own this DVD movie" title="I do not own this DVD movie">
				{/if}
			{/if}
			{if $movies[m]->format == "Blu-ray"}
				{if $movies[m]->own}
					<img src="{$template_dir}images/design/bluray_yes.png" alt="I own this Blu-ray movie" title="I own this Blu-ray movie">
				{else}
					<img src="{$template_dir}images/design/bluray_no.png" alt="I do not own this Blu-ray movie" title="I do not own this Blu-ray movie">
				{/if}
			{/if}
			{if $loggedin && $User->isEditor()}
			</a>
			{/if}
		</td>
		<td width="40" nowrap>
			{if $loggedin && $User->isEditor()}
			<a id="seen_{$movies[m]->id}" href="javascript:void(0);" onclick="setSeen('{$movies[m]->id}', '{if $movies[m]->seen}0{else}1{/if}');">
			{/if}
			{if $movies[m]->seen}
				<img src="{$template_dir}images/design/seen_yes.png" alt="I have seen this movie" title="I have seen this movie">
			{else}
				<img src="{$template_dir}images/design/seen_no.png" alt="I have not seen this movie" title="I have not seen this movie">
			{/if}
			{if $loggedin && $User->isEditor()}
			</a>
			{/if}
		</td>
		<td>
			<a href="./?go=movie&id={$movies[m]->id}"{if $movies[m]->getTip($photopath) != ""} onmouseover="Tip('{$movies[m]->getTip($photopath)}');" onmouseout="UnTip();"{/if}>
			<div style="float: right">{$movies[m]->year}</div>
			{$movies[m]->name}</a>
			{if $movies[m]->loaned}
				<span class="loaned">loaned out{if $movies[m]->loanname != ""} to {$movies[m]->loanname}{/if}{if $movies[m]->loandate != "0000-00-00"} on {$movies[m]->loandate}{/if}</span>
			{/if}
		</td>
		<td width="20" nowrap align="right">
			{if $loggedin && $User->isEditor()}
			<a href="javascript:deleteMovie('{$movies[m]->id}');"><img src="{$template_dir}images/design/delete.gif" alt="Remove" title="Remove"></a>
			{/if}
		</td>
	</tr>
	{if $smarty.section.m.last && $pages > 1}
	<tr>
		<td colspan="4" align="center">
			{if $previous}<a href="javascript:void(0);" onclick="page=0; showList();">&lt;&lt;&nbsp;first</a>&nbsp;&nbsp;{/if}
			{if $previous}<a href="javascript:void(0);" onclick="page--; showList();">&lt;&nbsp;previous</a>&nbsp;{/if}
			{section name=pages start=$startAt loop=$stopAt+1}
				{if $smarty.section.pages.index == $page}
					&nbsp;<b>{$smarty.section.pages.index}</b>&nbsp;
				{else}
					<a href="javascript:void(0);" onclick="page={$smarty.section.pages.index-1}; showList();">
						&nbsp;{$smarty.section.pages.index}&nbsp;</a>
				{/if}
			{/section}
			{if $next}<a href="javascript:void(0);" onclick="page++; showList();">next&nbsp;&gt;</a>&nbsp;&nbsp;{/if}
			{if $next}<a href="javascript:void(0);" onclick="page={$pages-1}; showList();">last&nbsp;&gt;&gt;</a>{/if}
		</td>
	</tr>
	{/if}
	{sectionelse}
	<tr>
		<td width="100%">
			No movies where found.
			
			{if $goBack}
			<script type="text/javascript">
				page--;
				showList();
			</script>
			{/if}
		</td>
	</tr>
	{/section}
</table>
Return current item: Php4dvd - movie database