update
This commit is contained in:
1
Admin/template/clean.tpl
Normal file
1
Admin/template/clean.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{$content}
|
||||
194
Admin/template/index.tpl
Normal file
194
Admin/template/index.tpl
Normal file
@@ -0,0 +1,194 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>{$pageTitle}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/style2.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/styleUP.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/jquery-ui.css"/ >
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/jquery-ui.theme.css"/ >
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/jquery.datetimepicker.css"/ >
|
||||
<link rel="stylesheet" href="{$urlStatic}/css/drag-drop-folder-tree.css" type="text/css"></link>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="pl" />
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="{$urlStatic}/image/Strona/favicon/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="{$urlStatic}/image/Strona/favicon/apple-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="{$urlStatic}/image/Strona/favicon/apple-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="{$urlStatic}/image/Strona/favicon/apple-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="{$urlStatic}/image/Strona/favicon/apple-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="{$urlStatic}/image/Strona/favicon/apple-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="{$urlStatic}/image/Strona/favicon/apple-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="{$urlStatic}/image/Strona/favicon/apple-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{$urlStatic}/image/Strona/favicon/apple-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{$urlStatic}/image/Strona/favicon/android-icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{$urlStatic}/image/Strona/favicon/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="{$urlStatic}/image/Strona/favicon/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{$urlStatic}/image/Strona/favicon/favicon-16x16.png">
|
||||
<link rel="manifest" href="{$urlStatic}/image/Strona/favicon/manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="{$urlStatic}/image/Strona/favicon/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
{section name=s loop=$javaScript}
|
||||
{if $javaScript[s].file!=''}
|
||||
<script src="{$javaScript[s].file}" type="text/javascript" charset="utf-8"></script>
|
||||
{/if}
|
||||
{if $javaScript[s].code!=''}
|
||||
<script type="text/javascript">
|
||||
<!-- <![CDATA[
|
||||
{$javaScript[s].code}
|
||||
// ]]> -->
|
||||
</script>
|
||||
{/if}
|
||||
{/section}
|
||||
<script type="text/javascript">
|
||||
var LinkUrl = '{url Structure=link}';
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
{*{literal}
|
||||
<script>
|
||||
$( function() {
|
||||
|
||||
$( "select" ).selectmenu();
|
||||
$( "checkbox" ).checkboxradio();
|
||||
|
||||
|
||||
} );
|
||||
</script>
|
||||
{/literal}*}
|
||||
</head>
|
||||
<body>
|
||||
<div id="dialog-message" class="none" title="Info"></div>
|
||||
<div id="dialog-confirm" class="none" title="Info"></div>
|
||||
<div class="titleHeader">
|
||||
<img src="{$urlStatic}/image/Admin/aem-cms-white.png" alt="" title="" border="0"/>
|
||||
<div style="float: right; display: block;">
|
||||
<form action="{url Structure=ChangeLang}" method="post">
|
||||
<select id="lang" name="lang" onchange="submit();">
|
||||
<option value="pl" {if $lang == 'pl'}selected{/if}>Polski</option>
|
||||
<option value="en" {if $lang == 'en'}selected{/if}>English</option>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TOP NAV -->
|
||||
<ul class="tabs">
|
||||
<li><a href="{url structure=index}" class="{if $titleAdmin == 'Struktura strony' || $titleAdmin == 'Pliki' || $titleAdmin == 'Aktualności'}selected{/if}">Struktura</a></li>
|
||||
<li><a href="{url HomeSite=ArticleBox}" class="{if $titleAdmin == 'Elementy Strony'}selected{/if}">Elementy Strony</a></li>
|
||||
{* <li><a href="{url Setup=Index}" class="{if $titleAdmin == 'Administracja'}selected{/if}">Administracja</a></li>*}
|
||||
<li><a href="{url Login=logout}" class="{if $titleAdmin == 'Logowanie'}selected{/if}">Wyloguj</a></li>
|
||||
</ul>
|
||||
<!-- END TOP NAV -->
|
||||
|
||||
<div class="cb"></div>
|
||||
<!-- MAIN FRAME -->
|
||||
<div class="mainContentFrame">
|
||||
<!-- SIDE MENU -->
|
||||
|
||||
<div class="sideMenuContainer">
|
||||
<!-- SIDE MENU OPTION -->
|
||||
{*<div class="sideMenu">
|
||||
<h2><a href="#"><img align="absmiddle" src="{$urlStatic}/image/Admin/expand.gif" alt="konto" />Opcje zwinięte</a></h2>
|
||||
<div class="section">
|
||||
</div>
|
||||
</div>
|
||||
*}
|
||||
|
||||
|
||||
<!-- SIDE MENU OPTION -->
|
||||
<div class="sideMenu">
|
||||
<h2>{$titleAdmin}</h2>
|
||||
<div class="section">
|
||||
<div class="sideMenuIcons">
|
||||
{if isset($showIcon) && $showIcon == true}
|
||||
<div class="overflow">
|
||||
<a class="addItemMenu" href="{url Structure='Add'}" title="Dodaj element">Dodaj element</a>
|
||||
<a class="deleteItemMenu" href="{url structure=delete}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url structure=delete}{literal}')) { } else {return false;}{/literal}" title="Usuń element">Usuń element</a>
|
||||
{* <a class="deleteItemMenu" href="{url structure=delete}" onclick="{literal}if (confirm('Czy napewno usunąć ten element?')) {} else {return false;}{/literal}" title="Usuń element">Usuń element</a>*}
|
||||
|
||||
{if !$idStucture}{assign var=idStucture value=-1}{/if}
|
||||
{*<a href="{url label=copyStructure id=$idStucture}" {if $idStucture < 0} onclick="alert('Nie wybrano elementu do skopiowania!'); return false;" {/if}}><img src="{$urlStatic}/image/Admin/iconCopy.gif" border="0" title="Kopiuj" alt="Kopiuj"/></a>*}
|
||||
{*<a href="#"><img src="{$urlStatic}/image/Admin/iconPreview.gif" border="0" title="" alt=""/></a>*}
|
||||
<div class="cb"></div>
|
||||
<div class="paddedContent"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="framePopver" id="stucturePopover" style="display: none; background: #ffffff;">
|
||||
<form action="{url Structure='Add'}" method="post" id="sendModule" enctype="multipart/form-data" >
|
||||
<div class="panelPopoverTop"><b>Utwórz stronę</b></div>
|
||||
<div class="panelPopoverContent">
|
||||
<div class="floatLeft frameLeftPopover">
|
||||
Podaj nazwę:
|
||||
</div>
|
||||
<input type="text" name="title" />
|
||||
</div>
|
||||
|
||||
<div class="panelPopoverContent">
|
||||
|
||||
<div class="floatLeft frameLeftPopover">
|
||||
Wybierz rodzaj strony:
|
||||
</div>
|
||||
{*
|
||||
<select name="idModule" id="idModule" onchange="GetModuleCategory(document.getElementById('idModule').value, '{url structure='AjaxGetModuleCategory'}');">
|
||||
<option value="0">Wybierz</option>
|
||||
{html_options options=$arrayModuleName}
|
||||
</select>
|
||||
*}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{*<div class="panelPopoverContent" id="categoryOptions" style="display: hidden;">
|
||||
</div>*}
|
||||
|
||||
|
||||
<div class="panelPopoverBottom">
|
||||
|
||||
{*
|
||||
<input class="cancel" type="button" name="back" value="Anuluj" onclick="javascript: document.getElementById('stucturePopover').style.display = 'none';"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<input id="dalejPopover" type="submit" name="name" value="Dalej" style="display: none;" />
|
||||
*}
|
||||
<div class="cb"></div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
{$structure}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
|
||||
<!-- END SIDE MENU -->
|
||||
<div class="mainContent">
|
||||
{if isset($info) && $info != 'wybrana strona nie istnieje'}
|
||||
<div class="{if $type && $type=='error'}messageError{elseif $type == 'info'}messageInfo{else}messageOk{/if}">{$info}</div>
|
||||
{/if}
|
||||
<div id="infoMessage"></div>
|
||||
{$content}
|
||||
<!-- /panelRight -->
|
||||
</div>
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
84
Admin/template/login.tpl
Normal file
84
Admin/template/login.tpl
Normal file
@@ -0,0 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{$pageTitle}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="pl" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/style.css" />
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="{$urlStatic}/image/Strona/favicon/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="{$urlStatic}/image/Strona/favicon/apple-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="{$urlStatic}/image/Strona/favicon/apple-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="{$urlStatic}/image/Strona/favicon/apple-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="{$urlStatic}/image/Strona/favicon/apple-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="{$urlStatic}/image/Strona/favicon/apple-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="{$urlStatic}/image/Strona/favicon/apple-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="{$urlStatic}/image/Strona/favicon/apple-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{$urlStatic}/image/Strona/favicon/apple-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{$urlStatic}/image/Strona/favicon/android-icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{$urlStatic}/image/Strona/favicon/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="{$urlStatic}/image/Strona/favicon/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{$urlStatic}/image/Strona/favicon/favicon-16x16.png">
|
||||
<link rel="manifest" href="{$urlStatic}/image/Strona/favicon/manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="{$urlStatic}/image/Strona/favicon/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
</head>
|
||||
<body>
|
||||
<div class="titleHeader">
|
||||
<a href="index.html"><img src="{$urlStatic}/image/Admin/aem-cms-white.png" alt="" title="" border="0"/></a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tabs">
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="mainContentFrameLogin">
|
||||
|
||||
<!-- SIDE MENU -->
|
||||
|
||||
<!-- END SIDE MENU -->
|
||||
<div class="mainContentLogin">
|
||||
<h1 align="center">Zaloguj się</h1>
|
||||
<form method="post" action="{url login=auth}">
|
||||
<table align="center" class="loginTable" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<th>Login:</th>
|
||||
<td> <input type="text" class="input" name="eLogin" value="" /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Hasło:</th>
|
||||
<td>
|
||||
<input type="password" class="input" name="ePassword" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center"><p><input class="adminSubmit" type="submit" name="" value="Zaloguj" /></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div class="logowanieErrors" style="{if $loginError!='1'}display: none;{/if} padding-top: 10px; text-align: center;">
|
||||
<b>Błąd!</b><br />
|
||||
Zły login lub hasło. Spróbuj ponownie ...
|
||||
</div>
|
||||
|
||||
<!-- END SIDE MENU -->
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
<!-- END MAIN FRAME -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
100
Admin/template/partial/Calc/Add.tpl
Normal file
100
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
Admin/template/partial/Calc/Edit.tpl
Normal file
99
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
Admin/template/partial/Calc/Index.tpl
Normal file
43
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}
|
||||
115
Admin/template/partial/Calc/templateModel.tpl
Normal file
115
Admin/template/partial/Calc/templateModel.tpl
Normal file
@@ -0,0 +1,115 @@
|
||||
|
||||
/**
|
||||
* Model dla klasy {$className}
|
||||
*
|
||||
* @author ModGen
|
||||
*/
|
||||
|
||||
class {$className} extends DataObject{literal}{{/literal}
|
||||
|
||||
|
||||
/**
|
||||
* nazwa tabeli
|
||||
*/
|
||||
static $tableName = '{$tableName}';
|
||||
|
||||
/**
|
||||
* nazwa klucza tabeli
|
||||
*/
|
||||
static $classTablePK = 'id_{$tableName}';
|
||||
|
||||
/**
|
||||
* nazwa klasy
|
||||
*/
|
||||
static $className = __CLASS__;
|
||||
|
||||
/**
|
||||
* tablica mapująca pola klasy
|
||||
*/
|
||||
static $fields = array(
|
||||
{foreach from=$columnNames key=sqlName item=phpName name=fields}
|
||||
'{$sqlName}' => '{$phpName}'{if !$smarty.foreach.fields.last},
|
||||
{else}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
);
|
||||
|
||||
|
||||
{foreach from=$columnNames item=phpName name=fields}
|
||||
{if $phpName == 'id'}
|
||||
protected ${$phpName};
|
||||
{else}
|
||||
private ${$phpName};
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
|
||||
{*foreach from=$refTables item=phpName name=fields}
|
||||
public ${$phpName};
|
||||
{/foreach*}
|
||||
|
||||
// -- Konstruktor --
|
||||
|
||||
|
||||
function __construct({foreach from=$columnNames item=phpName name=const}{if $phpName == 'id'} $id = -1 {else} ${$phpName} = null{/if}{if !$smarty.foreach.const.last},{/if}{/foreach}){literal}{{/literal}
|
||||
{foreach from=$columnNames item=phpName}
|
||||
$this->{$phpName} = ${$phpName};
|
||||
{/foreach}
|
||||
{literal}}{/literal}
|
||||
|
||||
|
||||
|
||||
// -- Get-y i Set-y --
|
||||
|
||||
{foreach from=$columnNames item=phpName}
|
||||
public function get{$phpName|ucfirst}(){literal}{{/literal}
|
||||
return $this->{$phpName};
|
||||
{literal}}{/literal}
|
||||
|
||||
public function set{$phpName|ucfirst}(${$phpName}){literal}{{/literal}
|
||||
$this->{$phpName} = ${$phpName};
|
||||
{literal}}{/literal}
|
||||
|
||||
|
||||
{/foreach}
|
||||
|
||||
|
||||
{literal}
|
||||
|
||||
/**
|
||||
* Pobiera nazwę tabeli reprezentującej obiekt w SQL
|
||||
* @return string
|
||||
*/
|
||||
public function GetTableName(){
|
||||
return self::$tableName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pobiera nazwę klucza głównego tabeli
|
||||
* @return string
|
||||
*/
|
||||
public function GetClassTablePK() {
|
||||
return self::$classTablePK;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pobiera tablice mapującą pola klasy na pola tabeli
|
||||
* @return array
|
||||
*/
|
||||
public function GetFields(){
|
||||
return self::$fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pobiera nazwę klasy
|
||||
* @return string
|
||||
*/
|
||||
public function GetClassName(){
|
||||
return self::$className;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
|
||||
{literal}}{/literal}
|
||||
|
||||
142
Admin/template/partial/Calc/templateModelDAL.tpl
Normal file
142
Admin/template/partial/Calc/templateModelDAL.tpl
Normal file
@@ -0,0 +1,142 @@
|
||||
|
||||
/**
|
||||
* Klasa obsługi tablicy {$tableName}
|
||||
*
|
||||
*/
|
||||
class {$className}DAL extends DefaultDAL{literal}{{/literal}
|
||||
|
||||
|
||||
protected static $objClassName = '{$className}';
|
||||
protected static $objClassTable = '{$tableName}';
|
||||
protected static $objClassTablePK = 'id_{$tableName}';
|
||||
private static $optClass;
|
||||
|
||||
{if 'published'|array_key_exists:$columnNames}
|
||||
public static function TogglePublishedById(DalData $dalObj) {literal}{{/literal}
|
||||
return self::DefaultToggleFieldById($dalObj, 'published');
|
||||
{literal}}{/literal}
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
|
||||
public static function Save($obj) {
|
||||
if($obj->GetId()=='-1') {
|
||||
$dalData = new DalData();
|
||||
$dalData->setObjClassName(self::GetObjClassName());
|
||||
$dalData->setObjClassTable(self::GetObjClassTable());
|
||||
$dalData->setObjClassTablePK(self::GetObjClassTablePK());
|
||||
$dalData->setObj($obj);
|
||||
return self::DefaultInsert($dalData);
|
||||
} else {
|
||||
$dalData = new DalData();
|
||||
$dalData->setObjClassName(self::GetObjClassName());
|
||||
$dalData->setObjClassTable(self::GetObjClassTable());
|
||||
$dalData->setObjClassTablePK(self::GetObjClassTablePK());
|
||||
$dalData->setObj($obj);
|
||||
//Utils::ArrayDisplay($dalData);
|
||||
return self::DefaultUpdate($dalData);
|
||||
}
|
||||
}
|
||||
|
||||
public static function Insert(DalData $dalObj) {
|
||||
return self::DefaultInsert($dalObj);
|
||||
}
|
||||
|
||||
public static function Update(DalData $dalObj) {
|
||||
return self::DefaultUpdate($dalObj);
|
||||
}
|
||||
|
||||
public static function GetById(DalData $dalObj) {
|
||||
return self::DefaultGetById($dalObj);
|
||||
}
|
||||
|
||||
public static function Delete(DalData $dalObj) {
|
||||
return self::DefaultDelete($dalObj);
|
||||
}
|
||||
|
||||
public static function GetResult(DalData $dalObj) {
|
||||
return self::DefaultGetResult($dalObj);
|
||||
}
|
||||
|
||||
public static function GetResultByLink($table, $id ,$destination = false, $data = array(), $queryFields = array(), $limit = 0, $sortBy = null,$count = null)
|
||||
{
|
||||
$dalData = new DalData();
|
||||
$dalData->setObjClassName(self::GetObjClassName());
|
||||
$dalData->setObjClassTable(self::GetObjClassTable());
|
||||
$dalData->setObjClassTablePK(self::GetObjClassTablePK());
|
||||
$dalData->setOptClass(self::GetOptClass());
|
||||
$dalData->setCondition($data);
|
||||
$dalData->setQueryFields($queryFields);
|
||||
$dalData->setLimit($limit);
|
||||
$dalData->setSortBy($sortBy);
|
||||
$dalData->setCount($count);
|
||||
$dalData->setDataArray("mf_link_id", $id);
|
||||
$dalData->setDataArray("mf_link_table", $table);
|
||||
$dalData->setDataArray("mf_link_destination", $destination);
|
||||
return self::DefaultGetResultByLink($dalData);
|
||||
}
|
||||
|
||||
public static function GetEmptyObj() {
|
||||
//Utils::ArrayDisplay('tu jestem ');
|
||||
$obj = new {/literal}{$className}{literal}(-1);
|
||||
return $obj;
|
||||
}
|
||||
|
||||
public static function GetObjClassName() {
|
||||
if(self::$objClassName != '') {
|
||||
$class = self::$objClassName;
|
||||
} else {
|
||||
$class = ereg_replace('DAL', '', __CLASS__);
|
||||
}
|
||||
|
||||
return $class;
|
||||
}
|
||||
|
||||
public static function GetOptClass() {
|
||||
if(self::$optClass!=null) {
|
||||
return self::$optClass;
|
||||
} else {
|
||||
return self::GetObjClassName();
|
||||
}
|
||||
}
|
||||
|
||||
public static function GetObjClassTablePK() {
|
||||
if(self::$objClassTablePK != '') {
|
||||
$return = self::$objClassTablePK;
|
||||
} else {
|
||||
$class = self::GetObjClassName();
|
||||
$classObj = new $class();
|
||||
$return = $classObj->GetClassTablePK();
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
public static function GetObjClassTable() {
|
||||
if(self::$objClassTable!='') {
|
||||
$return = self::$objClassTable;
|
||||
} else {
|
||||
$class = self::GetObjClassName();
|
||||
$classObj = new $class();
|
||||
$return = $classObj->GetTableName();
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return DalData $dalData
|
||||
*/
|
||||
public static function GetDalDataObj($params = array()) {
|
||||
|
||||
$dalData = new DalData($params);
|
||||
$dalData->setObjClassName(self::GetObjClassName());
|
||||
$dalData->setObjClassTable(self::GetObjClassTable());
|
||||
$dalData->setObjClassTablePK(self::GetObjClassTablePK());
|
||||
$dalData->setOptClass(self::GetOptClass());
|
||||
|
||||
return $dalData;
|
||||
}{/literal}
|
||||
|
||||
{literal}}{/literal}
|
||||
|
||||
64
Admin/template/partial/Config/Add.tpl
Normal file
64
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
Admin/template/partial/Config/AddElement.tpl
Normal file
69
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>
|
||||
0
Admin/template/partial/Config/AddStructure.tpl
Normal file
0
Admin/template/partial/Config/AddStructure.tpl
Normal file
43
Admin/template/partial/Config/AjaxArchive.tpl
Normal file
43
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
Admin/template/partial/Config/Archive.tpl
Normal file
67
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
Admin/template/partial/Config/Edit.tpl
Normal file
103
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
Admin/template/partial/Config/EditElement.tpl
Normal file
68
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
Admin/template/partial/Config/Index.tpl
Normal file
40
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
Admin/template/partial/Config/ShowArchive.tpl
Normal file
67
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}
|
||||
49
Admin/template/partial/Dictionary/AjaxIndex.tpl
Normal file
49
Admin/template/partial/Dictionary/AjaxIndex.tpl
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
<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->GetReplacementDe()}</td>*}
|
||||
{* <td>{$objWord->GetReplacementRu()}</td>*}
|
||||
|
||||
<td style="text-align: center;">
|
||||
<a class="editItemTable" href="{url Dictionary=Edit id=$objWord->GetId()}" title="Edytuj" >Edytuj</a>
|
||||
<a class="deleteItemTable" href="{url Dictionary=Delete id=$objWord->GetId()}" title="Usuń" >Usuń</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 elementów wyszukiwania</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
51
Admin/template/partial/Dictionary/Edit.tpl
Normal file
51
Admin/template/partial/Dictionary/Edit.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
<form method="post" action="{url Dictionary='Edit' id=$objDict->GetId()}" id="sendForm" enctype="multipart/form-data">
|
||||
|
||||
{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>
|
||||
<td>Wersja EN</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[en]">{$objDict->GetReplacementEn()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td>Wersja RU</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[ru]">{$objDict->GetReplacementRu()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td>Wersja DE</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[de]">{$objDict->GetReplacementDe()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
<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>
|
||||
|
||||
</form>
|
||||
76
Admin/template/partial/Dictionary/Index.tpl
Normal file
76
Admin/template/partial/Dictionary/Index.tpl
Normal file
@@ -0,0 +1,76 @@
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{dropDownContainer isClose=false isHidden=false title="Wyszukiwarka"}
|
||||
<form method="post" action="">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Szukana Fraza:</td>
|
||||
<td class="left"><input name="search" id="search" onkeyup="GetTableContent('{url Dictionary=AjaxIndex}', '#dictionaryTableContent', $('#search').val(), '#roleList');" /></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" id="dictionaryTableContent"}
|
||||
|
||||
<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->GetReplacementDe()}</td>*}
|
||||
{* <td>{$objWord->GetReplacementRu()}</td>*}
|
||||
|
||||
<td style="text-align: center;">
|
||||
<a class="editItemTable" href="{url Dictionary=Edit id=$objWord->GetId()}" title="Edytuj" >Edytuj</a>
|
||||
<a class="deleteItemTable" href="{url Dictionary=Delete id=$objWord->GetId()}" title="Usuń" >Usuń</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 elementów</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
</div><!-- /paddedContent -->
|
||||
</div><!-- /panelRightBody -->
|
||||
<div class="panelRightBottom"></div>
|
||||
100
Admin/template/partial/File/Add.tpl
Normal file
100
Admin/template/partial/File/Add.tpl
Normal file
@@ -0,0 +1,100 @@
|
||||
<form method="post" action="{url File='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objFile)}
|
||||
<input type="hidden" name="idFile" value="{$objFile->GetId()}" />
|
||||
{/if}
|
||||
<input type="hidden" name="weight" value="0" />
|
||||
|
||||
<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 class="none">
|
||||
<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">
|
||||
<label for="file-upload" class="custom-file-upload">
|
||||
Przeglądaj...
|
||||
</label>
|
||||
<span id="file-selected" class="fileSelected">...</span>
|
||||
<input name="filename" id="file-upload" type="file" onchange="{literal}$('#file-selected').html($(this).val().replace(/C:\\fakepath\\/i, ''));{/literal}"/>
|
||||
|
||||
</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
Admin/template/partial/File/Edit.tpl
Normal file
102
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}
|
||||
<input type="hidden" name="weight" value="0" />
|
||||
<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 class="none">
|
||||
<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
Admin/template/partial/File/EditStructure.back.tpl
Normal file
50
Admin/template/partial/File/EditStructure.back.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
{dropDownContainer title="Pliki"}
|
||||
<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
Admin/template/partial/File/EditStructure.tpl
Normal file
50
Admin/template/partial/File/EditStructure.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
{dropDownContainer title="Pliki"}
|
||||
<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 class="addItemTable" href="{url File=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if} title="Dodaj" >Dodaj</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 class="editItemTable" href="{url File=Edit idFile=$obj->GetId() idElement=$idElement}" title="Edytuj" >Edytuj</a>
|
||||
<a class="deleteItemTable" href="{url File=Delete idFile=$obj->GetId() idElement=$idElement}" title="Usuń" >Usun</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
Admin/template/partial/File/Index.tpl
Normal file
51
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}
|
||||
54
Admin/template/partial/File/IndexStructure.tpl
Normal file
54
Admin/template/partial/File/IndexStructure.tpl
Normal file
@@ -0,0 +1,54 @@
|
||||
{dropDownContainer title=$moduleName|default:"Lista" icon=$moduleBoxConfg['files'] moduleBoxId=$moduleBoxId publish=$param.modulePublication}
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>tytuł</th>
|
||||
<th>data utworzenia</th>
|
||||
<th>publikacja</th>
|
||||
{* <th>opis</th>*}
|
||||
{*<th>Polecany</th>*}
|
||||
<th style="width: 40px; text-align: center;" >
|
||||
<a class="optionIcon iconAdd" title="EdDodajytuj" href="{url File=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if}> </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->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 class="optionIcon iconEdit" title="Edytuj" href="{url File=Edit idFile=$obj->GetId() idElement=$idElement}"> </a>
|
||||
{if $admin->GetRole() != 'moderator'}
|
||||
<a class="optionIcon iconDelete" title="Usuń" href="{url File=Delete idFile=$obj->GetId() idElement=$idElement}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url File=Delete idFile=$obj->GetId() idElement=$idElement}{literal}')) { } else {return false;}{/literal}"> </a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.obj.last}
|
||||
<tr>
|
||||
<td colspan="10" align="center" >
|
||||
<div class="paging">
|
||||
{insertPagination}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreachelse}
|
||||
{if !isset($searchString) || $searchString == ""}
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Brak zdefiniowanych artykułów. <br/> Aby dodać kliknij link 'dodaj'.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Aby dodać wpis, proszę zapisać element struktury.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
50
Admin/template/partial/File/StructureList.tpl
Normal file
50
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
Admin/template/partial/Home/AjaxCopyFiles.tpl
Normal file
10
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
Admin/template/partial/Home/Edit.tpl
Normal file
73
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
Admin/template/partial/Home/Index.tpl
Normal file
98
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
Admin/template/partial/HomeSite/AddLogo.tpl
Normal file
78
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>
|
||||
44
Admin/template/partial/HomeSite/ArticleBox.tpl
Normal file
44
Admin/template/partial/HomeSite/ArticleBox.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
{dropDownContainer title="Treść strona główna" }
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>Kolejność</th>
|
||||
<th>Publikacja</th>
|
||||
|
||||
<th style="width: 40px; text-align: center;" >
|
||||
<a class="optionIcon iconAdd" title="{'Add'|translateAdmin}" href="{url HomeSite=EditArticle}"> </a>
|
||||
|
||||
{* <a href="{url SimpleArticle_Index=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>
|
||||
|
||||
{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->GetWeight()}</td>
|
||||
<td><a id="publicationIcon_homeArt_{$obj->GetId()}" class="optionIcon {if $obj->GetPublication() == 1}iconPublishOn{else}iconPublishOff{/if}" title="{if $obj->GetPublication() == 1}Niepublikuj{else}Publikuj{/if}" href="#" onclick="PublishItem('{url HomeSite=AjaxPublishArticleBox}',{$obj->GetId()},'publicationIcon_homeArt_{$obj->GetId()}'); return false;"> </a></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 class="optionIcon iconEdit" title="Edytuj" href="{url HomeSite=EditArticle id=$obj->GetId()}"> </a>
|
||||
{if $admin->GetRole() != 'moderator'}
|
||||
<a class="optionIcon iconDelete" title="Usuń" href="{url HomeSite=DeleteArticleBox id=$obj->GetId()}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url HomeSite=DeleteArticleBox id=$obj->GetId()}{literal}')) { } else {return false;}{/literal}"> </a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
{/foreach}
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
89
Admin/template/partial/HomeSite/Baner.tpl
Normal file
89
Admin/template/partial/HomeSite/Baner.tpl
Normal file
@@ -0,0 +1,89 @@
|
||||
|
||||
<form action="{url HomeSite=EditBaner}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
{dropDownContainer title='Slider-Baner' }
|
||||
{assign var=x value=1}
|
||||
|
||||
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
|
||||
{* {if !$objHomeElement->GetPhotoUrl()}{assign var=showElement value='none'}{else}{assign var=showElement value=''}{/if} *}
|
||||
{assign var=showElement value=''}
|
||||
<div class="elementContainer {$showElement}" id='element_{$keyHome}' >
|
||||
<div class="elementBar"><h1>Element</h1>
|
||||
<div class="optionIconBox">
|
||||
<a class="optionIcon iconUp" id="up_element_{$keyHome}" title="Przenieś wyżej" onclick="SortModule('element_{$keyHome}', 'up');"> </a>
|
||||
<a class="optionIcon iconDown" id="down_element_{$keyHome}" title="Przenieś niżej" onclick="SortModule('element_{$keyHome}', 'down');"> </a>
|
||||
</div>
|
||||
</div>
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="sortId[]" 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 height="220" 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">
|
||||
<label for="file-upload_{$keyHome}" class="custom-file-upload">
|
||||
Przeglądaj...
|
||||
</label>
|
||||
<span id="file-selected_{$keyHome}" class="fileSelected"></span>
|
||||
<input name="elementImg_{$keyHome}" id="file-upload_{$keyHome}" type="file" onchange="{literal}$('#file-selected_{/literal}{$keyHome}{literal}').html($(this).val().replace(/C:\\fakepath\\/i, ''));{/literal}"/>
|
||||
{* <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>
|
||||
|
||||
{/foreach}
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
<div class="clearBoth"></div>
|
||||
<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
Admin/template/partial/HomeSite/Box.tpl
Normal file
20
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>
|
||||
86
Admin/template/partial/HomeSite/EditArticle.tpl
Normal file
86
Admin/template/partial/HomeSite/EditArticle.tpl
Normal file
@@ -0,0 +1,86 @@
|
||||
|
||||
<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>
|
||||
<td >Publikuj</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >Kolejność</td>
|
||||
<td><input name="weight" value="{$obj->GetWeight()}" type="text" /></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ść SG"}
|
||||
<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" isHidden=true}
|
||||
<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=ArticleBox}'"/>
|
||||
<input type="submit" value="Zapisz" name="doSimpleArticleEdit"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
78
Admin/template/partial/HomeSite/EditLogo.tpl
Normal file
78
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>
|
||||
103
Admin/template/partial/HomeSite/Index.tpl
Normal file
103
Admin/template/partial/HomeSite/Index.tpl
Normal file
@@ -0,0 +1,103 @@
|
||||
|
||||
<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">
|
||||
{* {$objHomeElement->GetName()|escape} *}
|
||||
<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 width="10%">Tytuł:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementTitle[{$keyHome}]" value="{$objHomeElement->GetTitle()|escape}" />
|
||||
|
||||
</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}*}
|
||||
|
||||
{assign var="elementTextName" value="elementText[$keyHome]"}
|
||||
|
||||
{insertCkEditor width='450' height='220' name=$elementTextName toolbar='Formix' value=$objHomeElement->GetDescription()}
|
||||
</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
Admin/template/partial/HomeSite/Links.tpl
Normal file
65
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
Admin/template/partial/HomeSite/Logo.tpl
Normal file
60
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
Admin/template/partial/HomeSite/Main.tpl
Normal file
84
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>
|
||||
4
Admin/template/partial/Image/AddStructure.tpl
Normal file
4
Admin/template/partial/Image/AddStructure.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
{dropDownContainer title=$moduleName|default:"Lista" icon=$moduleBoxConfg['files'] moduleBoxId=$moduleBoxId}
|
||||
Aby dodać obrazy, proszę zapisać element struktury
|
||||
{/dropDownContainer}
|
||||
1
Admin/template/partial/Image/DeleteImage.tpl
Normal file
1
Admin/template/partial/Image/DeleteImage.tpl
Normal file
@@ -0,0 +1 @@
|
||||
document.getElementById('{$photo}').style.display="none";
|
||||
43
Admin/template/partial/Image/EditStructure.tpl
Normal file
43
Admin/template/partial/Image/EditStructure.tpl
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
{dropDownContainer title=$moduleName|default:"Lista" icon=$moduleBoxConfg['files'] moduleBoxId=$moduleBoxId publish=$param.modulePublication}
|
||||
<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>
|
||||
{*<form action="{url Image=UploadImage}" method="post" enctype="multipart/form-data" >
|
||||
<input type="file" name="uploadfile" onchange="submit();" />
|
||||
|
||||
<label for="file-upload" class="custom-file-upload">
|
||||
Przeglądaj...
|
||||
</label>
|
||||
<span id="file-selected" class="fileSelected">...</span>
|
||||
<input name="uploadfile" id="file-upload" type="file" 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}*}
|
||||
{foreach from=$arrayImage item=image name=photo key=key}
|
||||
<div id="image_{$image->GetId()}" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative; text-align: center;">
|
||||
<img src="{$image->GetFullUrlMiniId($idArticleStructureMain)}" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute; top: 52px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[{$image->GetId()}]" size="3" value="{$image->getWeight()}" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('{url Image=DeleteImage}', '{$image->GetId()}'); return false;"> </a></div>
|
||||
<textarea name="image_description[{$image->GetId()}]" rows="1" cols="11">{$image->GetDescription()}</textarea>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
119
Admin/template/partial/Image/Form.tpl
Normal file
119
Admin/template/partial/Image/Form.tpl
Normal file
@@ -0,0 +1,119 @@
|
||||
<!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>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Montserrat', sans-serif; font-size:12px; color:#f7f7f7; margin:10px;
|
||||
}
|
||||
|
||||
a {
|
||||
color:#4182AB;
|
||||
text-decoration:none;
|
||||
}
|
||||
.optionIcon {
|
||||
margin: 4px auto;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
border-radius: 20%;
|
||||
display: inline-block;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.iconAdd {
|
||||
background: url('{$urlStatic}/images/black_plus.svg') no-repeat left 3px top 3px;
|
||||
background-size: 19px 19px;
|
||||
background-color: #fff;
|
||||
|
||||
}
|
||||
.iconAdd:hover {
|
||||
background: url('{$urlStatic}/images/white_plus.svg') no-repeat left 3px top 3px;
|
||||
background-size: 19px 19px;
|
||||
background-color: #3abe16;
|
||||
color: #fff;
|
||||
/*border-bottom: 3px solid #3abe16;*/
|
||||
}
|
||||
|
||||
.addItemMenu {
|
||||
color: #3abe16;
|
||||
line-height: 25px;
|
||||
display: inline-block;
|
||||
padding-left: 24px;
|
||||
padding-right: 6px;
|
||||
background: url('{$urlStatic}/images/white_plus.svg') no-repeat left 3px top 4px;
|
||||
background-color: #3e3e3e;
|
||||
background-size: 18px 18px;
|
||||
border-bottom: 3px solid #3abe16;
|
||||
cursor: pointer;
|
||||
}
|
||||
.addItemMenu:hover {
|
||||
background-color: #3abe16;
|
||||
color: #fff;
|
||||
border-bottom: 3px solid #3abe16;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<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-->
|
||||
|
||||
<a id="upload" class="addItemMenu" href="#" title="Dodaj zdjęcia">Dodaj zdjęcia</a>
|
||||
<span id="status" ></span>
|
||||
<ul id="files" ></ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
1
Admin/template/partial/Image/Upload.tpl
Normal file
1
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
Admin/template/partial/Image/UploadImage.tpl
Normal file
42
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
Admin/template/partial/Index/Index.tpl
Normal file
47
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>
|
||||
|
||||
|
||||
</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
Admin/template/partial/Login/Auth.tpl
Normal file
0
Admin/template/partial/Login/Auth.tpl
Normal file
0
Admin/template/partial/Login/Index.tpl
Normal file
0
Admin/template/partial/Login/Index.tpl
Normal file
0
Admin/template/partial/Login/Logout.tpl
Normal file
0
Admin/template/partial/Login/Logout.tpl
Normal file
65
Admin/template/partial/Mailing/Index.tpl
Normal file
65
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
Admin/template/partial/Mailing/List.tpl
Normal file
45
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
Admin/template/partial/Mailing/MailTxt.tpl
Normal file
6
Admin/template/partial/Mailing/MailTxt.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
Newsletter Wina.wp.pl
|
||||
<br />
|
||||
<br />
|
||||
{$content}
|
||||
|
||||
46
Admin/template/partial/Mailing/Send.tpl
Normal file
46
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
Admin/template/partial/Mailing/Show.tpl
Normal file
50
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>
|
||||
5
Admin/template/partial/MainSite/AjaxList.tpl
Normal file
5
Admin/template/partial/MainSite/AjaxList.tpl
Normal file
@@ -0,0 +1,5 @@
|
||||
{assign var=articleListToLink value=$articleListToLink|strReplace:"
|
||||
":""}
|
||||
{assign var=articleListToLink value=$articleListToLink|strReplace:"'":"\'"}
|
||||
ContentObj = document.getElementById('articleListToLink');
|
||||
ContentObj.innerHTML = '{$articleListToLink}';
|
||||
1
Admin/template/partial/MainSite/AjaxPhotoCropped.tpl
Normal file
1
Admin/template/partial/MainSite/AjaxPhotoCropped.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{literal}{{/literal}'info':'<span class="green">Twoje zdjęcie zostało poprawnie dodatne.</span>', 'photoPath' : '{$photoPath}' {literal}}{/literal}
|
||||
41
Admin/template/partial/MainSite/AjaxPhotoCropper.tpl
Normal file
41
Admin/template/partial/MainSite/AjaxPhotoCropper.tpl
Normal file
@@ -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}
|
||||
|
||||
13
Admin/template/partial/MainSite/AjaxPhotoUpload.tpl
Normal file
13
Admin/template/partial/MainSite/AjaxPhotoUpload.tpl
Normal file
@@ -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>
|
||||
|
||||
29
Admin/template/partial/MainSite/ArticleLinkList.tpl
Normal file
29
Admin/template/partial/MainSite/ArticleLinkList.tpl
Normal file
@@ -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}
|
||||
43
Admin/template/partial/MainSite/ArticleListToLink.tpl
Normal file
43
Admin/template/partial/MainSite/ArticleListToLink.tpl
Normal file
@@ -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}
|
||||
0
Admin/template/partial/MainSite/ArticleSave.tpl
Normal file
0
Admin/template/partial/MainSite/ArticleSave.tpl
Normal file
234
Admin/template/partial/MainSite/Edit.tpl
Normal file
234
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
Admin/template/partial/MainSite/Index.tpl
Normal file
214
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
Admin/template/partial/MainSite/SaveInSession.tpl
Normal file
0
Admin/template/partial/MainSite/SaveInSession.tpl
Normal file
0
Admin/template/partial/MainSite/SetWeight.tpl
Normal file
0
Admin/template/partial/MainSite/SetWeight.tpl
Normal file
334
Admin/template/partial/MainSite/administracja_artykulami.tpl
Normal file
334
Admin/template/partial/MainSite/administracja_artykulami.tpl
Normal file
@@ -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}
|
||||
79
Admin/template/partial/Maps/Add.tpl
Normal file
79
Admin/template/partial/Maps/Add.tpl
Normal file
@@ -0,0 +1,79 @@
|
||||
<form method="post" action="{url Maps='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objMaps)}
|
||||
<input type="hidden" name="idMaps" value="{$objMaps->GetId()}" />
|
||||
{/if}
|
||||
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{assign var="additionalTitle" value=""}
|
||||
|
||||
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>nazwa:</td>
|
||||
<td>
|
||||
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>miasto:</td>
|
||||
<td>
|
||||
{formField name='city' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetCity'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>adres:</td>
|
||||
<td>
|
||||
{formField name='address' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetAddress'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>kordynaty - lng:</td>
|
||||
<td>
|
||||
{formField name='lng' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLng'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>kordynaty - lat:</td>
|
||||
<td>
|
||||
{formField name='lat' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLat'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>waga:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetWeight'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objMaps' func='GetPublication'}</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Opis:</td>
|
||||
<td>{formField type='textarea' name='description' obj='objMaps' func='GetDescription'}</td>
|
||||
</tr>*}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Maps=index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doMapsAdd"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
79
Admin/template/partial/Maps/Edit.tpl
Normal file
79
Admin/template/partial/Maps/Edit.tpl
Normal file
@@ -0,0 +1,79 @@
|
||||
<form method="post" action="{url Maps='Edit' idMaps=$objMaps->GetId()}" enctype="multipart/form-data">
|
||||
{if isset($objMaps)}
|
||||
<input type="hidden" name="idMaps" value="{$objMaps->GetId()}" />
|
||||
{/if}
|
||||
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{assign var="additionalTitle" value=""}
|
||||
|
||||
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>nazwa:</td>
|
||||
<td>
|
||||
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>miasto:</td>
|
||||
<td>
|
||||
{formField name='city' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetCity'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>adres:</td>
|
||||
<td>
|
||||
{formField name='address' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetAddress'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>kordynaty - lng:</td>
|
||||
<td>
|
||||
{formField name='lng' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLng'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>kordynaty - lat:</td>
|
||||
<td>
|
||||
{formField name='lat' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetLat'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>waga:</td>
|
||||
<td>
|
||||
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objMaps' func='GetWeight'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objMaps' func='GetPublication'}</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Opis:</td>
|
||||
<td>{formField type='textarea' name='description' obj='objMaps' func='GetDescription'}</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url Maps=index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doMapsEdit"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
51
Admin/template/partial/Maps/Index.tpl
Normal file
51
Admin/template/partial/Maps/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}
|
||||
63
Admin/template/partial/Maps/IndexStructure.tpl
Normal file
63
Admin/template/partial/Maps/IndexStructure.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
{dropDownContainer title=$moduleName|default:"Lista" icon=$moduleBoxConfg['files'] moduleBoxId=$moduleBoxId}
|
||||
<div class="container" style="max-height: 500px; overflow-y: auto;">
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>miasto</th>
|
||||
<th>adres</th>
|
||||
<th>koordynaty</th>
|
||||
<th>typ</th>
|
||||
<th>publikacja</th>
|
||||
<th>waga</th>
|
||||
{*<th>Polecany</th>*}
|
||||
<th style="width: 40px; text-align: center;" >
|
||||
<a class="optionIcon iconAdd" title="EdDodajytuj" href="{url Maps=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if}> </a>
|
||||
</th>
|
||||
</tr>
|
||||
{if !isset($add)}
|
||||
{assign var=x value=1}
|
||||
{foreach from=$arrayObj item=obj name=obj}
|
||||
{assign var=type value=$obj->GetType()}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
|
||||
<td>{$obj->GetId()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetCity()}</td>
|
||||
<td>{$obj->GetAddress()}</td>
|
||||
<td>{$obj->GetLng()} - {$obj->GetLat()}</td>
|
||||
<td>{$arrayMapsType[$type]}</td>
|
||||
<td>{if $obj->GetPublication()}p*{/if}</td>
|
||||
<td>{$obj->GetWeight()}</td>
|
||||
{*<td id="special_info_{$obj->GetId()}" onclick="Special('{$obj->GetId()}', document.getElementById('special_{$obj->GetId()}').value, '{url Maps=special}'); return false;"> <a href="#" title="zmień">{$obj->GetSpecial()|replace:"0":"Nie"|replace:"1":"Tak" }</a> </td>*}
|
||||
<td style="text-align: center;">
|
||||
<a class="optionIcon iconEdit" title="Edytuj" href="{url Maps=Edit idMaps=$obj->GetId() idElement=$idElement}"> </a>
|
||||
{if $admin->GetRole() != 'moderator'}
|
||||
<a class="optionIcon iconDelete" title="Usuń" href="{url Maps=Delete idMaps=$obj->GetId() idElement=$idElement}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url Maps=Delete idMaps=$obj->GetId() idElement=$idElement}{literal}')) { } else {return false;}{/literal}"> </a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.obj.last}
|
||||
<tr>
|
||||
<td colspan="10" align="center" >
|
||||
<div class="paging">
|
||||
{insertPagination}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreachelse}
|
||||
{if !isset($searchString) || $searchString == ""}
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Brak zdefiniowanych artykułów. <br/> Aby dodać kliknij link 'dodaj'.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Aby dodać wpis, proszę zapisać element struktury.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
362
Admin/template/partial/Product/Add.tpl
Normal file
362
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
Admin/template/partial/Product/AddLang.tpl
Normal file
195
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>
|
||||
1
Admin/template/partial/Product/AddSeries.tpl
Normal file
1
Admin/template/partial/Product/AddSeries.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<option value="{$idSeries}" selected>{$series}</option>
|
||||
9
Admin/template/partial/Product/AddSpecification.tpl
Normal file
9
Admin/template/partial/Product/AddSpecification.tpl
Normal file
@@ -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
Admin/template/partial/Product/AjaxAddAttribute.tpl
Normal file
0
Admin/template/partial/Product/AjaxAddAttribute.tpl
Normal file
1
Admin/template/partial/Product/AjaxCeackLang.tpl
Normal file
1
Admin/template/partial/Product/AjaxCeackLang.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{$isLang}
|
||||
1
Admin/template/partial/Product/AjaxEditWeight.tpl
Normal file
1
Admin/template/partial/Product/AjaxEditWeight.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<div onclick="WeightInput('{url Product=AjaxEditWeight}', '#weightList{$id}', '{$id}', '{$value}');">{$value}</div>
|
||||
1
Admin/template/partial/Product/AjaxLimited.tpl
Normal file
1
Admin/template/partial/Product/AjaxLimited.tpl
Normal file
@@ -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
Admin/template/partial/Product/AjaxList.tpl
Normal file
61
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
Admin/template/partial/Product/AjaxNew.tpl
Normal file
1
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>
|
||||
1
Admin/template/partial/Product/AjaxPublication.tpl
Normal file
1
Admin/template/partial/Product/AjaxPublication.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
1
Admin/template/partial/Product/AjaxSale.tpl
Normal file
1
Admin/template/partial/Product/AjaxSale.tpl
Normal file
@@ -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>
|
||||
1
Admin/template/partial/Product/CheckSpec.tpl
Normal file
1
Admin/template/partial/Product/CheckSpec.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{$state}
|
||||
360
Admin/template/partial/Product/Edit.tpl
Normal file
360
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
Admin/template/partial/Product/Index.tpl
Normal file
51
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
Admin/template/partial/Product/IndexStructure.tpl
Normal file
204
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}
|
||||
57
Admin/template/partial/ProductAttribute/Add.tpl
Normal file
57
Admin/template/partial/ProductAttribute/Add.tpl
Normal file
@@ -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>
|
||||
57
Admin/template/partial/ProductAttribute/Edit.tpl
Normal file
57
Admin/template/partial/ProductAttribute/Edit.tpl
Normal file
@@ -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>
|
||||
48
Admin/template/partial/ProductAttribute/Index.tpl
Normal file
48
Admin/template/partial/ProductAttribute/Index.tpl
Normal file
@@ -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}
|
||||
49
Admin/template/partial/ProductAttribute/IndexStructure.tpl
Normal file
49
Admin/template/partial/ProductAttribute/IndexStructure.tpl
Normal file
@@ -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}
|
||||
45
Admin/template/partial/ProductAttribute/LinkedAttribute.tpl
Normal file
45
Admin/template/partial/ProductAttribute/LinkedAttribute.tpl
Normal file
@@ -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
Admin/template/partial/ProductCategory/Add.tpl
Normal file
80
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>
|
||||
78
Admin/template/partial/ProductCategory/Edit.tpl
Normal file
78
Admin/template/partial/ProductCategory/Edit.tpl
Normal file
@@ -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>
|
||||
61
Admin/template/partial/ProductCategory/Index.tpl
Normal file
61
Admin/template/partial/ProductCategory/Index.tpl
Normal file
@@ -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*}
|
||||
49
Admin/template/partial/ProductCategory/IndexStructure.tpl
Normal file
49
Admin/template/partial/ProductCategory/IndexStructure.tpl
Normal file
@@ -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}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user