<?PHP
//#
//#(ӣ)áݣ£ϣңĥƥץ졼
//#
//#̤եǤ
//#̾Σȣԣ̤ͣƱФԽ뤳Ȥޤ
//#ʤˤ$פϤ줾ץˤäǤդʸ
//#֤ޤ
//#

if(!class_exists('ETC')) {
  require_once './cmd/etc.php';
}

class DESIGN_TPC extends DESIGN {

//#
//#   ȥԥåɽإå
//#
  function topic_head() {
    print <<< HTML
<table border=0 cellpadding=2 cellspacing=0 width={$GLOBALS['CNFSTY']['bse']['width']}>

HTML;
  }
//#ޤǨ


//#
//#   ȥԥåɽեå
//#
  function topic_foot() {
    print <<< HTML
</table>

HTML;
  }
//#ޤǨ


//#
//#   ȥԥåɽ
//#
  function topic() {
    $_ = func_get_args();
    $MSG		 = array_shift($_); //# Ƶ
    $MSG_l		 = array_shift($_); //# ǽƵ
    $type		 = array_shift($_); //# 
    $r_no		 = array_shift($_); //# ֹ
    $r_genre_icon	 = array_shift($_); //# 륢
    $r_clip		 = array_shift($_); //# åץ
    $r_new		 = array_shift($_); //# Σţץ
    $r_read		 = array_shift($_); //# ̤ɥ
    $master = ETC::name_matching($MSG['name'],$GLOBALS['CNF']['master']['name'],$GLOBALS['CNF']['master']['mode']) ? 'Master' : '';
    $master_l = ETC::name_matching($MSG_l['name'],$GLOBALS['CNF']['master']['name'],$GLOBALS['CNF']['master']['mode']) ? 'Master' : '';
    
    print <<< HTML
 <tr bgcolor="{$GLOBALS['CNFSTY']['tpc']['table']['back'][$type]}">
  <td width="50%" rowspan=2 colspan=1 nowrap>
   <a class=TopicSubject href="{$GLOBALS['CNF']['place']['this']['path']}?cmd=ntr&amp;tree={$MSG['no']}&amp;id={$GLOBALS['FORM']['id']}"><b>{$r_no}{$MSG['subject']}</b></a></td>
  <td nowrap>{$r_genre_icon}</td>
  <td nowrap>{$r_clip}</td>
    <td nowrap><span class=Topic{$master}Name>{$MSG['name']}</span></td>
  <td nowrap><span class=TopicDate>{$MSG['date']}</font></td>
  <td nowrap>{$r_new}</td>
  <td align="right" nowrap><span class=TopicReply title="쥹ο">{$MSG['reply']}</span></td>
  <td nowrap>{$r_read}</td>
 </tr>
 <tr bgcolor="{$GLOBALS['CNFSTY']['tpc']['table']['back'][$type]}">
  <td colspan=2 nowrap></td>
  <td nowrap><span class=Topic{$master_l}Latest>{$MSG['name']}</span></td>
  <td colspan=4 nowrap><span class=TopicLatest>{$MSG_l['date']}</span></td>
 </tr>

HTML;
  }
//#ޤǨ

}

//1;

//# $Id: tpc.txt,v 1.6 2006/03/09 09:19:39 susumu Exp $;
?>