{*
Template for the edit interface
$Id: edit.tpl,v 1.11 2007/12/29 10:23:18 andig2 Exp $
*}
{if $video.id}
<table width="100%" class="tablefilter" cellspacing="5">
<tr>
<td width="100%"> </td>
<td align="center" style="text-align:center">
<form action="show.php" method="get" name="show">
<input type="hidden" name="id" value="{$video.id}" />
<input type="submit" value="{$lang.view}" class="button"/>
</form>
</td>
</tr>
</table>
{else}
<div id="topspacer"></div>
{/if}
<script language="JavaScript" type="text/javascript" src="javascript/edit.js"></script>
<table class="tableborder" style="background-color:#eeeeee;">
<tr>
<td>{if $http_error}<CENTER><h1>{$http_error}</h1></CENTER><br/>{/if}
<div align="center">
<form action="edit.php" id="edi" name="edi" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" id="id" value="{$video.id}" />
<input type="hidden" name="engine" id="engine" value="{$engine}" />
<input type="hidden" name="save" id="save" value="1" />
<table class="tableedit">
<tr valign="top">
<td>
<table>
<tr valign="top">
<td><span class="editcaption">{$lang.title}:</span></td>
<td>
<input type="text" name="title" id="title" value="{$video.q_title}" size="50" maxlength="255" />
{*<a href="javascript:void(lookupData(document.edi.title.value))"><img src="images/search.gif" alt="" border="0" align="middle" /></a>*}
<a href="" onclick="return makeFalse(domTT_activate(this, event, 'content', '<iframe src="lookup.php?find=' + encodeURI(document.edi.title.value) + '" style="width: 400px; height: 200px;" id="lookup" name="lookup"></iframe>', 'type', 'sticky'));" onmouseover="domTT_activate(this, event, 'content', '{$lang.tooltip_search_contentprovider}', 'direction', 'southeast', 'styleClass', 'niceTitle');"><img src="images/search.gif" alt="" border="0" align="middle" /></a>
</td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.subtitle}:</span></td>
<td>
<input type="text" name="subtitle" id="subtitle" value="{$video.q_subtitle}" size="50" maxlength="255" />
<a href="" onclick="return makeFalse(domTT_activate(this, event, 'content', '<iframe src="lookup.php?find=' + encodeURI(document.edi.subtitle.value) + '" style="width: 400px; height: 200px;" id="lookup" name="lookup"></iframe>', 'type', 'sticky'));" onmouseover="domTT_activate(this, event, 'content', '{$lang.tooltip_search_contentprovider}', 'direction', 'southeast', 'styleClass', 'niceTitle');"><img src="images/search.gif" alt="" border="0" align="middle" /></a>
</td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.language}:</span></td>
<td>{$video.f_language}</td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.diskid}:</span></td>
<td>
<input type="text" name="diskid" id="diskid" value="{$video.q_diskid}" size="15" maxlength="255" />
<input type="hidden" name="autoid" id="autoid" value="{$autoid}" />
<input type="hidden" name="oldmediatype" id="oldmediatype" value="{$video.mediatype}" />
{$lang.mediatype} {html_options name="mediatype" options=$mediatypes selected=$video.mediatype}
</td>
</tr>
<tr valign="top">
<td><span class="editcaption"><label for="istv">{$lang.tvepisode}</label>:</span></td>
{if $video.istv}
<td>
<input type="checkbox" name="istv" id="istv" value="1" checked="checked" />
</td>
{else}
<td>
<input type="checkbox" name="istv" id="istv" value="1" />
</td>
{/if}
</tr>
<tr valign="top">
<td><span class="editcaption"><label for="seen">{$lang.seen}</label>:</span></td>
<td>
{if $video.seen}
<input type="checkbox" name="seen" id="seen" value="1" checked="checked" />
{else}
<input type="checkbox" name="seen" id="seen" value="1" />
{/if}</td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.filename}:</span></td>
<td><input type="text" name="filename" id="filename" value="{$video.q_filename}" size="50" maxlength="255" /></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.filesize}:</span></td>
<td><input type="text" name="filesize" id="filesize" value="{$video.q_filesize}" size="10" maxlength="15" /> bytes</td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.filedate}:</span></td>
<td><input type="text" name="filedate" id="filedate" value="{$video.q_filedate}" size="18" maxlength="20" /></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.audiocodec}:</span></td>
<td><input type="text" name="audio_codec" id="audio_codec" value="{$video.q_audio_codec}" /></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.videocodec}:</span></td>
<td><input type="text" name="video_codec" id="video_codec" value="{$video.q_video_codec}" /></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.dimension}:</span></td>
<td>
<input type="text" name="video_width" id="video_width" value="{$video.q_video_width}" size="5" maxlength="4" /> x
<input type="text" name="video_height" id="video_height" value="{$video.q_video_height}" size="5" maxlength="4" />
</td>
</tr>
<tr>
<td>{$lang.rating}:</td>
<td>{rating_input value=$video.rating}</td>
</tr>
<tr valign="top">
<td valign="top" colspan="2"><span class="editcaption">{$lang.genre}:</span>
<br/>
{$genreselect}
</td>
</tr>
{if $video.custom1name}
<tr valign="top">
<td><span class="editcaption">{$video.custom1name}:</span></td>
<td>{$video.custom1in}</td>
</tr>
{/if}
{if $video.custom3name}
<tr valign="top">
<td><span class="editcaption">{$video.custom3name}:</span></td>
<td>{$video.custom3in}</td>
</tr>
{/if}
</table>
<//td>
<td width="10"> </td>
<td>
<table>
<tr valign="top">
<td><span class="editcaption">IMDb-ID:</span></td>
<td>
<input type="text" name="imdbID" id="imdbID" value="{$video.q_imdbID}" size="15" maxlength="30" onchange="changedId()" />
{if $link}<a href="{$link}" target="_blank">{$lang.visit}</a>{/if}
<input type="submit" value="{$lang.save}" class="button" accesskey="s"/></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.coverurl}:</span></td>
<td>
<input type="text" name="imgurl" id="imgurl" value="{$video.q_imgurl}" size="50" maxlength="255" />
<a href="" onclick="return makeFalse(domTT_activate(this, event, 'content', '<iframe src="lookup.php?find=' + encodeURI(document.edi.title.value) + '&searchtype=image&engine=google" style="width: 400px; height: 200px;" id="lookup" name="lookup"></iframe>', 'type', 'sticky', 'direction', 'southwest'));"><img src="images/search.gif" alt="" border="0" align="middle" onmouseover="domTT_activate(this, event, 'content', '{$lang.tooltip_search_google_covers}', 'direction', 'southwest', 'styleClass', 'niceTitle');"/>
</a>
</td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.coverupload}:</span></td>
<td><input type="file" name="coverupload" id="coverupload" size="50" /></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.country}:</span></td>
<td><input type="text" name="country" id="country" value="{$video.q_country}" size="50" maxlength="255" /></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.director}:</span></td>
<td><input type="text" name="director" id="director" value="{$video.q_director}" size="50" maxlength="255" /></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.runtime}:</span></td>
<td>
<input type="text" name="runtime" id="runtime" value="{$video.q_runtime}" size="5" maxlength="5" />min
/ {$lang.year}
<input type="text" name="year" id="year" value="{$video.q_year}" size="5" maxlength="4" />
{if $owners}
/ {$lang.owner} {html_options name=owner_id options=$owners selected=$video.owner_id}
{/if}
</td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.plot}:</span></td>
<td><textarea cols="50" rows="8" name="plot" id="plot" wrap="virtual">{$video.q_plot}</textarea></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.cast}:</span></td>
<td><textarea cols="50" rows="8" name="actors" id="actors" wrap="off">{$video.q_actors}</textarea></td>
</tr>
<tr valign="top">
<td><span class="editcaption">{$lang.comment}:</span></td>
<td><textarea cols="50" rows="3" name="comment" id="comment" wrap="virtual">{$video.q_comment}</textarea></td>
</tr>
{if $video.custom2name}
<tr valign="top">
<td><span class="editcaption">{$video.custom2name}:</span></td>
<td>{$video.custom2in}</td>
</tr>
{/if}
{if $video.custom4name}
<tr valign="top">
<td><span class="editcaption">{$video.custom4name}:</span></td>
<td>{$video.custom4in}</td>
</tr>
{/if}
{if $users}
<tr valign="top">
<td>{$lang.owner}</td>
<td>{html_options values=$users output=$users selected=$video.owner name="owner"}</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
{$lang.radio_look_caption}: {html_radios name=lookup options=$lookup checked="$lookup_id"}
<input type="submit" value="{$lang.save}" class="button" accesskey="s" />
{*
{html_checkboxes values="test" output="test" selected=$video.owner name="add_flag"}</td>
*}
<label for="add_flag"><input type="checkbox" name="add_flag" id="add_flag" value="{$add_flag}" />{$lang.add_another}</label>
</form>
</div>
</td></tr>
</table>