
{include file="../head.tpl"}
<form action="product.php" method="post" enctype="multipart/form-data" name="kform" id="kform">
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td colspan="2" class="header">{if $smarty.request.action=="new"}{$langadmin.product_new}{else}{$langadmin.product_edit}{/if}</td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.title}</td>
    <td class="secondrow"><input name="title" type="text" id="title" value="{$row->title|escape:"htmlall"}" size="50"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.subtitle}</td>
    <td class="secondrow"><input name="subtitle" type="text" id="subtitle" value="{$row->subtitle|escape:"htmlall"}" size="50"></td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.genre}</td>
    <td class="secondrow">
	<select name="genre" id="genre">
      <option value="">- - -</option>
	  {foreach from=$gdd item=gd}
	  <option value="{$gd->id}" {if $gd->id==$row->genre}selected="selected"{/if}>{$gd->genre}</option>
	  {/foreach}
    </select></td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.manufacturer}</td>
    <td class="secondrow">
	<select name="manufacturer" id="manufacturer">
      <option value="">- - -</option>
      
	  {foreach from=$mdd item=md}
	  
      <option value="{$md->id}" {if $md->id==$row->manufacturer}selected="selected"{/if}>{$md->name}</option>
      
	  {/foreach}
    
    </select></td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.publisher}</td>
    <td class="secondrow"><select name="publisher" id="publisher">
      <option value="">- - -</option>
      
      
	  {foreach from=$mdd item=md}
	  
      
      <option value="{$md->id}" {if $md->id==$row->publisher}selected="selected"{/if}>{$md->name}</option>
      
      
	  {/foreach}
    
    
    </select></td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.product_voting}</td>
    <td class="secondrow">


<select name="voting" id="voting">
<option value="">- - -</option>        
{foreach from=$pvote item=pvote key=schluessel}
<option value="{$pvote.key}" {if $pvote.key==$row->voting}selected="selected"{/if}>{$pvote.val}</option>
{/foreach}
</select>

	</td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.platform}</td>
    <td class="secondrow">

<!-- PLATFORM // -->
<select style="width:350px" name="platforms[]" multiple size="5">    
{foreach from=$platform item=pf} 
<option value="{$pf->id}" {if $pforms->id}{if in_array($pf->id, $pforms->id)}selected{/if}{/if}>{$pf->platform}</option>  
{/foreach}
</select>
<!-- // PLATFORMS -->

</td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.menue_gallery}</td>
    <td class="secondrow">
<!-- GALERIEN //-->
<select style="width:350px" name="galids[]" multiple size="5">
{foreach from=$gallery item=item} 
<option value="{$item->id}" {if $linkedgals->id}{if in_array($item->id, $linkedgals->id)}selected{/if}{/if}>{$item->title}</option>   
{/foreach}
</select>
<!-- // GALERIEN -->
	</td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.release}</td>
    <td class="secondrow"><input name="release" type="text" id="release" value="{$row->release|escape:"htmlall"}" size="50"></td>
  </tr>
  {if $smarty.request.action=="edit"}
  <tr>
    <td width="20%" class="firstrow">{$langadmin.product_image}</td>
    <td class="secondrow">
{if $img} <img src="../uploads/products/{$img}" alt="" />
<input name="oldimage" type="hidden" id="oldimage" value="{$img}">
{/if}
</td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.product_image_del}</td>
    <td class="secondrow"><input name="imagedel" type="checkbox" id="imagedel" value="1"></td>
  </tr>
{/if}  <tr>
    <td class="firstrow">{$langadmin.product_image_new}</td>
    <td class="secondrow"><input name="file" type="file" size="40"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.asin}</td>
    <td class="secondrow"><input name="asin" type="text" id="asin" value="{$row->asin|escape:"htmlall"}" size="50"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.shopurl}</td>
    <td class="secondrow"><input name="shopurl" type="text" id="shopurl" value="{$row->shopurl|escape:"htmlall"}" size="50"></td>
  </tr>
  <tr>
    <td width="20%" class="firstrow">{$langadmin.shopname}</td>
    <td class="secondrow"><input name="shop" type="text" id="shop" value="{$row->shop|escape:"htmlall"}" size="50"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.price}</td>
    <td class="secondrow"><input name="price" type="text" id="price" value="{$row->price|escape:"htmlall"}" size="50"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.links}<br>
      <small>{$langadmin.linksdesc}</small></td>
    <td class="secondrow"><textarea name="links" cols="100" rows="5" id="links">{$links}</textarea></td>
  </tr>
  <tr>
    <td colspan="2" class="theader"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="theader" style="padding:0px">{$langadmin.descr}</td>
        <td><div align="right">
		<div align="right">
<input onclick="javascript:document.getElementById('ishot').style.display='';document.getElementById('ishotbutt').style.display='';" type="button" class="button" value="{$langadmin.insertinlineshots}">
<span id="ishotbutt" style="display: none;"> <input onclick="javascript:document.getElementById('ishot').style.display='none';document.getElementById('ishotbutt').style.display='none';" type="button" class="button" value="{$langadmin.close}"></span>
 </div>
		</div></td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td colspan="2" class="firstrow" style="padding:0px">
	<input type="hidden" name="inline_screens" id="inline_screens" value="" />

<!-- SWITCHED IFRAME // -->
<div id="ishot" style="display: none;">
<iframe style="border:0px;width:100%;height:200px;" src="inlineshot.php?action=inline_screens&frameaction={$frameaction}&amp;id={$id}&amp;is={$inlineshots}" name="inline"></iframe>
</div>
<!-- // SWITCHED IFRAME -->
{$ed2}	
	</td>
    </tr>
  <tr>
    <td colspan="2" class="secondrow"><input name="area" type="hidden" id="area" value="{$smarty.request.area}">
      <input name="action" type="hidden" id="action" value="{$smarty.request.action}">
      <input name="save" type="hidden" id="save" value="1">
      <input name="charakter" type="hidden" id="charakter" value="{$smarty.request.charakter}">
      <input name="page" type="hidden" id="page" value="{$smarty.request.page}">
      <input name="pp" type="hidden" id="pp" value="{$smarty.request.pp}">
      <input name="area" type="hidden" id="area" value="{$smarty.request.area}">
      {if $smarty.request.action=="new"}
      <input type="submit" class="button" value="{$langadmin.save}">
      {else}
      
      
      <input name="id" type="hidden" id="id" value="{$smarty.request.id}">
      <input type="submit" class="button" value="{$langadmin.refresh}">
      {/if}</td>
    </tr>
</table>
</form>
{include file="../foot.tpl"}
