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,79 @@
<form method="post" action="{url Maps='Add'}" enctype="multipart/form-data">
{if isset($objMaps)}
<input type="hidden" name="idMaps" value="{$objMaps->GetId()}" />
{/if}
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
{assign var="additionalTitle" value=""}
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
<tbody>
<tr>
<td>nazwa:</td>
<td>
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetName'}
{if isset($error.name)}<div style="color: red;" id="actionError">{$error.name}</div>{/if}
</td>
</tr>
<tr>
<td>miasto:</td>
<td>
{formField name='city' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetCity'}
</td>
</tr>
<tr>
<td>adres:</td>
<td>
{formField name='address' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetAddress'}
</td>
</tr>
<tr>
<td>kordynaty - lng:</td>
<td>
{formField name='lng' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLng'}
</td>
</tr>
<tr>
<td>kordynaty - lat:</td>
<td>
{formField name='lat' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLat'}
</td>
</tr>
<tr>
<td>waga:</td>
<td>
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetWeight'}
</td>
</tr>
<tr>
<td>Publikuj:</td>
<td>{formField type='checkbox' name='publication' obj='objMaps' func='GetPublication'}</td>
</tr>
{*<tr>
<td>Opis:</td>
<td>{formField type='textarea' name='description' obj='objMaps' func='GetDescription'}</td>
</tr>*}
</tbody>
</table>
{/dropDownContainer}
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
{if isset($idStructure)}
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
{else}
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Maps=index}'"/>
{/if}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="doMapsAdd"/>
</div>
</div>
</form>

View File

@@ -0,0 +1,79 @@
<form method="post" action="{url Maps='Edit' idMaps=$objMaps->GetId()}" enctype="multipart/form-data">
{if isset($objMaps)}
<input type="hidden" name="idMaps" value="{$objMaps->GetId()}" />
{/if}
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
{assign var="additionalTitle" value=""}
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
<tbody>
<tr>
<td>nazwa:</td>
<td>
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetName'}
{if isset($error.name)}<div style="color: red;" id="actionError">{$error.name}</div>{/if}
</td>
</tr>
<tr>
<td>miasto:</td>
<td>
{formField name='city' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetCity'}
</td>
</tr>
<tr>
<td>adres:</td>
<td>
{formField name='address' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetAddress'}
</td>
</tr>
<tr>
<td>kordynaty - lng:</td>
<td>
{formField name='lng' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLng'}
</td>
</tr>
<tr>
<td>kordynaty - lat:</td>
<td>
{formField name='lat' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLat'}
</td>
</tr>
<tr>
<td>waga:</td>
<td>
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetWeight'}
</td>
</tr>
<tr>
<td>Publikuj:</td>
<td>{formField type='checkbox' name='publication' obj='objMaps' func='GetPublication'}</td>
</tr>
{*<tr>
<td>Opis:</td>
<td>{formField type='textarea' name='description' obj='objMaps' func='GetDescription'}</td>
</tr>*}
</tbody>
</table>
{/dropDownContainer}
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
{if isset($idStructure)}
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
{else}
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url Maps=index}'"/>
{/if}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="doMapsEdit"/>
</div>
</div>
</form>

View File

@@ -0,0 +1,51 @@
{dropDownContainer title="Lista"}
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
<tr>
<th>tytuł</th>
<th>data utworzenia</th>
<th>publikacja</th>
<th>opis</th>
{*<th>Polecany</th>*}
<th width="60">
<a href="{url File=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if}><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
</th>
</tr>
{if !isset($add)}
{assign var=x value=1}
{foreach from=$arrayObj item=obj name=obj}
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
<td>{$obj->GetTitle()}</td>
<td>{$obj->GetDate()}</td>
<td>{if $obj->GetPublication()}p*{/if}</td>
<td>{$obj->GetDescription()|strip_tags}</td>
{*<td id="special_info_{$obj->GetId()}" onclick="Special('{$obj->GetId()}', document.getElementById('special_{$obj->GetId()}').value, '{url File=special}'); return false;"> <a href="#" title="zmień">{$obj->GetSpecial()|replace:"0":"Nie"|replace:"1":"Tak" }</a> </td>*}
<td style="text-align: center;" nowrap>
<a href="{url File=Edit idFile=$obj->GetId()}" class="edit">edytuj</a> |
<a href="{url Client=File idFile=$obj->GetId()}" class="linked" title="Zobacz podlinkowanych klientów">zobacz</a> |
<a href="{url File=Delete idFile=$obj->GetId()}" onclick="{literal}if (confirm('Czy napewno usunąć ten element?')) { } else {return false;}{/literal}"class="delete">usuń</a>
</td>
</tr>
{if $smarty.foreach.obj.last}
<tr>
<td colspan="10" align="center" >
<div class="paging">
{insertPagination}
</div>
</td>
</tr>
{/if}
{foreachelse}
{if !isset($searchString) || $searchString == ""}
<tr>
<td colspan="5" style="text-align: center;">Brak zdefiniowanych artykułów. <br/> Aby dodać kliknij link 'dodaj'.</td>
</tr>
{/if}
{/foreach}
{else}
<tr>
<td colspan="5" style="text-align: center;">Aby dodać wpis, proszę zapisać element struktury.</td>
</tr>
{/if}
</table>
{/dropDownContainer}

View File

@@ -0,0 +1,63 @@
{dropDownContainer title=$moduleName|default:"Lista" icon=$moduleBoxConfg['files'] moduleBoxId=$moduleBoxId}
<div class="container" style="max-height: 500px; overflow-y: auto;">
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
<tr>
<th>id</th>
<th>nazwa</th>
<th>miasto</th>
<th>adres</th>
<th>koordynaty</th>
<th>typ</th>
<th>publikacja</th>
<th>waga</th>
{*<th>Polecany</th>*}
<th style="width: 40px; text-align: center;" >
<a class="optionIcon iconAdd" title="EdDodajytuj" href="{url Maps=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if}>&nbsp;</a>
</th>
</tr>
{if !isset($add)}
{assign var=x value=1}
{foreach from=$arrayObj item=obj name=obj}
{assign var=type value=$obj->GetType()}
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
<td>{$obj->GetId()}</td>
<td>{$obj->GetName()}</td>
<td>{$obj->GetCity()}</td>
<td>{$obj->GetAddress()}</td>
<td>{$obj->GetLng()} - {$obj->GetLat()}</td>
<td>{$arrayMapsType[$type]}</td>
<td>{if $obj->GetPublication()}p*{/if}</td>
<td>{$obj->GetWeight()}</td>
{*<td id="special_info_{$obj->GetId()}" onclick="Special('{$obj->GetId()}', document.getElementById('special_{$obj->GetId()}').value, '{url Maps=special}'); return false;"> <a href="#" title="zmień">{$obj->GetSpecial()|replace:"0":"Nie"|replace:"1":"Tak" }</a> </td>*}
<td style="text-align: center;">
<a class="optionIcon iconEdit" title="Edytuj" href="{url Maps=Edit idMaps=$obj->GetId() idElement=$idElement}">&nbsp;</a>
{if $admin->GetRole() != 'moderator'}
<a class="optionIcon iconDelete" title="Usuń" href="{url Maps=Delete idMaps=$obj->GetId() idElement=$idElement}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url Maps=Delete idMaps=$obj->GetId() idElement=$idElement}{literal}')) { } else {return false;}{/literal}">&nbsp;</a>
{/if}
</td>
</tr>
{if $smarty.foreach.obj.last}
<tr>
<td colspan="10" align="center" >
<div class="paging">
{insertPagination}
</div>
</td>
</tr>
{/if}
{foreachelse}
{if !isset($searchString) || $searchString == ""}
<tr>
<td colspan="5" style="text-align: center;">Brak zdefiniowanych artykułów. <br/> Aby dodać kliknij link 'dodaj'.</td>
</tr>
{/if}
{/foreach}
{else}
<tr>
<td colspan="5" style="text-align: center;">Aby dodać wpis, proszę zapisać element struktury.</td>
</tr>
{/if}
</table>
</div>
{/dropDownContainer}