Changeset 1100 for trunk/help/inc


Ignore:
Timestamp:
07/08/09 16:59:21 (15 years ago)
Author:
niltonneto
Message:

Ticket #475 - Preparação do link Sugestões para usar vários templates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/help/inc/class.uihelp.inc.php

    r194 r1100  
    22        class uihelp 
    33        { 
    4                 function view() 
     4                function viewHelp() 
    55                { 
    66                    $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
     
    1313                    $template->pfp('out', 'manual'); 
    1414                } 
     15                function viewSuggestions() 
     16                { 
     17                    $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
     18                    $template->set_file(Array('manual' => 'suggestions.tpl')); 
     19                    $template->set_var('title_suggestions', lang('Suggestions')); 
     20                    $template->set_var('lang_suggestions', lang('Suggestions')); 
     21                    $template->set_var('template_set', $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']); 
     22                    $template->set_var('txt_desc',lang("Use this space to send your doubts, critics and suggestions")); 
     23                    $template->set_var('txt_subject',lang("Suggestions")); 
     24                        $template->set_var('txt_send', lang("Send")); 
     25                        $template->set_var('txt_cancel', lang("Cancel")); 
     26                    $template->set_var('sugg_mailto', $GLOBALS['phpgw_info']['server']['sugestoes_email_to']); 
     27                    $template->set_var('sugg_mailcc', $GLOBALS['phpgw_info']['server']['sugestoes_email_cc']); 
     28                    $template->set_var('sugg_mailto', $GLOBALS['phpgw_info']['server']['sugestoes_email_bcc']); 
     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('lang_suggestions', lang('Suggestions')); 
     38                    $template->set_var('txt_close', lang("Close")); 
     39                     
     40                    $template->set_var('title_suggestions', lang('Suggestions'));                    
     41                    $template->set_var('txt_success', lang('Your suggestion was sent successfully.')); 
     42                    $template->set_var('html_description', lang('html_description'));                                
     43                    $template->set_block('manual','help');                   
     44                    $template->pfp('out', 'manual');                 
     45                }                
    1546        } 
    1647?> 
Note: See TracChangeset for help on using the changeset viewer.