Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/look/styles/forum/main/templates/today_subject.tpl
{template}address_bar_part1{/template}
{$lang['subject_today']}
{template}address_bar_part2{/template}
<table border="0" cellspacing="1" class="border" width="98%" align="center">
	<tr>
		<td width="30%" class="tcat small_text" align="center" colspan="2">
			{$lang['subject_title']}
		</td>
		<td width="20%" class="tcat small_text" align="center">
			{$lang['subject_writer']}
		</td>
		<td width="4%" class="tcat small_text" align="center">
			{$lang['reply_num']}
		</td>
		<td width="4%" class="tcat small_text" align="center">
			{$lang['subject_visitor']}
		</td>
		<td width="15%" class="tcat small_text" align="center">
			{$lang['write_date']}
		</td>
			<td width="25%" class="tcat small_text" align="center">
			 {$lang['forum']}
		</td>
		</tr>
 {if {$subject_today_nm} == 0}
 <tr>
 		<td width="97%" class="row1" align="center" colspan="7">
{$lang['no_subjects_today']}
		</td>
			</tr>
		{else}
	{Des::while}{subject_list}
	<tr>
		<td width="3%" class="row1" align="center">
			<img src="{$subject_list['icon']}" alt="" />
		</td>
		<td width="30%" class="row2">
<?php $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'] = $PowerBB->functions->CleanVariable($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'],'html'); ?>
<?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']); ?>
			<a href="index.php?page=topic&amp;show=1&amp;id={$subject_list['id']}{$password}">
				{$subject_list['title']}
			</a>
			{if {$subject_list['close']}}
			{$lang['subject_close']}
			{/if}
			<br />
			<font class="small">{$subject_list['subject_describe']}</font>
		</td>
		<td width="20%" class="row1" align="center">
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['writer']);?>
			<br />
			<span class="smallfont">
			{$subject_list['write_date']}
			</span>
		</td>
		<td width="4%" class="row2" align="center">
			{$subject_list['reply_number']}
		</td>
		<td width="4%" class="row1" align="center">
			{$subject_list['visitor']}
		</td>
		<td width="15%" class="row2" align="center">
			{if {$subject_list['reply_number']} <= 0}
			{$lang['no_replys']}
			{else}
{if {$subject_list['last_replier']} == ''}
{$lang['Guest_']}
{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['last_replier']);?>
{/if}
<br />
<span class="smallfont">
			{$subject_list['reply_date']}
					</span>
			{/if}
		</td>
		<td width="25%" class="row1" align="center">
<?php

      	$section_id = $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['section'];
        $GetForum = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['section'] . " WHERE id = '$section_id'");
        $Forum = @mysql_fetch_array($GetForum);
        $Forum_title = $Forum['title'];
        $Forum_id = $Forum['id'];
?>
			{if {$_CONF['info_row']['rewriterule']} == '1'}
					<a href="f<?php echo $Forum_id; ?>.html"><?php echo $Forum_title; ?></a>
					{else}
						<a href="index.php?page=forum&amp;show=1&amp;id=<?php echo $Forum_id; ?>"><?php echo $Forum_title; ?></a>
					{/if}
		</td>
	</tr>
{/Des::while}
	{/if}&nbsp;
</table>
	<table border="0" width="95%" border="0"  cellspacing="0" style="border-collapse: collapse">
	<tr>
<td align="left">{$pager}</td>
	</tr>
</table>
<br />
{template}jump_forums_list{/template}
<br />
<br />
<br />
Return current item: PBBoard