Add Expand Group option to web view

This commit is contained in:
Grégory Soutadé
2010-10-27 21:00:40 +02:00
parent dc6ec437fa
commit 13db50e271
3 changed files with 63 additions and 7 deletions

View File

@@ -27,6 +27,18 @@ class User
function GetCategory($id)
{
if ($id == "")
{
$cat["id"] = "";
$cat["forecolor"] = "black";
$cat["backcolor"] = "#3DEB3D";
$s = "background-color:" . $cat["backcolor"] . ";";
$s .= "color:" . $cat["forecolor"] . ";";
$cat["style"] = $s;
return $cat;
}
foreach($this->categories as $i => $category)
if ($category["id"] == "$id") return $category;