1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80:
<?php
function template_browse()
{
global $context, $txt;
echo '
<div id="manage_mail">
<div id="mailqueue_stats">
<div class="cat_bar">
<h3 class="catbg">', $txt['mailqueue_stats'], '</h3>
</div>
<div class="windowbg">
<dl class="settings">
<dt><strong>', $txt['mailqueue_size'], '</strong></dt>
<dd>', $context['mail_queue_size'], '</dd>
<dt><strong>', $txt['mailqueue_oldest'], '</strong></dt>
<dd>', $context['oldest_mail'], '</dd>
</dl>
</div>
</div>';
template_show_list('mail_queue');
echo '
</div>';
}
function template_mailtest()
{
global $context, $txt, $scripturl;
if (!empty($context['result']))
{
if ($context['result'] == 'failure')
$result_txt = sprintf($txt['mailtest_result_failure'], $scripturl . '?action=admin;area=logs;sa=errorlog;desc');
else
$result_txt = $txt['mailtest_result_success'];
echo '
<div class="', $context['result'] == 'success' ? 'infobox' : 'errorbox', '">', $result_txt, '</div>';
}
echo '
<form id="admin_form_wrapper" action="', $context['post_url'], '" method="post">
<div class="cat_bar">
<h3 class="catbg">', $txt['mailtest_header'], '</h3>
</div>
<div class="windowbg">
<dl id="post_header">
<dt><span id="caption_subject">', $txt['subject'], '</span></dt>
<dd><input type="text" name="subject" tabindex="1" size="80" maxlength="80"></dd>
</dl>
<textarea class="editor" name="message" rows="5" cols="200" tabindex="2"></textarea>
<dl id="post_footer">
<dd><input type="submit" value="', $txt['send_message'], '" class="button"></dd>
</dl>
</div>
</form>';
}
?>