first commit
This commit is contained in:
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}
|
||||
Reference in New Issue
Block a user