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