Location: PHPKode > projects > Php4dvd - movie database > php4dvd/tpl/default/movies/movie.html
<div>
	<div style="float: right;">
		{if $movie->imdbid != ""}
		[<a href="http://www.imdb.com/title/tt{$movie->imdbid}" target="_blank">IMDb</a>] &nbsp;&nbsp;
		{/if}
		{if $loggedin && $User->isEditor()}
		[<a href="./?go=edit&id={$movie->id}">Edit</a>] &nbsp;&nbsp;
		[<a href="javascript:deleteMovie('{$movie->id}');">Delete</a>] &nbsp;&nbsp;
		{/if}
		[<a href="./">Back</a>]
	</div>
	
	<h2>{$movie->name} ({$movie->year})</h2>
	
	<div>
	{assign var=akas value=$movie->getAKAs()}
	{section name=a loop=$akas}
	&nbsp;&nbsp;<i>{$akas[a]}</i>{if !$smarty.section.a.last}<br>{/if}
	{/section}
	</div>
	
	<div id="movieinfo">
		{if $movie->format == "DVD"}
			{if $movie->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 $movie->format == "Blu-ray"}
			{if $movie->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 $movie->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}
	</div
	
	{if $movie->loaned}
	<div id="loaned">
		Loaned out{if $movie->loanname != ""} to {$movie->loanname}{/if}{if $movie->loandate != "0000-00-00"} on {$movie->loandate}{/if} 
	</div>
	{/if}
	
	<br><br>
	
	{if $movie->getList("plotoutline")}
	<div style="width: 95%;">
		{$movie->getList("plotoutline")}
		<br><br>
	</div>
	{/if}
	
	{if $movie->getListBr("plots")}	
	[<a href="javascript:void(0);" onclick="display('plots');">Show all plots</a>]<br><br>
		
	<div id="plots" style="width: 95%; display: none;">
		{$movie->getListBr("plots")}
		<p>&nbsp;</p>
	</div>
	{/if}
	
	<div style="float: right; margin-right: 20px; text-align: center;">
		{if $movie->hasPhoto($photopath)}
		<img src="{$photopath}{$movie->id}.jpg" alt="{$movie->name|trim}" title="{$movie->name|trim}"><br>
		{/if}
		{if $movie->hasCover($coverpath)}
		[<a href="./?go=movie&amp;id={$movie->id}&amp;cover=download">Download cover</a>]
		{/if}
		{if $movie->getList('notes') != ""}
		<div id="notes"><h3>Personal notes</h3>{$movie->getListBr('notes')}</div>
		{/if}
	</div>
	
	<table width="65%" style="border-spacing: 0px 10px;">		
		{if $movie->getList("genres")}
		<tr>
			<td width="120" nowrap>
				Genre
			</td>
			<td>
				{$movie->getList("genres")}
			</td>
		</tr>
		{/if}
		
		{if $movie->duration > 0}
		<tr>
			<td width="120" nowrap>
				Duration
			</td>
			<td>
				{$movie->duration} minutes
			</td>
		</tr>
		{/if}
		
		{if $movie->rating > 0}
		<tr>
			<td width="120" nowrap>
				Rating
			</td>
			<td>
				{$movie->rating|number_format:1}
			</td>
		</tr>
		{/if}
		
		{if $movie->getList("languages")}
		<tr>
			<td width="120" nowrap>
				Languages
			</td>
			<td>
				{$movie->getList("languages")}
			</td>
		</tr>
		{/if}
		
		{if $movie->getList("country")}
		<tr>
			<td width="120" nowrap>
				Country
			</td>
			<td>
				{$movie->getList("country")}
			</td>
		</tr>
		{/if}
		
		{if $movie->getList("director")}
		<tr>
			<td width="120" nowrap>
				Director
			</td>
			<td>
				{$movie->getList("director")}
			</td>
		</tr>
		{/if}
		
		{if $movie->getList("writer")}
		<tr>
			<td width="120" nowrap>
				Writer
			</td>
			<td>
				{$movie->getList("writer")}
			</td>
		</tr>
		{/if}
		
		{if $movie->getList("producer")}
		<tr>
			<td width="120" nowrap>
				Producer
			</td>
			<td>
				{$movie->getList("producer")}
			</td>
		</tr>
		{/if}
		
		{if $movie->getList("music")}
		<tr>
			<td width="120" nowrap>
				Music
			</td>
			<td>
				{$movie->getList("music")}
			</td>
		</tr>
		{/if}
		
		{if $movie->getListBr("taglines")}
		<tr>
			<td width="120" nowrap>
				Taglines
			</td>
			<td>
				{$movie->getListBr("taglines")}
			</td>
		</tr>
		{/if}
		
		{if $movie->getList("cast")}
		<tr>
			<td width="120" nowrap>
				Cast
			</td>
			<td>
				{$movie->getListBr("cast")}
			</td>
		</tr>
		{/if}
	</table>
</div>
Return current item: Php4dvd - movie database