source: trunk/news_admin/inc/hook_sidebox_menu.inc.php @ 45

Revision 45, 2.4 KB checked in by niltonneto, 17 years ago (diff)

Implementação do FCKEDITOR na edição de artigos no news_admin, para permitir texto rico.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2        /**************************************************************************\
3        * eGroupWare - Webpage News Admin                                          *
4        * http://www.egroupware.org                                                *
5        * --------------------------------------------                             *
6        *  This program is free software; you can redistribute it and/or modify it *
7        *  under the terms of the GNU General Public License as published by the   *
8        *  Free Software Foundation; either version 2 of the License, or (at your  *
9        *  option) any later version.                                              *
10        * --------------------------------------------                             *
11        * This program was sponsered by Golden Glair productions                   *
12        * http://www.goldenglair.com                                               *
13        \**************************************************************************/
14
15  /* $Id$ */
16{
17
18 /*
19        This hookfile is for generating an app-specific side menu used in the idots
20        template set.
21
22        $menu_title speaks for itself
23        $file is the array with link to app functions
24
25        display_sidebox can be called as much as you like
26 */
27
28$menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] . ' '. lang('Menu');
29        $file = Array(
30                'read news' => $GLOBALS['phpgw']->link('/news_admin/index.php'),
31                'Add New Article' => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uinews.add')
32        );
33        display_sidebox($appname,$menu_title,$file);
34 
35       
36        $title = lang('Preferences');
37        $file = array(
38                'Preferences'     => $GLOBALS['phpgw']->link('/preferences/preferences.php','appname='.$appname),
39        );
40        display_sidebox($appname,$title,$file);
41
42        if ($GLOBALS['phpgw_info']['user']['apps']['admin'])
43        {
44        $title = lang('Administration');
45        $file = Array(
46                'News Administration'  => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uinews.write_news'),
47                'global categories' => $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index&appname=' . $appname),
48                'configure access permissions' => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uiacl.acllist'),
49                'configure rss exports' => $GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uiexport.exportlist')
50        );
51
52                display_sidebox($appname,$title,$file);
53        }
54        unset($title);
55        unset($file);
56}
57?>
Note: See TracBrowser for help on using the repository browser.