Changeset 524 for trunk/mobile


Ignore:
Timestamp:
10/09/08 17:15:46 (16 years ago)
Author:
rafaelraymundo
Message:
  • Adicionada a possibilidade de confirmação de agendamentos
Location:
trunk/mobile
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/calendar.php

    r517 r524  
    2020        include('../header.inc.php'); 
    2121        include('mobile_header.inc.php'); 
    22  
    2322 
    2423        $accountId = $GLOBALS['phpgw_info']['user']['account_id']; 
     
    5049        $data[] = array(); 
    5150        @ksort($daily); 
    52  
     51//print_r($daily); 
     52//echo "accountId - $accountId\n"; 
    5353        if($daily){ 
    5454                $p->set_block('view','view_event'); 
     
    5959                        $day_of_week = $daysofWeek[$GLOBALS['phpgw']->datetime->day_of_week($year,$month,$day)]; 
    6060                        $p->set_var("header_date",$day_of_week." - ".$day."/".$month."/".$year); 
    61                         for($i = 0; $i < count($day_params);$i++)       { 
     61                        for($i = 0; $i < count($day_params);$i++) 
     62                        { 
     63 
     64                                //Verifica se o usuario conectado é o dono do agendamento, se for não serão exibidos os links 
     65                                //Aceitar e Rejeitar 
     66                                $display = ""; 
     67                                if($accountId == $day_params[$i]['owner']) 
     68                                { 
     69                                        $display = "none"; 
     70                                } 
     71 
    6272                                $vars = $uicalendar->bo->event2array($day_params[$i]); 
    6373                                $data  = array ( 
     
    7181                                                        "enddate_data"          => substr($vars['enddate']['data'],13, 17), 
    7282                                                        "description_field"     => $vars['description']['field'], 
    73                                                         "description_data"      => $vars['description']['data'] ? $vars['description']['data'] : "&nbsp;" 
     83                                                        "description_data"      => $vars['description']['data'] ? $vars['description']['data'] : "&nbsp;", 
     84                                                        //Links Aceitar e Rejeitar o compromisso 
     85                                                        "accept_title"          => lang("Accept"), 
     86                                                        "accept_data"           => "index.php?menuaction=mobile.mobilemail.set_action&cal_id=" . $day_params[$i]['id'] . "&action=3", 
     87                                                        "reject_title"          => lang("Reject"), 
     88                                                        "reject_data"           => "index.php?menuaction=mobile.mobilemail.set_action&cal_id=" . $day_params[$i]['id'] . "&action=0", 
     89                                                        "display"               => $display 
    7490                                                        ); 
    7591 
    76                         $p->set_var($data); 
    77                         $p->parse('views','view_event',True); 
     92        //                      print_r($vars); 
     93                                $p->set_var($data); 
     94                                $p->parse('views','view_event',True); 
    7895                        } 
    7996                } 
  • trunk/mobile/setup/phpgw_pt-br.lang

    r517 r524  
    2626Some addresses in the To field were not recognized. Please make sure that all addresses are properly formed     mobile  pt-br   Alguns endereços no campo "Para" não foram reconhecidos. Por favor certifique-se que todos endereços estão corretos 
    2727Empty folder    mobile  pt-br   Pasta vazia 
     28Accept  mobile  pt-br   Aceitar 
     29Accepted        mobile  pt-br   aceitou 
     30Reject  mobile  pt-br   Rejeitar 
     31Rejected        mobile  pt-br   rejeitou 
     32Location        mobile  pt-br   Local 
     33Start Date/Time mobile  pt-br   Data/Hora Início 
     34End Date/Time   mobile  pt-br   Data/Hora Término 
  • trunk/mobile/templates/default/calendar.tpl

    r454 r524  
    2222                <td  valign="top" >{description_data}</td> 
    2323        </tr> 
     24        <tr style="display: {display};" > 
     25                <td align="right" valign="top"  ><a href="{accept_data}">{accept_title}</a></td> 
     26                <td  align="right" valign="top" ><a href="{reject_data}">{reject_title}</a></td> 
     27        </tr> 
    2428        </table><br> 
    2529<!-- END view_event --> 
  • trunk/mobile/templates/default/home.tpl

    r517 r524  
    99</head> 
    1010<body style="background-color:white !important"> 
    11 <!--<p>&nbsp;&nbsp;<strong>{fullname}: [{account_lid}]</strong></p>--> 
     11<p>&nbsp;&nbsp;<strong>{fullname}: [{account_lid}]</strong></p> 
    1212<hr /> 
    1313<!-- END mobile_header --> 
Note: See TracChangeset for help on using the changeset viewer.