/***************************************************************************
* copyright            : (C) 2001-2003 Advanced Internet Designs Inc.
* email                : forum@prohost.org
* $Id: msg.tmpl 21069 2010-03-25 22:47:48Z Caeies $
*
* This program is free software; you can redistribute it and/or modify it 
* under the terms of the GNU General Public License as published by the 
* Free Software Foundation; either version 2 of the License, or 
* (at your option) any later version.
***************************************************************************/

{PHP_FILE: input: msg.php.t; output: msg.php;}
{REF: security.tmpl}
{REF: header.tmpl}
{REF: footer.tmpl}
{REF: stats.tmpl}
{REF: draw_pager.tmpl}
{REF: forumsel.tmpl}
{REF: drawmsg.tmpl}
{REF: show.tmpl}
{REF: fileio.tmpl}
{REF: th.tmpl}
{REF: imsg.tmpl}
{REF: thread_notify.tmpl}
{REF: is_perms.tmpl}
{REF: th_nav.tmpl}

{SECTION: msg_forum_path forum location forum>thread>}
<font class="GenText"><a class="GenLink" name="page_top" href="{TEMPLATE: msg_forum_path_lnk}">{VAR: frm->cat_name}</a> &raquo; <a href="{TEMPLATE: msg_forum_path_lnk1}">{VAR-HTML: frm->frm_name}</a> &raquo; <b>{VAR: frm->subject}</b></font>
{SECTION: END}

{SECTION: thread_rating}
&nbsp;(<img src="{THEME_IMAGE_ROOT}/{VAR: frm->rating}stars.gif" alt="{VAR: frm->rating}" />) {MSG: vote}
{SECTION: END}

{SECTION: no_thread_rating}
{SECTION: END}

{SECTION: split_thread}
<a class="GenLink" href="{TEMPLATE: split_thread_lnk}">{MSG: split_thread}</a>&nbsp;|&nbsp;
{SECTION: END}

{SECTION: mod_lock_thread}
<a class="GenLink" href="{TEMPLATE: mod_lock_thread_lnk}">{MSG: lock_thread}</a>&nbsp;|&nbsp;
{SECTION: END}

{SECTION: mod_unlock_thread}
<a class="GenLink" href="{TEMPLATE: mod_unlock_thread_lnk}">{MSG: unlock_thread}</a>&nbsp;|&nbsp;
{SECTION: END}

{SECTION: email_page_to_friend}
<a class="GenLink" href="{TEMPLATE: email_page_to_friend_lnk}" title="{MSG: email_to_friend_desc}">{MSG: email_to_friend}</a>&nbsp;
{SECTION: END}

{SECTION: first_unread_message_link}
| <a class="GenLink" href="{TEMPLATE: first_unread_message_link_lnk}" title="{MSG: first_unread_msg_desc}">{MSG: first_unread_msg}</a>&nbsp;
{SECTION: END}

{SECTION: sub_from_thread subscribe to thread link}
| <a class="GenLink" href="{TEMPLATE: sub_from_thread_lnk}" title="{MSG: sub_to_thread_desc}">{MSG: sub_to_thread}</a>&nbsp;
{SECTION: END}

{SECTION: unsub_to_thread unsubscribe from thread link}
| <a class="GenLink" href="{TEMPLATE: unsub_to_thread_lnk}" title="{MSG: unsub_from_thread_desc}">{MSG: unsub_from_thread}</a>&nbsp;
{SECTION: END}

{SECTION: threaded_view tree view link}
<a href="{TEMPLATE: threaded_view_lnk}" class="GenLink"><img title="{MSG: switch_to_thread_view}" alt="{MSG: switch_to_thread_view}" src="{THEME_IMAGE_ROOT}/tree_view.gif" /></a>&nbsp;
{SECTION: END}

{SECTION: new_thread new thread link}
<a class="GenLink" href="{TEMPLATE: new_thread_lnk}"><img alt="{MSG: new_thread}" src="{THEME_IMAGE_ROOT}/new_thread.gif" /></a>
{SECTION: END}

{SECTION: post_reply}
&nbsp;<a class="GenLink" href="{TEMPLATE: post_reply_lnk}"><img src="{THEME_IMAGE_ROOT}/post_reply.gif" alt="{MSG: submit_reply}" /></a>
{SECTION: END}

{SECTION: rate_thread rate thread select}
<table border=0 cellspacing=0 cellpadding=0><tr><form action="{TEMPLATE: rate_thread_lnk3}" name="vote_frm" method="post"><td nowrap>
<select name="sel_vote" onChange="javascript: if ( !this.value ) return false; document.vote_frm.submit();">
<option>{MSG: rate_thread}</option>
<option value="1">1 {MSG: rate_worst}</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5 {MSG: rate_best}</option>
</select>
</td><td>&nbsp;<input type="submit" class="button" name="btn_vote" value="{MSG: rate_this_thread}">
<input type="hidden" name="rate_thread_id" value="{VAR: frm->id}">{DEF: _hs}
</td></form></tr></table>
{SECTION: END}

