phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: sitemgr/inc class.contributor_ManagePage_UI.inc.


From: Patrick Walsh <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/inc class.contributor_ManagePage_UI.inc.php,1.3,1.4
Date: Tue, 03 Sep 2002 23:45:26 -0400

Update of /cvsroot/phpgroupware/sitemgr/inc
In directory subversions:/tmp/cvs-serv4354

Modified Files:
        class.contributor_ManagePage_UI.inc.php 
Log Message:
austin's hide_page additions


Index: class.contributor_ManagePage_UI.inc.php
===================================================================
RCS file: 
/cvsroot/phpgroupware/sitemgr/inc/class.contributor_ManagePage_UI.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** class.contributor_ManagePage_UI.inc.php     30 Aug 2002 09:45:25 -0000      
1.3
--- class.contributor_ManagePage_UI.inc.php     4 Sep 2002 03:45:23 -0000       
1.4
***************
*** 51,54 ****
--- 51,55 ----
                        global $main;
                        global $sort_order;
+                       global $hidden;
                        global $btnEditPage;
                
***************
*** 84,89 ****
                                $this->t->set_var('add_edit','Add Page');
                        }
!               
                        $trans = array("{" => "&#123;", "}" => "&#125;");
                        $this->t->set_var(array(
                                'title' =>$this->page->title,
--- 85,98 ----
                                $this->t->set_var('add_edit','Add Page');
                        }
!                       
                        $trans = array("{" => "&#123;", "}" => "&#125;");
+                       if($this->page->hidden)
+                         {
+                                 $this->t->set_var('hidden', 'CHECKED');
+                         }
+                         else
+                         {   
+                                 $this->t->set_var('hidden', '');
+                         }
                        $this->t->set_var(array(
                                'title' =>$this->page->title,
***************
*** 106,109 ****
--- 115,119 ----
                function _managePage()
                {
+                       global $hidden;
                        global $btnAddPage;
                        global $btnDelete;
***************
*** 147,150 ****
--- 157,161 ----
                                        }
                                }
+ 
                                if (!$save_msg)
                                {
***************
*** 155,158 ****
--- 166,178 ----
                                        $this->page->cat_id = $category_id;
                                        $this->page->sort_order = $sort_order;
+ 
+                                       if($hidden)
+                                       {
+                                               $this->page->hidden = 1;
+                                       }
+                                       else
+                                       {
+                                               $this->page->hidden = 0;
+                                       }
                                        $save_msg = 
$this->pagebo->savePageInfo($category_id, $this->page);
                                }





reply via email to

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