Changeset 159
Author: Mighty Gorgon
(2009/12/30 14:18) About 2 years ago
Added a function to generate topics pagination and integrated where needed Bugs fixed: * Wrong topic pagination on some pages * Minor bugs
Author: Mighty Gorgon
(2009/12/30 14:18) About 2 years ago
Added a function to generate topics pagination and integrated where needed Bugs fixed: * Wrong topic pagination on some pages * Minor bugs
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));include_once(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT);define('AJAX_HEADERS', true);define('AJAX_HEADERS', true);if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));include_once(IP_ROOT_PATH . 'includes/digest_constants.' . PHP_EXT);include_once(IP_ROOT_PATH . 'includes/functions_users_delete.' . PHP_EXT);include_once(IP_ROOT_PATH . 'includes/emailer.' . PHP_EXT);{{{{{$goto_page = '';$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);if(($replies + 1) > $config['posts_per_page']){$total_pages = ceil(($replies + 1) / $config['posts_per_page']);$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />' . $lang['Goto_page'] . ': ';$times = 1;for($j = 0; $j < $replies + 1; $j += $config['posts_per_page']){$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . "?" . POST_TOPIC_URL . "=" . $topic_id . "&start=$j") . '">' . $times . '</a>';if($times == 1 && $total_pages > 4){$goto_page .= ' ... ';$times = $total_pages - 3;$j += ($total_pages - 4) * $config['posts_per_page'];}else if ($times < $total_pages){//$goto_page .= ', ';$goto_page .= ' ';}$times++;}$goto_page .= ' ] ';}'GOTO_PAGE' => !empty($goto_page) ? '<br />' . $goto_page : '','GOTO_PAGE' => $topic_pagination['base'],'GOTO_PAGE_FULL' => $topic_pagination['full'],if(($replies + 1) > $config['posts_per_page'])$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);{$total_pages = ceil(($replies + 1) / $config['posts_per_page']);$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" /> ' . $lang['Goto_page'] . ': ';$times = 1;for($j = 0; $j < $replies + 1; $j += $config['posts_per_page']){$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . '&start=' . $j) . '"><b>' . $times . '</b></a>';if(($times == 1) && ($total_pages > 4)){$goto_page .= ' ... ';$times = $total_pages - 3;$j += ($total_pages - 4) * $config['posts_per_page'];}elseif ($times < $total_pages){//$goto_page .= ', ';$goto_page .= ' ';}$times++;}$goto_page .= ' ] ';}else{$goto_page = '';}'TOPIC_CLASS' => (!empty($topic_link['class_new']) ? ('topiclink' . $topic_link['class_new']) : $topic_link['class']),'TOPIC_CLASS' => (!empty($topic_link['class_new']) ? ('topiclink' . $topic_link['class_new']) : $topic_link['class']),'GOTO_PAGE' => (($goto_page == '') ? '' : '<span class="gotopage">' . $goto_page . '</span>'),'GOTO_PAGE' => $topic_pagination['base'],'GOTO_PAGE_FULL' => $topic_pagination['full'],if(($replies + 1) > $config['posts_per_page'])$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);{$total_pages = ceil(($replies + 1) / $config['posts_per_page']);$goto_page_prefix = ' [';$goto_page = ' <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" /> ';$times = '1';for($j = 0; $j < $replies + 1; $j += $config['posts_per_page']){$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . '&start=' . $j) . '" title="' . $lang['Goto_page'] . ' ' . $times . '"><b>' . $times . '</b></a>';if(($times == '1') && ($total_pages > '4')){$goto_page .= ' ... ';$times = $total_pages - 3;$j += ($total_pages - 4) * $config['posts_per_page'];}elseif($times < $total_pages){//$goto_page .= ', ';$goto_page .= ' ';}$times++;}$goto_page_suffix = ' ]';$goto_page .= ' ';}else{$goto_page = '';}'GOTO_PAGE' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page . '</span>')),'GOTO_PAGE' => $topic_pagination['base'],'GOTO_PAGE_FULL' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page_prefix . ' ' . $lang['Goto_page'] . $goto_page . $goto_page_suffix . '</span>')),'GOTO_PAGE_FULL' => $topic_pagination['full'],if (($replies + 1) > $config['posts_per_page'])$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);{$total_pages = ceil(($replies + 1) / $config['posts_per_page']);$goto_page = ' [ <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" /> ' . $lang['Goto_page'] . ': ';$times = 1;for($j = 0; $j < $replies + 1; $j += $config['posts_per_page']){$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . '&start=' . $j) . '">' . $times . '</a>';if (($times == 1) && ($total_pages > 4)){$goto_page .= ' ... ';$times = $total_pages - 3;$j += ($total_pages - 4) * $config['posts_per_page'];}elseif ($times < $total_pages){//$goto_page .= ', ';$goto_page .= ' ';}$times++;}$goto_page .= ' ] ';}else{$goto_page = '';}{{'GOTO_PAGE' => $goto_page,'GOTO_PAGE' => $topic_pagination['base'],'GOTO_PAGE_FULL' => $topic_pagination['full'],if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));include_once(IP_ROOT_PATH . 'includes/class_archives.' . PHP_EXT);if(($replies + 1) > $config['posts_per_page'])$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);{$total_pages = ceil(($replies + 1) / $config['posts_per_page']);$goto_page_prefix = ' [';$goto_page = ' <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" /> ';$times = '1';for($j = 0; $j < $replies + 1; $j += $config['posts_per_page']){$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . '&start=' . $j) . '" title="' . $lang['Goto_page'] . ' ' . $times . '"><b>' . $times . '</b></a>';if(($times == '1') && ($total_pages > '4')){$goto_page .= ' ... ';$times = $total_pages - 3;$j += ($total_pages - 4) * $config['posts_per_page'];}elseif($times < $total_pages){//$goto_page .= ', ';$goto_page .= ' ';}$times++;}$goto_page_suffix = ' ]';$goto_page .= ' ';}else{$goto_page = '';}'GOTO_PAGE' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page . '</span>')),'GOTO_PAGE' => $topic_pagination['base'],'GOTO_PAGE_FULL' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page_prefix . ' ' . $lang['Goto_page'] . $goto_page . $goto_page_suffix . '</span>')),'GOTO_PAGE_FULL' => $topic_pagination['full'],if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));include_once(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT);highlighting=setInterval("gradualfade(imgobj)", 50);highlighting = setInterval("gradualfade(imgobj)", 50);Array.prototype.inArray=function(str)Array.prototype.inArray = function(str){//on modifie l'objet Array{//on modifie l'objet Array{{<td class="row1 row-center"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td><td class="row1 row-center"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td><td class="row1h{topicrow.CLASS_NEW} row-forum" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><td class="row1h{topicrow.CLASS_NEW} row-forum" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topiclink{topicrow.CLASS_NEW}">{topicrow.TOPIC_ATTACHMENT_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="{topicrow.TOPIC_CLASS}">{topicrow.TOPIC_TITLE}</a></span><br /><div class="topic-title-hide-flow"><div style="float: right; display: inline; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{topicrow.TOPIC_ATTACHMENT_IMG}{topicrow.TOPIC_TYPE_ICON}</div>{topicrow.NEWEST_POST_IMG}<span class="topiclink{topicrow.CLASS_NEW}"><a href="{topicrow.U_VIEW_TOPIC}" class="{topicrow.TOPIC_CLASS}">{topicrow.TOPIC_TITLE}</a></span></div>{topicrow.GOTO_PAGE}{topicrow.GOTO_PAGE_FULL}<td class="row1 row-center"><span class="postdetails">{topicrow.FIRST_POST_TIME}<br />{topicrow.FIRST_POST_AUTHOR}{topicrow.FIRST_POST_URL}</span></td><td class="row1 row-center"><span class="postdetails">{topicrow.FIRST_POST_TIME}<br />{topicrow.FIRST_POST_AUTHOR}{topicrow.FIRST_POST_URL}</span></td><td class="row1 row-center"><span class="postdetails">{topicrow.REPLIES}</span> </td><td class="row1 row-center"><span class="postdetails">{topicrow.REPLIES}</span> </td><td class="row1h row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><td class="row1h row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="topiclink">{searchresults.TOPIC_TITLE}</a></span><span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="topiclink">{searchresults.TOPIC_TITLE}</a></span><!-- IF searchresults.GOTO_PAGE -->{searchresults.GOTO_PAGE_FULL}<span class="gotopage">{searchresults.GOTO_PAGE}</span><!-- ENDIF --><td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td><td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td><td class="row1 row-center-small">{searchresults.REPLIES}</td><td class="row1 row-center-small">{searchresults.REPLIES}</td><td class="row1h{searchresults.CLASS_NEW} row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><td class="row1h{searchresults.CLASS_NEW} row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><div class="topic-title-hide-flow"><span class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN display_reg -->[{searchresults.REG_OPTIONS}] {searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div><div class="topic-title-hide-flow"><span class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN display_reg -->[{searchresults.REG_OPTIONS}] {searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div><!-- IF searchresults.GOTO_PAGE -->{searchresults.GOTO_PAGE_FULL}<br /><span class="gotopage">{searchresults.GOTO_PAGE}</span><!-- ENDIF --><td class="row1 row-center-small">{searchresults.REPLIES}</td><td class="row1 row-center-small">{searchresults.REPLIES}</td><td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td><td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td><a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a><a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a><span class="gensmall"> {topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span><span class="gensmall"> {topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span><span class="gensmall">{topics_list_box.row.GOTO_PAGE}</span>{topics_list_box.row.GOTO_PAGE_FULL}{topics_list_box.row.TOPIC_NAV_TREE}{topics_list_box.row.TOPIC_NAV_TREE}<span class="gensmall"> {topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br /><span class="gensmall"> {topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br /><span class="gotopage">{topicrow.GOTO_PAGE}</span>{topicrow.GOTO_PAGE_FULL}<td class="row3 row-center-small" style="padding-left: 2px; padding-right: 2px;" nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td><td class="row3 row-center-small" style="padding-left: 2px; padding-right: 2px;" nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td><td class="row3 row-center-small" style="padding-top: 0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td><td class="row3 row-center-small" style="padding-top: 0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td><span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span><span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span><td class="row1h{topic_watch_row.CLASS_NEW} row-forum" onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'"><td class="row1h{topic_watch_row.CLASS_NEW} row-forum" onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'"><span class="topiclink{topic_watch_row.CLASS_NEW}"><div class="topic-title-hide-flow"><div style="float: right; display: inline; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.TOPIC_TYPE_ICON}</div>{topic_watch_row.NEWEST_POST_IMG}<span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a></span></div>{topic_watch_row.NEWEST_POST_IMG}{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.L_NEWS}{topic_watch_row.TOPIC_TYPE}<a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a>{topic_watch_row.GOTO_PAGE_FULL}</span>{topic_watch_row.GOTO_PAGE}<td class="row2 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td><td class="row2 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td><td class="row1 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br />{topic_watch_row.TOPIC_POSTER}</span></td><td class="row1 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br />{topic_watch_row.TOPIC_POSTER}</span></td>if(($replies + 1) > $config['posts_per_page'])$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);{$total_pages = ceil(($replies + 1) / $config['posts_per_page']);$goto_page_prefix = ' [';$goto_page = ' <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" /> ';$times = 1;for($j = 0; $j < $replies + 1; $j += $config['posts_per_page']){$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . '&start=' . $j) . '" title="' . $lang['Goto_page'] . ' ' . $times . '"><b>' . $times . '</b></a>';if(($times == 1) && ($total_pages > 4)){$goto_page .= ' ... ';$times = $total_pages - 3;$j += ($total_pages - 4) * $config['posts_per_page'];}elseif ($times < $total_pages){//$goto_page .= ', ';$goto_page .= ' ';}$times++;}$goto_page_suffix = ' ]';$goto_page .= ' ';}else{$goto_page = '';}{{'GOTO_PAGE' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page . '</span>')),'GOTO_PAGE' => $topic_pagination['base'],'GOTO_PAGE_FULL' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page_prefix . ' ' . $lang['Goto_page'] . $goto_page . $goto_page_suffix . '</span>')),'GOTO_PAGE_FULL' => $topic_pagination['full'],if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));include_once(IP_ROOT_PATH . 'includes/functions_mg_http.' . PHP_EXT);include_once(IP_ROOT_PATH . 'includes/functions_mg_online.' . PHP_EXT);if(($replies + 1) > $config['posts_per_page'])$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);{$total_pages = ceil(($replies + 1) / $config['posts_per_page']);$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" /> ' . $lang['Goto_page'] . ': ';$times = 1;for($j = 0; $j < $replies + 1; $j += $config['posts_per_page']){$goto_page .= '<a href="' . append_sid(IP_ROOT_PATH . CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . '&start=' . $j) . '"><b>' . $times . '</b></a>';if($times == 1 && $total_pages > 4){$goto_page .= ' ... ';$times = $total_pages - 3;$j += ($total_pages - 4) * $config['posts_per_page'];}elseif ($times < $total_pages){//$goto_page .= ', ';$goto_page .= ' ';}$times++;}$goto_page .= ' ] ';}else{$goto_page = '';}$template->assign_block_vars('topic_watch_row', array($template->assign_block_vars('topic_watch_row', array('GOTO_PAGE' => (($goto_page == '') ? '' : '<span class="gotopage">' . $goto_page . '</span>'),'GOTO_PAGE' => $topic_pagination['base'],'GOTO_PAGE_FULL' => $topic_pagination['full'],<td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{recent.U_VIEW_FORUM}'"><span class="topiclink{recent.CLASS_NEW}"><a href="{recent.U_VIEW_FORUM}">{recent.FORUM_NAME}</a></span></td><td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{recent.U_VIEW_FORUM}'"><span class="topiclink{recent.CLASS_NEW}"><a href="{recent.U_VIEW_FORUM}">{recent.FORUM_NAME}</a></span></td><td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{recent.U_VIEW_TOPIC}'"><td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{recent.U_VIEW_TOPIC}'"><span class="topiclink{recent.CLASS_NEW}">{recent.NEWEST_POST_IMG}{recent.TOPIC_ATTACHMENT_IMG}{recent.L_NEWS}{recent.TOPIC_TYPE}<a href="{recent.U_VIEW_TOPIC}" class="{recent.TOPIC_CLASS}">{recent.TOPIC_TITLE}</a></span><span class="topiclink{recent.CLASS_NEW}">{recent.NEWEST_POST_IMG}{recent.TOPIC_ATTACHMENT_IMG}{recent.L_NEWS}{recent.TOPIC_TYPE}<a href="{recent.U_VIEW_TOPIC}" class="{recent.TOPIC_CLASS}">{recent.TOPIC_TITLE}</a></span><div style="float: right; display: block; height: auto; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{recent.GOTO_PAGE}</div><div style="float: right; display: block; height: auto; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{recent.GOTO_PAGE_FULL}</div><div class="gensmall" style="padding-top: 5px;">{recent.FIRST_AUTHOR} • {recent.FIRST_TIME}</div><div class="gensmall" style="padding-top: 5px;">{recent.FIRST_AUTHOR} • {recent.FIRST_TIME}</div><td class="{recent.ROW_CLASS} row-center-small" style="background: none;">{recent.VIEWS}</td><td class="{recent.ROW_CLASS} row-center-small" style="background: none;">{recent.VIEWS}</td><td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="forumlink"><a href="{searchresults.U_VIEW_FORUM}" class="forumlink">{searchresults.FORUM_NAME}</a></span><br /></td><td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="forumlink"><a href="{searchresults.U_VIEW_FORUM}" class="forumlink">{searchresults.FORUM_NAME}</a></span><br /></td><td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="topiclink">{searchresults.TOPIC_TITLE}</a></span><span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="topiclink">{searchresults.TOPIC_TITLE}</a></span><!-- IF searchresults.GOTO_PAGE -->{searchresults.GOTO_PAGE_FULL}<span class="gotopage">{searchresults.GOTO_PAGE}</span><!-- ENDIF --><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td><td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="topiclink{searchresults.CLASS_NEW}"><a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_NAME}</a></span></td><td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="topiclink{searchresults.CLASS_NEW}"><a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_NAME}</a></span></td><td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><div class="topic-title-hide-flow"><span class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN display_reg -->[{searchresults.REG_OPTIONS}] {searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div><div class="topic-title-hide-flow"><span class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN display_reg -->[{searchresults.REG_OPTIONS}] {searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div><!-- IF searchresults.GOTO_PAGE -->{searchresults.GOTO_PAGE_FULL}<br /><span class="gotopage">{searchresults.GOTO_PAGE}</span><!-- ENDIF --><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td><td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td><span class="gensmall"> {topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br /><span class="gensmall"> {topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br /><span class="gotopage">{topicrow.GOTO_PAGE}</span>{topicrow.GOTO_PAGE_FULL}<td class="row3 row-center-small" style="padding-left:2px;padding-right:2px;" nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td><td class="row3 row-center-small" style="padding-left:2px;padding-right:2px;" nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td><td class="row3 row-center-small" style="padding-top:0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td><td class="row3 row-center-small" style="padding-top:0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td><tr class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum"><tr class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum"><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;" width="22"><img src="{topic_watch_row.TOPIC_FOLDER_IMG}" alt="{topic_watch_row.L_TOPIC_FOLDER_ALT}" title="{topic_watch_row.L_TOPIC_FOLDER_ALT}" style="margin-right:4px;" /></td><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;" width="22"><img src="{topic_watch_row.TOPIC_FOLDER_IMG}" alt="{topic_watch_row.L_TOPIC_FOLDER_ALT}" title="{topic_watch_row.L_TOPIC_FOLDER_ALT}" style="margin-right:4px;" /></td><td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{topic_watch_row.U_VIEW_FORUM}'"><span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span></td><td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{topic_watch_row.U_VIEW_FORUM}'"><span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span></td><td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'"><span class="topiclink{topic_watch_row.CLASS_NEW}">{topic_watch_row.NEWEST_POST_IMG}{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.L_NEWS}{topic_watch_row.TOPIC_TYPE}<a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a></span>{topic_watch_row.GOTO_PAGE}</td><td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'"><div class="topic-title-hide-flow"><div style="float: right; display: inline; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.TOPIC_TYPE_ICON}</div>{topic_watch_row.NEWEST_POST_IMG}<span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a></span></div>{topic_watch_row.GOTO_PAGE_FULL}</td><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br />{topic_watch_row.TOPIC_POSTER}</span></td><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br />{topic_watch_row.TOPIC_POSTER}</span></td><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_LAST}<br />{topic_watch_row.LAST_POSTER}</span></td><td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_LAST}<br />{topic_watch_row.LAST_POSTER}</span></td>