Files
Testing/templates/user_messages_outbox.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

139 lines
6.6 KiB
Smarty

{include file='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}
{if $user->user_info.user_level_id==1 && $p>3}
Please upgrade your <a href="/premium.php">membership</a> to see more messages<br /><br />
{elseif $user->user_info.user_level_id==5 && $p>1}
Please upgrade your <a href="/premium.php">membership</a> to see more messages<br /><br />
{else}
{* $Id: user_messages_outbox.tpl 8 2009-01-11 06:02:53Z john $ *}
<table class='tabs' cellpadding='0' cellspacing='0'>
<tr>
<td class='tab0'>&nbsp;</td>
<td class='tab2' NOWRAP><a href='user_messages.php'>{lang_print id=780}</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab1' NOWRAP><a href='user_messages_outbox.php'>{lang_print id=781}</a></td>
<td class='tab3'>&nbsp;</td>
</tr>
</table>
<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;">My Sent Messages</span></div>
<div>{lang_sprintf id=798 1=$total_pms}</div>
</td>
<td class='messages_right'>
<table cellpadding='0' cellspacing='0'>
<tr><td class='button' nowrap='nowrap'>
<!--<img src='./images/icons/sendmessage16.gif' border='0' class='icon' />-->
<a data-toggle="modal" data-target="#myModal" href="user_messages_new.php">{lang_print id=784}</a>
</td></tr></table>
</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"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?p={math equation='p-1' p=$p}'><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}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?p={$maxpage}"><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="submit" value="Go" /></form>
</div>
<br>
{/if}
{* 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' 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_photo'><a href='{$url->url_create('profile', $pms[pm_loop].pm_user->user_info.user_username)}'>
{assign var="profilepicture" value=$pms[pm_loop].pm_user->user_photo("./images/nophoto.png")}
{$pms[pm_loop].pm_user->userprofiledot($profilepicture, "90px")}
</a></td>
<td class='messages_message' width='130' nowrap='nowrap'>
<b><a href='{$url->url_create('profile', $pms[pm_loop].pm_user->user_info.user_username)}'>{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}</a></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?b=1&pmconvo_id={$pms[pm_loop].pmconvo_id}#bottom'>{$pms[pm_loop].pmconvo_subject|truncate:50}</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>
</a></td>
<td class='messages_message hidden-xs hidden-sm visible-md visible-lg' align='right' nowrap='nowrap'>[ <a href='user_messages_view.php?b=1&pmconvo_id={$pms[pm_loop].pmconvo_id}&task=delete'>{lang_print id=155}</a> ]</td>
</tr>
{/section}
</table>
<br>
<input type='submit' class='button' value='{lang_print id=788}'>
<input type='hidden' name='task' value='deleteselected'>
<input type='hidden' name='p' value='{$p}'>
</form>
{/if}
{if $maxpage > 1}
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?p=1"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?p={math equation='p-1' p=$p}'><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}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?p={$maxpage}"><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="submit" value="Go" /></form>
</div>
<br>
{/if}
{/if}
{include file='footer.tpl'}