Menu

[r7]: / browsecvs / theme.php  Maximize  Restore  History

Download this file

85 lines (76 with data), 2.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/*
** Application name: phpCollab
** Last Edit page: 2003-10-23
** Path by root: ../browsecvs/theme.php
** Authors: Ceam / TY / Fullo
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: theme.php
**
** DESC: Library: cvs theme library file
**
** HISTORY:
** 2003-10-23 - added new document info
** -----------------------------------------------------------------------------
** TO-DO:
** check template usage
** check for possible updated library
** =============================================================================
*/
class thememodule
{
var $themepath;
var $bgcolor1;
var $bgcolor2;
var $bgcolor3;
var $textcolor1;
var $textcolor2;
function thememodule($dir)
{
$this->themepath = $dir;
$this->bgcolor1 = "#FFFFFF";
$this->bgcolor2 = "#E6E6E6";//"#F9DDC9";
$this->bgcolor3 = "#CCCCCC";//"#F9C9A5";
$this->textcolor1 = "#000000";
$this->textcolor2 = "#000000";
}
function opentable($width="100%", $cellpadding=0,$cellspacing=0, $bg2="", $bg1="") {
if ($bg1=="") $bg1 = $this->bgcolor1;
if ($bg2=="") $bg2 = $this->bgcolor2;
$wspan = ' width="'.$width.'"';
if ($width=="") $wspan = "";
$retval = "";
// $retval .= '<table'.$wspan.' border="0" cellspacing="1" cellpadding="0" bgcolor="'.$bg2.'" align="center"><tr><td>'."\n";
$retval .= '<table'.$wspan.' border="0" cellspacing="'.$cellspacing.'" cellpadding="'.$cellpadding.'" bgcolor="'.$bg1.'"><tr><td>'."\n";
return $retval;
}
function closetable() {
$retval = "";
$retval .= "</td></tr></table>";
// $retval .= "</td></tr></table>\n";
return $retval;
}
function header() {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>BrowseCVS</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
}
function footer() {
echo "</body>\n</html>\n";
}
}
$theme = new thememodule($themepath);
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.