<script type="text/javascript">AC_FL_RunContent = 0;</script>
<div class="panelRightTop"></div>
<div class="panelRightBody">
	<div class="paddedContent">
{assign var="additionalTitle" value="Zarządzanie strona gówna"}
    
<br />
    <form action="{url _value=home}" method="post" id="addCustomer"  enctype="multipart/form-data">
    {dropDownContainer title="banery" additionalTitle=$additionalTitle}
        <table class="adminTable" cellpadding="2" cellspacing="2" style="width: 800px;" align="center">
            <thead>
            <tr>
            <th style="width: 20px;">lp.</th>
            <th>Nazwa</th>
            <th>Baner</th>
            <th class="light" colspan="2"><a href="{url value=customer,edit}">dodaj</a></th>
            </tr>
            </thead>
            <tbody>
            {assign var=x value=1}
 						{assign var=y value=1}
            {foreach item=banner from=$arrayBanner key=id name=banner}
            {assign var=i value=$smarty.foreach.banner.iteration}
            <tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
                <td align="right" rowspan="2"> {$y++} </td>
                <td>
                		<input type="hidden" name="id[{$banner.id}]" value="{$banner.id}" />
                		<input type="text" name="name[{$banner.id}]" value="{$banner.name}" /> </td> 
                <td> {if $banner.fullPath}
						<div id="customer">
						<div id="flash{$banner.id}" class="flash"></div>	
					  	<script type="text/javascript">
							var so = new SWFObject("{$banner.fullUrl}", "klienci", "300", "100", "#121212");
										so.addParam("allowFullScreen","false");
										so.addParam("quality", "best");
										so.addParam("allowDomain", "always");
										so.addParam("AllowScriptAccess", "always");
										so.write("flash{$banner.id}");
						</script>	  	  
						</div>
					{else}
						&nbsp;
					{/if} </td> 

                <td align="center" colspan="2"></td>
           
            </tr> 
            <tr>
							<td valign="top">
									<input type="hidden" name="upload_file" value="true" />
									<input type="hidden" name="MAX_FILE_SIZE" value="800000000" />
										<b>baner</b>:
							</td>
							<td>
									<input class="input" type="file" name="baner{$banner.id}" id="banerFile" onchange="javascript: CheckFileType(this);" /><br />
									<div id="fileValidate"></div>
								{if $banner.fullPath}
									<input type="hidden" name="banerSaved{$banner.id}" id="banerSaved{$banner.id}" value="{$banner.fileName}" />
									{*Usuń baner <input type="checkbox" value="baner" name="delete">*}
									<br />	
										{$banner.fullUrl}
								{else}
									{if $banner.fileName}
									Brak pliku! Prosze wgrać jeszcze raz.
									<input type="hidden" name="banerSaved{$banner.id}" id="banerSaved{$banner.id}" value="" />
									{else}
									<input type="hidden" name="banerSaved{$banner.id}" id="banerSaved{$banner.id}" value="{$banner.fileName}" />
									Brak
									{/if}
								{/if}
							</td>
						</tr>  
    
						

						
			      
            {/foreach}   
 
                          
        </table>
         {/dropDownContainer}						
       </div>
</div
<div class="panelRightBottom">
		<div class="panelButtons">
			
			<input type="button" class="button buttonAnuluj" value="" name="" onclick="window.location='{url _value=structure}';" />
			
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			{*<input type="submit" class="button buttonPodglad" value="" name="preview"/>*}
			<input type="submit" name="saveBanners" class="button buttonZapisz" value=""  />
		</div>
	</div>
	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
<input type="hidden" name="extraHidden" id="extraHidden" value="" />
</form>