Parent Directory | Revision Log
display last n lines from log file
1 | dpavlin | 1.1 | <?php |
2 | |||
3 | class Bg_Color { | ||
4 | |||
5 | var $col1 = "#f0f0f0"; | ||
6 | var $col2 = ""; | ||
7 | //var $curr = $this->col1; | ||
8 | var $curr; | ||
9 | |||
10 | function colors($col1,$col2="") { | ||
11 | $this->col1 = $col1; | ||
12 | $this->col2 = $col2; | ||
13 | } | ||
14 | |||
15 | function bgcolor() { | ||
16 | if ($this->curr == $this->col1) { | ||
17 | $this->curr = $this->col2; | ||
18 | } else { | ||
19 | $this->curr = $this->col1; | ||
20 | } | ||
21 | if ($this->curr != "") { | ||
22 | return ' bgcolor="'.$this->curr.'"'; | ||
23 | } | ||
24 | } | ||
25 | } | ||
26 | |||
27 | ?> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |