first commit
This commit is contained in:
100
_rejestracja/_Admin/template/partial/Calc/Add.tpl
Normal file
100
_rejestracja/_Admin/template/partial/Calc/Add.tpl
Normal file
@@ -0,0 +1,100 @@
|
||||
<h1>Dodaj parametr</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<form method="post" action="{url Calc='Add'}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="opis" cols="54" rows="5">{$obj->GetOpis()}</textarea>
|
||||
{if isset($error.opis)}<div style="color: red;" id="actionError">{$error.opis}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cena:</td>
|
||||
<td class="left">
|
||||
{formField name='price' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getPrice'}
|
||||
{if isset($error.price)}<div style="color: red;" id="actionError" class="validate">{$error.price}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Powiązane z:</td>
|
||||
<td class="left">
|
||||
{formField name='link_id' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getLinkId'}
|
||||
{if isset($error.link_id)}<div style="color: red;" id="actionError" class="validate">{$error.link_id}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Czy lista (radio):</td>
|
||||
<td>{formField type='checkbox' name='list' obj='obj' func='GetList'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Czy cena progresywna:</td>
|
||||
<td>{formField type='checkbox' name='price_progres' obj='obj' func='GetPriceProgres'}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Ilość zmiany ceny (wieksze od):</td>
|
||||
<td class="left">
|
||||
{formField name='count_progres' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getCountProgres'}
|
||||
{if isset($error.count_progres)}<div style="color: red;" id="actionError" class="validate">{$error.count_progres}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jednostka miary:</td>
|
||||
<td class="left">
|
||||
{formField name='unit' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUnit'}
|
||||
{if isset($error.unit)}<div style="color: red;" id="actionError" class="validate">{$error.unit}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='sort' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getSort'}
|
||||
{if isset($error.sort)}<div style="color: red;" id="actionError" class="validate">{$error.sort}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Calc=Index}'"/>
|
||||
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
99
_rejestracja/_Admin/template/partial/Calc/Edit.tpl
Normal file
99
_rejestracja/_Admin/template/partial/Calc/Edit.tpl
Normal file
@@ -0,0 +1,99 @@
|
||||
<h1>Edytuj parametr</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<form method="post" action="{url Calc='Edit' id=$obj->GetId()}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="opis" cols="54" rows="5">{$obj->GetOpis()}</textarea>
|
||||
{if isset($error.opis)}<div style="color: red;" id="actionError">{$error.opis}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cena:</td>
|
||||
<td class="left">
|
||||
{formField name='price' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getPrice'}
|
||||
{if isset($error.price)}<div style="color: red;" id="actionError" class="validate">{$error.price}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="none">
|
||||
<td>Powiązane z:</td>
|
||||
<td class="left">
|
||||
{formField name='link_id' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getLinkId'}
|
||||
{if isset($error.link_id)}<div style="color: red;" id="actionError" class="validate">{$error.link_id}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="none">
|
||||
<td>Czy lista (radio):</td>
|
||||
<td>{formField type='checkbox' name='list' obj='obj' func='GetList'}</td>
|
||||
</tr>
|
||||
<tr class="none">
|
||||
<td>Czy cena progresywna:</td>
|
||||
<td>{formField type='checkbox' name='price_progres' obj='obj' func='GetPriceProgres'}</td>
|
||||
</tr>
|
||||
<tr class="none">
|
||||
<td>Ilość zmiany ceny (wieksze od):</td>
|
||||
<td class="left">
|
||||
{formField name='count_progres' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getCountProgres'}
|
||||
{if isset($error.count_progres)}<div style="color: red;" id="actionError" class="validate">{$error.count_progres}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jednostka miary:</td>
|
||||
<td class="left">
|
||||
{formField name='unit' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUnit'}
|
||||
{if isset($error.unit)}<div style="color: red;" id="actionError" class="validate">{$error.unit}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='sort' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getSort'}
|
||||
{if isset($error.sort)}<div style="color: red;" id="actionError" class="validate">{$error.sort}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Calc=Index}';"/>
|
||||
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
43
_rejestracja/_Admin/template/partial/Calc/Index.tpl
Normal file
43
_rejestracja/_Admin/template/partial/Calc/Index.tpl
Normal file
@@ -0,0 +1,43 @@
|
||||
<h1>Konfigurator</h1>
|
||||
|
||||
{dropDownContainer title='Grupy'}
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th>Cena (netto)<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th>Cena (brutto)<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">{*<a href="{url Calc=Add}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a>*}</div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObj item=obj}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url Calc=Edit id=$id}" title="edytuj">{$obj->GetName()}</a></td>
|
||||
<td>{$obj->GetPrice()|number_format:2:",":" "}</td>
|
||||
<td>{assign var="vat" value=$obj->GetPrice()*1.23}{$vat|number_format:2:",":" "}</td>
|
||||
<td>{$obj->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url Calc=Edit id=$id}" class="edit">edytuj</a>{*<a href="{url Calc=Delete id=$id}" class="delete">usuń</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
103
_rejestracja/_Admin/template/partial/Calc/Reg.tpl
Normal file
103
_rejestracja/_Admin/template/partial/Calc/Reg.tpl
Normal file
@@ -0,0 +1,103 @@
|
||||
<h1>Konferencja - Rejestracja</h1>
|
||||
|
||||
{dropDownContainer title='Zgłoszenia Rejestracji'}
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Imię</th>
|
||||
<th>Nazwisko</th>
|
||||
<th>Dane uczestnika</th>
|
||||
<th>Dane instytucji</th>
|
||||
<th>Dane wystąpienia</th>
|
||||
<th>Do zapłaty</th>
|
||||
<th>Zgody</th>
|
||||
<th>Status opłaty</th>
|
||||
{* <th>Data rejestracji</th> *}
|
||||
<th class="noSort"> </div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObj item=obj}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=id value=$obj->GetId()}
|
||||
{assign var=arrayFee value=$obj->getFeeFullUnserialize()}
|
||||
{if isset($arrayFee['disc'])}
|
||||
{assign var=discPrice value=$arrayFee['disc']}
|
||||
{else}
|
||||
{assign var=discPrice value='brak'}
|
||||
{/if}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetSurname()}</td>
|
||||
<td>Tytuł/stop. naukowy:{$obj->getDegree()}</br>
|
||||
Stanowisko: {$obj->getPosition()}</br>
|
||||
Telefon: {$obj->getPhone()}</br>
|
||||
Fax: {$obj->getFax()}</br>
|
||||
Email: {$obj->getEmail()}</br></td>
|
||||
<td>Instytucja: {$obj->getInstitution()}</br>
|
||||
Ulica i numer: {$obj->getAddress()}</br>
|
||||
Kod pocztowy: {$obj->getPostCode()}</br>
|
||||
Miejscowość: {$obj->getCity()}</br>
|
||||
NIP Instytucji: {$obj->getNip()}</br></td>
|
||||
<td>Referat: {$obj->getReferat()|replace:1:'Tak'|replace:0:'Nie'|replace:2:'Nie'}</br>
|
||||
Poster: {$obj->getPoster()|replace:1:'Tak'|replace:0:'Nie'|replace:2:'Nie'}
|
||||
<p>Temat: {$obj->getMessage()|default:'brak'}</p>
|
||||
<p>Streszczemie: {$obj->getMessageLong()|default:'brak'|truncate:150}</p>
|
||||
<p>Autor: {$obj->getAutor()|default:'brak'}</p></td>
|
||||
<td>Wybrane opcje:</br>
|
||||
{if $discPrice == 2}
|
||||
|
||||
Opłata zwykła (płatność <b>po 08.10.2021</b>)
|
||||
{else}
|
||||
Opłata obniżona (płatność <b>do 08.10.2021</b>)
|
||||
{/if}
|
||||
<ul>
|
||||
{foreach $arrayObjParameters as $objParam}
|
||||
{if in_array($objParam->GetId(),$arrayFee)}
|
||||
{if $discPrice == 2}
|
||||
<li>{$objParam->GetName()} {if $objParam->GetId() eq 5}({$obj->GetFeeOneDay()}){/if}</br>
|
||||
Cena netto: {$objParam->GetPrice()|number_format:2:",":" "} PLN</br>
|
||||
Cena brutto: {assign var="vat" value=$objParam->GetPrice()*1.23}{$vat|number_format:2:",":" "} PLN</br>
|
||||
</li>
|
||||
{else}
|
||||
<li>{$objParam->GetName()} {if $objParam->GetId() eq 5}({$obj->GetFeeOneDay()}){/if}</br>
|
||||
Cena netto (bez VAT): {$objParam->GetPriceProm()|number_format:2:",":" "} PLN</br>
|
||||
Cena brutto (z VAT): {assign var="vat" value=$objParam->GetPriceProm()*1.23}{$vat|number_format:2:",":" "} PLN</br>
|
||||
</li>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<h3>Razem do zapłaty:</h3>
|
||||
{assign var="resultPrice" value=$obj->getPrice()}
|
||||
Cena netto: {$resultPrice|number_format:2:",":" "} PLN</br>
|
||||
Cena brutto: {assign var="resultPriceVat" value=$resultPrice*1.23}{$resultPriceVat|number_format:2:",":" "} PLN</br>
|
||||
|
||||
|
||||
</ul>
|
||||
</td>
|
||||
<td>Zgoda przetwarzanie danych: {$obj->GetAgree1()|replace:1:'Tak'|replace:0:'Nie'} </br>
|
||||
Zgoda przetwarzanie wizerunku: {$obj->GetAgree2()|replace:1:'Tak'|replace:0:'Nie'}
|
||||
</td>
|
||||
<td>{$obj->GetStatus()|replace:2:'Tak'|replace:1:'Nie'}</td>
|
||||
{* <td>{$obj->GetDateAdd()}</td>*}
|
||||
<td style="width:15px">
|
||||
<a href="{url Calc=RegEdit id=$id}" class="edit">edytuj</a><a href="{url Calc=RegDelete id=$id}" onclick="{literal}if (confirm('Czy napewno usunąć ten element?')) { } else {return false;}{/literal}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
121
_rejestracja/_Admin/template/partial/Calc/RegEdit.tpl
Normal file
121
_rejestracja/_Admin/template/partial/Calc/RegEdit.tpl
Normal file
@@ -0,0 +1,121 @@
|
||||
<h1>Edytuj zgłoszenie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<form method="post" action="{url Calc='RegEdit' id=$obj->GetId()}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Dane uczestnika:</td>
|
||||
<td>
|
||||
Imię: {$objParticipant->getName()}</br>
|
||||
Nazwisko: {$objParticipant->getSurname()}</br>
|
||||
Tytuł/stop. naukowy:{$objParticipant->getDegree()}</br>
|
||||
Stanowisko: {$objParticipant->getPosition()|default:'brak'}</br>
|
||||
Telefon: {$objParticipant->getPhone()}</br>
|
||||
Fax: {$objParticipant->getFax()|default:'brak'}</br>
|
||||
Email: {$objParticipant->getEmail()}</br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Dane instytucji::</td>
|
||||
<td class="left">
|
||||
Instytucja: {$objParticipant->getInstitution()|default:'brak'}</br>
|
||||
Ulica i numer: {$objParticipant->getAddress()|default:'brak'}</br>
|
||||
Kod pocztowy: {$objParticipant->getPostCode()|default:'brak'}</br>
|
||||
Miejscowość: {$objParticipant->getCity()|default:'brak'}</br>
|
||||
NIP Instytucji: {$objParticipant->getNip()|default:'brak'}</br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Dane wystąpienia:</td>
|
||||
<td class="left">
|
||||
Referat: {$objParticipant->getReferat()|default:'Nie'|replace:1:'Tak'|replace:2:'Nie'|replace:0:'Nie'}</br>
|
||||
Poster: {$objParticipant->getPoster()|default:'Nie'|replace:1:'Tak'|replace:2:'Nie'|replace:0:'Nie'}
|
||||
<p>Temat: {$objParticipant->getMessage()|default:'brak'}</p>
|
||||
<p>Streszczenie: {$objParticipant->getMessageLong()|default:'brak'}</p>
|
||||
<p>Autor: {$objParticipant->getAutor()|default:'brak'}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Informacja o kwocie do zapłaty:</td>
|
||||
<td class="left">
|
||||
Wybrane opcje:</br>
|
||||
{if $discPrice == 2}
|
||||
|
||||
Opłata zwykła (płatność <b>po 08.10.2021</b>)
|
||||
{else}
|
||||
Opłata obniżona (płatność <b>do 08.10.2021</b>)
|
||||
{/if}
|
||||
<ul>
|
||||
{foreach $arrayObjParameters as $objParam}
|
||||
{if in_array($objParam->GetId(),$arrayFee)}
|
||||
{if $discPrice == 2}
|
||||
<li>{$objParam->GetName()} {if $objParam->GetId() eq 5}({$objParticipant->GetFeeOneDay()}){/if}</br>
|
||||
Cena netto: {$objParam->GetPrice()|number_format:2:",":" "} PLN</br>
|
||||
Cena brutto: {assign var="vat" value=$objParam->GetPrice()*1.23}{$vat|number_format:2:",":" "} PLN</br>
|
||||
</li>
|
||||
{else}
|
||||
<li>{$objParam->GetName()} {if $objParam->GetId() eq 5}({$objParticipant->GetFeeOneDay()}){/if}</br>
|
||||
Cena netto (bez VAT): {$objParam->GetPriceProm()|number_format:2:",":" "} PLN</br>
|
||||
Cena brutto (z VAT): {assign var="vat" value=$objParam->GetPriceProm()*1.23}{$vat|number_format:2:",":" "} PLN</br>
|
||||
</li>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<h3>Razem do zapłaty:</h3>
|
||||
{assign var="resultPrice" value=$objParticipant->getPrice()}
|
||||
Cena netto: {$resultPrice|number_format:2:",":" "} PLN</br>
|
||||
Cena brutto: {assign var="resultPriceVat" value=$resultPrice*1.23}{$resultPriceVat|number_format:2:",":" "} PLN</br>
|
||||
|
||||
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Wyrażono zgody</td>
|
||||
<td class="left">
|
||||
<p>Zgoda na przetwarzanie danych - {$objParticipant->getAgree1()|default:'Nie'|replace:1:'Tak'|replace:'on':'Tak'|replace:0:'Nie'}</p>
|
||||
|
||||
<p>Zgoda na przetwarzanie wizerunku - {$objParticipant->getAgree2()|default:'Nie'|replace:1:'Tak'|replace:'on':'Tak'|replace:0:'Nie'}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Status opłaty: </td><td>
|
||||
<select class="input" style="width: 100px;" name="payment_status">
|
||||
<option value="1" {if $objParticipant->GetStatus() == 1}selected="selected"{/if}>nie opołacone</option>
|
||||
<option value="2" {if $objParticipant->GetStatus() == 2}selected="selected"{/if}>opołacone</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Calc=Reg}';"/>
|
||||
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
64
_rejestracja/_Admin/template/partial/Config/Add.tpl
Normal file
64
_rejestracja/_Admin/template/partial/Config/Add.tpl
Normal file
@@ -0,0 +1,64 @@
|
||||
<h1>Dodaj Grupę</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Config='Add'}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="description" cols="54" rows="5">{$obj->GetDescription()}</textarea>
|
||||
{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getWeight'}
|
||||
{if isset($error.weight)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
69
_rejestracja/_Admin/template/partial/Config/AddElement.tpl
Normal file
69
_rejestracja/_Admin/template/partial/Config/AddElement.tpl
Normal file
@@ -0,0 +1,69 @@
|
||||
<h1>Dodaj Grupę</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Config='AddElement' idMain=$idMain}" enctype="multipart/form-data">
|
||||
<input type="hidden" name="idMain" value="{$idMain}" />
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="description" cols="54" rows="5">{$obj->GetDescription()}</textarea>
|
||||
{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Pole inne:</td>
|
||||
<td>{formField type='checkbox' name='other' obj='obj' func='GetOther'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getWeight'}
|
||||
{if isset($error.weight)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idMain)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Edit id=$idMain}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
43
_rejestracja/_Admin/template/partial/Config/AjaxArchive.tpl
Normal file
43
_rejestracja/_Admin/template/partial/Config/AjaxArchive.tpl
Normal file
@@ -0,0 +1,43 @@
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="noSort"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th class="noSort">Klient<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Konfiguracja<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Data Dodania<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Status<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"> </th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObj item=obj}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<tr>
|
||||
<td>{$x}</td>
|
||||
<td>
|
||||
{$obj->GetLastName()} {$obj->GetName()}<br />
|
||||
Firma: {$obj->GetCompany()}<br />
|
||||
Email: {$obj->GetEmail()}<br />
|
||||
tel. {$obj->GetPhone()}<br />
|
||||
|
||||
</td>
|
||||
<td>{$obj->getDescription()|replace:'<ul>':'<ul id="configList">'}</td>
|
||||
<td>{$obj->getDateAdd()}</td>
|
||||
<td>{$obj->GetStatus()|replace:0:"Nowe"|replace:1:"W takcie"|replace:2:"Zakończone"}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url Config=ShowArchive id=$id}" class="read">zobacz</a>{*<a href="{url Config=DeleteArchive id=$id}" class="delete">usuń</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
67
_rejestracja/_Admin/template/partial/Config/Archive.tpl
Normal file
67
_rejestracja/_Admin/template/partial/Config/Archive.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
<h1>Zapytania - konfigurator</h1>
|
||||
|
||||
{dropDownContainer title='Lista konfiguracji'}
|
||||
<div class="searchBox">
|
||||
Firma: <input name="search" id="search" onkeyup="GetTableContent('{url Config=AjaxArchive}', '#tableContentClient', $('#search').val(), $('#roleList').val());" />
|
||||
Status: <select name="statusList" id="statusList" onchange="GetTableContent('{url Config=AjaxArchive}', '#tableContentClient', $('#search').val(), $('#statusList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="0">
|
||||
Nowe
|
||||
</option>
|
||||
<option value="1">
|
||||
W takcie
|
||||
</option>
|
||||
<option value="2">
|
||||
Zakończone
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="tableContentClient">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="noSort"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th class="noSort">Klient<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Konfiguracja<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Data Dodania<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Status<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"> </th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObj item=obj}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<tr>
|
||||
<td>{$x}</td>
|
||||
<td>
|
||||
{$obj->GetLastName()} {$obj->GetName()}<br />
|
||||
Firma: {$obj->GetCompany()}<br />
|
||||
Email: {$obj->GetEmail()}<br />
|
||||
tel. {$obj->GetPhone()}<br />
|
||||
|
||||
</td>
|
||||
<td>{$obj->getDescription()|replace:'<ul>':'<ul id="configList">'}</td>
|
||||
<td>{$obj->getDateAdd()}</td>
|
||||
<td>{$obj->GetStatus()|replace:0:"Nowe"|replace:1:"W takcie"|replace:2:"Zakończone"}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url Config=ShowArchive id=$id}" class="read">zobacz</a>{*<a href="{url Config=DeleteArchive id=$id}" class="delete">usuń</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
103
_rejestracja/_Admin/template/partial/Config/Edit.tpl
Normal file
103
_rejestracja/_Admin/template/partial/Config/Edit.tpl
Normal file
@@ -0,0 +1,103 @@
|
||||
<h1>Edytuj Grupę</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<form method="post" action="{url Config='Edit' id=$obj->GetId()}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="description" cols="54" rows="5">{$obj->GetDescription()}</textarea>
|
||||
{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getWeight'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Elementy grupy" additionalTitle=$additionalTitle}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"><a href="{url Config=AddElement idMain=$id}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{assign value=$obj->getStepElement() var=arrayObjElement}
|
||||
{foreach from=$arrayObjElement item=objStepElement}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=idElement value=$objStepElement->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url Config=EditElement id=$idElement idMain=$id}" title="edytuj">{$objStepElement->GetName()}</a></td>
|
||||
<td>{$obj->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url Config=EditElement id=$idElement idMain=$id}" class="edit">edytuj</a><a href="{url Config=DeleteElement id=$idElement idMain=$id}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
68
_rejestracja/_Admin/template/partial/Config/EditElement.tpl
Normal file
68
_rejestracja/_Admin/template/partial/Config/EditElement.tpl
Normal file
@@ -0,0 +1,68 @@
|
||||
<h1>Edytuj Grupę</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<form method="post" action="{url Config='EditElement' id=$obj->GetId() idMain=$idMain}" enctype="multipart/form-data">
|
||||
<input type="hidden" name="idMain" value="{$idMain}" />
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="description" cols="54" rows="5">{$obj->GetDescription()}</textarea>
|
||||
{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Pole inne:</td>
|
||||
<td>{formField type='checkbox' name='other' obj='obj' func='GetOther'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getWeight'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idMain)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Edit id=$idMain}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
40
_rejestracja/_Admin/template/partial/Config/Index.tpl
Normal file
40
_rejestracja/_Admin/template/partial/Config/Index.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
<h1>Konfigurator</h1>
|
||||
|
||||
{dropDownContainer title='Grupy'}
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"><a href="{url Config=Add}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObj item=obj}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url Config=Edit id=$id}" title="edytuj">{$obj->GetName()}</a></td>
|
||||
<td>{$obj->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url Config=Edit id=$id}" class="edit">edytuj</a><a href="{url Config=Delete id=$id}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
67
_rejestracja/_Admin/template/partial/Config/ShowArchive.tpl
Normal file
67
_rejestracja/_Admin/template/partial/Config/ShowArchive.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
<h1>Konfiguracja CRM</h1>
|
||||
|
||||
{dropDownContainer title="Ogólne"}
|
||||
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Klient:</td>
|
||||
<td>
|
||||
{$obj->GetLastName()} {$obj->GetName()}<br />
|
||||
Firma: {$obj->GetCompany()}<br />
|
||||
Email: {$obj->GetEmail()}<br />
|
||||
tel. {$obj->GetPhone()}<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Konfiguracja:</td>
|
||||
<td>
|
||||
{$obj->getDescription()|replace:'<ul>':'<ul id="configList">'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Data dodania:</td>
|
||||
<td>
|
||||
{$obj->getDateAdd()}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Status: </td>
|
||||
<td>
|
||||
<div class="left">
|
||||
<select name="status" id="status" onchange="StatusConfigArchive('{url Config=AjaxArchiveStatus}', {$obj->GetId()}, $('#status').val());" class="left">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="0" {if $obj->GetStatus() ==0}selected{/if}>
|
||||
Nowe
|
||||
</option>
|
||||
<option value="1" {if $obj->GetStatus() ==1}selected{/if}>
|
||||
W takcie
|
||||
</option>
|
||||
<option value="2" {if $obj->GetStatus() ==2}selected{/if}>
|
||||
Zakończone
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="statusInfo"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="button" value="Wróć" class="cancel" onclick="document.location.href='{url Config=Archive}'"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
{/dropDownContainer}
|
||||
56
_rejestracja/_Admin/template/partial/Dictionary/Edit.tpl
Normal file
56
_rejestracja/_Admin/template/partial/Dictionary/Edit.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
<form method="post" action="{url Dictionary='Edit' id=$objDict->GetId()}" id="sendForm" enctype="multipart/form-data">
|
||||
<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>Klucz</td>
|
||||
<td>
|
||||
{$objDict->GetKeyword()}
|
||||
<input name="keyword" type="hidden" value="{$objDict->GetKeyword()}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Wersja PL</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[pl]">{$objDict->GetReplacement()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="display: none;">
|
||||
<td>Wersja EN</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[en]">{$objDict->GetReplacementEn()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Wersja RU</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[ru]">{$objDict->GetReplacementRu()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Wersja DE</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[de]">{$objDict->GetReplacementDe()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url Dictionary=Index}'"/>
|
||||
|
||||
<input type="submit" value="Zapisz" name="doDictEdit"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
81
_rejestracja/_Admin/template/partial/Dictionary/Index.tpl
Normal file
81
_rejestracja/_Admin/template/partial/Dictionary/Index.tpl
Normal file
@@ -0,0 +1,81 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{*dropDownContainer isClose=true title="Wyszukiwarka"}
|
||||
<form method="post" action="">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Data:</td>
|
||||
<td class="left">
|
||||
<input type="text" name="dataOd" /> - <input type="text" name="dataDo" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szukana Fraza:</td>
|
||||
<td class="left"><input class="input420" type="text" class="searchString" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="right">
|
||||
<input class="button" type="submit" value="Wyszukaj"/> <input class="button" name="clear" type="submit" value="Wyczyść" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
{/dropDownContainer*}
|
||||
|
||||
{dropDownContainer title="Słownik"}
|
||||
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1">
|
||||
<tr>
|
||||
<th>klucz</th>
|
||||
<th>Wersja PL</th>
|
||||
{*<th>Wersja EN</th>*}
|
||||
{*<th>Wersja RU</th>
|
||||
<th>Wersja DE</th>*}
|
||||
|
||||
|
||||
<th width="60">
|
||||
{*<a href="{url SimpleArticle_Index=Add}" onclick="return load(this);"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>*}
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
{assign var=x value=1}
|
||||
{foreach from=$arrayObjDict item=objWord name=word}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
|
||||
<td>{$objWord->GetKeyword()}</td>
|
||||
<td>{$objWord->GetReplacement()}</td>
|
||||
{*<td>{$objWord->GetReplacementEn()}</td>*}
|
||||
{*<td>{$objWord->GetReplacementRu()}</td>
|
||||
<td>{$objWord->GetReplacementDe()}</td>*}
|
||||
|
||||
<td style="text-align: center;">
|
||||
<a href="{url Dictionary=Edit id=$objWord->GetId()}" ><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="{url Dictionary=Delete id=$objWord->GetId()}" ><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.word.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 aktualności. <br/> Aby dodać aktualność kliknij link 'dodaj'.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
</div><!-- /paddedContent -->
|
||||
</div><!-- /panelRightBody -->
|
||||
<div class="panelRightBottom"></div>
|
||||
94
_rejestracja/_Admin/template/partial/File/Add.tpl
Normal file
94
_rejestracja/_Admin/template/partial/File/Add.tpl
Normal file
@@ -0,0 +1,94 @@
|
||||
<form method="post" action="{url File='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objFile)}
|
||||
<input type="hidden" name="idFile" value="{$objFile->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='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objFile' func='GetTitle'}
|
||||
{if isset($error.title)}<div style="color: red;" id="actionError">{$error.title}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objFile' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td>{formField type='textarea' name='description' obj='objFile' func='GetDescription'}</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td class="noborder">Data publikacji:</td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objFile' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Godzina:</td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' class='inputWidth141' errorClass='validate' name='timepublication' obj='objFile' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>*}
|
||||
<input type="hidden" name="file_type" value="1" />
|
||||
{*
|
||||
<tr>
|
||||
<td>Kategoria:</td>
|
||||
<td class="left">
|
||||
{html_options name=file_type options=$arrayFileType }
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
{dropDownContainer title="Plik"}
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" >
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
{*dropDownContainer title="Treść" isHidden=true}
|
||||
{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
|
||||
<div class="center">
|
||||
{if isset($objFile)}
|
||||
{assign var='description' value=$objFile->GetDescription()}
|
||||
{else}
|
||||
{assign var='description' value=''}
|
||||
{/if}
|
||||
{insertFckEditor width='620' height='180' name='description' toolbar='Basic' value=$description}
|
||||
</div>
|
||||
|
||||
{/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 File=index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doFileAdd"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
102
_rejestracja/_Admin/template/partial/File/Edit.tpl
Normal file
102
_rejestracja/_Admin/template/partial/File/Edit.tpl
Normal file
@@ -0,0 +1,102 @@
|
||||
<form method="post" action="{url File='Edit' idFile=$objFile->GetId()}" enctype="multipart/form-data">
|
||||
{if isset($objFile)}
|
||||
<input type="hidden" name="idFile" value="{$objFile->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='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objFile' func='GetTitle'}
|
||||
{if isset($error.title)}<div style="color: red;" id="actionError">{$error.title}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objFile' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td>{formField type='textarea' name='description' obj='objFile' func='GetDescription'}</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td class="noborder">Data publikacji:</td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objFile' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Godzina:</td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' class='inputWidth141' errorClass='validate' name='timepublication' obj='objFile' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
<input type="hidden" name="file_type" value="1" />
|
||||
{*
|
||||
<tr>
|
||||
<td>Kategoria:</td>
|
||||
<td class="left">
|
||||
{html_options name=file_type options=$arrayFileType selected=$objFile->GetType()}
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
<img src="{$objFile->GetFileIcon()}" alt="" title="" style="float: left;" >
|
||||
<p>{$objFile->GetName()}</p>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" >
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{*dropDownContainer title="Opis isHidden=true}
|
||||
{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
|
||||
<div class="center">
|
||||
{if isset($objFile)}
|
||||
{assign var='description' value=$objFile->GetDescription()}
|
||||
{else}
|
||||
{assign var='description' value=''}
|
||||
{/if}
|
||||
{insertFckEditor width='620' height='180' name='description' toolbar='Basic' value=$description}
|
||||
</div>
|
||||
|
||||
{/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 File=index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doFileEdit"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
50
_rejestracja/_Admin/template/partial/File/EditStructure.tpl
Normal file
50
_rejestracja/_Admin/template/partial/File/EditStructure.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
{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;">
|
||||
<a href="{url File=Edit idFile=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="{url File=Delete idFile=$obj->GetId() idElement=$idElement}" onclick="{literal}if (confirm('Czy napewno usunąć ten element?')) { } else {return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></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}
|
||||
51
_rejestracja/_Admin/template/partial/File/Index.tpl
Normal file
51
_rejestracja/_Admin/template/partial/File/Index.tpl
Normal 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}
|
||||
50
_rejestracja/_Admin/template/partial/File/IndexStructure.tpl
Normal file
50
_rejestracja/_Admin/template/partial/File/IndexStructure.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
{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;">
|
||||
<a href="{url File=Edit idFile=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="{url File=Delete idFile=$obj->GetId() idElement=$idElement}" onclick="{literal}if (confirm('Czy napewno usunąć ten element?')) { } else {return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></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}
|
||||
50
_rejestracja/_Admin/template/partial/File/StructureList.tpl
Normal file
50
_rejestracja/_Admin/template/partial/File/StructureList.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
{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 SimpleArticle_Index=special}'); return false;"> <a href="#" title="zmień">{$obj->GetSpecial()|replace:"0":"Nie"|replace:"1":"Tak" }</a> </td>*}
|
||||
<td style="text-align: center;">
|
||||
<a href="{url File=Edit idArticle=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="{url File=Delete idArticle=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></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}
|
||||
10
_rejestracja/_Admin/template/partial/Home/AjaxCopyFiles.tpl
Normal file
10
_rejestracja/_Admin/template/partial/Home/AjaxCopyFiles.tpl
Normal 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}
|
||||
|
||||
73
_rejestracja/_Admin/template/partial/Home/Edit.tpl
Normal file
73
_rejestracja/_Admin/template/partial/Home/Edit.tpl
Normal 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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
98
_rejestracja/_Admin/template/partial/Home/Index.tpl
Normal file
98
_rejestracja/_Admin/template/partial/Home/Index.tpl
Normal 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}
|
||||
|
||||
{/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}';" />
|
||||
|
||||
|
||||
{*<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>
|
||||
78
_rejestracja/_Admin/template/partial/HomeSite/AddLogo.tpl
Normal file
78
_rejestracja/_Admin/template/partial/HomeSite/AddLogo.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
<h1>Dodaj Logo</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url HomeSite='AddLogo' type=$type}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Adres url:</td>
|
||||
<td>
|
||||
{formField name='url' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUrl'}
|
||||
{if isset($error.url)}<div style="color: red;" id="actionError" class="validate">{$error.url}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sort:</td>
|
||||
<td>
|
||||
{formField name='sort' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getSort'}
|
||||
{if isset($error.sort)}<div style="color: red;" id="actionError" class="validate">{$error.sort}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aktywny:</td>
|
||||
<td>{formField type='checkbox' name='active' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if $obj->GetPhotoUrl()}
|
||||
<img src="{$obj->GetPhotoUrl()}" alt="" align="left"/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="logo" >
|
||||
{if isset($error.logo)}<div style="color: red;" id="actionError" class="validate">{$error.logo}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url HomeSite=Logo}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doLogoEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
76
_rejestracja/_Admin/template/partial/HomeSite/Baner.tpl
Normal file
76
_rejestracja/_Admin/template/partial/HomeSite/Baner.tpl
Normal file
@@ -0,0 +1,76 @@
|
||||
|
||||
<form action="{url HomeSite=EditBaner}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
{dropDownContainer title='Boxy'}
|
||||
{assign var=x value=1}
|
||||
|
||||
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
|
||||
<div class="articlePreviewRight" >
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
|
||||
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" >
|
||||
{if $objHomeElement->GetPhotoUrl()}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{* <img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/>*}
|
||||
{assign var=imageSlider value=$objHomeElement->GetPhotoPath()}
|
||||
{thumb file=$imageSlider longside=false shortside=false width="1200" height="390" link='false' crop=true }
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td>Tytuł:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementName[{$keyHome}]" value="{$objHomeElement->GetName()|escape}" />
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="elementText[{$keyHome}]" cols="54" rows="5">{$objHomeElement->GetDescription()}</textarea>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Url:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementUrl[{$keyHome}]" value="{$objHomeElement->GetSourceUrl()}" /></br>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Obraz:</td>
|
||||
<td class="left">
|
||||
<input type="file" name="elementImg_{$keyHome}"><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Wyczyść:</td>
|
||||
<td class="left">
|
||||
<input type="checkbox" name="elementClear[{$keyHome}]"><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td class="left">
|
||||
<input type="text" name="elementSort[{$keyHome}]" value="{$objHomeElement->GetSort()}"><br/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<hr>
|
||||
{/foreach}
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='{url HomeSite=Baner}'"/>
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
20
_rejestracja/_Admin/template/partial/HomeSite/Box.tpl
Normal file
20
_rejestracja/_Admin/template/partial/HomeSite/Box.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
<form action="{url HomeSite=Box}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
{dropDownContainer title='Boxy'}
|
||||
{assign var=x value=1}
|
||||
|
||||
<div class="articlePreviewRight" >
|
||||
<div><img src="{$urlStatic}/upload/baner.jpg" alt="" /></div>
|
||||
<div><input type="file" name="box"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='{url HomeSite=Box}'"/>
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="Zapisz" name="doBoxEdit"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1,82 @@
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url HomeSite=EditArticle id=$obj->GetId()}" id="sendForm" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="idArticle" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="20%">Nazwa:</td>
|
||||
<td>
|
||||
{* {$obj->GetName()}*}
|
||||
<input name="name" value="{$obj->GetName()}" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td >Publikuj i zastąp informacje z aktualości</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datePpublication' errorClass='validate' obj='obj' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='obj' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Treść nad"}
|
||||
<div class="center">
|
||||
{if isset($obj)}
|
||||
{assign var='description' value=$obj->GetDescription()}
|
||||
{else}
|
||||
{assign var='description' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='680' height='220' name='description' toolbar='Formix' value=$description}
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Treść pod"}
|
||||
<div class="articlePreviewRight" >
|
||||
{if isset($obj)}
|
||||
{assign var='shortnote' value=$obj->GetShortnote()}
|
||||
{else}
|
||||
{assign var='shortnote' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='680' height='220' name='shortnote' toolbar='Basic' value=$shortnote}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.shortnote)}<div style="color: red;" id="actionError" class="validate">{$error.shortnote}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url HomeSite=EditArticle}'"/>
|
||||
<input type="submit" value="Zapisz" name="doSimpleArticleEdit"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
78
_rejestracja/_Admin/template/partial/HomeSite/EditLogo.tpl
Normal file
78
_rejestracja/_Admin/template/partial/HomeSite/EditLogo.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
<h1>Dodaj Logo</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url HomeSite='EditLogo' id=$obj->GetId() type=$obj->GetType()}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Adres url:</td>
|
||||
<td>
|
||||
{formField name='url' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUrl'}
|
||||
{if isset($error.url)}<div style="color: red;" id="actionError" class="validate">{$error.url}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sort:</td>
|
||||
<td>
|
||||
{formField name='sort' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getSort'}
|
||||
{if isset($error.sort)}<div style="color: red;" id="actionError" class="validate">{$error.sort}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aktywny:</td>
|
||||
<td>{formField type='checkbox' name='active' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if $obj->GetPhotoUrl()}
|
||||
<img src="{$obj->GetPhotoUrl()}" alt="" align="left"/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="logo" >
|
||||
{if isset($error.logo)}<div style="color: red;" id="actionError" class="validate">{$error.logo}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url HomeSite=Logo}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doLogoEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
90
_rejestracja/_Admin/template/partial/HomeSite/Index.tpl
Normal file
90
_rejestracja/_Admin/template/partial/HomeSite/Index.tpl
Normal file
@@ -0,0 +1,90 @@
|
||||
|
||||
<form action="{url HomeSite=Edit}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
{dropDownContainer title='Boxy'}
|
||||
{assign var=x value=1}
|
||||
|
||||
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
|
||||
|
||||
<div class="articlePreviewLeft" style="width: 180px" >
|
||||
|
||||
{*if isset($objArticle) && $objArticle->GetPicture()*}
|
||||
|
||||
{*else}
|
||||
podczas dodawania będziesz mógł przyciąć swoje zdjęcie do rozmiarów 120x70.
|
||||
{/if*}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewLeft" >
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
|
||||
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" width="50%" >
|
||||
<tr>
|
||||
<td width="10%">Nazwa elementu:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementName[{$keyHome}]" value="{$objHomeElement->GetName()|escape}" />
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left" width="30%">
|
||||
<textarea name="elementText[{$keyHome}]" cols="54" rows="5">{$objHomeElement->GetDescription()}</textarea>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
<tr>
|
||||
<td>Url:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementUrl[{$keyHome}]" value="{$objHomeElement->GetSourceUrl()}" /></br>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Element z menu:</td>
|
||||
<td class="left">
|
||||
<select name="idElement[{$keyHome}]">
|
||||
<option value="0">
|
||||
</option>
|
||||
{foreach from=$arrayObjElement item=objElementList}
|
||||
<option value="{$objElementList->GetId()}" {if $objElementList->GetId() == $objHomeElement->GetIdSource()} selected {/if}>
|
||||
{$objElementList->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Obraz:</td>
|
||||
<td class="left">
|
||||
<input type="file" name="elementImg_{$keyHome}"><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{assign var=imageHome value=$objHomeElement->GetPhotoPath()}
|
||||
{if $objHomeElement->GetPhotoPath()}
|
||||
{* {thumb file=$imageHome longside=false shortside=false width="266" height="195" link='false' crop=true }*}
|
||||
<img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/>
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<hr>
|
||||
{/foreach}
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href = '{url homesite=index}'"/>
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
65
_rejestracja/_Admin/template/partial/HomeSite/Links.tpl
Normal file
65
_rejestracja/_Admin/template/partial/HomeSite/Links.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
|
||||
<form action="{url HomeSite=EditLink}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
{dropDownContainer title='Linki'}
|
||||
{assign var=x value=1}
|
||||
|
||||
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
|
||||
|
||||
<div class="articlePreviewLeft" style="width: 180px" >
|
||||
|
||||
{*if isset($objArticle) && $objArticle->GetPicture()}
|
||||
<img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/>
|
||||
{else}
|
||||
podczas dodawania będziesz mógł przyciąć swoje zdjęcie do rozmiarów 120x70.
|
||||
{/if*}
|
||||
</div>
|
||||
<div class="articlePreviewRight" >
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
|
||||
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" >
|
||||
<tr>
|
||||
<td>Nazwa elementu:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementName[{$keyHome}]" value="{$objHomeElement->GetName()|escape}" />
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left">
|
||||
<textarea name="elementText[{$keyHome}]" cols="54" rows="5">{$objHomeElement->GetDescription()|nl2br}</textarea>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Url:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementUrl[{$keyHome}]" value="{$objHomeElement->GetSourceUrl()}" /></br>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Obraz:</td>
|
||||
<td class="left">
|
||||
<input type="file" name="elementImg_{$keyHome}"><br/>
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<hr>
|
||||
{/foreach}
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='{url homesite=index}'"/>
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
60
_rejestracja/_Admin/template/partial/HomeSite/Logo.tpl
Normal file
60
_rejestracja/_Admin/template/partial/HomeSite/Logo.tpl
Normal file
@@ -0,0 +1,60 @@
|
||||
<h1>Loga</h1>
|
||||
|
||||
{dropDownContainer title='Lista'}
|
||||
{*<div class="searchBox">
|
||||
Nazwisko: <input name="search" id="search" onkeyup="GetTableContent('{url Client=AjaxClient}', '#tableContentClient', $('#search').val(), '#roleList');" />
|
||||
<select name="roleList" id="roleList" onchange="GetTableContent('{url Client=AjaxClient}', '#tableContentClient', $('#search').val(), '#roleList');">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="Tak">
|
||||
Tak
|
||||
</option>
|
||||
<option value="Nie">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
*}
|
||||
<div id="tableContentClient">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Logo<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th>Url<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Status<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"><a href="{url HomeSite=AddLogo type=$type}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObj item=obj}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url HomeSite=EditLogo id=$id}" title="edytuj"><img src="{$obj->GetPhotoUrl()}" alt="" align="left"/></a></td>
|
||||
<td><a href="{url HomeSite=EditLogo id=$id}" title="edytuj">{$obj->GetName()}</a></td>
|
||||
<td>{$obj->GetUrl()}</td>
|
||||
<td>{$obj->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url HomeSite=EditLogo id=$id}" class="edit">edytuj</a><a href="{url HomeSite=DeleteLogo id=$id}" onclick="{literal}if(confirm('Czy napewno usunęć ten element?')){return true;}else{return false;}{/literal}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
84
_rejestracja/_Admin/template/partial/HomeSite/Main.tpl
Normal file
84
_rejestracja/_Admin/template/partial/HomeSite/Main.tpl
Normal file
@@ -0,0 +1,84 @@
|
||||
|
||||
<form action="{url HomeSite=EditMain}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
{dropDownContainer title='Boxy'}
|
||||
{assign var=x value=1}
|
||||
|
||||
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
|
||||
|
||||
<div class="articlePreviewLeft" style="width: 180px" >
|
||||
|
||||
{*if isset($objArticle) && $objArticle->GetPicture()*}
|
||||
|
||||
{*else}
|
||||
podczas dodawania będziesz mógł przyciąć swoje zdjęcie do rozmiarów 120x70.
|
||||
{/if*}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewLeft" >
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
|
||||
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" width="50%" >
|
||||
<tr>
|
||||
<td width="10%">Nazwa elementu:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementName[{$keyHome}]" value="{$objHomeElement->GetName()|escape}" />
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left" width="30%">
|
||||
<textarea name="elementText[{$keyHome}]" cols="54" rows="5">{$objHomeElement->GetDescription()}</textarea>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Url:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementUrl[{$keyHome}]" value="{$objHomeElement->GetSourceUrl()}" /></br>
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
<tr>
|
||||
<td>Element z menu:</td>
|
||||
<td class="left">
|
||||
<select name="idElement[{$keyHome}]">
|
||||
<option value="0">
|
||||
</option>
|
||||
{foreach from=$arrayObjElement item=objElementList}
|
||||
<option value="{$objElementList->GetId()}" {if $objElementList->GetId() == $objHomeElement->GetIdSource()} selected {/if}>
|
||||
{$objElementList->GetTitle()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td>Obraz:</td>
|
||||
<td class="left">
|
||||
<input type="file" name="elementImg_{$keyHome}"><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td colspan="2"><img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<hr>
|
||||
{/foreach}
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='{url homesite=index}'"/>
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1 @@
|
||||
document.getElementById('{$photo}').style.display="none";
|
||||
65
_rejestracja/_Admin/template/partial/Image/Form.tpl
Normal file
65
_rejestracja/_Admin/template/partial/Image/Form.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>''</title>
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/styleUP.css" />
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="pl" />
|
||||
|
||||
<script src="{$urlStatic}/script/jQuery/jquery-1.4.2.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="{$urlStatic}/script/ajaxupload.3.5.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
urlActionUpload = '{url Image=Upload}';
|
||||
{literal}
|
||||
$(function(){
|
||||
var btnUpload=$('#upload');
|
||||
var status=$('#status');
|
||||
new AjaxUpload(btnUpload, {
|
||||
action: urlActionUpload,
|
||||
name: 'uploadfile',
|
||||
onSubmit: function(file, ext){
|
||||
if (! (ext && /^(jpg|png|jpeg|gif|zip)$/.test(ext))){
|
||||
// extension is not allowed
|
||||
status.text('tylko JPG, PNG oraz GIF lub zip');
|
||||
return false;
|
||||
}
|
||||
//alert(urlActionUpload);
|
||||
status.text('Uploading...');
|
||||
},
|
||||
onComplete: function(file, response){
|
||||
//On completion clear the status
|
||||
status.text('');
|
||||
//Add uploaded file to list
|
||||
//alert(response);
|
||||
|
||||
$('#PhotoDisplay', window.parent.document).html(response);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Upload Button, use any id you wish-->
|
||||
<div id="upload" ><span>Dodaj zdjęcie<span></div><span id="status" ></span>
|
||||
|
||||
<ul id="files" ></ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
1
_rejestracja/_Admin/template/partial/Image/Upload.tpl
Normal file
1
_rejestracja/_Admin/template/partial/Image/Upload.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test" />{*<textarea name="image_description[{$key}]" rows="1" cols="11"></textarea>*}</div> {/foreach}
|
||||
42
_rejestracja/_Admin/template/partial/Image/UploadImage.tpl
Normal file
42
_rejestracja/_Admin/template/partial/Image/UploadImage.tpl
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
urlActionUpload = '{url Image=UploadImage}';
|
||||
</script>
|
||||
|
||||
<div class="panelRightTop"></div>
|
||||
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{dropDownContainer title="Zdjecia"}
|
||||
<!-- Upload Button, use any id you wish-->
|
||||
{*<div id="upload" ><span>Dodaj zdjęcie<span></div><span id="status" ></span>
|
||||
|
||||
<ul id="files" ></ul>*}
|
||||
<form action="{url Image=UploadImage}" method="post" enctype="multipart/form-data" >
|
||||
<input type="file" name="uploadfile" onchange="submit();" />
|
||||
</form>
|
||||
<br />
|
||||
<form action="{url Image=SortImage}" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
{foreach from=$arrayPhoto item=image}
|
||||
<div style="float: left; margin-right: 5px; margin-bottom: 5px;" >
|
||||
<img src="{$urlStatic}/upload/Banner/111/{$image->GetPath()}"/>
|
||||
<div>
|
||||
Kolejność <input name="sort[{$image->GetId()}]" size="3" value="{$image->GetPosition()}" />
|
||||
<a href="{url Image=DeleteImageBanner reload=true photo=$image->GetId()}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
<input type="submit" class="button buttonZapisz" value="" name="save" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
47
_rejestracja/_Admin/template/partial/Index/Index.tpl
Normal file
47
_rejestracja/_Admin/template/partial/Index/Index.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
<div class="panelContentTop"><h2><a href="#" class="long">Witamy w panelu administracyjnym</a></h2></div>
|
||||
<div class="panelContentBody">
|
||||
|
||||
|
||||
|
||||
<center>
|
||||
<img src="{$urlStatic}/image/Admin/AdminIntro.jpg " alt="Panel administracyjny" title="Panel administracyjny" /><br />
|
||||
|
||||
</center>
|
||||
</div>
|
||||
<div class="panelContentBottom"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
{*
|
||||
<form method="post" action="">
|
||||
<input type="submit" class="button buttonAnuluj" value="" name=""/>
|
||||
|
||||
<input type="submit" class="button buttonPodglad" value="" name=""/>
|
||||
<input type="submit" class="button buttonZapisz" value="" name=""/>
|
||||
<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>
|
||||
</form>
|
||||
*}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Klika ustale<6C> ...<br />
|
||||
|
||||
Je<EFBFBD>li chodzi o formatowanie panelu ... starajcie sie robic wszystko w oparciu o klase admintable, w takich ustawieniach: <br />
|
||||
|
||||
<table class="adminTable" cellpadding="2" cellspacing="2"><br />
|
||||
<br />
|
||||
Ostatnia kolumna, tam gdzie zazwyczaj jest dodaj ... robimy tak:<br />
|
||||
<th class="light"><a href="#">Dodaj</a></th><br />
|
||||
<br />
|
||||
Nag<EFBFBD><EFBFBD>wki robimy tak:<br />
|
||||
<div class="header">Witamy w panelu administracyjnym</div><br />
|
||||
<br />
|
||||
|
||||
|
||||
<br />
|
||||
nie wiem czy tak w<>a<EFBFBD>nie to b<>dzie wygl<67>da<64> finalnie, ale p<>niej b<>dzie <20>atwiej formatowa<77> jak ca<63>o<EFBFBD><6F>. Mo<4D>e narazie jako wz<77>r podpatrzcie do mojego szablonu: ModelAdmin.tpl oraz ModelAdminEdit.tpl.
|
||||
-->
|
||||
0
_rejestracja/_Admin/template/partial/Login/Auth.tpl
Normal file
0
_rejestracja/_Admin/template/partial/Login/Auth.tpl
Normal file
65
_rejestracja/_Admin/template/partial/Mailing/Index.tpl
Normal file
65
_rejestracja/_Admin/template/partial/Mailing/Index.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
<div class="panelRightTop"></div>
|
||||
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
|
||||
{dropDownContainer title='Wysłane wiadomości'}
|
||||
|
||||
|
||||
<br />
|
||||
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
|
||||
<tr>
|
||||
<th width="20">lp.</th>
|
||||
<th>Temat</th>
|
||||
<th>Treść</th>
|
||||
<th>Status</th>
|
||||
<th>Testowe</th>
|
||||
<th class="light"><a href="{url mailing='send'}"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a></th>
|
||||
</tr>
|
||||
|
||||
{assign var=x value=1}
|
||||
{assign var=y value=$currentPage+1}
|
||||
{foreach item=objMailing from=$arrayObjMailing name=objMailing}
|
||||
{assign var=id value=$objMailing->GetId()}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
|
||||
<td align="right"> {$y++} </td>
|
||||
<td> {$objMailing->GetTitle()} </td>
|
||||
<td> {$objMailing->GetTextClear()|truncate} </td>
|
||||
<td> {$objMailing->GetExecuted()|replace:"0":"w takcie"|replace:"1":"zakończono"} </td>
|
||||
<td align="center">{if $objMailing->GetExecuted() == 1} wysłany {else} <a href="{url mailing='getsend'}">wyślij</a>{/if}</td>
|
||||
<td align="center"> <a href="{url mailing='show' id=$id}">podgląd</a></td>
|
||||
</tr>
|
||||
{if $smarty.foreach.objMailing.last}
|
||||
{*
|
||||
<tr class="light">
|
||||
<td colspan="10" align="center" class="light" >
|
||||
<input type="submit" name="change" value=" Zapisz zmiany " class="button" >
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>*}
|
||||
<tr>
|
||||
<td colspan="10" align="center" >
|
||||
<div class="paging">
|
||||
{$pagination}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
{*<input type="button" class="button buttonAnuluj" value="" name="" onclick="javascript:document.location.href='{url _value=$controller,index}'"/>
|
||||
|
||||
<input type="submit" class="button buttonPodglad" value="" name=""/>
|
||||
<input type="button" class="button buttonZapisz" value="" name="saveStructure" onclick="{if $method != 'Index'} GetFromFCK('description'); GetFromFCK('shortnote'); {/if} Dosia.Form('sendForm'); return false;" />
|
||||
<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>*}
|
||||
</div>
|
||||
</div>
|
||||
45
_rejestracja/_Admin/template/partial/Mailing/List.tpl
Normal file
45
_rejestracja/_Admin/template/partial/Mailing/List.tpl
Normal file
@@ -0,0 +1,45 @@
|
||||
<div class="header">Lista Mailingowa</div>
|
||||
|
||||
<br />
|
||||
|
||||
<table class="adminTable" cellpadding="2" cellspacing="2" style="width: 600px;" align="center">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20">lp.</th>
|
||||
{*<th>Nazwa</th>*}
|
||||
<th>Email</th>
|
||||
<th class="light"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{assign var=x value=1}
|
||||
{assign var=y value=$currentPage+1}
|
||||
{foreach item=item from=$arrayEmail name=objEmil}
|
||||
{assign var=id value=$item.id}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
|
||||
<td align="right"> {$y++} </td>
|
||||
{*<td> {$item.name} </td>*}
|
||||
<td> {$item.email} </td>
|
||||
<td align="center"> <a href="{url mailing='delete' id=$id}" onclick="{literal}if(confirm('Czy napewno usun±æ ten wpis?')){return true;}else{return false;}{/literal}">usuñ</a> </td>
|
||||
</tr>
|
||||
{if $smarty.foreach.objEmil.last}
|
||||
{*
|
||||
<tr class="light">
|
||||
<td colspan="10" align="center" class="light" >
|
||||
<input type="submit" name="change" value=" Zapisz zmiany " class="button" >
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>*}
|
||||
<tr>
|
||||
<td colspan="10" align="center" >
|
||||
<div class="paging">
|
||||
{$pagination}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
6
_rejestracja/_Admin/template/partial/Mailing/MailTxt.tpl
Normal file
6
_rejestracja/_Admin/template/partial/Mailing/MailTxt.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
Newsletter Wina.wp.pl
|
||||
<br />
|
||||
<br />
|
||||
{$content}
|
||||
|
||||
46
_rejestracja/_Admin/template/partial/Mailing/Send.tpl
Normal file
46
_rejestracja/_Admin/template/partial/Mailing/Send.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
|
||||
<form action="{url mailing='send'}" method="post" id="addSet" name="addSet" enctype="multipart/form-data">
|
||||
{dropDownContainer title='Wyslij wiadomość'}
|
||||
<div id="info" style="position:absolute; width:300px; background-color:#313245; left: 40%; top: 35%; display:none; margin:30px; padding: 20px 20px 20px 20px; border:thin black dotted; color:#ffffff;" onclick="javascript: this.style.display='none'">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Temat: </td>
|
||||
<td><input class="input420" type="text" name="subjet" id="subjet" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Treść}
|
||||
|
||||
{$fck->Create()}
|
||||
<!--<textarea class="textarea" name="content" id="content" cols="40" rows="8"></textarea>-->
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="button buttonAnuluj" value="" name="" onclick="javascript:document.location.href='{url mailing=index}'"/>
|
||||
|
||||
{*<input type="submit" class="button buttonPodglad" value="" name=""/>*}
|
||||
<input type="submit" class="button buttonZapisz" value="" name="sendEmail" />
|
||||
{*<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>*}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
50
_rejestracja/_Admin/template/partial/Mailing/Show.tpl
Normal file
50
_rejestracja/_Admin/template/partial/Mailing/Show.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
|
||||
<form action="{url mailing='send'}" method="post" id="addSet" name="addSet" enctype="multipart/form-data">
|
||||
{dropDownContainer title='Podgląd wiadomości'}
|
||||
<div id="info" style="position:absolute; width:300px; background-color:#313245; left: 40%; top: 35%; display:none; margin:30px; padding: 20px 20px 20px 20px; border:thin black dotted; color:#ffffff;" onclick="javascript: this.style.display='none'">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<form action="{url mailing='index'}" method="post" id="addSet" name="addSet" enctype="multipart/form-data">
|
||||
<table class="adminTable" align="center" style="width: 550px;" >
|
||||
<tr>
|
||||
<td class="header" colspan="2">Treść</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" width="30%">Temat: </td>
|
||||
<td align="left">{$objMailing->GetTitle()}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="even" >
|
||||
<td align="left">Treść wiadomości:</td>
|
||||
<td align="left">
|
||||
{$objMailing->GetText()}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Data wysałania</td>
|
||||
<td align="left">
|
||||
{$objMailing->GetDateSend()}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="button buttonAnuluj" value="" name="" onclick="javascript:document.location.href='{url mailing=index}'"/>
|
||||
|
||||
{*<input type="submit" class="button buttonPodglad" value="" name=""/>*}
|
||||
{*<input type="submit" class="button buttonZapisz" value="" name="sendEmail" />*}
|
||||
{*<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>*}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1,5 @@
|
||||
{assign var=articleListToLink value=$articleListToLink|strReplace:"
|
||||
":""}
|
||||
{assign var=articleListToLink value=$articleListToLink|strReplace:"'":"\'"}
|
||||
ContentObj = document.getElementById('articleListToLink');
|
||||
ContentObj.innerHTML = '{$articleListToLink}';
|
||||
@@ -0,0 +1 @@
|
||||
{literal}{{/literal}'info':'<span class="green">Twoje zdjęcie zostało poprawnie dodatne.</span>', 'photoPath' : '{$photoPath}' {literal}}{/literal}
|
||||
@@ -0,0 +1,41 @@
|
||||
{insertPhotoCropper prefix="photoCropper" photoSrc="puste" preview=true loadOnFly=true onInit=true ajaxSave=true}
|
||||
<div class="framePopver" id="photoCropperFrame">
|
||||
|
||||
<div class="panelPopoverTop"><b>Dopracuj obraz zajawki</b></div>
|
||||
|
||||
<div class="panelPopoverContent">
|
||||
<div class="panelPopoverContentLeft photoCropperUploadForm">
|
||||
%uploadForm%
|
||||
</div>
|
||||
|
||||
<div class="panelPopoverContentRight photoCropperErrorArea" id="%errorAreaId%">
|
||||
</div>
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
|
||||
<img src="image/solidPopover.gif" alt="" title="" />
|
||||
|
||||
%formBegin%
|
||||
|
||||
<div class="panelPopoverContent">
|
||||
%photoCropper%
|
||||
</div>
|
||||
|
||||
<div class="panelPopoverBottom">
|
||||
|
||||
<div class="floatLeft">
|
||||
<input class="button buttonAnuluj _lbClose" type="button" name="name" value="" />
|
||||
</div>
|
||||
|
||||
<div class="floatRight">
|
||||
<input class="button buttonZapisz" type="submit" name="name" value="" />
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
|
||||
%formEnd%
|
||||
|
||||
</div>
|
||||
{/insertPhotoCropper}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<script language="javascript" type="text/javascript">
|
||||
{if isset($error)}
|
||||
window.top.window.failedUpload('file', {literal}{{/literal}'error' : '{$error}'{literal}}{/literal});
|
||||
{else}
|
||||
window.top.window.finishUpload('{$page2load}', {literal}{{/literal}photoPath : '{$photoFile}', photoWidth : '{$photoWidth}', photoHeight : '{$photoHeight}', prefix : '{$cropPrefix}', onFly : {$onFly} {literal}}{/literal});
|
||||
{/if}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
{if $arrayArticle}
|
||||
<div id="CategoryListTop">
|
||||
<table cellpadding="5" cellspacing="1" border="0" class="tableContentData tableContentData2" width="100%">
|
||||
<tr>
|
||||
<th align="left" width="64"><b>ID</b></th>
|
||||
<th align="left" width="300"><b>Nazwa</b></th>
|
||||
<th width="64" align="center"><b>Publikacja</b></th>
|
||||
<th width="66"><b>Powiąż</b></th>
|
||||
</tr>
|
||||
</div>
|
||||
<div style="height: 0px; overflow: auto;" id="CategoryList">
|
||||
{foreach from=$arrayArticle item=Article key=idArticleLink name=arrayArticle}
|
||||
{if $Article.checked}
|
||||
<tr id="mf_article_link_list[{$idArticleLink}]">
|
||||
<td width="64"><b>{$idArticleLink}</b></td>
|
||||
<td width="300"><b>{$Article.name}</b></td>
|
||||
<td width="64" class="center">{$Article.publication}</td>
|
||||
<td width="66" class="center" align="center">
|
||||
|
||||
<input type="checkbox" {$Article.checked} name="mf_article_link_link[{$idArticleLink}]" id="mf_article_link_link[{$idArticleLink}]" value="{$idArticleLink}" onclick="javasctipt: LinkArticle({$idArticle}, 'mf_article', 'mf_article', document.getElementById('mf_article_link_link[{$idArticleLink}]').value, document.getElementById('mf_article_link_action[{$idArticleLink}]').value, 'link');" />
|
||||
<input type="text" name="mf_article_link_action[{$idArticleLink}]" id="mf_article_link_action[{$idArticleLink}]" {if $Article.checked} value="delete" {else} value="add"{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
<div id="CategoryListBottom"></div>
|
||||
{/if}
|
||||
@@ -0,0 +1,43 @@
|
||||
{if $arrayArticle}
|
||||
{if isset($id)}
|
||||
{assign var=idForSort value='/id/'|cat:$id}
|
||||
{assign var=method value='edit'}
|
||||
{else}
|
||||
{assign var=idForSort value=''}
|
||||
{assign var=method value='add'}
|
||||
{/if}
|
||||
{*<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>*}
|
||||
<div id="CategoryListTop">
|
||||
<table cellpadding="5" cellspacing="1" border="0" class="tableContentData tableContentData2" width="100%">
|
||||
<tr>
|
||||
<th align="left" width="64">{tableSort url="mainType/$mainType$idForSort/sortuj/kolejnosc/add/mainSite" field='mf_article.id_mf_article' title='ID' }</th>
|
||||
<th align="left" width="300">{tableSort url="mainType/$mainType$idForSort/sortuj/tytul/add/mainSite" field='mf_article_description.title' title='Nazwa' }</th>
|
||||
<th width="64" align="center">{tableSort url="mainType/$mainType$idForSort/sortuj/stan/add/mainSite" field='mf_article.publication' title='Stan' }</th>
|
||||
<th width="66"><b>Powiąż</b></th>
|
||||
</tr>
|
||||
</div>
|
||||
<div style="height: 0px; overflow: auto;" id="CategoryList">
|
||||
{foreach from=$arrayArticle item=Article name=Arts}
|
||||
{assign var=idArticleLink value=$Article->GetId()}
|
||||
{assign var=Desc value=$Article->GetDescriptionObj()}
|
||||
<tr id="mf_article_article_list[{$idArticleLink}]">
|
||||
<td width="64"><b>{$idArticleLink}</b>
|
||||
</td>
|
||||
<td width="300"><b>{$Desc->GetTitle()}</b></td>
|
||||
<td width="64" class="center">{$Article->GetPublication()}</td>
|
||||
<td width="66" class="center" align="center">
|
||||
<input type="radio" {if isset($idSource) AND $idSource != '' AND $idArticleLink == $idSource} checked {elseif $idSource == '' AND $smarty.foreach.Arts.index == 0}checked{/if} name="mf_article_link" id="mf_article_link" value="{$idArticleLink}" onclick="Dosia.Request('{url mainSite=saveinsession id=$idArticleLink}');" />
|
||||
</td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
brak wyników...
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{if isset($search)}
|
||||
{pagination ajax=true class="" currPage=$currPage pageCount=$pageCount MainSite='AjaxList' id=$id search=$search}
|
||||
{else}
|
||||
{pagination ajax=true class="" currPage=$currPage pageCount=$pageCount MainSite='AjaxList' id=$id }
|
||||
{/if}
|
||||
<div id="CategoryListBottom"></div>
|
||||
{/if}
|
||||
234
_rejestracja/_Admin/template/partial/MainSite/Edit.tpl
Normal file
234
_rejestracja/_Admin/template/partial/MainSite/Edit.tpl
Normal file
@@ -0,0 +1,234 @@
|
||||
<!--<script language="javascript" type="text/javascript" src="{$urlStatic}/script/lightbox.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="{$urlStatic}/script/cropper.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="{$urlStatic}/script/uploader.js"></script>-->
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var LinkUrl = '{url SimpleArticle=link}';
|
||||
var ReloadListUrl = '{url SimpleArticle=AjaxReloadList}';
|
||||
</script>
|
||||
<form method="post" action="{url _value='mainSite,validateform'}" class="avfo" >
|
||||
{if isset($objArticle)}
|
||||
<input type="hidden" name="idArticle" value="{$objArticle->GetId()}" />
|
||||
<input type="hidden" name="idMainSite" value="{$objMainSite->GetId()}" />
|
||||
{assign var=idArticle value=$objArticle->GetId()}
|
||||
{assign var=author value='makl'}
|
||||
{assign var=desc value=$objArticle->GetDescriptionObj()}
|
||||
{assign var=zajawka value=$desc->GetShortNote()}
|
||||
{assign var=idMainSite value=$objMainSite->GetId()}
|
||||
{else}
|
||||
{assign var=idArticle value='-1'}
|
||||
{assign var=author value=''}
|
||||
{assign var=zajawka value=''}
|
||||
{assign var=idMainSite value=-1}
|
||||
{/if}
|
||||
<input type="hidden" name="mainType" value="{$mainType}" />
|
||||
<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="tableContentData2">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>Tytuł:</b></td>
|
||||
<td>{formField name='tytul' class='avf inputWidth141' type='text' obj='objArticle' func='GetTitle'}</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td><b>Publikuj:</b></td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objArticle' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Ocenianie:</b></td>
|
||||
<td>{formField type='checkbox' name='allowrating' obj='objArticle' func='GetAllowRating'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Komentowanie:</b></td>
|
||||
<td>{formField type='checkbox' name='allowcomment' obj='objArticle' func='GetAllowComment'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Profil autora:</b></td>
|
||||
<td>
|
||||
|
||||
<input type="text" size="60" name="author_profile" value="{$author}" class="input autocompleter avf" id="inputProfile" autocomplete="on" />
|
||||
<div id="autocomplete_inputProfile" class="autocomplete"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Autor:</b></td>
|
||||
<td>{formField type='input' class='inputWidth141' name='author' obj='objArticle' func='GetAuthor'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Źródło:</b></td>
|
||||
<td>{formField type='input' class='inputWidth141' name='source' obj='objArticle' func='GetSource'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="verticalAlignTop"><b>Data wyświetlana:</b></td>
|
||||
<td><img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('dateshown'));" /> {formField type='input' name='dateshown' obj='objMainSite' func='GetDateShown' id='dateshown'}</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepublication'));" /> {formField type='input' name='datepublication' obj='objMainSite' func='GetDatePublicationWithoutTime' id='datepublication'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' class='inputWidth141' name='timepublication' obj='objMainSite' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH):</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="verticalAlignTop noborder">
|
||||
<b>Data zakonczenia publikcji:</b>
|
||||
</td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('date_stop_publication'));" /> {formField type='input' name='date_stop_publication' obj='objMainSite' func='GetDateStopPublicationWithoutTime' id='date_stop_publication'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' class='inputWidth141' maxlength='5' name='time_stop_publication' obj='objMainSite' func='GetDateStopPublicationTime'}
|
||||
<span class="grayText smallText">format (HH:mm):</span>
|
||||
</td>
|
||||
</tr>
|
||||
{if $mainType != 1}
|
||||
<tr>
|
||||
<td><b>Pozycja:</b></td>
|
||||
<td>
|
||||
<select name="weight" >
|
||||
{foreach from=$arrayWeight item=weight name=waight}
|
||||
<option {if $weight == $objMainSite->GetWeight()} selected {/if}>{if $smarty.foreach.waight.first}{else}{$weight}{/if}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $mainType != 3 AND isset($objArticle) AND $objArticle->GetIdPicture() != 0}
|
||||
<tr>
|
||||
<td><b>Usuń zdjęcie</b></td>
|
||||
<td><input type="checkbox" name="deleteOldPhoto" value="1" onclick="return confirm('Czy jesteś pewien, że chcesz usunąć zdjęcie?');"/></td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{*dropDownContainer title="Właściwości (SEO)"}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>META Description:</td>
|
||||
<td>{formField type='text' name='metaDescription' obj='objArticle' func='GetMetaDescription'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Keywords:</td>
|
||||
<td>{formField type='text' name='metaKeywords' obj='objArticle' func='GetMetaKeywords'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Skrypt statystyk:</td>
|
||||
<td>{formField type='text' name='statScript' obj='objArticle' func='GetStatScript'}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer*}
|
||||
{if $mainType != 3}
|
||||
{dropDownContainer title="Zajawka"}
|
||||
<div class="articlePreviewLeftMainSite">
|
||||
<div class="articlePreviewLeftContentMainSite">
|
||||
<div class="_zajawkaPhoto articlePreviewPhotoViewMainSite">
|
||||
{if isset($objArticle) && $objArticle->GetPicture()}
|
||||
<div class="articlePreviewPhotoMainSite">
|
||||
<img id="ArticleAvatar" class="ArticleAvatar" src="{$objArticle->GetPictureUrl()}" alt="" />
|
||||
</div>
|
||||
{else}
|
||||
podczas dodawania będziesz mógł przyciąć swoje zdjęcie do rozmiarów 120x70.
|
||||
{/if}
|
||||
</div>
|
||||
<input type="hidden" value="" id="photoadded" name="photoadded" class="avf" />
|
||||
<div class="articlePreviewLeftContentBottom">
|
||||
<a class="_lbOn ustawZdjecie" rel="globCropLBox" onclick="{literal}try{ createUploadLightbox(this);} catch(err){ alert(err.message);}{/literal} return false;" href="{if isset($objArticle)}{url MainSite='AjaxPhotoCropper' id=$objArticle->GetId()}{else}{url MainSite='AjaxPhotoCropper'}{/if}" name="ustawZdjecie"> </a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<fieldset id="zajawkafck2" name="zajawkafck2" style="border: 0px;">
|
||||
{if isset($objArticle)}
|
||||
{assign var='zajawka' value=$objArticle->GetShortnote()}
|
||||
{else}
|
||||
{assign var='zajawka' value=''}
|
||||
{/if}
|
||||
{if $mainType != 3}
|
||||
{assign var=widthFCK value=399}
|
||||
{else}
|
||||
{assign var=widthFCK value=620}
|
||||
{/if}
|
||||
{insertFckEditor width=$widthFCK height='159' name='zajawka' toolbar='Basic' value=$zajawka}
|
||||
<input type="hidden" value="" name="zajawkafck" id="zajawkafck" class="avf" />
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
{/if}
|
||||
{*dropDownContainer title="Obiekty powiązane"}
|
||||
<div id="articleLinkList">
|
||||
{$articleLinkList}
|
||||
</div>
|
||||
{/dropDownContainer*}
|
||||
{dropDownContainer title="Powiąż"}
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
var fields1 = new Array(2);
|
||||
fields1[0] = 'ms_id';
|
||||
fields1[1] = 'ms_name';
|
||||
</script>
|
||||
|
||||
<form action="{url MainSite='AjaxList'}" method="post" onsubmit="Dosia.Form(this);return false;">
|
||||
<table class="tableContentData2" cellpadding="10" cellspacing="1" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<b>Tytuł:</b>
|
||||
</td>
|
||||
<td>
|
||||
<input id="ms_name" type="text" name="ms_name" value="{$ms_name}" onkeyup="Dosia.RequestArray('{url MainSite='AjaxList' id=$idMainSite}', fields1);"/>
|
||||
</td>
|
||||
<td>
|
||||
<b>ID:</b>
|
||||
</td>
|
||||
<td>
|
||||
<input id="ms_id" type="text" name="ms_id" value="{$ms_id}" onkeyup="Dosia.RequestArray('{url MainSite='AjaxList' id=$idMainSite}', fields1);"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="articleListToLink">
|
||||
{$articleListToLink}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="panelPowiazaniaContentBottom"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="floatLeft">
|
||||
<input type="button" class="button buttonAnuluj" value="" name="" onclick="document.location.href='{url _value=$controller,index}'"/>
|
||||
|
||||
</div>
|
||||
<div class="floatRight">
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="" name="save" onmouseover="var oEditor = FCKeditorAPI.GetInstance('zajawka'); var zajawkafck = document.getElementById('zajawkafck'); zajawkafck.value = oEditor.GetXHTML(false); var photosrc = document.getElementById('ArticleAvatar'); var photoflag = document.getElementById('photoadded'); photoflag.value = photosrc.src;" />
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<div class="clearBoth"></div>
|
||||
214
_rejestracja/_Admin/template/partial/MainSite/Index.tpl
Normal file
214
_rejestracja/_Admin/template/partial/MainSite/Index.tpl
Normal file
@@ -0,0 +1,214 @@
|
||||
|
||||
<div class="panelRightTop"></div>
|
||||
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
|
||||
<h1>Strona główna</h1>
|
||||
|
||||
{dropDownContainer title="Polecamy"}
|
||||
<br />
|
||||
<b>Opublikowane</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
{foreach from=$arrayObjMainNewsTop item=objMainNewsTop name=top key=k}
|
||||
{assign var=objArticle value=$objMainNewsTop->GetMainArticleObj()}
|
||||
{assign var=objArticle value=$objMainNewsTop->GetMainArticleObj()}
|
||||
{if $smarty.foreach.top.first}
|
||||
<tr>
|
||||
<td width="1">{$objMainNewsTop->GetWeight()}</td>
|
||||
<td width="35">
|
||||
{if $objMainNewsTop->GetBlockade() gt 0}
|
||||
<a href="{url mainSite=blockade id=$objMainNewsTop->GetId() place=0}" class="iconDeleteThread"></a>
|
||||
{else}
|
||||
<a href="{url mainSite=blockade id=$objMainNewsTop->GetId() place=$k}" class="iconOpenThread"></a>
|
||||
{/if}
|
||||
</td>
|
||||
<td width="35">{*<a href="{url mainSite=sort id=$objMainNewsTop->GetId() mainType=1 direct=up}"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="{url mainSite=sort id=$objMainNewsTop->GetId() mainType=1 direct=down}"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a>*} </td>
|
||||
<td><a href="{url mainSite=Edit id=$objMainNewsTop->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
|
||||
<td width="100">{$objMainNewsTop->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
|
||||
<td width="30"><a href="{url mainSite=delete id=$objMainNewsTop->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td colspan="6" class="noborder">
|
||||
<a href="{url mainSite=add mainType=1}" class="floatRight"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br />
|
||||
<b>Oczekujące</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
{foreach from=$arrayObjMainNewsTopWaiting item=objMainNewsTopWaiting name=top}
|
||||
{assign var=objArticle value=$objMainNewsTopWaiting->GetMainArticleObj()}
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35"> {$smarty.foreach.top.iteration}
|
||||
<!--<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>-->
|
||||
</td>
|
||||
<td width="35"><a href="{url mainSite=SetPublication id=$objMainNewsTopWaiting->GetId()}" alt="publikuj" >publikuj</a> </td>
|
||||
<td><a href="{url mainSite=Edit id=$objMainNewsTopWaiting->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
|
||||
<td width="100">{$objMainNewsTopWaiting->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
|
||||
<td width="30"><a href="{url mainSite=delete id=$objMainNewsTopWaiting->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{*dropDownContainer title="Polecamy"}
|
||||
<br />
|
||||
<b>Opublikowane</b>
|
||||
|
||||
<form style="float:right;" method="post" action="{url mainSite=SetCountRecommend}" name="Count" >
|
||||
<select name="count" onchange="document.forms['Count'].submit()" >
|
||||
<option {if $subPromoCount == 3} selected {/if}>3</option>
|
||||
<option {if $subPromoCount == 6} selected {/if}>6</option>
|
||||
|
||||
</select>
|
||||
</form>
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
|
||||
{foreach from=$arrayObjMainRecommend item=objMainRecommend name=recommend key=k}
|
||||
{assign var=objArticle value=$objMainRecommend->GetMainArticleObj()}
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">{if $objMainRecommend->GetBlockade() gt 0}<a href="{url mainSite=blockade id=$objMainRecommend->GetId() place=0}" class="iconDeleteThread"></a>{else}<a href="{url mainSite=blockade id=$objMainRecommend->GetId() place=$k}" class="iconOpenThread"></a>{/if}</td>
|
||||
<td width="35"><a href="{url mainSite=sort id=$objMainRecommend->GetId() mainType=2 direct=up}"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="{url mainSite=sort id=$objMainRecommend->GetId() mainType=2 direct=down}"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="{url mainSite=Edit id=$objMainRecommend->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
|
||||
<td width="100">{$objMainRecommend->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
|
||||
<td width="30"><a href="{url mainSite=delete id=$objMainRecommend->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td colspan="6" class="noborder">
|
||||
<a href="{url mainSite=add mainType=2}" class="floatRight"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br />
|
||||
<b>Oczekujące</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
{foreach from=$arrayObjMainRecommendWaiting item=objMainRecommendWaiting name=recommend}
|
||||
{assign var=objArticle value=$objMainRecommendWaiting->GetMainArticleObj()}
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<form method="post" action="{url mainSite=SetWeight id=$objMainRecommendWaiting->GetId()}" name="weight{$objMainRecommendWaiting->GetId()}" >
|
||||
<select name="weight_{$objMainRecommendWaiting->GetId()}" onchange="document.forms['weight{$objMainRecommendWaiting->GetId()}'].submit()" >
|
||||
{foreach from=$arraySubPromoWeight item=weight}
|
||||
<option {if $weight == $objMainRecommendWaiting->GetWeight()} selected {/if}>{$weight|replace:"0":""}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</form>
|
||||
</td>
|
||||
<td width="35"><a href="{url mainSite=SetPublication id=$objMainRecommendWaiting->GetId()}" alt="publikuj" >publikuj</a> </td>
|
||||
<td><a href="{url mainSite=Edit id=$objMainRecommendWaiting->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
|
||||
<td width="100">{$objMainRecommendWaiting->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
|
||||
<td width="30"><a href="{url mainSite=delete id=$objMainRecommendWaiting->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/dropDownContainer*}
|
||||
|
||||
|
||||
{dropDownContainer title="Aktualności"}
|
||||
<br />
|
||||
<b>Opublikowane</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
{foreach from=$arrayObjMainNews item=objMainNews name=news key=k}
|
||||
{assign var=objArticle value=$objMainNews->GetMainArticleObj()}
|
||||
<tr>
|
||||
<td width="5">
|
||||
{$smarty.foreach.news.iteration}
|
||||
</td>
|
||||
<td width="35">
|
||||
{if $objMainNews->GetBlockade() gt 0}
|
||||
<a href="{url mainSite=blockade id=$objMainNews->GetId() place=0}" class="iconDeleteThread"></a>
|
||||
{else}
|
||||
<a href="{url mainSite=blockade id=$objMainNews->GetId() place=$k}" class="iconOpenThread"></a>
|
||||
{/if}
|
||||
</td>
|
||||
<td width="35">
|
||||
<a href="{url mainSite=sort id=$objMainNews->GetId() mainType=3 direct=up}">
|
||||
<img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" />
|
||||
</a>
|
||||
<a href="{url mainSite=sort id=$objMainNews->GetId() mainType=3 direct=down}">
|
||||
<img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" />
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{url mainSite=Edit id=$objMainNews->GetId()}"><b>{$objArticle->GetTitle()}</b></a>
|
||||
</td>
|
||||
<td width="100">
|
||||
{$objMainNews->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}
|
||||
</td>
|
||||
<td width="30">
|
||||
<a href="{url mainSite=delete id=$objMainNews->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
<tr>
|
||||
<td colspan="6" class="noborder">
|
||||
<a href="{url mainSite=add mainType=3}" class="floatRight"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
|
||||
{*<input class="floatRight button buttonNowy" value="" onclick="javascript:window.location.replace('{url mainSite=add mainType=3}');" type="submit"/><div class="floatRight"><input type="checkbox" name="" /> automatyczny </div>*}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br />
|
||||
<b>Oczekujące</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
{foreach from=$arrayObjMainNewsWaiting item=objMainNewsWaiting name=news}
|
||||
{assign var=objArticle value=$objMainNewsWaiting->GetMainArticleObj()}
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<form method="post" action="{url mainSite=SetWeight id=$objMainNewsWaiting->GetId()}" name="weight{$objMainNewsWaiting->GetId()}" >
|
||||
<select name="weight_{$objMainNewsWaiting->GetId()}" onchange="document.forms['weight{$objMainNewsWaiting->GetId()}'].submit()" >
|
||||
{foreach from=$arrayNewsWeight item=weight name=newsWaight}
|
||||
<option {if $weight == $objMainNewsWaiting->GetWeight()} selected {/if}>{if $smarty.foreach.newsWaight.first}{else}{$weight}{/if}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</form>
|
||||
</td>
|
||||
<td width="35"><a href="{url mainSite=SetPublication id=$objMainNewsWaiting->GetId()}" alt="publikuj" >publikuj</a></td>
|
||||
<td><a href="{url mainSite=Edit id=$objMainNewsWaiting->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
|
||||
<td width="100">{$objMainNewsWaiting->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
|
||||
<td width="30"><a href="{url mainSite=delete id=$objMainNewsWaiting->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,334 @@
|
||||
{dropDownContainer title="News głowny"}
|
||||
<br />
|
||||
<b>Opublikowane</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" class="noborder">
|
||||
<input class="floatRight button buttonNowy" value="" type="submit"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br />
|
||||
<b>Oczekujące</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
<br /><br /><br />
|
||||
|
||||
{dropDownContainer title="Polecamy"}
|
||||
<br />
|
||||
<b>Opublikowane</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" class="noborder">
|
||||
<input class="floatRight button buttonNowy" value="" type="submit"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br />
|
||||
<b>Oczekujące</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
<br /><br /><br />
|
||||
|
||||
{dropDownContainer title="Aktualności"}
|
||||
<br />
|
||||
<b>Opublikowane</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
<tr>
|
||||
<td width="5">1.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">2.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">4.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">5.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">6.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">7.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">8.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">9.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5">10.</td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5"></td>
|
||||
<td width="35"><a href="#" class="iconDeleteThread"></a><a href="#" class="iconOpenThread"></a></td>
|
||||
<td width="35"><a href="#"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="#"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" class="noborder">
|
||||
<input class="floatRight button buttonNowy" value="" type="submit"/><div class="floatRight"><input type="checkbox" name="" /> automatyczny </div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br />
|
||||
<b>Oczekujące</b>
|
||||
|
||||
|
||||
<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1"></td>
|
||||
<td width="35">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="35"><input type="checkbox" name="" /></td>
|
||||
<td><a href="#"><b>Muzyka terapią w chorobach serca</b></a></td>
|
||||
<td width="100">21.02.2009, 12:23</td>
|
||||
<td width="30"><a class="delete" href="#"></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
362
_rejestracja/_Admin/template/partial/Product/Add.tpl
Normal file
362
_rejestracja/_Admin/template/partial/Product/Add.tpl
Normal file
@@ -0,0 +1,362 @@
|
||||
<h1>Dodaj mieszkanie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Product='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objProduct->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="commonTable">
|
||||
<tbody>
|
||||
{if $lang != 'pl'}
|
||||
<tr>
|
||||
<td>Wprowadź dane elementu innej wersji językowej</td>
|
||||
<td>
|
||||
<a href="#" ></a>
|
||||
<div>
|
||||
<select id="productLangId">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arrayProduct key=idProductLang item=produktLang}
|
||||
<option value="{$idProductLang}">
|
||||
{$produktLang}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="button" value="uzupełnij" onclick="LoadProductLang('productLangId', '{url Product=AddLang idProduct=#i#d# idElement=$idStructure}');">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objProduct' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='objProduct' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' class='inputWidth141' errorClass='validate' name='weight' obj='objFile' func='GetWeight'}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Karta"}
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if isset($objProduct)}
|
||||
<img src="{$objProduct->GetFileIcon()}" alt="" title="" style="float: left;" >
|
||||
<p>{$objProduct->GetName()}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename_pdf" >
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Treść}
|
||||
|
||||
<div class="center">
|
||||
{if isset($objProduct)}
|
||||
{assign var='tresc' value=$objProduct->GetDescription()}
|
||||
{else}
|
||||
{assign var='tresc' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='tresc' toolbar='Formix' value=$tresc}
|
||||
</div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Opis dodatkowy" isHidden=true}
|
||||
<div class="articlePreviewRight">
|
||||
{if isset($objProduct)}
|
||||
{assign var='zajawka' value=$objProduct->GetShortnote()}
|
||||
{else}
|
||||
{assign var='zajawka' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='zajawka' toolbar='Basic' value=$zajawka}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Kategorie" isHidden=true}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<tr>
|
||||
<td>Kategorie:</td>
|
||||
<td class="left">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<input type="checkbox" value="1" name="prod_category_value[{$productCategory->GetId()}]" class="input" {if $productCategory->GetChecked()} checked{/if} />{$productCategory->GetName()};</br>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
-> <input type="checkbox" value="1" name="prod_category_value[{$subProductCategory->GetId()}]" class="input" {if $subProductCategory->GetChecked()} checked{/if} />{$subProductCategory->GetName()};</br>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<p><br>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Parametry" isHidden=true}
|
||||
|
||||
{foreach from=$arraySpecType item=specTypeName key=idSpecTypeName}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<th style="width: 20%">{$specTypeName}{*<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
|
||||
</tr>
|
||||
<tr class="selAllRow" id="linkParam" style="display: none;">
|
||||
<td colspan="6">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="id_spec_{$idSpecTypeName}" id="id_spec_{$idSpecTypeName}">
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjProductSpecification item=objProductSpecification}
|
||||
{assign var=x value=$x+1}
|
||||
|
||||
{if $objProductSpecification->GetTyp() == $idSpecTypeName}
|
||||
<input type="checkbox" value="1" name="spec_value[{$objProductSpecification->GetId()}]" class="input" />{$objProductSpecification->GetValue()};
|
||||
{/if}
|
||||
|
||||
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>lub dodaj nowy:
|
||||
<input type="text" name="spec_new_{$idSpecTypeName}" id="spec_new_{$idSpecTypeName}" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSpec('{url Product=AddSpecification type=$idSpecTypeName}', '#spec_new_{$idSpecTypeName}', '#id_spec_{$idSpecTypeName}')"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Parametry mieszkania"}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Piętro:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="idProductCategory" value="1" />
|
||||
<select name="idProductCategory">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<option value="{$productCategory->GetId()}">
|
||||
{$productCategory->GetName()}
|
||||
</option>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
<option value="{$subProductCategory->GetId()}"}>
|
||||
-> {$subProductCategory->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Promocja:</td>
|
||||
<td>{formField type='checkbox' name='sale' obj='objProduct' func='GetSale'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nowość:</td>
|
||||
<td>{formField type='checkbox' name='new' obj='objProduct' func='GetNew'}</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Status:</td>
|
||||
<td>
|
||||
<select name="available">
|
||||
|
||||
<option value="0">
|
||||
sprzedane
|
||||
</option>
|
||||
<option value="1">
|
||||
wolne
|
||||
</option>
|
||||
<option value="2">
|
||||
rezerwacja
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Polecany:</td>
|
||||
<td>{formField type='checkbox' name='special' obj='objProduct' func='GetSpecial'}</td>
|
||||
</tr>
|
||||
*}
|
||||
<tr>
|
||||
<td>Typ:</td>
|
||||
<td>
|
||||
{formField name='type' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetType'}
|
||||
{if isset($error.type)}<div style="color: red;" id="actionError" class="validate">{$error.type}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Numer:</td>
|
||||
<td>
|
||||
{formField name='amount' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetAmount'}
|
||||
{if isset($error.amount)}<div style="color: red;" id="actionError" class="validate">{$error.amount}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cena:</td>
|
||||
<td>
|
||||
{formField name='price' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPrice'}
|
||||
{if isset($error.price)}<div style="color: red;" id="actionError" class="validate">{$error.price}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Cena promocyjna:</td>
|
||||
<td>
|
||||
{formField name='price_sale' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPriceSale'}
|
||||
{if isset($error.price_sale)}<div style="color: red;" id="actionError" class="validate">{$error.price_sale}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Powierzchnia:</td>
|
||||
<td>
|
||||
{formField name='dimension' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetDimension'}
|
||||
{if isset($error.dimension)}<div style="color: red;" id="actionError" class="validate">{$error.dimension}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii:</td>
|
||||
<td>
|
||||
{formField name='code' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetCode'}
|
||||
{if isset($error.code)}<div style="color: red;" id="actionError" class="validate">{$error.code}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii opis:</td>
|
||||
<td>
|
||||
{formField name='zajawka' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetShortnote'}
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Liczba pokoi:</td>
|
||||
<td>
|
||||
{formField name='bulb' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetBulb'}
|
||||
{if isset($error.bulb)}<div style="color: red;" id="actionError" class="validate">{$error.bulb}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Seria" isHidden=true}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Wybierz serię:</td>
|
||||
<td>
|
||||
<select id="id_series" name="id_series">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arraySeries key=idSeries item=series}
|
||||
<option value="{$idSeries}">
|
||||
{$series}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>lub dodaj nową:</td>
|
||||
<td><input type="text" name="series_new" id="series_new" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSeries('{url Product=AddSeries}', '#series_new')"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Dodaj zdjecia" isHidden=true}
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="{url Image='Form'}">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecia" isHidden=true}
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test" /></div> {/foreach}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url _value=$controller,index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doProductAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
195
_rejestracja/_Admin/template/partial/Product/AddLang.tpl
Normal file
195
_rejestracja/_Admin/template/partial/Product/AddLang.tpl
Normal file
@@ -0,0 +1,195 @@
|
||||
<h1>Dodaj produkt</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Product='AddLang' idProduct=$idProduct idElement=$idStructure}" enctype="multipart/form-data">
|
||||
{if isset($objProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objProduct->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Wprowadź dane elementu innej wersji językowej</td>
|
||||
<td>
|
||||
<a href="#" ></a>
|
||||
<div>
|
||||
<select id="productLangId">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arrayProduct key=idProductLang item=produktLang}
|
||||
<option value="{$idProductLang}" {if $objProduct->GetId() == $idProductLang}selected{/if}>
|
||||
{$produktLang}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="button" value="uzupełnij" onclick="LoadProductLang('productLangId', '{url Product=AddLang idProduct=#i#d# idElement=$idStructure}');">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objProduct' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='objProduct' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
|
||||
{formField name='tytul' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetTitle'}
|
||||
{if isset($error.tytul)}<div style="color: red;" id="actionError" class="validate">{$error.tytul}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecie"}
|
||||
<div class="floatLeft" style="margin-left: 10px;">
|
||||
{if $objProduct->GetPictureMini()}<img src="{$objProduct->GetPictureMiniUrl()}" />{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="checkbox" name="deletePhoto" > Usuń obrazek
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Zajawka" isHidden=true}
|
||||
<div class="articlePreviewRight">
|
||||
{if isset($objProduct)}
|
||||
{assign var='zajawka' value=$objProduct->GetShortnote()}
|
||||
{else}
|
||||
{assign var='zajawka' value=''}
|
||||
{/if}
|
||||
{insertFckEditor width='620' height='159' name='zajawka' toolbar='Basic' value=$zajawka}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Treść}
|
||||
|
||||
<div class="center">
|
||||
{if isset($objProduct)}
|
||||
{assign var='tresc' value=$objProduct->GetDescription()}
|
||||
{else}
|
||||
{assign var='tresc' value=''}
|
||||
{/if}
|
||||
{insertFckEditor width='620' height='380' name='tresc' toolbar='Formix' value=$tresc}
|
||||
</div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Parametry}
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.{*<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</div></th>
|
||||
<th>Parametr{*<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
<th>Wartość{*<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
{*<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
{*<th class="noSort"><a href="#" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjAttribute item=objAttribute}
|
||||
{assign var=x value=$x+1}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="#">{$objAttribute->GetDescription()}</a></td>
|
||||
<td><input type="text" value="{$objAttribute->GetValue()}" name="attr_value[{$objAttribute->GetId()}]" class="input" /></td>
|
||||
{*<td style="width:15px">
|
||||
<input name="Checkbox2" type="checkbox" checked="checked" />
|
||||
</td>
|
||||
<td style="width:15px">
|
||||
<a href="#" class="edit">edytuj</a><a href="#" class="delete">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Dodaj zdjecia"}
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="{url Image='Form'}">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecia"}
|
||||
<div >
|
||||
{foreach from=$arrayImage item=image name=photo key=key}
|
||||
<div id="image_{$image->GetId()}" style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$image->GetFullUrlMiniId($objProduct->GetId(), 'Product')}" alt="test" />
|
||||
<div>
|
||||
<a href="#" onclick="DeletePhoto('{url Image=DeleteImage}', '{$image->GetId()}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</div>
|
||||
</div> {/foreach}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
{if isset($arrayPhoto)}
|
||||
{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test"/></div> {/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url _value=$controller,index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doProductAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
@@ -0,0 +1 @@
|
||||
<option value="{$idSeries}" selected>{$series}</option>
|
||||
@@ -0,0 +1,9 @@
|
||||
{if $state}
|
||||
<input type="checkbox" value="1" name="spec_value[{$idSpec}]" class="input" checked />{$spec};
|
||||
{else}
|
||||
{literal}
|
||||
<script>
|
||||
alert('Podana nazwa istnieje!');
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
@@ -0,0 +1 @@
|
||||
{$isLang}
|
||||
@@ -0,0 +1 @@
|
||||
<div onclick="WeightInput('{url Product=AjaxEditWeight}', '#weightList{$id}', '{$id}', '{$value}');">{$value}</div>
|
||||
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetState('{url Product=AjaxLimited}', '#limitedList{$id}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
61
_rejestracja/_Admin/template/partial/Product/AjaxList.tpl
Normal file
61
_rejestracja/_Admin/template/partial/Product/AjaxList.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerTop"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*} <a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a><a href="#">nie publikuj</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="selAll"> </td>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>data publikacji</th>
|
||||
<th>publikacja</th>
|
||||
<th>wyprzedaż</th>
|
||||
<th>promocja</th>
|
||||
<th>nowość</th>
|
||||
<th>kolejność</th>
|
||||
<th width="60">
|
||||
<a href="{url Product=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element do struktury'); return false;" {/if}><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
{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} id="row_{$obj->GetId()}">
|
||||
<td class="selAll"><input name="deleteList[{$obj->GetId()}]" type="checkbox" value="{$obj->GetId()}" class="tf" /></td>
|
||||
<td>{$obj->GetId()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetDate()}</td>
|
||||
<td id="publicationList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$obj->GetId()}', {$obj->GetPublication()}); return false;">{$obj->GetPublication()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
|
||||
<td id="limitedList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxLimited}', '#limitedList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetLimited()}); return false;">{$obj->GetLimited()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td id="saleList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxSale}', '#saleList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetSale()}); return false;">{$obj->GetSale()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td id="newList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxNew}', '#newList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetNew()}); return false;">{$obj->GetNew()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td id="weightList{$obj->GetId()}"><div onclick="WeightInput('{url Product=AjaxEditWeight}', '#weightList{$obj->GetId()}', '{$obj->GetId()}', '{$obj->GetWeight()}');" title="zmień">{$obj->GetWeight()}</div> </td>
|
||||
<td style="text-align: center;">
|
||||
<a href="{url Product=Edit idProduct=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="#" onclick="checkLang({$idElement},'{url Product=AjaxCeackLang idProduct=$obj->GetId() idElement=$idElement}', '{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.obj.last}
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerBottom"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*}<a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a> <a href="#">nie publikuj</a>*}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreachelse}
|
||||
{if !isset($searchString) || $searchString == ""}
|
||||
<tr>
|
||||
<td class="selAll"> </td>
|
||||
<td colspan="9" style="text-align: center;">Brak zdefiniowanych elementów. <br/> Aby dodać kliknij link 'dodaj'.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
1
_rejestracja/_Admin/template/partial/Product/AjaxNew.tpl
Normal file
1
_rejestracja/_Admin/template/partial/Product/AjaxNew.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetState('{url Product=AjaxNew}', '#newList{$id}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetState('{url Product=AjaxSale}', '#saleList{$id}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
@@ -0,0 +1 @@
|
||||
{$state}
|
||||
360
_rejestracja/_Admin/template/partial/Product/Edit.tpl
Normal file
360
_rejestracja/_Admin/template/partial/Product/Edit.tpl
Normal file
@@ -0,0 +1,360 @@
|
||||
<h1>Edytuj element</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Product='Edit' idProduct=$idProduct idElement=$idStructure}" enctype="multipart/form-data">
|
||||
{if isset($objProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objProduct->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objProduct' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='objProduct' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' class='inputWidth141' errorClass='validate' name='weight' obj='objFile' func='GetWeight'}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Karta"}
|
||||
<div class="floatLeft" style="margin-left: 10px;">
|
||||
{if $objProduct->GetPictureMini()}<img src="{$objProduct->GetPictureMiniUrl()}" />{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="checkbox" name="deletePhoto" > Usuń obrazek
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if $objProduct->GetFile()}
|
||||
{assign var=objFile value=$objProduct->GetFile()}
|
||||
<img src="{$urlStatic}/image/fileIcon/pdf.gif " alt="" title="" style="float: left;" >
|
||||
<p>{$objFile->GetName()}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename_pdf" >
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Treść"}
|
||||
|
||||
<div class="center">
|
||||
{if isset($objProduct)}
|
||||
{assign var='tresc' value=$objProduct->GetDescription()}
|
||||
{else}
|
||||
{assign var='tresc' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='tresc' toolbar='Formix' value=$tresc}
|
||||
</div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Opis dodatkowy" isHidden=true}
|
||||
<div class="articlePreviewRight">
|
||||
{if isset($objProduct)}
|
||||
{assign var='zajawka' value=$objProduct->GetShortnote()}
|
||||
{else}
|
||||
{assign var='zajawka' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='zajawka' toolbar='Basic' value=$zajawka}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Kategorie" isHidden=true}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<tr>
|
||||
<td>Kategorie:</td>
|
||||
<td class="left">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<input type="checkbox" value="1" name="prod_category_value[{$productCategory->GetId()}]" class="input" {if $productCategory->GetChecked() || $objProduct->getIdMfProductCategory() == $productCategory->GetId()} checked{/if} />{$productCategory->GetName()};</br>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
-> <input type="checkbox" value="1" name="prod_category_value[{$subProductCategory->GetId()}]" class="input" {if $subProductCategory->GetChecked()} checked{/if} />{$subProductCategory->GetName()};</br>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<p><br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Parametry" isHidden=true}
|
||||
|
||||
{foreach from=$arraySpecType item=specTypeName key=idSpecTypeName}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<th style="width: 20%">{$specTypeName}{*<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
|
||||
</tr>
|
||||
<tr class="selAllRow" id="linkParam" style="display: none;">
|
||||
<td colspan="6">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="id_spec_{$idSpecTypeName}" id="id_spec_{$idSpecTypeName}">
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjProductSpecification item=objProductSpecification}
|
||||
{assign var=x value=$x+1}
|
||||
|
||||
{if $objProductSpecification->GetTyp() == $idSpecTypeName}
|
||||
<input type="checkbox" value="1" name="spec_value[{$objProductSpecification->GetId()}]" class="input" {if $objProductSpecification->GetChecked()} checked{/if} />{$objProductSpecification->GetValue()};
|
||||
{/if}
|
||||
|
||||
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>lub dodaj nowy:
|
||||
<input type="text" name="spec_new_{$idSpecTypeName}" id="spec_new_{$idSpecTypeName}" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSpec('{url Product=AddSpecification type=$idSpecTypeName}', '#spec_new_{$idSpecTypeName}', '#id_spec_{$idSpecTypeName}')"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Parametry dla mieszkania"}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Piętro:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="idProductCategory" value="1" />
|
||||
<select name="idProductCategory">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<option value="{$productCategory->GetId()}" {if $productCategory->GetId() == $objProduct->getIdMfProductCategory()}selected{/if}>
|
||||
{$productCategory->GetName()}
|
||||
</option>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
<option value="{$subProductCategory->GetId()}" {if $subProductCategory->GetId() == $objProduct->getIdMfProductCategory()}selected{/if}>
|
||||
-> {$subProductCategory->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Promocja:</td>
|
||||
<td>{formField type='checkbox' name='sale' obj='objProduct' func='GetSale'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nowość:</td>
|
||||
<td>{formField type='checkbox' name='new' obj='objProduct' func='GetNew'}</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Status:</td>
|
||||
<td>
|
||||
<select name="available">
|
||||
|
||||
<option value="0" {if 0 == $objProduct->GetAvailable()}selected{/if}>
|
||||
sprzedane
|
||||
</option>
|
||||
<option value="1" {if 1 == $objProduct->GetAvailable()}selected{/if}>
|
||||
wolne
|
||||
</option>
|
||||
<option value="2" {if 2 == $objProduct->GetAvailable()}selected{/if}>
|
||||
rezerwacja
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Polecany:</td>
|
||||
<td>{formField type='checkbox' name='special' obj='objProduct' func='GetSpecial'}</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Typ:</td>
|
||||
<td>
|
||||
{formField name='type' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetType'}
|
||||
{if isset($error.type)}<div style="color: red;" id="actionError" class="validate">{$error.type}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Numer:</td>
|
||||
<td>
|
||||
{formField name='amount' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetAmount'}
|
||||
{if isset($error.amount)}<div style="color: red;" id="actionError" class="validate">{$error.amount}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cena:</td>
|
||||
<td>
|
||||
{formField name='price' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPrice'}
|
||||
{if isset($error.price)}<div style="color: red;" id="actionError" class="validate">{$error.price}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Cena promocyjna:</td>
|
||||
<td>
|
||||
{formField name='price_sale' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPriceSale'}
|
||||
{if isset($error.price_sale)}<div style="color: red;" id="actionError" class="validate">{$error.price_sale}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
|
||||
<tr>
|
||||
<td>Powierzchnia:</td>
|
||||
<td>
|
||||
{formField name='dimension' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetDimension'}
|
||||
{if isset($error.dimension)}<div style="color: red;" id="actionError" class="validate">{$error.dimension}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii:</td>
|
||||
<td>
|
||||
{formField name='code' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetCode'}
|
||||
{if isset($error.code)}<div style="color: red;" id="actionError" class="validate">{$error.code}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii opis:</td>
|
||||
<td>
|
||||
{formField name='zajawka' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetShortnote'}
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Liczba pokoi:</td>
|
||||
<td>
|
||||
{formField name='bulb' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetBulb'}
|
||||
{if isset($error.bulb)}<div style="color: red;" id="actionError" class="validate">{$error.bulb}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Seria" isHidden=true}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Wybierz serię:</td>
|
||||
<td>
|
||||
<select id="id_series" name="id_series">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arraySeries key=idSeries item=series}
|
||||
<option value="{$idSeries}" {if $idSeries == $objProduct->GetSeries()} selected{/if}>
|
||||
{$series}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>lub dodaj nową:</td>
|
||||
<td><input type="text" name="series_new" id="series_new" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSeries('{url Product=AddSeries}', '#series_new')"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Dodaj zdjecia" isHidden=true}
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="{url Image='Form'}">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecia" isHidden=true}
|
||||
<div >
|
||||
{foreach from=$arrayImage item=image name=photo key=key}
|
||||
<div id="image_{$image->GetId()}" style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$image->GetFullUrlMiniId($objProduct->GetId(), 'Product')}" alt="test" />
|
||||
<div>
|
||||
<a href="#" onclick="DeletePhotoJ('{url Image=DeleteImage}', '{$image->GetId()}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</div>
|
||||
</div> {/foreach}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
{if isset($arrayPhoto)}
|
||||
{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test"/></div> {/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url _value=$controller,index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doProductEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
51
_rejestracja/_Admin/template/partial/Product/Index.tpl
Normal file
51
_rejestracja/_Admin/template/partial/Product/Index.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{dropDownContainer title="Lista"}
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
{*<th>id</th>*}
|
||||
<th>nazwa</th>
|
||||
<th>data publikacji</th>
|
||||
<th>publikacja</th>
|
||||
<th>kolejność</th>
|
||||
<th width="60">
|
||||
<a href="{url Product=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element do 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->GetId()}</td>*}
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetDate()}</td>
|
||||
<td>{if $obj->GetPublication()}p*{/if}</td>
|
||||
<td>{$obj->GetWeight()}</td>
|
||||
<td style="text-align: center;">
|
||||
<a href="{url Product=Edit idProduct=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="#" onclick="checkLang({$idElement},'{url Product=AjaxCeackLang idProduct=$obj->GetId() idElement=$idElement}', '{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}');"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></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 produktó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 do struktury.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
204
_rejestracja/_Admin/template/partial/Product/IndexStructure.tpl
Normal file
204
_rejestracja/_Admin/template/partial/Product/IndexStructure.tpl
Normal file
@@ -0,0 +1,204 @@
|
||||
{dropDownContainer title="Lista"}
|
||||
<div>
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Tytuł:</td>
|
||||
<td>
|
||||
<input name="search" id="search" onkeyup="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());" />
|
||||
</td>
|
||||
|
||||
<td>piętro</td>
|
||||
<td>
|
||||
<select name="idCategorySelected" id="idCategorySelected" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="-1">
|
||||
Wszystkie
|
||||
</option>
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<option value="{$productCategory->GetId()}" {*if $productCategory->GetId() == $idCategorySelected}selected{/if*}>
|
||||
{$productCategory->GetName()}
|
||||
</option>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
<option value="{$subProductCategory->GetId()}" {*if $subProductCategory->GetId() == $idCategorySelected}selected{/if*}>
|
||||
-> {$subProductCategory->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Publikacja:</td>
|
||||
<td>
|
||||
<select name="publicationList" id="publicationList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
{*<input name="publicationList" type="checkbox" id="publicationList" value="1" onclick="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').attr('checked'));" />*}
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Nowość:</td>
|
||||
<td>
|
||||
<select name="newList" id="newList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Promocja:</td>
|
||||
<td>
|
||||
<select name="saleList" id="saleList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Wyprzedaż:</td>
|
||||
<td>
|
||||
<select name="limitedList" id="limitedList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
<input name="publicationList" type="checkbox" id="publicationList" value="1" onclick="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').attr('checked'));" />
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="tableContent">
|
||||
<table width="100%" class="datagrid" id="selAllList" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerTop"></td><td colspan="6"><a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a>{*<a href="#" id="selectall" class="selectall" onclick="SelectAll();">Zaznacz wszystkie</a>*)nbn <a href="#">usuń</a> {*<a href="#">publikuj</a><a href="#">nie publikuj</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="selAll"> </td>
|
||||
<th>nr</th>
|
||||
<th>nazwa</th>
|
||||
<th>data publikacji</th>
|
||||
<th>publikacja</th>
|
||||
<th>status</th>
|
||||
<th>plik</th>
|
||||
<th width="60">
|
||||
<a href="{url Product=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element do 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}
|
||||
{assign var=objFile value=$obj->GetFile()}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if} id="row_{$obj->GetId()}">
|
||||
<td class="selAll"><input name="deleteList[{$obj->GetId()}]" type="checkbox" value="{$obj->GetId()}" class="tf" /></td>
|
||||
<td>{$obj->GetAmount()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetDate()}</td>
|
||||
<td id="publicationList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$obj->GetId()}', {$obj->GetPublication()}); return false;">{$obj->GetPublication()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td>{$obj->GetAvailable()|replace:"0":"sprzedane"|replace:"1":"wolne"|replace:"2":"rezerwacja"}</td>
|
||||
<td>{if is_object($objFile)}{$objFile->GetName()}{else}brak{/if}</td>
|
||||
<td style="text-align: center;">
|
||||
<a href="{url Product=Edit idProduct=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="#" onclick="checkLang({$idElement},'{url Product=AjaxCeackLang idProduct=$obj->GetId() idElement=$idElement}', '{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.obj.last}
|
||||
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerBottom"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*}<a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a> <a href="#">nie publikuj</a>*}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreachelse}
|
||||
{if !isset($searchString) || $searchString == ""}
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Brak zdefiniowanych mieszkań. <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 do struktury.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
@@ -0,0 +1,57 @@
|
||||
<h1>Dodaj Kategorie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url ProductAttribute='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objAttributeProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objAttributeProduct->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objAttributeProduct' func='getDescription'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objAttributeProduct' func='GetPublication'}</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objAttributeProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url _value=$controller,index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doAttributeAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
@@ -0,0 +1,57 @@
|
||||
<h1>Dodaj Kategorie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url ProductAttribute='Edit' id=$objAttributeProduct->GetId() }" enctype="multipart/form-data">
|
||||
{if isset($objAttributeProduct)}
|
||||
<input type="hidden" name="idProductAttribute" value="{$objAttributeProduct->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objAttributeProduct' func='getDescription'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objAttributeProduct' func='GetPublication'}</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objAttributeProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url _value=$controller,index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doAttributeEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
@@ -0,0 +1,48 @@
|
||||
<h1>Parametry produktu</h1>
|
||||
|
||||
{dropDownContainer title='Parametry'}
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"><a href="{url ProductAttribute=Add}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjProductAttribute item=objAttribute}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=idAttribute value=$objAttribute->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url ProductAttribute=Index idAttribute=$objAttribute->GetId()}">{$objAttribute->GetDescription()}</a></td>
|
||||
<td>{$objAttribute->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url ProductAttribute=Edit id=$idAttribute}" class="edit">edytuj</a><a href="{url ProductAttribute=Delete id=$idAttribute}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{if isset($linkedAttribute)}
|
||||
{$linkedAttribute}
|
||||
{/if}
|
||||
|
||||
{if isset($unlinkedAttribute)}
|
||||
{$unlinkedAttribute}
|
||||
{/if}
|
||||
@@ -0,0 +1,49 @@
|
||||
{dropDownContainer title="Lista"}
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>data publikacji</th>
|
||||
<th>publikacja</th>
|
||||
<th width="60">
|
||||
<a href="{url Product=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element do 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->GetId()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetDate()}</td>
|
||||
<td>{if $obj->GetPublication()}p*{/if}</td>
|
||||
<td style="text-align: center;">
|
||||
<a href="{url Product=Edit idProduct=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}" onclick="{literal}if(confirm('Czy napewno usunęć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></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 produktó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 do struktury.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
@@ -0,0 +1,45 @@
|
||||
{dropDownContainer title='Powiązane parametry'}
|
||||
|
||||
{if !isset($clikCategory)}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th style="width: 10%"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th style="width: 20%" class="noSort">{*<a href="#" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjAttribute item=objAttribute}
|
||||
{assign var=x value=$x+1}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="#">{$objAttribute->GetDescription()}</a></td>
|
||||
<td>{$objAttribute->GetPublication()}</td>
|
||||
<td>
|
||||
{*<a href="#" class="delete">usuń</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
<td colspan="4">Brak powiązanych parametrów</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{else}
|
||||
Wybierz kategorie żeby zobaczyć powiązane parametry
|
||||
{/if}
|
||||
|
||||
{/dropDownContainer}
|
||||
@@ -0,0 +1,43 @@
|
||||
{dropDownContainer title='Niepowiązane parametry'}
|
||||
|
||||
{if !isset($clikCategory)}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th style="width: 10px"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th style="width: 20%" class="noSort">Powiąż</th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjAttribute item=objAttribute}
|
||||
{assign var=x value=$x+1}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="#">{$objAttribute->GetDescription()}</a></td>
|
||||
<td>{$objAttribute->GetPublication()}</td>
|
||||
<td><a href="#" class="add">Powiąż</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
<td colspan="4">Brak nie powiązanych parametrów</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{else}
|
||||
Wybierz kategorie żeby zobaczyć nie powiązane parametry
|
||||
{/if}
|
||||
|
||||
{/dropDownContainer}
|
||||
80
_rejestracja/_Admin/template/partial/ProductCategory/Add.tpl
Normal file
80
_rejestracja/_Admin/template/partial/ProductCategory/Add.tpl
Normal file
@@ -0,0 +1,80 @@
|
||||
<h1>Dodaj Kategorie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url ProductCategory='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objCategoryProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objCategoryProduct->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kategoria główna:</td>
|
||||
<td>
|
||||
<select name="idParent">
|
||||
<option value="0" >
|
||||
Rodzic
|
||||
</option>
|
||||
{foreach from=$arrayObjProductCategory item=objProductCategoryList}
|
||||
<option value="{$objProductCategoryList->GetId()}">
|
||||
{$objProductCategoryList->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objCategoryProduct' func='GetPublication'}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getWeight'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objCategoryProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url ProductCategory=Index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
@@ -0,0 +1,78 @@
|
||||
<h1>Dodaj Kategorie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url ProductCategory='Edit' id=$objCategoryProduct->GetId() }" enctype="multipart/form-data">
|
||||
{if isset($objCategoryProduct)}
|
||||
<input type="hidden" name="idProductCategory" value="{$objCategoryProduct->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="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kategoria główna:</td>
|
||||
<td>
|
||||
<select name="idParent">
|
||||
<option value="0" {if $objCategoryProduct->GetIdParent() == '0'}selected{/if}>
|
||||
Rodzic
|
||||
</option>
|
||||
{foreach from=$arrayObjProductCategory item=objProductCategoryList}
|
||||
<option value="{$objProductCategoryList->GetId()}" {if $objCategoryProduct->GetIdParent() == $objProductCategoryList->GetId()}selected{/if}>
|
||||
{$objProductCategoryList->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objCategoryProduct' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getWeight'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objCategoryProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url ProductCategory=Index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
@@ -0,0 +1,61 @@
|
||||
<h1>Kategorie produktu</h1>
|
||||
|
||||
{dropDownContainer title='Kategorie'}
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"><a href="{url ProductCategory=Add}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$menuProductCategory item=objCategory}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=idCategory value=$objCategory->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url ProductCategory=Edit id=$idCategory}" title="edytuj">{$objCategory->GetName()}</a></td>
|
||||
<td>{$objCategory->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url ProductCategory=Edit id=$idCategory}" class="edit">edytuj</a><a href="{url ProductCategory=Delete id=$idCategory}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{if $objCategory->GetHaveChildren()}
|
||||
{foreach from=$objCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url ProductCategory=Edit id=$idCategory}" title="edytuj"> -> {$subProductCategory->GetName()}</a></td>
|
||||
<td>{$subProductCategory->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url ProductCategory=Edit id=$subProductCategory->GetId()}" class="edit">edytuj</a><a href="{url ProductCategory=Delete id=$subProductCategory->GetId()}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{*if isset($linkedAttribute)}
|
||||
{$linkedAttribute}
|
||||
{/if}
|
||||
|
||||
{if isset($unlinkedAttribute)}
|
||||
{$unlinkedAttribute}
|
||||
{/if*}
|
||||
@@ -0,0 +1,49 @@
|
||||
{dropDownContainer title="Lista"}
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>data publikacji</th>
|
||||
<th>publikacja</th>
|
||||
<th width="60">
|
||||
<a href="{url Product=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element do 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->GetId()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetDate()}</td>
|
||||
<td>{if $obj->GetPublication()}p*{/if}</td>
|
||||
<td style="text-align: center;">
|
||||
<a href="{url Product=Edit idProduct=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
|
||||
<a href="{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}" onclick="{literal}if(confirm('Czy napewno usunęć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></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 produktó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 do struktury.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
@@ -0,0 +1,54 @@
|
||||
{dropDownContainer title='Powiązane parametry'}
|
||||
<form method="post" action="{url ProductCategory='SaveSort'}" enctype="multipart/form-data">
|
||||
{if isset($idCategory)}
|
||||
<input type="hidden" name="idCategory" value="{$idCategory}" />
|
||||
{/if}
|
||||
{if !isset($clikCategory)}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th style="width: 10%"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th style="width: 20%" class="noSort">kolejność{*<a href="#" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjAttribute item=objAttribute name=attribute}
|
||||
{assign var=x value=$x+1}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="#">{$objAttribute->GetDescription()}</a></td>
|
||||
<td>{$objAttribute->GetPublication()}</td>
|
||||
<td>
|
||||
<input type="text" name="attr[{$objAttribute->GetId()}]" value="{$x}" />
|
||||
{*<a href="#" class="delete">usuń</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
{if $smarty.foreach.attribute.last}
|
||||
<tr>
|
||||
<td colspan="4" align="right"><input type="submit" value="Zapisz" name="doSaveSort"/></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreachelse}
|
||||
<tr>
|
||||
<td colspan="4">Brak powiązanych parametrów</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{else}
|
||||
Wybierz kategorie żeby zobaczyć powiązane parametry
|
||||
{/if}
|
||||
</form>
|
||||
{/dropDownContainer}
|
||||
@@ -0,0 +1,43 @@
|
||||
{dropDownContainer title='Niepowiązane parametry'}
|
||||
|
||||
{if !isset($clikCategory)}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th style="width: 10px"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th style="width: 20%" class="noSort">Powiąż</th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjAttribute item=objAttribute}
|
||||
{assign var=x value=$x+1}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="#">{$objAttribute->GetDescription()}</a></td>
|
||||
<td>{$objAttribute->GetPublication()}</td>
|
||||
<td><a href="#" class="add">Powiąż</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
<td colspan="4">Brak nie powiązanych parametrów</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
|
||||
|
||||
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">« poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{else}
|
||||
Wybierz kategorie żeby zobaczyć nie powiązane parametry
|
||||
{/if}
|
||||
|
||||
{/dropDownContainer}
|
||||
@@ -0,0 +1,3 @@
|
||||
<div style="padding: 50px;">
|
||||
Wyczyszczono zawarto¶æ cache.
|
||||
</div>
|
||||
35
_rejestracja/_Admin/template/partial/Setup/Edit.tpl
Normal file
35
_rejestracja/_Admin/template/partial/Setup/Edit.tpl
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{dropDownContainer title="Zmienne systemowe"}
|
||||
<form method="post" action="{url _value=setup}">
|
||||
<table align="center" class="adminTable" cellpadding="2" cellspacing="2" style="width: 500px;">
|
||||
<tr>
|
||||
<td>nazwa zmiennej</td>
|
||||
<td><input type="text" value="{if $objVariable}{$objVariable.variable}{/if}" name="variable" class="input" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>wartość zmiennej</td>
|
||||
<td><input type="text" value="{if $objVariable}{$objVariable.value}{/if}" name="value" class="input" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>opis (opcjonalnie)</td>
|
||||
<td><input type="text" value="{if $objVariable}{$objVariable.description}{/if}" name="description" class="input" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" value="Zapisz" name="addVariable" class="button buttonZapisz" />
|
||||
<input type="button" value="Anuluj" name="cancel" class="button buttonAnuluj" onclick="document.location.href='{url _value=setup}' " />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
</div><!-- /paddedContent -->
|
||||
</div><!-- /panelRightBody -->
|
||||
<div class="panelRightBottom">
|
||||
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="variableId" value="" />
|
||||
</form>
|
||||
30
_rejestracja/_Admin/template/partial/Setup/Index.tpl
Normal file
30
_rejestracja/_Admin/template/partial/Setup/Index.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{dropDownContainer title="Zmienne systemowe"}
|
||||
<table align="center" class="datagrid" cellpadding="4" cellspacing="1" style="width: 500px;">
|
||||
<th>Lp.</th>
|
||||
<th>zmienna</th>
|
||||
<th>wartość</th>
|
||||
<th>opis</th>
|
||||
<th class="light"><a href="{url setup=new}">dodaj</a></th>
|
||||
|
||||
|
||||
{assign var=x value=1}
|
||||
{foreach from=$arrayVariables key=k item=ArrayItem name=array}
|
||||
{assign var=tVariable value=$ArrayItem.variable}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
|
||||
<td>{$smarty.foreach.array.index+1}</td>
|
||||
<td>{$ArrayItem.variable}</td>
|
||||
<td>{$ArrayItem.value}</td>
|
||||
<td>{$ArrayItem.description}</td>
|
||||
<td><a href="{url setup=edit variable=$tVariable}">edytuj</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
</div><!-- /paddedContent -->
|
||||
</div><!-- /panelRightBody -->
|
||||
<div class="panelRightBottom"></div>
|
||||
@@ -0,0 +1,55 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
|
||||
<div class="panelContentTop"><h2><a href="#" class="long">Manual Path Installer</a></h2></div>
|
||||
<div class="panelContentBody">
|
||||
<form name="comment" action="{url setup=ManualPathInstaller}" method="post">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Module:</td><td><input type="text" name="module" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Controller:</td><td><input type="text" name="controller" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Method:</td><td><input type="text" name="method" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Param*:</td><td><input type="text" name="param" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>MatchUri:</td><td><input type="text" name="matchUri" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ActionSet*:</td><td><textarea name="actionSet"></textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
* - lista parametrów dla akcji głownej w postaci Zmienna1:Wartość1,Zmienna2:Wartość2
|
||||
<br /><br />
|
||||
** - lista akcji do wykonania razem z modułem w postaci Modul1:Kontroler1:metoda1,Modul2:Kontroler2:metoda2
|
||||
<br />
|
||||
<br />
|
||||
<input type="submit" class="button buttonZapisz" value="" name=""/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="panelContentBottom"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
{*
|
||||
<form method="post" action="">
|
||||
<input type="submit" class="button buttonAnuluj" value="" name=""/>
|
||||
|
||||
<input type="submit" class="button buttonPodglad" value="" name=""/>
|
||||
<input type="submit" class="button buttonZapisz" value="" name=""/>
|
||||
<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>
|
||||
</form>
|
||||
*}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,32 @@
|
||||
<div class="panelRight">
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
|
||||
<div class="panelContentTop"><h2><a href="#" class="long">Manual Path Installer</a></h2></div>
|
||||
<div class="panelContentBody">
|
||||
<table>
|
||||
{foreach from=$modulesList item=module}
|
||||
<tr><td>{$module}</td><td><a href="{url setup=PackageInstaller package=$module}">instaluj</a></td></tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="panelContentBottom"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
{*
|
||||
<form method="post" action="">
|
||||
<input type="submit" class="button buttonAnuluj" value="" name=""/>
|
||||
|
||||
<input type="submit" class="button buttonPodglad" value="" name=""/>
|
||||
<input type="submit" class="button buttonZapisz" value="" name=""/>
|
||||
<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>
|
||||
</form>
|
||||
*}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
6
_rejestracja/_Admin/template/partial/Setup/Sync.tpl
Normal file
6
_rejestracja/_Admin/template/partial/Setup/Sync.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
<div style="padding: 50px;">
|
||||
<div style="background-color: red; border: 1px solid grey; border-right: 2px solid black; border-bottom: 2px solid black; width: 200px; height: 50px; font-size: 16px; text-align: center; color: black; font-weight: bold; cursor: pointer;" onclick="document.location.href='{url value=setup,SyncAppCode}';">Synchronizuj kod aplikacji</div>
|
||||
</div>
|
||||
<div style="padding: 50px;">
|
||||
{$actionReturn}
|
||||
</div>
|
||||
12
_rejestracja/_Admin/template/partial/Shared/Admin.tpl
Normal file
12
_rejestracja/_Admin/template/partial/Shared/Admin.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<div>
|
||||
|
||||
<div class="arrowRight"> </div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=setup}">Setup - zmienne serwisu</a></div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="arrowRight"> </div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=user}">Zarządzanie użytownikami</a></div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="arrowRight"> </div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=user,add}">Dodaj Użytkownika</a></div>
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{dropDownContainer title="Klienci"}
|
||||
{html_checkboxes name='idCustomer' options=$arrayCustomer selected=$arrayCustomerLink separator='<br />'}
|
||||
{/dropDownContainer}
|
||||
@@ -0,0 +1,5 @@
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
8
_rejestracja/_Admin/template/partial/Shared/Login.tpl
Normal file
8
_rejestracja/_Admin/template/partial/Shared/Login.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
<div>
|
||||
<div class="arrowRight"> </div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=login,logout}">wyloguj</a></div>
|
||||
<div class="clearBoth"></div>
|
||||
{*
|
||||
<div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=user,changePassword}">zmiana hasła</a>
|
||||
*}
|
||||
</div>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user