<table border="0" cellspacing="0" width="98%" align="center" class="border_radius">
{template}top_forum_statistics{/template}
<script type="text/javascript" src="includes/js/jquery.save.js"></script>
<script type='text/javascript'>
//
function AjaxTitle()
{
var data = {};
var AjaxState = {ajaxSend : $("#status").html("<img border='0' src='{$image_path}/loading.gif'>")};
data['title'] = $("#title_id").val();
data['m_subject'] = $("#m_subject_id").val();
data['ajax'] = true;
$.post("index.php?page=ajax&subjects=1&rename=1",data,function Success(xml) { $("#status").html(xml); $("#title_" + $("#m_subject_id").val()).html(xml); });
$("#title_id").val().html(xml).fadeOut();
}
function AjaxEdit()
{
title = $(this).text();
// valu = $(".subjectajax_id").val();
valu = $('input[name=' + title + ']').val();
if (valu){
$.cookie("PbbSubject_id", valu, { expires: 1 });
}
valu = $.cookie("PbbSubject_id");
$(this).html('<input type="text" name="title" id="title_id" value="' + title + '" size="40"/><input type="hidden" name="m_subject" id="m_subject_id" value="' + valu + '" /><input type="button" name="button" class="input_button" value="{$lang['Ok']}" /><input type="button" name="button" class="input_cancel" value="{$lang['Cancel']}" />');
$(".input_button").click(AjaxTitle);
$(".input_cancel").click(cancel);
}
function cancel()
{
var data = {};
var AjaxState = {ajaxSend : $("#status").html("<img border='0' src='{$image_path}/loading.gif'>")};
data['title'] = $("#title_id").val();
data['m_subject'] = $("#m_subject_id").val();
data['ajax'] = true;
$.post("index.php?page=ajax&subjects=1&rename=0",data,function Success(xml) { $("#status").html(xml); $("#title_" + $("#m_subject_id").val()).html(xml); });
$("#title_id").val().html(xml).fadeOut();
}
function Ready()
{
$("label[id]").dblclick(AjaxEdit);
}
$(document).ready(Ready);
//
</script>
<script type='text/javascript'>
//
function checkAll(form){
for (var i = 0; i < form.elements.length; i++){
eval("form.elements[" + i + "].checked = form.elements[0].checked");
}
}
//
</script>
<table align="center" border="0" width="98%" cellspacing="0" style="border-collapse: collapse">
<tr>
<td align="right">
{template}add_subject_link{/template}
</td>
<td align="left">
{if {$pager}}
<?php echo $PowerBB->pager->show();?>
{/if}
</td>
</tr>
</table>
{template}top_forum_statistics{/template}
<table border="0" cellspacing="0" width="98%" align="center" class="border_radius">
<tr>
<td class="top_forum_bar" nowrap="nowrap">
<span class="r-right">
{$lang['forum_subjects']}
{$section_info['title']}</span>
{if {$_CONF['group_info']['search_allow']} == 1}
<span class="l-left">
<span style="cursor: pointer;" class='popmenubutton'><a href="javascript:switchMenuNone('section_searchs_witch')">{$lang['search']}
<img border="0" alt="" src="{$image_path}/menu_open.gif" /></a> </span>
</span>
<!-- Code search forum Menu start -->
<div style="display:none; left:30px; margin:26px 0 0 0;" class="drop_menu" id="section_searchs_witch">
<form name="search" action="index.php?page=forum" method="get">
<input type="hidden" name="page" value="forum" />
<input type="hidden" name="start" value="1" />
<input type="hidden" name="sort_order" value="DESC" />
<input type="hidden" name="section" value="{$SECTION_ID}" />
<table width="200" border="0" cellspacing="0">
<tr align="center">
<td class="row2" onclick="sBlock('section_searchs_witch')">
<input type="text" name="keyword" value="{$lang['search_keyword']}" onfocus="if (this.value == '{$lang['search_keyword']}') this.value = '';" size="20"
dir="{$_CONF['info_row']['content_dir']}" />
<input type="submit" value="{$lang['start_search']}" name="search" />
</td>
</tr>
<tr>
<td class="thead1">
<a href="index.php?page=search&index=1">{$lang['advanced_search']}</a>
</td>
</tr>
</table>
</form>
</div>
{/if}
</td>
</tr>
</table>
<form name="tools_thread" method="post" enctype="multipart/form-data" action="index.php?page=management&subject=1§ion={$SECTION_ID}&operator=tools_thread">
<table border="0" cellspacing="1" class="border" width="98%" align="center">
<tr>
<td width="75%" class="tcat" align="center" colspan="3">
{$lang['subject_title']}
</td>
<td width="4%" class="tcat" align="center">
{$lang['reply_num']}
</td>
<td width="4%" class="tcat" align="center">
{$lang['subject_visitor']}
</td>
<td width="15%" class="tcat" align="center">
{$lang['write_date']}
</td>
{if !{$mod_toolbar}}
<td class="tcat" width="1%">
<input type="checkbox" name="check_all" onclick="checkAll(this.form)" />
</td>
{/if}
</tr>
{template}adsense_forum{/template}
{template}forum_announcement_table{/template}
{if !{$NO_REVIEW_SUBJECTS}}
<tr>
<td width="98%" colspan="{$colspan}" class="thead" align="center">
{$lang['subjects_review']}
</td>
</tr>
{Des::while}{review_subject_list}
<tr class="radiusContent">
<td width="1%" class="row2" align="center">
{if {$review_subject_list['review_subject']} == 1}
<img alt="" src="{$image_path}/dot_review.gif" border="0"
title="{$lang['subject_review']}" />
{/if}
</td>
<td width="1%" class="row1" align="center">
<img src="{$review_subject_list['icon']}" alt="" />
</td>
<td width="65%" class="row2">
<?php $PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['title']); ?>
<a target="_blank" href="index.php?page=topic&show=1&id={$review_subject_list['id']}{$password}">
<img border="0" alt="{$lang['opin_subject']}"
src="{$image_path}/open.gif" /></a>
<font class="title_font">
<span dir="{$_CONF['info_row']['content_dir']}">
<b>{$review_subject_list['prefix_subject']}</b>
</span>
<a href="index.php?page=topic&show=1&id={$review_subject_list['id']}{$password}">
{$review_subject_list['title']}</a>
</font>
{if {$review_subject_list['reply_number']} > {$_CONF['info_row']['perpage']}}
<img src="{$image_path}/multipage.gif"
alt="{$lang['subject_multipage']}"
title="{$lang['subject_multipage']}" align="left" />
{/if}
{if {$review_subject_list['attach_subject']} == 1}
<img src="{$image_path}/attach.gif"
alt="{$lang['subject_attach']}"
title="{$lang['subject_attach']}" align="left" />
{/if}
{if {$review_subject_list['rating']} > {$_CONF['info_row']['show_rating_num_max']}}
<img alt="" src="{$image_path}/rating/rating_5.gif"
title="{$lang['Rate_Topic']}
{$review_subject_list['rating']} " align="left" />
{/if}
{if {$review_subject_list['close']}}
{$lang['subject_close']}
{/if}
{if {$review_subject_list['delete_topic']}}
{$lang['subject_delete']}
{/if}
{if {$review_subject_list['special']}}
{$lang['subject_special']}
<span class="l-left">
<img border="0" src="{$image_path}/star.gif"
alt="{$lang['s_special']}" /> </span>
{/if}
{if {$_CONF['info_row']['subject_describe_show']} and {$review_subject_list['subject_describe']} != ''}
<font class="smallfont">{$review_subject_list['subject_describe']}</font>
{/if}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['writer']);?>
</td>
<td width="4%" class="row2" align="center">
{if {$review_subject_list['reply_number']} == 0}
{$review_subject_list['reply_number']}
{else}
<a onclick="window.open('index.php?page=misc&whoposted=1&subject_id={$review_subject_list['id']}','mywindow','location=1,status=1,scrollbars=1,width=150,height=300')"><u><font color="#000080">{$review_subject_list['reply_number']}</font></u></a>
{/if}
</td>
<td width="4%" class="row1" align="center">
{$review_subject_list['visitor']}
</td>
<td width="25%" class="row2" align="center">
{if {$review_subject_list['reply_number']} <= 0}
{$lang['no_replys']}
{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['last_replier']);?>
<span class="smallfont">
{$review_subject_list['reply_date']}
</span >
{/if}
</td>
{if !{$mod_toolbar}}
<td width="1%" class="row1" align="center">
<input type="checkbox" name="check[]" value="{$review_subject_list['id']}" />
</td>
{/if}
</tr>
{/Des::while}
{/if}
{if !{$NO_STICK_SUBJECTS}}
<tr>
<td width="98%" colspan="{$colspan}" class="thead" align="center">
{$lang['stick_subject_list']}
</td>
</tr>
{/if}
{Des::while}{stick_subject_list}
<tr class="radiusContent">
<td width="1%" class="row2" align="center">
{if {$stick_subject_list['stick']} == 1}
<img alt="" src="{$image_path}/sticky.gif"
title="{$lang['stick_subject']}" />
{/if}
</td>
<td width="1%" class="row1" align="center">
<img src="{$stick_subject_list['icon']}" alt="" />
</td>
<td width="65%" class="row2">
<?php
$PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['title']);
$num ='99';
$PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'] = $PowerBB->functions->words_count_replace_strip_tags_html2bb($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'],$num);
?>
<a target="_blank" href="index.php?page=topic&show=1&id={$stick_subject_list['id']}{$password}">
<img border="0" alt="{$lang['opin_subject']}"
src="{$image_path}/open.gif" /></a>
<font class="title_font">
<span dir="{$_CONF['info_row']['content_dir']}">
<b>{$stick_subject_list['prefix_subject']}</b>
</span>
<a title="{$stick_subject_list['text']}" href="index.php?page=topic&show=1&id={$stick_subject_list['id']}{$password}">
<b class="sticky">{$lang['sticky']}</b>
{$stick_subject_list['title']}</a>
</font>
{if {$stick_subject_list['reply_number']} > {$_CONF['info_row']['perpage']}}
{template}forum_stick_perpage_reply{/template}
<img alt="" src="{$image_path}/multipage.gif"
title="{$lang['subject_multipage']}" align="left" />
{/if}
{if {$stick_subject_list['attach_subject']} == 1}
<img alt="" src="{$image_path}/attach.gif"
title="{$lang['subject_attach']}" align="left" />
{/if}
{if {$stick_subject_list['rating']} > {$_CONF['info_row']['show_rating_num_max']}}
<img alt="" src="{$image_path}/rating/rating_5.gif"
title="{$lang['Rate_Topic']}
{$stick_subject_list['rating']} " align="left" />
{/if}
{if {$stick_subject_list['close']}}
{$lang['subject_close']}
{/if}
{if {$stick_subject_list['delete_topic']}}
{$lang['subject_delete']}
{/if}
{if {$stick_subject_list['special']}}
{$lang['subject_special']}
<span class="l-left">
<img border="0" src="{$image_path}/star.gif"
alt="{$lang['s_special']}" /> </span>
{/if}
{if {$_CONF['info_row']['subject_describe_show']} and {$stick_subject_list['subject_describe']} != ''}
<font class="smallfont">{$stick_subject_list['subject_describe']}</font>
{/if}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['writer']);?>
</td>
<td width="4%" class="row2" align="center">
{if {$stick_subject_list['reply_number']} == 0}
{$stick_subject_list['reply_number']}
{else}
<a onclick="window.open('index.php?page=misc&whoposted=1&subject_id={$stick_subject_list['id']}','mywindow','location=1,status=1,scrollbars=1,width=150,height=300')"><u><font color="#000080">{$stick_subject_list['reply_number']}</font></u></a>
{/if}
</td>
<td width="4%" class="row1" align="center">
{$stick_subject_list['visitor']}
</td>
<td width="15%" class="row2" align="center">
{if {$stick_subject_list['reply_number']} <= 0}
{$lang['no_replys']}
{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['last_replier']);?>
<span class="smallfont">
{$stick_subject_list['reply_date']}
</span >
{/if}
</td>
{if !{$mod_toolbar}}
<td width="1%" class="row1" align="center">
<input type="checkbox" name="check[]" value="{$stick_subject_list['id']}" />
</td>
{/if}
</tr>
{/Des::while}
<tr>
<td width="98%" colspan="{$colspan}" class="thead" align="center">
{$lang['subject_list']}
</td>
</tr>
{Des::while}{subject_list}
<tr class="radiusContent">
<td width="1%" class="row2" align="center">
{if {$subject_list['delete_topic']} == 1}
<img alt="" src="{$image_path}/dot_trash.gif"
title="{$lang['s_delete']}" />
{elseif {$subject_list['poll_subject']} == 1}
<img alt="" src="{$image_path}/dot_poll.gif"
title="{$lang['dot_poll']}" />
{elseif {$subject_list['close']} == 1}
<img alt="" src="{$image_path}/dot_lockfolder.gif" border="0"
title="{$lang['s_close']}" />
{elseif {$subject_list['writer']} == {$_CONF['member_row']['username']}}
<img alt="" src="{$image_path}/dot_folder.gif"
title="{$lang['subject_personal']}" />
{elseif {$subject_list['reply_number']} > 15 and {$subject_list['visitor']} > 150}
<img alt="" src="{$image_path}/dot_hotfolder.gif"
title="{$lang['Hot_subject']}" />
{elseif {$subject_list['stick']} == 1}
<img alt="" src="{$image_path}/sticky.gif"
title="{$lang['stick_subject']}" />
{elseif {$_CONF['member_row']['lastvisit']} > {$subject_list['write_time']}}
<img alt="" src="{$image_path}/dot_nonewfolder.gif"
title="{$lang['no_newPosts']}" />
{elseif {$subject_list['write_time']} > {$_CONF['member_row']['lastvisit']}}
<img alt="" src="{$image_path}/dot_newfolder.gif"
title="{$lang['there_are_new_posts']}" />
{else}
<img alt="" src="{$image_path}/dot_nonewfolder.gif"
title="{$lang['no_newPosts']}" />
{/if}
</td>
<td width="1%" class="row1" align="center">
<img src="{$subject_list['icon']}" alt="" />
</td>
<td width="65%" class="row2">
<?php
$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title']);
$num ='99';
$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'] = $PowerBB->functions->words_count_replace_strip_tags_html2bb($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'],$num);
?>
<a target="_blank" href="index.php?page=topic&show=1&id={$subject_list['id']}{$password}">
<img border="0" alt="{$lang['opin_subject']}"
src="{$image_path}/open.gif" /></a>
<?php $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'] = str_replace('&','&',$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title']); ?>
<font class="title_font">
<span dir="{$_CONF['info_row']['content_dir']}">
<b>{$subject_list['prefix_subject']}</b>
</span>
</font>
{if !{$mod_toolbar}}
<label class="title_font" style="padding-left: 25px;" name="{$subject_list['id']}" id="title_{$subject_list['id']}">
<span id="status_rename"></span>
{elseif {$subject_list['writer']} == {$_CONF['member_row']['username']} and {$_CONF['group_info']['edit_own_subject']} and {$SectionGroup['edit_own_subject']}}
<label class="title_font" style="padding-left: 25px;" name="{$subject_list['id']}" id="title_{$subject_list['id']}">
<span id="status_rename"></span>
{else}
<label>
{/if}
<a title="{$subject_list['text']}" href="index.php?page=topic&show=1&id={$subject_list['id']}{$password}">
<input type="hidden" name="{$subject_list['title']}" class="subjectajax_id" value="{$subject_list['id']}" />{$subject_list['title']}</a></label>
{if {$subject_list['reply_number']} > {$_CONF['info_row']['perpage']}}
{template}forum_perpage_reply{/template}
<img src="{$image_path}/multipage.gif"
alt="{$lang['subject_multipage']}"
title="{$lang['subject_multipage']}" align="left" />
{/if}
{if {$subject_list['attach_subject']} == 1}
<img src="{$image_path}/attach.gif"
alt="{$lang['subject_attach']}"
title="{$lang['subject_attach']}" align="left" />
{/if}
{if {$subject_list['review_reply']} > 0}
<img src="{$image_path}/moderated_small.gif"
alt="{$subject_list['review_reply']}
{$lang['Posts_was_observed']}"
title="{$subject_list['review_reply']}
{$lang['Posts_was_observed']}" align="left" />
{/if}
{if {$subject_list['rating']} > {$_CONF['info_row']['show_rating_num_max']}}
<img alt="" src="{$image_path}/rating/rating_5.gif"
title="{$lang['Rate_Topic']}
{$subject_list['rating']} " align="left" />
{/if}
{if {$subject_list['close']}}
{$lang['subject_close']}
{/if}
{if {$subject_list['delete_topic']}}
{$lang['subject_delete']}
{/if}
{if {$subject_list['special']}}
{$lang['subject_special']}
<span class="l-left">
<img border="0" src="{$image_path}/star.gif"
alt="{$lang['s_special']}" /> </span>
{/if}
{if {$_CONF['info_row']['subject_describe_show']} and {$subject_list['subject_describe']} != ''}
<font class="smallfont">{$subject_list['subject_describe']}</font>
{/if}
{if {$subject_list['writer']} == 'Guest'}
{$lang['Guest_']}
{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['writer']);?>
{/if}
</td>
<td width="4%" class="row2" align="center">
{if {$subject_list['reply_number']} == 0}
{$subject_list['reply_number']}
{else}
<a onclick="window.open('index.php?page=misc&whoposted=1&subject_id={$subject_list['id']}','mywindow','location=1,status=1,scrollbars=1,width=150,height=300')"><u><font color="#000080">{$subject_list['reply_number']}</font></u></a>
{/if}
</td>
<td width="4%" class="row1" align="center">
{$subject_list['visitor']}
</td>
<td width="25%" class="row2" align="center">
{if {$subject_list['reply_number']} <= 0}
{$lang['no_replys']}
{else}
{if {$subject_list['last_replier']} == 'Guest'}
{$lang['Guest_']}
{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['last_replier']);?>
<span class="smallfont">
{$subject_list['reply_date']}
</span>
{/if}
{/if}
</td>
{if !{$mod_toolbar}}
<td width="1%" class="row1" align="center">
<input type="checkbox" name="check[]" value="{$subject_list['id']}" />
</td>
{/if}
</tr>
{/Des::while}
{if {$NO_SUBJECTS} == 0}
<tr>
<td width="98%" colspan="{$colspan}" class="row1" align="center">
{$lang['No_thread_forum']}</td>
</tr>
{/if}
</table>
{template}options_mod{/template}
</form>
<table align="center" border="0" width="98%" cellspacing="0" style="border-collapse: collapse">
<tr>
<td align="right">
{template}add_subject_link{/template}
</td>
<td align="left">
{if {$pager}}
<?php echo $PowerBB->pager->show();?>
{/if}
</td>
</tr>
</table>
<table class="border" border="0" cellspacing="1" width="98%" align="center">
<tr>
<td width="40%" class="thead">{$lang['Display_Options']}</td>
<td width="30%" class="thead">{$lang['online_naw']}: {$online_number}
({$MemberNumber}
{$lang['Member_and']}
{$GuestNumber}
{$lang['Guest_']})</td>
<td width="20%" class="thead">{$lang['moderators_forum']}</td>
</tr>
<tr>
<td width="40%" class="row1">
<div align="right">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td>
<form action="index.php?page=forum" method="get">
<input type="hidden" name="page" value="forum" />
<input type="hidden" name="show" value="1" />
<input type="hidden" name="order" value="1" />
<input type="hidden" name="id" value="{$SECTION_ID}" />
<div>
<label>{$lang['sort_view']}</label></div>
<select name="sort">
<option value="desc" selected="selected">{$lang['sort_desc']}</option>
<option value="asc">{$lang['sort_asc']}</option>
</select>
<input type="submit" value="{$lang['Count']}" name="submit" />
</form></td>
<td>
<form action="index.php?page=forum" method="get">
<input type="hidden" name="page" value="forum" />
<input type="hidden" name="show" value="1" />
<input type="hidden" name="orderby" value="1" />
<input type="hidden" name="id" value="{$SECTION_ID}" />
<div>
<label>{$lang['Sort_by']}</label></div>
<select name="sort">
<option value="reply_number">{$lang['sort_reply_number']}</option>
<option value="visitor">{$lang['sort_visitor']}</option>
<option value="rating">{$lang['sort_rating']}</option>
<option value="writer">{$lang['sort_writer']}</option>
<option value="title">{$lang['sort_title']}</option>
<option value="write_time" selected="selected">{$lang['sort_Last_Post']}</option>
</select>
<input type="submit" value="{$lang['Count']}" name="submit" />
</form></td>
</tr>
</table>
</div>
</td>
<td width="30%" class="row1">{template}forum_online_table{/template}</td>
<td width="20%" class="row1">
{template}forum_moderator_table{/template}
</td>
</tr>
</table>
<table class="border" align="center" border="0" cellspacing="1" width="98%">
<tr>
<td class="row2" align="right" width="70%">
<div align="center">
<table border="0" width="98%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td>
<img title="{$lang['newPosts']}"
src="{$image_path}/dot_newfolder.gif"
alt="{$lang['newPosts']}" border="0" /></td>
<td class="smallfont">{$lang['newPosts']}</td>
<td>
<img title="{$lang['no_newPosts']}"
src="{$image_path}/dot_nonewfolder.gif"
alt="{$lang['no_newPosts']}" border="0" /></td>
<td class="smallfont">{$lang['no_newPosts']}</td>
<td class="smallfont" width="65%"> </td>
</tr>
<tr>
<td>
<img title="{$lang['s_delete']}"
src="{$image_path}/dot_trash.gif"
alt="{$lang['s_delete']}" border="0" /></td>
<td class="smallfont">{$lang['s_delete']}</td>
<td>
<img title="{$lang['dot_hotfolder']}"
src="{$image_path}/dot_hotfolder.gif"
alt="{$lang['dot_hotfolder']}" border="0" /></td>
<td class="smallfont">{$lang['Hot_subject']} </td>
<td class="smallfont"> </td>
</tr>
<tr>
<td>
<img title="{$lang['dot_poll']}"
src="{$image_path}/dot_poll.gif"
alt="{$lang['dot_poll']}" border="0" /></td>
<td class="smallfont">{$lang['dot_poll']}</td>
<td>
<img title="{$lang['dot_newposts']}"
src="{$image_path}/dot_newposts.gif"
alt="{$lang['dot_newposts']}" border="0" /></td>
<td class="smallfont">{$lang['dot_newposts']}</td>
<td class="smallfont"> </td>
</tr>
<tr>
<td>
<img title="{$lang['su_close']}"
src="{$image_path}/dot_lockfolder.gif"
alt="{$lang['su_close']}" border="0" /></td>
<td class="smallfont">{$lang['su_close']}</td>
<td>
<img title="{$lang['your_subject_personal']}"
alt="" src="{$image_path}/dot_folder.gif" border="0" /></td>
<td class="smallfont">{$lang['your_subject_personal']}</td>
<td class="smallfont" align="left">
{if {$_CONF['info_row']['active_rss']} == '1'}
{$lang['rss_section']} :<a href="index.php?page=rss§ion=1&id={$SECTION_ID}">
<img border="0" alt="" src="{$image_path}/rss.gif"
title="{$lang['rss_section']}" /></a>{/if}</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<!--بداية كود افضل كاتب و اكثر عضو ردودا في منتدى معين-->
<style>
@font-face {
font-family: "JF";
src: url('fonts/JF-Flat-regular.eot');
src: url('fonts/JF-Flat-regular.eot?#iefix') format('embedded-opentype'),
url('fonts/JF-Flat-regular.svg#JF Flat Regular') format('svg'),
url('fonts/JF-Flat-regular.woff') format('woff'),
url('fonts/JF-Flat-regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
.topsubjstat{
font-family: JF;
font-size: 16px !important;
color: #16a085;
padding: 15px;
padding-right: 30px;
}
.numrsstat{
font-family: JF;
font-weight: normal;
font-size: 10px;
color: #FFF;
background-color: #16a085;
border-radius: 2px;
margin-right: 10px;
padding: 1pt 4pt;
}
.User-Picture-forum-Home { width: 30px; height: 30px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 30px; display: inline-block; vertical-align: middle; }
</style>
<table border="0" width="98%" cellpadding="0" style="border-collapse: collapse" align="center" class="dkpfull">
<tr>
<td class="row4 topsubjstat dkp">أكثر عضو ردوداً</td>
<td class="row4 topsubjstat dkp">أفضل كاتب</td>
<td class="row4 topsubjstat dkp">آخر رد</td>
<td class="row4 topsubjstat dkp">رد أكثر إعجاب</td>
</tr>
<tr>
<td class="row1 v-align-t" style="width: 27%;">
<table border="0" width="100%">
<?php
$SECTION_ID = $PowerBB->_CONF['template']['SECTION_ID'];
$TopMemberSubject_query = $PowerBB->DB->sql_query("SELECT COUNT(writer), writer FROM " . $PowerBB->table['reply'] . " WHERE section = '$SECTION_ID' GROUP BY writer ORDER BY COUNT(writer) DESC LIMIT 5 ");
while ($TopMemberSubject = $PowerBB->DB->sql_fetch_array($TopMemberSubject_query))
{
if ($TopMemberSubject)
{
if ($TopMemberSubject['writer'] != 'Guest'
and $TopMemberSubject['writer'] != '')
{
$user_name = $TopMemberSubject['writer'];
$GetSubjectNumber = $PowerBB->DB->sql_num_rows($PowerBB->DB->sql_query("SELECT ID FROM " . $PowerBB->table['reply'] . " WHERE writer = '$user_name' and section = '$SECTION_ID'"));
if ($GetSubjectNumber > 0)
{
?>
<tr>
<td class="v-align-t">
<?php
$MemberArr = array();
$MemberArr['where'] = array('username',$user_name);
$member = $PowerBB->core->GetInfo($MemberArr,'member');
?>
<ul class="PBBList_reset">
<li class="Photo_lastPoster pkr-b" style="display:inline-block; margin-top:-3px; padding:2px">
<a title="<?php echo $TopMemberSubject['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php
if ($member['avater_path'] != '')
{
?>
<img class="User-Picture-forum-Home" src="<?php echo $member['avater_path']; ?>" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $TopMemberSubject['writer']; ?>">
<?php
}
else
{
?>
<img class="User-Picture-forum-Home" src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $TopMemberSubject['writer']; ?>">
<?php
}
?>
</a>
</li>
<li style="display:inline-block;">
<a title="<?php echo $TopMemberSubject['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php echo $TopMemberSubject['writer']; ?>
</a>
</li>
<li style="display:inline-block;" class="numrs"> <span class="subject_num numrsstat pkr-b"><?php echo $GetSubjectNumber; ?> رد</span></li>
</ul>
</td>
</tr>
<?php
}
}
}
}
?>
</table>
</td>
<td class="row1 v-align-t" style="width: 27%;">
<table border="0" width="100%">
<?php
$SECTION_ID = $PowerBB->_CONF['template']['SECTION_ID'];
$TopMemberSubject_query = $PowerBB->DB->sql_query("SELECT COUNT(writer), writer FROM " . $PowerBB->table['subject'] . " WHERE section = '$SECTION_ID' GROUP BY writer ORDER BY COUNT(writer) DESC LIMIT 5 ");
while ($TopMemberSubject = $PowerBB->DB->sql_fetch_array($TopMemberSubject_query))
{
if ($TopMemberSubject)
{
if ($TopMemberSubject['writer'] != 'Guest'
or $TopMemberSubject['writer'] != '')
{
$user_name = $TopMemberSubject['writer'];
$GetSubjectNumber = $PowerBB->DB->sql_num_rows($PowerBB->DB->sql_query("SELECT ID FROM " . $PowerBB->table['subject'] . " WHERE writer = '$user_name' and section = '$SECTION_ID'"));
if ($GetSubjectNumber > 0)
{
?>
<tr>
<td class="v-align-t" style="width: 30%;">
<?php
$MemberArr = array();
$MemberArr['where'] = array('username',$user_name);
$member = $PowerBB->core->GetInfo($MemberArr,'member');
?>
<ul class="PBBList_reset">
<li class="Photo_lastPoster pkr-b" style="display:inline-block; margin-top:-3px; padding:2px;">
<a title="<?php echo $TopMemberSubject['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php
if ($member['avater_path'] != '')
{
?>
<img class="User-Picture-forum-Home" src="<?php echo $member['avater_path']; ?>" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $TopMemberSubject['writer']; ?>">
<?php
}
else
{
?>
<img class="User-Picture-forum-Home" src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $TopMemberSubject['writer']; ?>">
<?php
}
?>
</a>
</li>
<li style="display:inline-block;">
<a title="<?php echo $TopMemberSubject['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php echo $TopMemberSubject['writer']; ?>
</a>
</li>
<li style="display:inline-block;" class="numrs"> <span class="subject_num numrsstat pkr-b"><?php echo $GetSubjectNumber; ?> موضوع</span></li>
</ul>
</td>
</tr>
<?php
}
}
}
}
?>
</table>
</td>
<td class="row1 v-align-t">
<?php
$LastReplyArr = array();
$LastReplyArr['order'] = array();
$LastReplyArr['order']['field'] = 'id';
$LastReplyArr['order']['type'] = 'DESC';
$LastReplyArr['limit'] = '1';
$LastReplyArr['where'][1] = array();
$LastReplyArr['where'][1]['con'] = 'AND';
$LastReplyArr['where'][1]['name'] = 'section';
$LastReplyArr['where'][1]['oper'] = '=';
$LastReplyArr['where'][1]['value'] = $PowerBB->_GET['id'];
$PowerBB->_CONF['template']['LastReply'] = $PowerBB->core->GetInfo($LastReplyArr,'reply');
if ($PowerBB->_CONF['template']['LastReply'])
{
$num = '100';
$PowerBB->_CONF['template']['LastReply']['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['LastReply']['text']);
$PowerBB->_CONF['template']['LastReply']['text'] = strip_tags($PowerBB->_CONF['template']['LastReply']['text']);
$PowerBB->_CONF['template']['LastReply']['text'] = str_replace('<br>',"",$PowerBB->_CONF['template']['LastReply']['text']);
$PowerBB->_CONF['template']['LastReply']['text'] = str_replace('',"",$PowerBB->_CONF['template']['LastReply']['text']);
$PowerBB->_CONF['template']['LastReply']['text'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['LastReply']['text']);
$PowerBB->_CONF['template']['LastReply']['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['LastReply']['title']);
$PowerBB->_CONF['template']['LastReply']['text'] = $PowerBB->Powerparse->_wordwrap($PowerBB->_CONF['template']['LastReply']['text'],$num);
$PowerBB->_CONF['template']['LastReply']['title'] = strip_tags($PowerBB->_CONF['template']['LastReply']['title']);
?>
<?php
$user_name = $PowerBB->_CONF['template']['LastReply']['writer'];
$MemberArr = array();
$MemberArr['where'] = array('username',$user_name);
$member = $PowerBB->core->GetInfo($MemberArr,'member');
?>
<ul class="PBBList_reset">
<li class="Photo_lastPoster pkr-b" style="display:inline-block; margin-top:-3px; padding:2px;">
<a title="<?php echo $PowerBB->_CONF['template']['LastReply']['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php
if ($member['avater_path'] != '')
{
?>
<img class="User-Picture-forum-Home" src="<?php echo $member['avater_path']; ?>" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $PowerBB->_CONF['template']['LastReply']['writer']; ?>">
<?php
}
else
{
?>
<img class="User-Picture-forum-Home" src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $PowerBB->_CONF['template']['LastReply']['writer']; ?>">
<?php
}
?>
</a>
<li style="display:inline-block;">
<a title="<?php echo $PowerBB->_CONF['template']['LastReply']['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php echo $PowerBB->_CONF['template']['LastReply']['writer']; ?>
</a>
</li>
</li>
</li><li style="position:relative; margin-top: 0px; display:inline-block;">
<?php echo $PowerBB->_CONF['template']['LastReply']['title']."".$PowerBB->_CONF['template']['LastReply']['text']; ?>
</li>
</ul>
<ul class="PBBList_reset">
<li style="display:inline-block; width: auto;">
<b><font size="4">
<a title="اقرأ المزيد .." href="index.php?page=post&show=1&id=<?php echo $PowerBB->_CONF['template']['LastReply']['id']; ?>">
...
</a>
</font></b>
<i class="IconNewsTime fa fa-history pkr-c"></i>
<span class="last_time_ago"><?php echo $PowerBB->functions->time_ago($PowerBB->_CONF['template']['LastReply']['write_time']); ?></span>
</li>
</ul>
<?php
}
?>
</td>
{if {$_CONF['info_row']['post_like_on_off']}}
<td class="row1 v-align-t">
<?php
$SECTION_ID = $PowerBB->_CONF['template']['SECTION_ID'];
$likeReply_query = $PowerBB->DB->sql_query("SELECT COUNT(likes), post_id,likes FROM " . $PowerBB->prefix."liked" . " GROUP BY post_id ORDER BY COUNT(likes) DESC");
while ($ToplikeReply_query = $PowerBB->DB->sql_fetch_array($likeReply_query))
{
$post_id = $ToplikeReply_query['post_id'];
$reply_query = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['reply'] . " WHERE section = '$SECTION_ID' and id = '$post_id' ");
$LastlikeReplyArr = $PowerBB->DB->sql_fetch_array($reply_query);
if ($LastlikeReplyArr)
{
$num = '100';
$LastlikeReplyArr['text'] = $PowerBB->Powerparse->replace($LastlikeReplyArr['text']);
$LastlikeReplyArr['text'] = strip_tags($LastlikeReplyArr['text']);
$LastlikeReplyArr['text'] = htmlspecialchars($LastlikeReplyArr['text']);
$LastlikeReplyArr['title'] = htmlspecialchars($LastlikeReplyArr['title']);
$LastlikeReplyArr['text'] = $PowerBB->Powerparse->censor_words($LastlikeReplyArr['text']);
$LastlikeReplyArr['title'] = $PowerBB->Powerparse->censor_words($LastlikeReplyArr['title']);
$LastlikeReplyArr['text'] = $PowerBB->Powerparse->_wordwrap($LastlikeReplyArr['text'],$num);
?>
<?php
$user_name = $LastlikeReplyArr['writer'];
$MemberArr = array();
$MemberArr['where'] = array('username',$user_name);
$member = $PowerBB->core->GetInfo($MemberArr,'member');
?>
<ul class="PBBList_reset">
<li class="Photo_lastPoster pkr-b" style="display:inline-block; margin-top:-3px; padding:2px; ">
<a title="<?php echo $LastlikeReplyArr['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php
if ($member['avater_path'] != '')
{
?>
<img class="User-Picture-forum-Home" src="<?php echo $member['avater_path']; ?>" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $LastlikeReplyArr['writer']; ?>">
<?php
}
else
{
?>
<img class="User-Picture-forum-Home" src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" width="32" height="32" style="width: 32px; height: 32px;" class="brd0" alt="<?php echo $LastlikeReplyArr['writer']; ?>">
<?php
}
?>
</a>
</li>
<li style="display:inline-block;">
<a title="<?php echo $LastlikeReplyArr['writer']; ?>" href="index.php?page=profile&show=1&id=<?php echo $member['id']; ?>">
<?php echo $LastlikeReplyArr['writer']; ?>
</a>
</li>
<li style="position:relative; margin-top: 0px; display:inline-block;"><?php echo $LastlikeReplyArr['title']."".$LastlikeReplyArr['text']; ?>
</li>
</ul>
<ul class="PBBList_reset">
<li style="display:inline-block; width: auto;">
<b><font size="4">
<a title="اقرأ المزيد .." href="index.php?page=post&show=1&id=<?php echo $LastlikeReplyArr['id']; ?>">
...
</a>
</font></b>
<b><font size="3" style=" font-family: JF; font-size: 16px; font-weight: normal; color: #f44336; "><?php echo $ToplikeReply_query['likes']; ?></font></b> <img border="0" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAADGklEQVRoQ+1ZUW7aQBCdsUOkCqPmBqUnKEjAb13If8gJ4pygzQlCThB6gpAThPwX6v5CJOgJmtwgFUSVcL1TrcGOcYztdQzYFf6E9ex782ZmZ8cIGX8w4/hhR2DbCu4UyIQCf9RS0ZRzRwSoIlARAEtz4KQvCHTzpnGN+vgxCiFSSwdPcu4EAJrz9agu7I0J8B6BdNk0bt/o4/swe4EhZAGXcueAqIUZmvOhTp4ZZ6uIWMCl3KWIPZkZF0FEVhJ4atSajOgKEQ8igV8sIqJHkOi48O3OVsf6Z3JYUYHhTRx7EuJpvjfo+uHwJTCtVzVAvBIB/mIt0anSH3b470nbc+/1ggD3PAHcvAq8rQayT1aEk/Q9CXsIcOxVYokAj/m/Um4kKvMqcFY4cQKCYRhkb48ZZXdOLBGYNqodAOTVIcUPXSu9oVNUHALzUrn/K8XIHWiyOXtvq+AQmNYrXwClyywQAGJnSv+ubYWnDXjSqHUR4CgLBAjgttAbWIfgswKN6uj5hE07DRorvWHZQ6BGaYftxqf0BpbzXQpknUC9NgaED1lQgYh+FPpDqwH8j5I4if5nU/K5+ixHAd7qTuXcPQK+3RSOOPsQ0G/FNIp2y77USkzqtRYinMcxvKl3iOCi0B+07P2WCKRdBa/3l5LYZpTqlsLVQvgq4LQV9aqOiB83FRZR9nGXTvd63xtZ2kLJL3QCFeB/TtVqCWQcRfHO2teYVFb04dhvn8CpRCJ32deyc9V8YQKWEts84ELA+1YhP5ZbIREBfGQCthKE0N7ISR0RvBABO7FJBn1dJHi1AaSmdygWlEbC0+n5uHG/m3jrTfATGGmrqs0qEsIEuKHFcLad1AiG33EVc6ZFHQ6HHmRRK18ibYdPexB1f+Ec8K1Q/MCTsCMcUgQPwKgpGjJeDLFCyGtkMTZvAeLnSN4j+ppnRitOyKyFgNMEHlZUZBJX450vEYIHkpgmUmXCHJKIAt5N/C5G/CKisFk7Ca8nlsRB3llMuq3vA3vM0KJ8LgrzdqxeKI7RTb6zlhDaERDwwE4BAWetZWnmFfgHIBJeQOcnWMYAAAAASUVORK5CYII=" width="24" height="24">
</li>
</ul>
<?php
break;
}
}
?>
</td>
{/if}
</tr>
<tr>
<td colspan="4">
</td>
</tr>
</table>
<!--نهاية كود افضل كاتب و اكثر عضو ردودا في منتدى معين-->
@font-face {
font-family: "JF";
src: url('fonts/JF-Flat-regular.eot');
src: url('fonts/JF-Flat-regular.eot?#iefix') format('embedded-opentype'),
url('fonts/JF-Flat-regular.svg#JF Flat Regular') format('svg'),
url('fonts/JF-Flat-regular.woff') format('woff'),
url('fonts/JF-Flat-regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
.dkp {
border-bottom: 2px solid #eee;
padding: 5px 0;
position: relative;
font-family: tahoma;
font-size: 12px!important;
font-weight: 500;
color: #044f67;
}
.dkp:after {
content: "";
position: absolute;
bottom: -2px;
right: 0;
width: 50%;
height: 2px;
background: #02ACA9;
}
.dkpfull {
background-color: #fff;
box-shadow: 0px 1px 3px rgba(0,0,0,0.13);
margin: 10px 0;
padding: 10px;
width: 99%;
}