This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
{if $msgError}
$('billboard').innerHTML = '{$msgError}';
{/if}
{if $copyInfo}
$('billboard').innerHTML = 'Mo¿na g³osowaæ tylko jeden raz';
{/if}
{if $billboard}
$('billboard').innerHTML = '<embed src="{$billboard}" quality="high" bgcolor="#ffffff" width="100" height="38" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
{/if}

View File

@@ -0,0 +1,73 @@
<script type="text/javascript">
var ajaxCheckUnique = '{url value=customer,ajaxCheckUnique}';
</script>
<div class="header">{if $objCustomer->GetId()}Edycja reklamy{else}Dodaj reklamê{/if}</div>
<form action="{url value=customer,edit}" method="post" id="addCustomer" enctype="multipart/form-data" onsubmit="return formValidate(setCustomer);">
<input type="hidden" name="id" value="{$objCustomer->GetId()}" />
<br />
<table class="adminTable" align="center" style="width: 550px;" >
<tr>
<td class="header" colspan="2">Klient</td>
</tr>
<tr>
<td>Nazwa: </td>
<td><input class="input" type="text" name="name" id="name" value="{$objCustomer->GetName()}" onchange="javascript: CheckUnique('name', document.getElementById('name').value);" />
<div id="msg_name"><input type="hidden" name="nameUnique" id="nameUnique" value="true" /></div>
</td>
</tr>
<tr>
<td>Opis: </td>
<td><textarea name="content" id="content" class="textarea" cols="60" rows="8">{$objCustomer->GetSort()}</textarea></td>
</tr>
<tr>
<td class="header" colspan="2">Baner</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" id="banerFile" onchange="javascript: CheckFileType(this);" /><br />
<div id="fileValidate"></div>
{if $objCustomer->GetPath()}
<input type="hidden" name="banerSaved" id="banerSaved" value="{$objCustomer->GetFileName()}" />
{*Usuñ baner <input type="checkbox" value="baner" name="delete">*}
<br />
<div id="customer">
<embed src="{$objCustomer->GetUrl()}" quality="high" bgcolor="#ffffff" width="200" height="77" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</div>
{else}
{if $objCustomer->GetFileName()}
Brak pliku! Prosze wgraæ jeszcze raz.
<input type="hidden" name="baner" id="banerSaved" value="" />
{else}
<input type="hidden" name="baner" id="banerSaved" value="{$objCustomer->GetFileName()}" />
Brak
{/if}
{/if}
</td>
</tr>
<tr>
<td>Url: </td>
<td><input class="input" type="text" name="url" id="url" value="{$objCustomer->GetRedirectUrl()}" /></td>
</tr>
<tr>
<td>Sort: </td>
<td><input class="input" type="text" name="sort" id="sort" value="{$objCustomer->GetSort()}" /></td>
</tr>
<tr>
<td colspan="2"><button type="submit" value="Zapisz" name="saveCustomer" onclick="setCustomer = 1;">Zapisz</button> |
<input type="button" class="button" value=" Anuluj " onclick="javascript:document.location.href='{url value=$controller,index}'" /></td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,98 @@
<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>