phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: Michael Totschnig <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/modules class.module_administration.inc.php,1.2,1.3 class.module_html.inc.php,1.2,1.3class.module_lang_block.inc.php,1.2,1.3 class.module_toc.inc.php,1.2,1.3
Date: Fri, 30 May 2003 00:01:45 -0400

Update of /cvsroot/phpgroupware/sitemgr/modules
In directory subversions:/tmp/cvs-serv4975/modules

Modified Files:
        class.module_administration.inc.php class.module_html.inc.php 
        class.module_lang_block.inc.php class.module_toc.inc.php 
Log Message:
make sitemgr capable of handling versions


Index: class.module_administration.inc.php
===================================================================
RCS file: 
/cvsroot/phpgroupware/sitemgr/modules/class.module_administration.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.module_administration.inc.php 3 May 2003 21:08:11 -0000       1.2
--- class.module_administration.inc.php 30 May 2003 04:01:43 -0000      1.3
***************
*** 13,17 ****
        function get_content(&$arguments,$properties)
        {
!                       return 
'&nbsp;&nbsp;<strong><big>&middot;</big></strong><a 
href="'.phpgw_link('/sitemgr/index.php').'">' . lang('Content Manager') . 
'</a>';
        }
  
--- 13,27 ----
        function get_content(&$arguments,$properties)
        {
!               $content = '<form name="modeselect" method="post">' .
!                       '<select onChange="location.href=this.value" 
name="mode">';
!               foreach(array('Production','Draft','Edit') as $mode)
!               {
!                       $selected = ($GLOBALS['sitemgr_info']['mode'] == $mode) 
? ' selected="selected"' : '';
!                       $content .=     '<option value="' 
.$this->link(array('mode'=>$mode)) .'"' . $selected  . '>' . lang($mode . ' 
mode') . '</option>';
!               }
!               $content .= '</select></form>' .
!                       '&nbsp;&nbsp;<strong><big>&middot;</big></strong><a 
href="' . phpgw_link('/sitemgr/index.php') .
!                       '">' . lang('Content Manager') . '</a>';
!               return $content;
        }
  

Index: class.module_html.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/modules/class.module_html.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.module_html.inc.php   3 May 2003 21:08:11 -0000       1.2
--- class.module_html.inc.php   30 May 2003 04:01:43 -0000      1.3
***************
*** 8,12 ****
                                'htmlcontent' => array(
                                        'type' => 'textarea', 
!                                       'label' => lang('Enter the page content 
here'), 
                                        'i18n' => True,
                                        'params' => Array('cols' => 50, 'rows' 
=> 15)
--- 8,12 ----
                                'htmlcontent' => array(
                                        'type' => 'textarea', 
!                                       'label' => lang('Enter the block 
content here'), 
                                        'i18n' => True,
                                        'params' => Array('cols' => 50, 'rows' 
=> 15)

Index: class.module_lang_block.inc.php
===================================================================
RCS file: 
/cvsroot/phpgroupware/sitemgr/modules/class.module_lang_block.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.module_lang_block.inc.php     3 May 2003 21:08:11 -0000       1.2
--- class.module_lang_block.inc.php     30 May 2003 04:01:43 -0000      1.3
***************
*** 16,20 ****
                        {
                                $content = '<form name="langselect" 
method="post">';
!                               $content .= '<select 
onChange="this.form.submit()" name="language">';
                                foreach 
($GLOBALS['sitemgr_info']['sitelanguages'] as $lang)
                                {
--- 16,20 ----
                        {
                                $content = '<form name="langselect" 
method="post">';
!                               $content .= '<select 
onChange="location.href=this.value" name="language">';
                                foreach 
($GLOBALS['sitemgr_info']['sitelanguages'] as $lang)
                                {
***************
*** 24,28 ****
                                                $selected = 
'selected="selected" ';
                                        }
!                                       $content .= '<option ' . $selected . 
'value="' . $lang . '">'. $GLOBALS['Common_BO']->getlangname($lang) . 
'</option>';
                                }
                                $content .= '</select>';
--- 24,28 ----
                                                $selected = 
'selected="selected" ';
                                        }
!                                       $content .= '<option ' . $selected . 
'value="' . $this->link(array('select'=>$lang)) . '">'. 
$GLOBALS['Common_BO']->getlangname($lang) . '</option>';
                                }
                                $content .= '</select>';

Index: class.module_toc.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/modules/class.module_toc.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.module_toc.inc.php    3 May 2003 21:08:11 -0000       1.2
--- class.module_toc.inc.php    30 May 2003 04:01:43 -0000      1.3
***************
*** 24,28 ****
                                        {
                                                $content .= '<b><a 
href="'.sitemgr_link2('/index.php','toc=1').'">' . lang('Up to table of 
contents') . '</a></b>';
!                                               if ($cat->depth)
                                                {
                                                        $content .= ' | <b><a 
href="'.sitemgr_link2('/index.php','category_id='.$cat->parent).'">' . lang('Up 
to parent') . '</a></b>';
--- 24,28 ----
                                        {
                                                $content .= '<b><a 
href="'.sitemgr_link2('/index.php','toc=1').'">' . lang('Up to table of 
contents') . '</a></b>';
!                                               if ($cat->depth > 1)
                                                {
                                                        $content .= ' | <b><a 
href="'.sitemgr_link2('/index.php','category_id='.$cat->parent).'">' . lang('Up 
to parent') . '</a></b>';





reply via email to

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