Files
Testing/templates/admin_user_messages_outbox.tpl

240 lines
6.2 KiB
Smarty
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
{include file='admin_header.tpl'}
{literal}<script type="text/javascript">
function changecheck(){
if (jQuery('#checkAll').is(':checked')) {
jQuery('.delete').prop('checked',true);
} else {
jQuery('.delete').prop('checked', false);
}
}
</script>{/literal}
{* $Id: user_messages_outbox.tpl 8 2009-01-11 06:02:53Z john $ *}
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='messages_left'>
<!--<img src='./images/icons/messages48.gif' border='0' class='icon_big'>-->
<div class='page_header'><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">Sent Messages</span></div>
<div>{lang_sprintf id=798 1=$total_pms}</div>
</td>
<td class='messages_right'>
</td>
</tr>
</table>
<br />
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?p=1&user_id={$user_id}"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?p={math equation='p-1' p=$p}&user_id={$user_id}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='{$smarty.server.PHP_SELF}?&p={$foo}&user_id={$user_id}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?p={math equation='p+1' p=$p}&user_id={$user_id}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?p={$maxpage}&user_id={$user_id}"><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</span></font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_pms}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_pms}
{/if}</span><br />
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="user_id" class="gotext" value="{$user_id}" /><input type="submit" value="Go" /></form>
</div>
<br>
{/if}
<form method="post">
<input type="submit" value="Unsend All Emails">
<input type="hidden" name="task" value="unsendallemail">
</form><br>
<br>
{* CHECK IF THERE ARE NO MESSAGES IN OUTBOX *}
{if $total_pms == 0}
<div class='center'>
<table cellpadding='0' cellspacing='0'><tr>
<td class='result'><!--<img src='./images/icons/bulb16.gif' border='0' class='icon'>-->{lang_print id=799}</td>
</tr></table>
</div>
{* DISPLAY MESSAGES *}
{else}
<form action='user_messages_outbox.php' method='post' name='messageform'>
<table class='messages_table table' cellpadding='0' cellspacing='0'>
<tr>
<td class='messages_header' style="text-align:center;">{*<input type="checkbox" id="checkAll" onclick="changecheck();">*}</td>
<td class='messages_header'>{lang_print id=790}</td>
<td class='messages_header'>&nbsp;</td>
<td class='messages_header' colspan='2'>{lang_print id=520}</td>
</tr>
{* LIST SENT MESSAGES *}
{section name=pm_loop loop=$pms}
<tr class='messages_read'>
<td class='messages_message' style="width:15px;">{*<input type='checkbox' name='delete_convos[]' class="delete" value='{$pms[pm_loop].pmconvo_id}'>*}</td>
<td class='messages_message' width='130' nowrap='nowrap'>
<b>{if $pms[pm_loop].pm_recipients == 1}{$pms[pm_loop].pm_user->user_displayname}{else}{lang_sprintf id=800 1=$pms[pm_loop].pm_recipients}{/if}</b>
<div class='messages_date'>{$datetime->cdate("`$setting.setting_timeformat` `$setting.setting_dateformat`", $datetime->timezone($pms[pm_loop].pm_date, $global_timezone))}</div>
</td>
<td class='messages_message'><strong><a href="user_messages_view.php?user_id={$user->user_info.user_id}&pmconvo_id={$pms[pm_loop].pmconvo_id}">{$pms[pm_loop].pmconvo_subject|truncate:50}</a></b><br>
{if $pms[pm_loop].pm_body|json_decode:true}{$pms[pm_loop].pm_body|json_decode:true|truncate:150|choptext:75:"<br>"}{else}{$pms[pm_loop].pm_body|truncate:150|choptext:75:"<br>"}{/if}</strong>
</td>
<td class='messages_message hidden-xs hidden-sm visible-md visible-lg' align='right' nowrap='nowrap'>
[ <a href="user_messages_view.php?user_id={$user->user_info.user_id}&pmconvo_id={$pms[pm_loop].pmconvo_id}">Read</a> ]
[ <a href='user_messages_outbox.php?b=1&pmconvo_id={$pms[pm_loop].pmconvo_id}&task=unsend&user_id={$user_id}'>Unsend</a> ]</td>
</tr>
{/section}
</table>
<br>
{*<input type='submit' class='button' value='Unsend Selected'>*}
<input type='hidden' name='task' value='unsendselected'>
<input type='hidden' name='p' value='{$p}'>
</form>
{if $maxpage > 1}
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?p=1&user_id={$user_id}"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?p={math equation='p-1' p=$p}&user_id={$user_id}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='{$smarty.server.PHP_SELF}?&p={$foo}&user_id={$user_id}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?p={math equation='p+1' p=$p}&user_id={$user_id}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?p={$maxpage}&user_id={$user_id}"><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</span></font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_pms}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_pms}
{/if}</span><br />
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="user_id" class="gotext" value="{$user_id}" /><input type="submit" value="Go" /></form>
</div>
<br>
{/if}
{/if}
{include file='admin_footer.tpl'}