/***************************************************************************
* copyright            : (C) 2001-2003 Advanced Internet Designs Inc.
* email                : forum@prohost.org
* $Id: thread.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: thread.php.t; output: thread.php;}
{REF: security.tmpl}
{REF: header.tmpl}
{REF: footer.tmpl}
{REF: stats.tmpl}
{REF: announcement.tmpl}
{REF: draw_pager.tmpl}
{REF: forumsel.tmpl}
{REF: show.tmpl}
{REF: forum_notify.tmpl}
{REF: thread_view_common.tmpl}

{SECTION: mini_thread_pager}
<font class="SmallText">(<img src="{THEME_IMAGE_ROOT}/pager.gif" alt="" />{TEMPLATE-DATA: mini_pager_data})</font>
{SECTION: END}

{SECTION: mini_pager_entry}
&nbsp;<a class="GenLink" href="{TEMPLATE: mini_pager_entry_lnk}">{VAR: pg_num}</a> 
{SECTION: END}

{SECTION: mini_pager_limiter}
&nbsp;...
{SECTION: END}

{SECTION: first_unread_msg_link}
<a href="{TEMPLATE: first_unread_msg_link_lnk}"><img src="{THEME_IMAGE_ROOT}/newposts.gif" title="{MSG: thread_first_unread_msg}" alt="" /></a>&nbsp;
{SECTION: END}

{SECTION: thread_icon}
<img src="images/message_icons/{VAR: r[3]}" alt="{VAR: r[3]}" />
{SECTION: END}

{SECTION: rating}
<img src="{THEME_IMAGE_ROOT}/{VAR: r[17]}stars.gif" alt="{VAR: r[17]}" />
{SECTION: END}

{SECTION: rating_none}
{SECTION: END}

{SECTION: sticky}
<font class="StClr">{MSG: sticky}&nbsp;</font>
{SECTION: END}

{SECTION: announcement}
<font class="AnClr">{MSG: thread_announcement}&nbsp;</font>
{SECTION: END}

{SECTION: thread_last_post}
<font class="DateText">{DATE: r[10] %a, %d %B %Y %H:%M}</font>
{SECTION: END}

{SECTION: unreg_user_link}
{GVAR: ANON_NICK}
{SECTION: END}

{SECTION: reg_user_link}
<a href="{TEMPLATE: reg_user_link_lnk}">{VAR: r[8]}</a>
{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: last_msg_in_thread}
<a href="{TEMPLATE: last_msg_in_thread_lnk}" class="GenLink"><img src="{THEME_IMAGE_ROOT}/goto.gif" title="{MSG: last_thread_msg}" alt="" /></a>
{SECTION: END}

{SECTION: thread_first_post}
<font class="DateText">{DATE: r[4] %a, %d %B %Y}</font>
{SECTION: END}

{SECTION: first_post_unreg_user_link if the thread stater was an anon user link}
{GVAR: ANON_NICK}
{SECTION: END}

{SECTION: first_post_reg_user_link if the thread stater was a registered user link}
<a href="{TEMPLATE: first_post_reg_user_link_lnk}">{VAR: r[5]}</a>
{SECTION: END}

{SECTION: admin_control_row_all moderator link for moving & deleting a thread}
<div class="ModOpt">{MSG: moderator_options}: <a href="javascript://" onClick="javascript: window_open(\'{TEMPLATE: admin_control_row_all_lnk1}\', \'th_move\', 300, 400);">{MSG: move_thread}</a> | <a href="{TEMPLATE: admin_control_row_all_lnk}">{MSG: thread_mod_delete}</a></div>
{SECTION: END}

{SECTION: admin_control_row_move moderator link for moving a thread}
<div class="ModOpt">{MSG: moderator_options}: <a href="javascript://" onClick="javascript: window_open(\'{TEMPLATE: admin_control_row_move_lnk1}\', \'th_move\', 300, 400);">{MSG: move_thread}</a></div>
{SECTION: END}

{SECTION: admin_control_row_del moderator link for deleting a thread}
<div class="ModOpt">{MSG: moderator_options}: <a href="{TEMPLATE: admin_control_row_del_lnk}">{MSG: thread_mod_delete}</a></div>
{SECTION: END}

{SECTION: thread_row}
<tr>		
<td width=1 class="RowStyleB">{TEMPLATE-DATA: thread_read_status}</td>
<td class="RowStyleB" width=1 align="center">{TEMPLATE-DATA: thread_icon}</td>
<td class="RowStyleA">{TEMPLATE-DATA: stick_status}{TEMPLATE-DATA: first_unread_msg_link}{TEMPLATE-DATA: thread_poll_indicator}{TEMPLATE-DATA: thread_attach_indicator}<a class="big" href="{TEMPLATE: thread_row_lnk}">{VAR: r[2]}</a> {TEMPLATE-DATA: rating} {TEMPLATE-DATA: mini_thread_pager}
<div class="TopBy">{MSG: by} {TEMPLATE-DATA: first_post_login} {MSG: thread_on} {TEMPLATE: thread_first_post}</div>{TEMPLATE-DATA: admin_control_row}</td>
<td class="RowStyleB" align="center">{VAR: r[16]}</td>
<td class="RowStyleB" align="center">{VAR: r[19]}</td>
<td class="RowStyleC" nowrap>{TEMPLATE: thread_last_post}<br />{MSG: by} {TEMPLATE-DATA: user_link} {TEMPLATE: last_msg_in_thread}</td>
</tr>
{SECTION: END}

{SECTION: thread_row_moved a row indicating that the thread has been moved}
<tr>
<td width=1 class="RowStyleB"><img src="{THEME_IMAGE_ROOT}/moved.gif" title="{MSG: moved_thread_message}" /></td>
<td class="RowStyleB" colspan="5" align="center" class="GenText">{MSG: was_moved_msg}</td>
</tr>
{SECTION: END}

{SECTION: thread_list}
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable" style="margin-top: 2px; margin-bottom: 2px;">
<tr>
	<th>&nbsp;</th>
	<th>&nbsp;</th>
	<th width="100%">{MSG: thread_thread}</th>
	<th width=1>{MSG: replies}</th>
	<th width=1>{MSG: views}</th>
	<th nowrap>{MSG: last_post}</th>
</tr>
{TEMPLATE-DATA: announcements}
{TEMPLATE-DATA: thread_list_table_data}
</table>
{SECTION: END}

{PAGE: THREAD_PAGE shows the threads in a particular forum}
{TEMPLATE: header}
<table width="100%" border=0 cellspacing=0 cellpadding=0><tr>
<td align="left" width="100%">{TEMPLATE: forum_path}<br />{TEMPLATE: show_links}<br />{TEMPLATE-DATA: subscribe}{TEMPLATE-DATA: merget}</td>
<td valign="bottom" align="right" class="GenText">{TEMPLATE-DATA: threaded_view}{TEMPLATE: new_thread_link}</td>
</tr></table>
{TEMPLATE: thread_list}
<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-DATA: threaded_view}{TEMPLATE: new_thread_link}</td>
</tr>
</table>
{TEMPLATE-DATA: forum_select}
{TEMPLATE-DATA: mark_all_read}
{TEMPLATE: thread_legend}
{TEMPLATE-DATA: page_stats}
{TEMPLATE: footer}
{PAGE: END}

{SECTION: thread_update}
{MSG: thread_update}
{SECTION: END}

{SECTION: mini_pager_entry_lnk}
{ROOT}?t={DEF: d_thread_view}&amp;th={VAR: r[13]}&amp;start={VAR: st_pos}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: first_unread_msg_link_lnk}
{ROOT}?t={DEF: d_thread_view}&amp;th={VAR: r[13]}&amp;unread=1&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: reg_user_link_lnk}
{ROOT}?t=usrinfo&amp;id={VAR: r[7]}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: threaded_view_lnk}
{ROOT}?t=threadt&amp;frm_id={VAR: frm->id}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: last_msg_in_thread_lnk}
{ROOT}?t={DEF: d_thread_view}&amp;goto={VAR: r[9]}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: first_post_reg_user_link_lnk}
{ROOT}?t=usrinfo&amp;id={VAR: r[6]}&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: admin_control_row_all_lnk}
{ROOT}?t=mmod&amp;{DEF: _rsid}&amp;th={VAR: r[13]}&amp;del={VAR: r[15]}
{SECTION: END}

{SECTION: admin_control_row_del_lnk}
{ROOT}?t=mmod&amp;{DEF: _rsid}&amp;th={VAR: r[13]}&amp;del={VAR: r[15]}
{SECTION: END}

{SECTION: thread_row_lnk}
{ROOT}?t={DEF: d_thread_view}&amp;th={VAR: r[13]}&amp;start=0&amp;{DEF: _rsid}
{SECTION: END}

{SECTION: admin_control_row_all_lnk1}
{ROOT}?t=mvthread&amp;{DEF: _rsid}&amp;th={VAR: r[13]}
{SECTION: END}

{SECTION: admin_control_row_move_lnk1}
{ROOT}?t=mvthread&amp;{DEF: _rsid}&amp;th={VAR: r[13]}
{SECTION: END}
