From: x99bachelart Date: Tue, 9 Sep 2003 15:22:23 +0000 (+0000) Subject: custom css classes X-Git-Tag: 1.8~421 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7ce9f53d1268b65c6ae5ac350bc08fe0b11e4c08;p=banana.git custom css classes --- diff --git a/include/spool.inc.php b/include/spool.inc.php index 522ab47..7fee8b6 100644 --- a/include/spool.inc.php +++ b/include/spool.inc.php @@ -256,6 +256,7 @@ class spool { function disp_desc($_id,$_index="",$_first=0,$_last=0,$_ref="", $_pfx_node="", $_pfx_end="",$_head=true) { + global $css; $debug = false; $spfx_f = 'o'; $spfx_n = '*'; @@ -269,18 +270,18 @@ class spool { if (!sizeof($this->overview[$_id]->children) && ($_index<=$_last) && ($_index>=$_first)) { - echo '\n"; - echo "" + echo '\n"; + echo "" .formatSpoolHeader("date",$this->overview[$_id]->date,$_id, $this->group,($_index==$_ref),$this->overview[$_id]->isread) ." \n"; - echo "
" + echo "
" .$_pfx_node.($_head?$spfx_f:$spfx_s)."
" .formatSpoolHeader("subject",$this->overview[$_id]->subject,$_id, $this->group,($_index==$_ref),$this->overview[$_id]->isread) .($debug?" $_id $_index ". $this->overview[$_id]->desc." ".$this->overview[$_id]->descunread." ":"")." \n"; - echo "" + echo "" .formatSpoolHeader("from",$this->overview[$_id]->from,$_id, $this->group,($_index==$_ref),$this->overview[$_id]->isread) ." \n"; @@ -288,18 +289,18 @@ class spool { } $children = $this->overview[$_id]->children; if (($_index<=$_last) && ($_index>=$_first)) { - echo '\n"; - echo "" + echo '\n"; + echo "" .formatSpoolHeader("date",$this->overview[$_id]->date,$_id, $this->group,($_index==$_ref),$this->overview[$_id]->isread) ." \n"; - echo "
" + echo "
" .$_pfx_node.$spfx_n."
" .formatSpoolHeader("subject",$this->overview[$_id]->subject,$_id, $this->group,($_index==$_ref),$this->overview[$_id]->isread) .($debug?" $_id $_index ". $this->overview[$_id]->desc." ".$this->overview[$_id]->descunread." ":"")." \n"; - echo "" + echo "" .formatSpoolHeader("from",$this->overview[$_id]->from,$_id, $this->group,($_index==$_ref),$this->overview[$_id]->isread) ." \n"; @@ -327,6 +328,7 @@ class spool { */ function disp($_first=0,$_last=0,$_ref="") { + global $css; $index=1; if (sizeof($this->overview)) { foreach ($this->overview as $id=>$msg) { @@ -336,7 +338,7 @@ class spool { } } } else { - echo "\n"; + echo "\n"; echo "\t\n"; echo "\t\tNo post in this newsgroup\n"; echo "\t\n"; diff --git a/index.php b/index.php index 0ea5aca..ea3a699 100644 --- a/index.php +++ b/index.php @@ -34,13 +34,13 @@ $groups = new groups($nntp); ?> -
+
">
overview)) { - echo '

'; + echo "

"; echo "\n".$locale['error']['nogroup']."\n"; echo "

\n"; require("include/footer.inc.php"); @@ -50,7 +50,7 @@ if (!sizeof($groups->overview)) { displayshortcuts(); ?> -" cellspacing="0" cellpadding="2" summary=""> " > - " > + - - -
@@ -73,17 +73,17 @@ foreach ($groups->overview as $g => $d) { $groupinfo = $nntp->group($g); $newarts = $nntp->newnews($profile['lastnews'],$g); ?> -
+
"> + "> + "> $g";?> + ">