adding notification account view

This commit is contained in:
Sebastian Grewe 2013-09-09 09:37:59 +02:00
parent fb9fb9cdb2
commit 8e05ab71a6

View File

@ -1,84 +1,85 @@
{include file="global/block_header.tpl" ALIGN="left" BLOCK_HEADER="Notification Settings"}
<form action="{$smarty.server.PHP_SELF}" method="POST"> <form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="page" value="{$smarty.request.page}"> <input type="hidden" name="page" value="{$smarty.request.page}">
<input type="hidden" name="action" value="{$smarty.request.action}"> <input type="hidden" name="action" value="{$smarty.request.action}">
<input type="hidden" name="do" value="save"> <input type="hidden" name="do" value="save">
<table width="100%"> <article class="module width_quarter">
<tr> <header><h3>Notification Settings</h3></header>
<th class="left">Type</th> <div class="module_content">
<th class="center">Active</th> <table width="100%">
</tr> <tr>
<tr> <th align="left">Type</th>
<td class="left">IDLE Worker</td> <th align="center">Active</th>
<td class="center"> </tr>
<input type="hidden" name="data[idle_worker]" value="0" /> <tr>
<input type="checkbox" name="data[idle_worker]" id="data[idle_worker]" value="1"{nocache}{if $SETTINGS['idle_worker']}checked{/if}{/nocache} /> <td align="left">IDLE Worker</td>
<label for="data[idle_worker]"></label> <td align="center">
</td> <input type="hidden" name="data[idle_worker]" value="0" />
</tr> <input type="checkbox" name="data[idle_worker]" id="data[idle_worker]" value="1"{nocache}{if $SETTINGS['idle_worker']}checked{/if}{/nocache} />
<tr> <label for="data[idle_worker]"></label>
<td class="left">New Blocks</td> </td>
<td class="center"> </tr>
<input type="hidden" name="data[new_block]" value="0" /> <tr>
<input type="checkbox" name="data[new_block]" id="data[new_block]" value="1"{nocache}{if $SETTINGS['new_block']}checked{/if}{/nocache} /> <td align="left">New Blocks</td>
<label for="data[new_block]"></label> <td align="center">
</td> <input type="hidden" name="data[new_block]" value="0" />
</tr> <input type="checkbox" name="data[new_block]" id="data[new_block]" value="1"{nocache}{if $SETTINGS['new_block']}checked{/if}{/nocache} />
<tr> <label for="data[new_block]"></label>
<td class="left">Auto Payout</td> </td>
<td class="center"> </tr>
<input type="hidden" name="data[auto_payout]" value="0" /> <tr>
<input type="checkbox" name="data[auto_payout]" id="data[auto_payout]" value="1"{nocache}{if $SETTINGS['auto_payout']}checked{/if}{/nocache} /> <td align="left">Auto Payout</td>
<label for="data[auto_payout]"></label> <td align="center">
</td> <input type="hidden" name="data[auto_payout]" value="0" />
</tr> <input type="checkbox" name="data[auto_payout]" id="data[auto_payout]" value="1"{nocache}{if $SETTINGS['auto_payout']}checked{/if}{/nocache} />
<tr> <label for="data[auto_payout]"></label>
<td class="left">Manual Payout</td> </td>
<td class="center"> </tr>
<input type="hidden" name="data[manual_payout]" value="0" /> <tr>
<input type="checkbox" name="data[manual_payout]" id="data[manual_payout]" value="1"{nocache}{if $SETTINGS['manual_payout']}checked{/if}{/nocache} /> <td align="left">Manual Payout</td>
<label for="data[manual_payout]"></label> <td align="center">
</td> <input type="hidden" name="data[manual_payout]" value="0" />
</tr> <input type="checkbox" name="data[manual_payout]" id="data[manual_payout]" value="1"{nocache}{if $SETTINGS['manual_payout']}checked{/if}{/nocache} />
<tr> <label for="data[manual_payout]"></label>
<td colspan="2" class="center"> </td>
<input type="submit" class="submit small" value="Update"> </tr>
</td>
</tr>
</table>
</form>
{include file="global/block_footer.tpl"}
{include file="global/block_header.tpl" ALIGN="right" BLOCK_HEADER="Notification History"}
<center>
{include file="global/pagination.tpl"}
<table width="100%" class="pagesort">
<thead style="font-size:13px;">
<tr>
<th class="center" style="cursor: pointer;">ID</th>
<th class="center" style="cursor: pointer;">Time</th>
<th class="center" style="cursor: pointer;">Type</th>
<th class="center" style="cursor: pointer;">Active</th>
</tr>
</thead>
<tbody style="font-size:12px;">
{section notification $NOTIFICATIONS}
<tr class="{cycle values="odd,even"}">
<td class="center">{$NOTIFICATIONS[notification].id}</td>
<td class="center">{$NOTIFICATIONS[notification].time}</td>
<td class="center">
{if $NOTIFICATIONS[notification].type == new_block}New Block
{else if $NOTIFICATIONS[notification].type == auto_payout}Auto Payout
{else if $NOTIFICATIONS[notification].type == idle_worker}IDLE Worker
{else if $NOTIFICATIONS[notification].type == manual_payout}Manual Payout
{/if}
</td>
<td class="center">
<img src="{$PATH}/images/{if $NOTIFICATIONS[notification].active}success{else}error{/if}.gif" />
</td>
</tr>
{/section}
</tbody>
</table> </table>
</center> </div>
{include file="global/block_footer.tpl"} <footer>
<div class="submit_link">
<input type="submit" value="Update" class="alt_btn">
</div>
</footer>
</article>
</form>
<article class="module width_3_quarter">
<header><h3>Notification History</h3></header>
<table width="100%" class="tablesorter" cellspacing="0">
<thead style="font-size:13px;">
<tr>
<th align="center" style="cursor: pointer;">ID</th>
<th align="center" style="cursor: pointer;">Time</th>
<th align="center" style="cursor: pointer;">Type</th>
<th align="center" style="cursor: pointer;">Active</th>
</tr>
</thead>
<tbody style="font-size:12px;">
{section notification $NOTIFICATIONS}
<tr class="{cycle values="odd,even"}">
<td align="center">{$NOTIFICATIONS[notification].id}</td>
<td align="center">{$NOTIFICATIONS[notification].time}</td>
<td align="center">
{if $NOTIFICATIONS[notification].type == new_block}New Block
{else if $NOTIFICATIONS[notification].type == auto_payout}Auto Payout
{else if $NOTIFICATIONS[notification].type == idle_worker}IDLE Worker
{else if $NOTIFICATIONS[notification].type == manual_payout}Manual Payout
{/if}
</td>
<td align="center">
<img src="{$PATH}/images/icn_alert_{if $NOTIFICATIONS[notification].active}success{else}error{/if}.png" />
</td>
</tr>
{/section}
</tbody>
</table>
</article>