Changeset 1100


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.

Location:
trunk/help
Files:
4 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/help/enviasugestao.php

    r201 r1100  
    1 <?php    
    2         $GLOBALS['phpgw_info']['flags'] = array( 
    3                 'noheader' => True, 
    4                 'nonavbar' => True, 
    5                 'currentapp' => 'expressoMail1_2', 
    6                 'enable_nextmatchs_class' => True 
    7         ); 
    8          
    9         include('../header.inc.php'); 
    10         $GLOBALS['phpgw']->preferences->read_repository();                                                                       
    11         $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user'];                
    12         $boemailadmin   = CreateObject('emailadmin.bo'); 
    13         $emailadmin_profile = $boemailadmin->getProfileList(); 
    14         $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); 
    15         $_SESSION['phpgw_info']['expressomail']['server'] = $GLOBALS['phpgw_info']['server'];            
    16         $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email'];                                                              
     1<?php 
     2        /**************************************************************************\ 
     3        * eGroupWare - Online User manual                                          * 
     4        * http://www.eGroupWare.org                                                * 
     5        * Written and (c) by RalfBecker@outdoor-training.de                        * 
     6        * --------------------------------------------                             * 
     7        *  This program is free software; you can redistribute it and/or modify it * 
     8        *  under the terms of the GNU General Public License as published by the   * 
     9        *  Free Software Foundation; either version 2 of the License, or (at your  * 
     10        *  option) any later version.                                              * 
     11        \**************************************************************************/ 
     12 
     13        /* $Id: index.php,v 1.13 2004/04/13 08:19:10 ralfbecker Exp $ */ 
     14 
     15$GLOBALS['phpgw_info']['flags'] = array( 
     16                                        'currentapp' => 'help', 
     17                                        'nonavbar'   => true, 
     18                                        'noheader'   => true, 
     19                                        ); 
     20 
     21include('../header.inc.php'); 
     22if($_POST){ 
     23        $params['input_to'] = $_POST['to']; 
     24        $params['input_cc'] = $_POST['cc']; 
     25        $params['input_cc'] = $_POST['cco']; 
     26        $params['input_subject'] = $_POST['subject']; 
     27        $params['body'] = $_POST['body']; 
     28        $expressoMail = CreateObject('expressoMail1_2.imap_functions');                  
     29        $returncode = $expressoMail->send_mail($params); 
     30        if (!$returncode) { 
     31                echo "$to<Br>$subject<br>$tmpbody<br>$sender<br>\n"; 
     32                echo '<i>'.$send->err['desc']."</i><br>\n"; 
     33                exit;            
     34        } 
     35        else{ 
     36                ExecMethod('help.uihelp.viewSuccess'); 
     37        } 
     38} 
     39else { 
     40        ExecMethod('help.uihelp.viewSuggestions'); 
     41} 
    1742?> 
    18 <html> 
    19         <head> 
    20                 <title>Expresso Livre</title> 
    21                 <script language="Javascript"> 
    22                 function send() { 
    23                         if(document.doit.body.value ==""){ 
    24                                 alert('Não existe nenhum texto digitado.'); 
    25                                 return false; 
    26                         } 
    27                         document.doit.submit(); 
    28                 } 
    29                 </script>                
    30         </head> 
    31 <body style="margin:0px;padding:0px"> 
    32 <div class=Section1 align='center'> 
    33 <table cellspacing="0" cellpadding="0" width="100%"> 
    34 <tr><td style="padding-left:0px;padding-right:25px" align="right" background="../phpgwapi/templates/celepar/images/fundo_topo.gif" nowrap> 
    35 <a name="0"><img src="../phpgwapi/templates/celepar/images/logo_expresso.png?1"></a></td> 
    36 </tr></table></p> 
    37 <p align="center"> 
    38 <font face="Arial" size="2"><b><? echo lang("Use this space to send your doubts, critics and suggestions") ?></font></p> 
    39 <form name="doit" action="sugestaoenviada.php" method="POST"> 
    40 <textarea name="body" cols="40" rows="15" wrap></textarea> 
    41 <input type="hidden" name="to" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_to']?>"> 
    42 <input type="hidden" name="cc" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_cc']?>"> 
    43 <input type="hidden" name="bcc" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_bcc']?>"> 
    44 <input type="hidden" name="subject" value="Dicas, Dúvidas e Sugestões"> 
    45 <br> 
    46 <br> 
    47 <input type="button" name="enviar" value=<? echo lang("Send") ?> onClick="javascript:send()"> 
    48 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    49 <input type="button" name="cancelar" value=<? echo lang("Cancel") ?> onClick="javascript:window.close()"> 
    50 </form> 
    51 </div> 
    52 </body> 
    53  
    54 </html> 
  • 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?> 
  • trunk/help/index.php

    r196 r1100  
    2020 
    2121include('../header.inc.php'); 
    22 ExecMethod('help.uihelp.view'); 
     22ExecMethod('help.uihelp.viewHelp'); 
    2323//      $GLOBALS['phpgw']->common->phpgw_footer(); 
    2424?> 
  • trunk/help/setup/phpgw_pt-br.lang

    r194 r1100  
    1 %1 manual page(s) added or updated      manual  pt-br   %1 páginas do manual adicionada(s) ou atualizada(s) 
    2 download        manual  pt-br   download 
     1%1 manual page(s) added or updated      help    pt-br   %1 páginas do manual adicionada(s) ou atualizada(s) 
     2download        help    pt-br   download 
    33install or update the manual-pages      admin   pt-br   Instalar ou atualizar páginas do manual 
     4html_description        help    pt-br   Sua mensagem foi enviada ao Administrador do Expresso Livre, e em breve será respondida pelo seu próprio email do Expresso.<br><br> Obrigado por ajudar-nos a melhorar esta ferramenta.<br><br><div align=right><b>Equipe de Desenvolvimento e <BR> Manutenção do Expresso Livre.</b></div> 
    45manual  common  pt-br   Manual / Ajuda 
    5 page(s) %1 not found !!!        manual  pt-br   Página %1 não encontrada !!! 
    6 starting import from %1, this might take several minutes (specialy if you start it the first time) ...  manual  pt-br   Iniciando a importação de %1, pode levar alguns minutos (especialmente se você o executa pela primeira ves agora) ... 
     6page(s) %1 not found !!!        help    pt-br   Página %1 não encontrada !!! 
     7starting import from %1, this might take several minutes (specialy if you start it the first time) ...  help    pt-br   Iniciando a importação de %1, pode levar alguns minutos (especialmente se você o executa pela primeira vez agora) ... 
     8Your suggestion was sent successfully.  help    pt-br   Sua sugestão foi enviada com sucesso. 
  • trunk/help/templates/celepar/css/index.css

    r193 r1100  
    1 p.titulo 
    2     {font-size: 18.0pt; 
    3      font-family: "Verdana"; 
    4      text-align: center;} 
     1.titulo 
     2    {font-size:18.0pt; 
     3    font-family:Verdana; 
     4    position:absolute; 
     5    top:45px; 
     6    left:5px; 
     7    z-index:0;}; 
    58p.item 
    69    {font-size: 16.0pt; 
Note: See TracChangeset for help on using the changeset viewer.