\n";
- $str .= "link("index.php",$params)."\" target=_parent>
\n";
- $str .= "";
+ $str .= '' . $this->root_level_value . '';
+ $str .= "\n
";
for ($i=0; $i<$maxlevel; $i++) $str .= " | ";
$str .= " |
\n";
}
@@ -213,9 +235,9 @@ class menutree {
$i=0;
while ($i<$tree[$cnt][0]-1) {
if ($levels[$i]==1)
- $str .= " | ";
+ $str .= ' | ';
else
- $str .= " | ";
+ $str .= ' | ';
$i++;
}
@@ -223,10 +245,10 @@ class menutree {
/* corner at end of subtree or t-split */
/****************************************/
if ($tree[$cnt][4]==1) {
- $str .= " | ";
+ $str .= ' | ';
$levels[$tree[$cnt][0]-1]=0;
} else {
- $str .= " | ";
+ $str .= ' | ';
$levels[$tree[$cnt][0]-1]=1;
}
@@ -236,15 +258,15 @@ class menutree {
if ($tree[$cnt+1][0]>$tree[$cnt][0]) {
if ($expand[$cnt]==0)
- $str .= "link($script,$params)."\"> | ";
+ $str .= "link($script,$params)."\"> | ";
else
- $str .= "link($script,$params)."\"> | ";
+ $str .= "link($script,$params)."\"> | ";
} else {
/*************************/
/* Tree Leaf */
/*************************/
- $str .= " | ";
+ $str .= ' | ';
}
/****************************************/
diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php
index 0c7f47dac8..cff9012e3a 100644
--- a/phpgwapi/inc/class.nextmatchs.inc.php
+++ b/phpgwapi/inc/class.nextmatchs.inc.php
@@ -300,6 +300,13 @@ class nextmatchs
return $tr_color;
}
+ // If you are using the common bgcolor="{tr_color}"
+ // This function is a little cleanier approch
+ function template_alternate_row_color(&$tpl)
+ {
+ $tpl->set_var("tr_color",$this->alternate_row_color());
+ }
+
function show_sort_order($sort,$var,$order,$program,$text,$extra="")
{
global $phpgw, $filter, $qfield, $start, $query;
diff --git a/phpgwapi/inc/class.utilities.inc.php b/phpgwapi/inc/class.utilities.inc.php
index bac277ee4c..7ea12080ab 100644
--- a/phpgwapi/inc/class.utilities.inc.php
+++ b/phpgwapi/inc/class.utilities.inc.php
@@ -30,6 +30,8 @@
} unset($d1);
// Note: We should add a way to force the developer to say which ones to use. (jengo)
+ include("/home/httpd/html/phpgroupware/phpgwapi/inc/class.sbox.inc.php");
+
class utilities
{
var $rssparser;
@@ -41,13 +43,13 @@
function utilities_()
{
- $phpgw->rssparser = CreateObject("phpgwapi.rssparser");
- $phpgw->clientsniffer = CreateObject("phpgwapi.clientsniffer");
- $phpgw->http = CreateObject("phpgwapi.http");
- $phpgw->matrixview = CreateObject("phpgwapi.matrixview");
- $phpgw->menutree = CreateObject("phpgwapi.menutree");
- $phpgw->sbox = CreateObject("phpgwapi.sbox");
- $phpgw->sbox = CreateObject("phpgwapi.portalbox");
+// $phpgw->rssparser = CreateObject("phpgwapi.rssparser");
+// $phpgw->clientsniffer = CreateObject("phpgwapi.clientsniffer");
+// $phpgw->http = CreateObject("phpgwapi.http");
+ // $phpgw->matrixview = CreateObject("phpgwapi.matrixview");
+ // $phpgw->menutree = CreateObject("phpgwapi.menutree");
+ $this->sbox = new sbox;
+// $phpgw->sbox = CreateObject("phpgwapi.portalbox");
}
}
?>