Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv20553/phpslash-ft/class
Modified Files:
Block_i.class Story.class
Log Message:
alternating bars in story and block lists
Index: Block_i.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/Block_i.class,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Block_i.class 7 Mar 2002 21:07:20 -0000 1.16
--- Block_i.class 20 Mar 2002 22:16:42 -0000 1.17
***************
*** 265,268 ****
--- 265,269 ----
$this->templ->set_block("listblock", "row", "rows");
+ $this->templ->set_block("listblock", "row2", "rows2");
while ($this->db->next_record()) {
***************
*** 282,286 ****
'TYPE' => $this->db->f("type")
));
! $this->templ->parse("rows","row","true");
}
--- 283,292 ----
'TYPE' => $this->db->f("type")
));
! if ($i%2 == 0) {
! $this->templ->parse("rows","row","true");
! } else {
! $this->templ->parse("rows","row2","true");
! }
! $i++;
}
Index: Story.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/Story.class,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** Story.class 13 Mar 2002 20:05:18 -0000 1.30
--- Story.class 20 Mar 2002 22:16:42 -0000 1.31
***************
*** 871,874 ****
--- 871,876 ----
$count = 0;
$this->template->set_block("liststory", "row", "rows");
+ $this->template->set_block("liststory", "row2", "rows2");
+
$author = new Author;
***************
*** 973,978 ****
'DATE' => $this->db->Record["df"]
));
! $this->template->parse("rows","row","true");
! }
}
--- 975,985 ----
'DATE' => $this->db->Record["df"]
));
! if ($i%2 == 0) {
! $this->template->parse("rows","row","true");
! } else {
! $this->template->parse("rows","row2","true");
! }
! $i++;
! }
}
|