{PAGE: MSG_PAGE  draws a flat view of the messages inside a thread}
{TEMPLATE: header}
{TEMPLATE-DATA: msg_forum_path} {TEMPLATE-DATA: thread_rating}
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr>
<td align="left" class="GenText">{TEMPLATE: show_links}{TEMPLATE-DATA: split_thread}{TEMPLATE-DATA: lock_thread}{TEMPLATE-DATA: email_page_to_friend}{TEMPLATE-DATA: first_unread_message_link}{TEMPLATE-DATA: subscribe_status}</td>
<td valign="bottom" align="right">{TEMPLATE: threaded_view}&nbsp;{TEMPLATE: new_thread}{TEMPLATE-DATA: post_reply}</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="2" class="MsgTable">
{TEMPLATE-DATA: message_data}
</table>
<table border=0 cellspacing=0 cellpadding=0 width="100%">
<tr>
<td valign="top">{TEMPLATE-DATA: page_pager}&nbsp;</td>
<td align="right" class="GenText" valign="bottom" nowrap>{TEMPLATE: threaded_view}{TEMPLATE: new_thread}{TEMPLATE-DATA: post_reply}</td>
</tr>
</table>

<table border=0 cellspacing=1 cellpadding=1 align="right">
{TEMPLATE-DATA: prev_thread_link}
{TEMPLATE-DATA: next_thread_link}
</table>
{TEMPLATE-DATA: rate_thread}
{TEMPLATE-DATA: forum_select}
<div align="right"><font class="SmallText">{TEMPLATE-DATA: pdf_link} {TEMPLATE-DATA: xml_link}</font></div>
<div align="center">-=] <a href="#page_top">{MSG: back_to_top}</a> [=-</div>
{TEMPLATE-DATA: msg_page_focus}
{TEMPLATE-DATA: page_stats}
{TEMPLATE: footer}
{PAGE: END}

{SECTION: msg_pdf_link}
[ <a href="{GVAR: WWW_ROOT}pdf.php?th={VAR: _GET['th']}">{MSG: thread_printable_pdf}</a> ]
{SECTION: END}

{SECTION: msg_xml_link}
[ <a href="{TEMPLATE: msg_xml_link_lnk}">{MSG: thread_syndicate}</a> ]
{SECTION: END}

{SECTION: msg_err_ininfo_title}
{MSG: msg_err_ininfo_title}
{SECTION: END}

{SECTION: msg_err_ininfo_msg}
{MSG: msg_err_ininfo_msg}
{SECTION: END}

{SECTION: msg_update}
{MSG: msg_update}
{SECTION: END}

{SECTION: msg_title}
{MSG: msg_title}
{SECTION: END}

{SECTION: msg_err_nosuchmsg_msg}
{MSG: msg_err_nosuchmsg_msg}
{SECTION: END}

{SECTION: msg_err_nosuchmsg_title}
{MSG: msg_err_nosuchmsg_title}
{SECTION: END}

{SECTION: msg_page_focus}
<script language="javascript" type="text/javascript">
window.location.hash = "{VAR: mid}";
</script>
{SECTION: END}

{SECTION: msg_forum_path_lnk}
{ROOT}?t=index&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: msg_forum_path_lnk1}
{ROOT}?t={DEF: t_thread_view}&amp;frm_id={VAR: frm->forum_id}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: split_thread_lnk}
{ROOT}?t=split_th&amp;{DEF: _rsid}&amp;th={VAR: _GET['th']}
{SECTION: END}

{SECTION: mod_lock_thread_lnk}
{ROOT}?t=mmod&amp;{DEF: _rsid}&amp;th={VAR: _GET['th']}&amp;lock=1
{SECTION: END}

{SECTION: mod_unlock_thread_lnk}
{ROOT}?t=mmod&amp;{DEF: _rsid}&amp;th={VAR: _GET['th']}&amp;unlock=1
{SECTION: END}

{SECTION: email_page_to_friend_lnk}
{ROOT}?t=remail&amp;th={VAR: _GET['th']}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: first_unread_message_link_lnk}
{ROOT}?t=msg&amp;unread=1&amp;th={VAR: _GET['th']}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: sub_from_thread_lnk}
{ROOT}?t=msg&amp;th={VAR: _GET['th']}&amp;notify={VAR: usr->id}&amp;{DEF: _rsid}&amp;opt=on&amp;start={VAR: _GET['start']}
{SECTION: END}

{SECTION: unsub_to_thread_lnk}
{ROOT}?t=msg&amp;th={VAR: _GET['th']}&amp;notify={VAR: usr->id}&amp;{DEF: _rsid}&amp;opt=off&amp;start={VAR: _GET['start']}
{SECTION: END}

{SECTION: threaded_view_lnk}
{ROOT}?t=tree&amp;th={VAR: _GET['th']}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: new_thread_lnk}
{ROOT}?t=post&amp;frm_id={VAR: frm->forum_id}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: post_reply_lnk}
{ROOT}?t=post&amp;th_id={VAR: _GET['th']}&amp;reply_to={VAR: frm->root_msg_id}&amp;{DEF: _rsid}&amp;start={VAR: _GET['start']}
{SECTION: END}

{SECTION: msg_xml_link_lnk}
{ROOT}?t=help_index&amp;section=boardusage#syndicate
{SECTION: END}

{SECTION: rate_thread_lnk3}
{ROOT}?t=ratethread
{SECTION: END}
