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: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97:
<?php
function template_main()
{
global $context, $txt;
echo '
<div id="preview_section"', isset($context['preview_message']) ? '' : ' class="hidden"', '>
<div class="cat_bar">
<h3 class="catbg">
<span>', $txt['preview'], '</span>
</h3>
</div>
<div class="windowbg">
<div class="post" id="preview_body">
', empty($context['preview_message']) ? '<br>' : $context['preview_message'], '
</div>
</div>
</div>';
echo '
<div id="report_form">
<form action="', $context['submit_url'], '" method="post" accept-charset="', $context['character_set'], '">
<input type="hidden" name="', $context['report_type'], '" value="', $context['reported_item'], '">
<div class="cat_bar">
<h3 class="catbg">', $context['page_title'], '</h3>
</div>
<div class="windowbg">';
if (!empty($context['post_errors']))
{
echo '
<div id="error_box" class="errorbox">
<ul id="error_list">';
foreach ($context['post_errors'] as $key => $error)
echo '
<li id="error_', $key, '" class="error">', $error, '</li>';
echo '
</ul>';
}
else
echo '
<div id="error_box" class="errorbox hidden">';
echo '
</div>';
echo '
<p class="noticebox">', $context['notice'], '</p>
<dl class="settings" id="report_post">
<dt>
<label for="report_comment">', $txt['enter_comment'], '</label>:
</dt>
<dd>
<textarea type="text" id="report_comment" name="comment" rows="5">', $context['comment_body'], '</textarea>
</dd>
</dl>
<input type="submit" name="preview" value="', $txt['preview'], '" class="button">
<input type="submit" name="save" value="', $txt['report_submit'], '" class="button">
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
</div><!-- .windowbg -->
</form>
</div><!-- #report_form -->';
}
?>