<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">&nbsp;</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>
        