source: branches/2.2/help/inc/class.uihelp.inc.php @ 3418

Revision 3418, 2.5 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1378 - habilita o suporte aos temas no módulo do help.

Line 
1<?php
2        class uihelp
3        {
4                function viewHelp()
5                {
6                    $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
7                    $template->set_file(Array('manual' => 'index.tpl'));
8                    $template->set_var('title_help', lang('Help'));
9                    $template->set_var('lang_help', lang('Help'));
10                    $template->set_var('template_set', $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']);
11                    $template->set_var('theme', $GLOBALS['phpgw_info']['user']['preferences']['common']['theme']);
12                    $template->set_var('css', $GLOBALS['phpgw']->common->get_css());
13                    $template->set_var('lang', $GLOBALS['phpgw_info']['user']['preferences']['common']['lang']);
14                    $template->set_block('manual','help');                 
15                    $template->pfp('out', 'manual');
16                }
17                function viewSuggestions()
18                {
19                    $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
20                    $template->set_file(Array('manual' => 'suggestions.tpl'));
21                    $template->set_var('title_suggestions', lang('Suggestions'));
22                    $template->set_var('lang_suggestions', lang('Suggestions'));
23                    $template->set_var('template_set', $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']);
24                    $template->set_var('theme', $GLOBALS['phpgw_info']['user']['preferences']['common']['theme']);
25                    $template->set_var('css', $GLOBALS['phpgw']->common->get_css());
26                        $template->set_var('txt_desc',lang("Use this space to send your doubts, critics and suggestions"));
27                        $template->set_var('txt_send', lang("Send"));
28                        $template->set_var('txt_cancel', lang("Cancel"));
29                    $template->set_block('manual','help');                 
30                    $template->pfp('out', 'manual');
31                }
32                function viewSuccess()
33                {
34                    $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
35                    $template->set_file(Array('manual' => 'success.tpl'));
36                    $template->set_var('template_set', $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']);
37                    $template->set_var('theme', $GLOBALS['phpgw_info']['user']['preferences']['common']['theme']);
38                    $template->set_var('css', $GLOBALS['phpgw']->common->get_css());
39                    $template->set_var('lang_suggestions', lang('Suggestions'));
40                    $template->set_var('txt_close', lang("Close"));
41                    $template->set_var('title_suggestions', lang('Suggestions'));                   
42                    $template->set_var('txt_success', lang('Your suggestion was sent successfully.'));
43                    $template->set_var('html_description', lang('html_description'));                               
44                    $template->set_block('manual','help');                 
45                    $template->pfp('out', 'manual');               
46                }               
47        }
48?>
Note: See TracBrowser for help on using the repository browser.