<body style="background:#fff; padding:0px">
<script>
{literal}
parent.document.getElementById('inline_screens').value = '{/literal}{$thearray}{literal}';
{/literal}
</script>
<script language="JavaScript" type="text/javascript">
{literal}
function check(){
if( document.kform.titel.value == "")
	{
	alert("{/literal}{#Inline_upNoT#}{literal}");
	document.kform.titel.focus();
	 return false;
	}
	
if( document.kform.text.value == "")
	{
	alert("{/literal}{#Inline_upNoD#}{literal}");
	document.kform.text.focus();
	return false;
	}
	
if( document.kform.shot.value == "")
	{
	alert("{/literal}{#Inline_upNoI#}{literal}");
	return false;
	}
}


	
function insertIS(code)
{
	parent.document.getElementById('News___Frame').contentWindow.FCK.InsertHtml(code);
}

</script>
{/literal}
  



<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <tr>
  {section name=hw loop=$hiddenvalue}
  <form action="?do=inlineshots&action=rm_inline&noframes=1&langcode={$smarty.request.langcode}&fieldname={$smarty.request.fieldname}" method="post">
    <input type="hidden" name="code" value="{$hiddenvalue[hw].hiddencode}" />
    <input type="hidden" name="id" value="{$hiddenvalue[hw].hiddenid}" />
    <tr class="{cycle name='is' values='second,first'}">
      <td width="100" valign="top" class="c1">
      <input class="input" style="width:80px" type="text" value="[SCREEN:{$hiddenvalue[hw].hiddenid}]" readonly="readonly">
      </td>
      <td width="100" align="center" valign="top" class="c1"><input class="input" type="text" name="titel" size="32" style="width:120px;" value="{$hiddenvalue[hw].titel|koobispecialchars}" />
       </td>
      <td width="200" valign="top"><textarea class="input" name="text" cols="40" rows="4" style="width:380px; height:200px; font-size:12px">{$hiddenvalue[hw].text|koobispecialchars}</textarea>      </td>
      <td width="100" align="center" valign="top"><img src="../system/thumb.php?type=inline&img_id={$hiddenvalue[hw].img_id}"  border="0" />
        <input name="img_id" type="hidden" id="img_id" value="{$hiddenvalue[hw].img_id}"></td>
      <td align="center">
      {strip}
      {if perm('inline_delete')}
        <button style="width:100px" name="submit" value="delete" type="submit" class="button">{#Global_Delete#}</button>
        <br />
        <button style="width:100px"  name="submit" value="edit" type="submit" class="button">{#Inline_save#}</button>
        <br />
        {/if}
        {*
        {if $buttoninsert==1}<input style="width:100px" type="button" class="button" onClick="insertIS('[SCREEN:{$hiddenvalue[hw].hiddenid}]')" value="{#Global_Insert#}" />
         {/if}   
        *}
          
         {/strip}        
         </td>
    </tr>
  </form>
  {/section} 
  
</table>

 {if perm('inline_upload')}
 <div class="subheaders"><strong>{#Global_InlineNew#}</strong></div>
  <form name="kform" action="?do=inlineshots&action=add_inline&noframes=1&langcode={$smarty.request.langcode}&fieldname={$smarty.request.fieldname}" method="post" enctype="multipart/form-data" onSubmit="return check();">
    <input type="hidden" name="code" value="{$hiddens}" />
   <table width="100%" border="0" cellpadding="2" cellspacing="0">
    <tr class="second">
      <td width="100" valign="top">&nbsp;</td>
      <td width="100" valign="top"><input class="input" type="text" name="titel" size="32" style="width:120px;" /></td>
      <td colspan="3"><textarea class="input" name="text" cols="40" rows="4" style="width:380px; height:200px; font-size:12px"></textarea>
        <br>
        
        <input type="file" name="shot" />
        <input type="submit" class="button" value="{#Inline_upload#}" />
       </td>
    </tr>
    </table>
  </form>
  {/if} 
