phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/blocks block-Current_Sectio


From: Patrick Walsh <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/blocks block-Current_Section.php,1.1,1.2
Date: Tue, 17 Sep 2002 20:02:10 -0400

Update of /cvsroot/phpgroupware/sitemgr/sitemgr-site/blocks
In directory subversions:/tmp/cvs-serv6234

Modified Files:
        block-Current_Section.php 
Log Message:
Added the parent to the navigator


Index: block-Current_Section.php
===================================================================
RCS file: 
/cvsroot/phpgroupware/sitemgr/sitemgr-site/blocks/block-Current_Section.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** block-Current_Section.php   17 Sep 2002 23:51:58 -0000      1.1
--- block-Current_Section.php   18 Sep 2002 00:02:07 -0000      1.2
***************
*** 28,34 ****
--- 28,44 ----
                $category = 
ExecMethod('sitemgr.Categories_BO.getCategory',$cat_id);
                $title = $category->name.' Section';
+               $parent = $category->parent;
                unset($bo);
+               unset($category);
  
                $content = '';
+               if ($parent)
+               {
+                       $parentcat = 
ExecMethod('sitemgr.Categories_BO.getCategory',$parent);
+                       $content .= "\n".'<b>Parent 
Section:</b><br>&nbsp;&middot;&nbsp;<a href="'.
+                               
sitemgr_link2('/index.php','category_id='.$parent).'">'.$parentcat->name.
+                               '</a><br><br>';
+                       unset($parentcat);
+               }
                if (count($catlinks))
                {
***************
*** 40,44 ****
                        $content .= '<br>';
                }
!               if (count($pagelinks)>1)
                {
                        $content .= "\n".'<b>Pages:</b><br>';
--- 50,54 ----
                        $content .= '<br>';
                }
!               if (count($pagelinks)>1 || (count($pagelinks)>0 && $content))
                {
                        $content .= "\n".'<b>Pages:</b><br>';





reply via email to

[Prev in Thread] Current Thread [Next in Thread]