Ignore:
Timestamp:
10/08/08 16:34:25 (16 years ago)
Author:
rafaelraymundo
Message:
  • Adicionada a funcionalidade de Resposta e Criacao de novas mensagens
  • Alterado menu para formato vertical facilitando o uso em dispositivos moveis
  • Posicionamento no menu ao fim, para que nao seja necessario utilizar

a rolagem para visualizar o conteudo.

  • Os registros buscados no catalogo retornam links para envio de emails
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/mobile_header.inc.php

    r480 r517  
    7272                $p->parse('home_t', 'mobile_header'); 
    7373 
     74                /********************************\ 
     75                 * Cria o link para o new_mail  * 
     76                \********************************/ 
     77                $q = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
     78                $q->set_file( 
     79                                Array( 
     80                                        'new_mail_t' => 'home.tpl' 
     81                                ) 
     82                ); 
     83 
     84                $q->set_block('new_mail_t', 'new_mail'); 
     85                $q->set_block('new_mail_t', 'begin_anchor'); 
     86                $q->set_block('new_mail_t', 'end_anchor'); 
     87 
     88                $q->set_var('href', 'index.php?menuaction=mobile.mobilemail.new_msg&clk=01'); 
     89                $q->set_var('lang_newmail', lang('Create mail')); 
     90                $q->fp('new_mail_t', 'begin_anchor'); 
     91                $q->fp('new_mail_t', 'end_anchor'); 
     92 
     93                $p->set_var('newmail', trim($q->fp('new_mail_t', 'new_mail'))); 
     94 
     95                /********************************\ 
     96                 * Cria o link para o mobilemail * 
     97                \********************************/ 
     98                $q = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
     99                $q->set_file( 
     100                                Array( 
     101                                        'mobilemail_t' => 'home.tpl' 
     102                                ) 
     103                ); 
     104 
     105                $q->set_block('mobilemail_t', 'mobilemail'); 
     106                $q->set_block('mobilemail_t', 'begin_anchor'); 
     107                $q->set_block('mobilemail_t', 'end_anchor'); 
     108 
     109                $q->set_var('href', 'mobilemail_index.php'); 
     110                $q->set_var('lang_email', lang('E-mail')); 
     111                $q->fp('mobilemail_t', 'begin_anchor'); 
     112                $q->fp('mobilemail_t', 'end_anchor'); 
     113 
     114                $p->set_var('mobilemail', trim($q->fp('mobilemail_t', 'mobilemail'))); 
     115 
    74116                /*****************************\ 
    75117                 * Cria o link para a agenda * 
     
    97139                 * Cria o link para o mobilemail * 
    98140                \********************************/ 
    99                 $q = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
     141/*              $q = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
    100142                $q->set_file( 
    101143                                Array( 
     
    114156 
    115157                $p->set_var('mobilemail', trim($q->fp('mobilemail_t', 'mobilemail'))); 
    116  
    117                 /********************************\ 
    118                  * Cria o link para o cc                 * 
    119                 \********************************/ 
    120                 $q = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
    121                 $q->set_file( 
    122                                 Array( 
    123                                         'cc_t' => 'home.tpl' 
    124                                 ) 
     158*/ 
     159 
     160                /********************************\ 
     161                 * Cria o link para o cc         * 
     162                \********************************/ 
     163                $q = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
     164                $q->set_file( 
     165                        Array( 
     166                                'cc_t' => 'home.tpl' 
     167                        ) 
    125168                ); 
    126169 
     
    128171                $q->set_block('cc_t', 'begin_anchor'); 
    129172                $q->set_block('cc_t', 'end_anchor'); 
    130  
     173                 
    131174                $q->set_var('href', 'index.php?menuaction=mobile.ui_mobilecc.contacts_list'); 
    132                 $q->set_var('lang_cc', lang('contact center')); 
     175                $q->set_var('lang_cc', lang('Contact Center')); 
    133176                $q->fp('cc_t', 'begin_anchor'); 
    134177                $q->fp('cc_t', 'end_anchor'); 
    135  
     178                 
    136179                $p->set_var('contactcenter', trim($q->fp('cc_t', 'mobilecc'))); 
    137  
    138180 
    139181                /**************************************\ 
Note: See TracChangeset for help on using the changeset viewer.