Location: PHPKode > projects > L-Forum > l-forum/list.php
<?

  include "config.php";
  include "lib/init.inc";
 
  $head = str_replace("__TITLE__", $lang['title'], $design['head']);

  echo $head;

  include "themes/".$theme."/header.inc";

  include "inc/search.inc";
  
  echo "<span class=\"forum_name\">".$forum_array[$f]['name']."</span>";
?>

<table border=0 width="<? echo $design['list_width'] ?>"><tr><td>
<table border=0 width=100%><tr><td align=left><br>
<a href="new.php?f=<?echo $f?>" class=list><? echo $lang['post'] ?></a>
<? 
if(!isset($t))
   $t='t';
if($t!='l')
  echo "&nbsp;&nbsp;<a href=\"$PHP_SELF?f=$f&lng=$lng&t=$t&cmd=1\">".
  $lang['openall']."</a>";
?>
</td><td align=right><br>
<a class="list" style="font-size : 8pt" href="./last.php?f=<? echo $f ?>"><? echo $lang['last_unread'] ?></a>
<?
if($t=='l'){
   echo "<a class=\"list\" style=\"font-size : 8pt\" href=\"./list.php?f=$f&nt=t\">".
      $lang['sort_thr']."</a>";
   echo "&nbsp;";
   if($s=='d'){
      echo "<a class=\"list\" style=\"font-size : 8pt\" href=\"./list.php?f=$f&ns=a\">".
	 $lang['ascend']."</a>";
   }
   else{
      echo "<a class=\"list\" style=\"font-size : 8pt\" href=\"./list.php?f=$f&ns=d\">".
	 $lang['descend']."</a>";
   }
   echo "</td></tr><tr><td colspan=2>";
   include "inc/list_msgs.inc";
}
else{
   echo "<a class=\"list\" style=\"font-size : 8pt\" href=\"./list.php?f=$f&nt=l\">".
      $lang['sort_dat']."</a>";
   echo "&nbsp;";
   if($s=='d'){
      echo "<a class=\"list\" style=\"font-size : 8pt\" href=\"./list.php?f=$f&ns=a\">".
	 $lang['ascend']."</a>";
   }
   else{
      echo "<a class=\"list\" style=\"font-size : 8pt\" href=\"./list.php?f=$f&ns=d\">".
	 $lang['descend']."</a>";
   }  
echo "</td></tr><tr><td colspan=2>";
   include "inc/list_thr.inc";
}
?>
</td></tr>
<tr><td>
<?
$value = $t=='l'?"mpp":"tpp";
if($o>0){
   $no = $o - $forum_array[$f][$value];
   if($no<0)
      $no=0;
   echo "<a href=\"".$PHP_SELF."?f=$f&t=$t&no=$no\">".$lang['prev_m']."</a>\n";
}
?>
</td>
<td align=right>
<?
if($count-$o>$forum_array[$f][$value]){
   $no = $o + $forum_array[$f][$value];
   echo "<a href=\"".$PHP_SELF."?f=$f&t=$t&no=$no\">".$lang['next_m']."</a>\n";
}
?>
</td></tr>
<tr><td>
<?include "inc/langs.inc";?></td>
<td align=right>
<a href="./index.php"><?echo $lang['forum_list']?></a>
</td></tr></table>
</td></tr></table>
<?
include "themes/".$theme."/footer.inc";
echo $design['footer'];
?>
Return current item: L-Forum