adding account invitations

This commit is contained in:
Sebastian Grewe 2013-09-09 09:47:28 +02:00
parent 8e05ab71a6
commit 6fa46137f5

View File

@ -1,43 +1,45 @@
{include file="global/block_header.tpl" ALIGN="left" BLOCK_HEADER="Invitations"}
<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="sendInvitation"> <input type="hidden" name="do" value="sendInvitation">
<table> <article class="module width_quarter">
<tr> <header><h3>Invitation</h3></header>
<td>E-Mail</td> <div class="module_content">
<td><input type="text" name="data[email]" value="{$smarty.request.data.email|escape|default:""}" size="30" /></td> <fieldset>
</tr> <label>E-Mail</label>
<tr> <input type="text" name="data[email]" value="{$smarty.request.data.email|escape|default:""}" size="30" />
<td>Message</td> </fieldset>
<td><textarea name="data[message]">{$smarty.request.data.message|escape|default:"Please accept my invitation to this awesome pool."}</textarea></td> <fieldset>
</tr> <label>Message</label>
<tr> <textarea name="data[message]" rows="5">{$smarty.request.data.message|escape|default:"Please accept my invitation to this awesome pool."}</textarea>
<td colspan="2" class="center"> </fieldset>
<input type="submit" class="submit small" value="Send"> </div>
</td> <footer>
</tr> <div class="submit_link">
</table> <input type="submit" value="Invite" class="alt_btn">
</div>
</footer>
</article>
</form> </form>
{include file="global/block_footer.tpl"}
{include file="global/block_header.tpl" ALIGN="right" BLOCK_HEADER="Past Invitations"} <article class="module width_3_quarter">
<table width="100%"> <header><h3>Past Invitations</h3></header>
<thead style="font-size:13px;"> <table class="tablesorter" cellspacing="0">
<tr> <thead style="font-size:13px;">
<th>E-Mail</th> <tr>
<th class="center">Sent</th> <th>E-Mail</th>
<th class="center">Activated</th> <th class="center">Sent</th>
</tr> <th class="center">Activated</th>
</thead> </tr>
<tbody> </thead>
<tbody>
{section name=invite loop=$INVITATIONS} {section name=invite loop=$INVITATIONS}
<tr> <tr>
<td>{$INVITATIONS[invite].email}</td> <td>{$INVITATIONS[invite].email}</td>
<td class="center">{$INVITATIONS[invite].time|date_format:"%d/%m/%Y %H:%M:%S"}</td> <td class="center">{$INVITATIONS[invite].time|date_format:"%d/%m/%Y %H:%M:%S"}</td>
<td class="center"><img src="{$PATH}/images/{if $INVITATIONS[invite].is_activated}success{else}error{/if}.gif" /></td> <td class="center"><img src="{$PATH}/images/{if $INVITATIONS[invite].is_activated}success{else}error{/if}.gif" /></td>
</tr> </tr>
{/section} {/section}
<tbody> <tbody>
</table> </table>
{include file="global/block_footer.tpl"} </article>