added images for categories_format
@ -46,10 +46,10 @@
|
||||
{
|
||||
switch ($type)
|
||||
{
|
||||
case 'subs': $s = " and cat_parent != '0'"; break;
|
||||
case 'mains': $s = " and cat_parent = '0'"; break;
|
||||
case 'appandmains': $s = " and cat_appname='" . $this->app_name . "' and cat_parent ='0'"; break;
|
||||
case 'appandsubs': $s = " and cat_appname='" . $this->app_name . "' and cat_parent !='0'"; break;
|
||||
case 'subs': $s = " and cat_parent != '0'"; break;
|
||||
case 'mains': $s = " and cat_parent = '0'"; break;
|
||||
case 'appandmains': $s = " and cat_appname='" . $this->app_name . "' and cat_parent ='0'"; break;
|
||||
case 'appandsubs': $s = " and cat_appname='" . $this->app_name . "' and cat_parent !='0'"; break;
|
||||
default: return False;
|
||||
}
|
||||
return $s;
|
||||
@ -64,12 +64,12 @@
|
||||
{
|
||||
switch($for)
|
||||
{
|
||||
case 'app': $w = " where cat_appname='" . $this->app_name . "'"; break;
|
||||
case 'appandmains': $w = " where cat_appname='" . $this->app_name . "' and cat_parent ='0'";
|
||||
case 'appandsubs': $w = " where cat_appname='" . $this->app_name . "' and cat_parent !='0'";
|
||||
case 'subs': $w = " where cat_parent != '0'"; break;
|
||||
case 'mains': $w = " where cat_parent = '0'"; break;
|
||||
default: return False;
|
||||
case 'app': $w = " where cat_appname='" . $this->app_name . "'"; break;
|
||||
case 'appandmains': $w = " where cat_appname='" . $this->app_name . "' and cat_parent ='0'";
|
||||
case 'appandsubs': $w = " where cat_appname='" . $this->app_name . "' and cat_parent !='0'";
|
||||
case 'subs': $w = " where cat_parent != '0'"; break;
|
||||
case 'mains': $w = " where cat_parent = '0'"; break;
|
||||
default: return False;
|
||||
|
||||
}
|
||||
$this->db->query("select count(*) from phpgw_categories $w",__LINE__,__FILE__);
|
||||
@ -263,14 +263,28 @@
|
||||
|
||||
$cats = $this->return_array($type,$start,False,$query,$sort,$order,$public);
|
||||
|
||||
$s = '<table border="0" cellpadding="0" cellspacing="0">' . "\n";
|
||||
$s = '<table border="0" cellpadding="2" cellspacing="2">' . "\n";
|
||||
|
||||
for ($i=0;$i<count($cats);$i++)
|
||||
{
|
||||
$spaceset = str_repeat($space,$cats[$i]['level']);
|
||||
|
||||
$s .= "<tr>\n";
|
||||
$s .= '<td height="25">' . $spaceset . '<a href="' . $phpgw->link($site_link,'cat_id=' . $cats[$i]['id']) . '">' . $phpgw->strip_html($cats[$i]['name']) . '</a></td>' . "\n";
|
||||
$image_set = ' ';
|
||||
|
||||
if ($cats[$i]['id'] == $selected)
|
||||
{
|
||||
$image_set = '<img src="' . PHPGW_IMAGES_DIR . '/roter_pfeil.gif">';
|
||||
}
|
||||
|
||||
if (($cats[$i]['level'] == 0) && ($cats[$i]['id'] != $selected))
|
||||
{
|
||||
$image_set = '<img src="' . PHPGW_IMAGES_DIR . '/grauer_pfeil.gif">';
|
||||
}
|
||||
|
||||
$space_set = str_repeat($space,$cats[$i]['level']);
|
||||
|
||||
$s .= '<tr>' . "\n";
|
||||
$s .= '<td width="8">' . $image_set . '</td>' . "\n";
|
||||
$s .= '<td>' . $space_set . '<a href="' . $phpgw->link($site_link,'cat_id=' . $cats[$i]['id']) . '">' . $phpgw->strip_html($cats[$i]['name']) . '</a></td>' . "\n";
|
||||
$s .= '</tr>' . "\n";
|
||||
}
|
||||
|
||||
|
BIN
phpgwapi/templates/default/images/grauer_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |
BIN
phpgwapi/templates/default/images/roter_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |
BIN
phpgwapi/templates/idsociety/images/grauer_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |
BIN
phpgwapi/templates/idsociety/images/roter_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |
BIN
phpgwapi/templates/justweb/images/grauer_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |
BIN
phpgwapi/templates/justweb/images/roter_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |
BIN
phpgwapi/templates/verdilak/images/grauer_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |
BIN
phpgwapi/templates/verdilak/images/roter_pfeil.gif
Normal file
After Width: | Height: | Size: 82 B |