Changeset 524 for trunk/mobile/calendar.php
- Timestamp:
- 10/09/08 17:15:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/calendar.php
r517 r524 20 20 include('../header.inc.php'); 21 21 include('mobile_header.inc.php'); 22 23 22 24 23 $accountId = $GLOBALS['phpgw_info']['user']['account_id']; … … 50 49 $data[] = array(); 51 50 @ksort($daily); 52 51 //print_r($daily); 52 //echo "accountId - $accountId\n"; 53 53 if($daily){ 54 54 $p->set_block('view','view_event'); … … 59 59 $day_of_week = $daysofWeek[$GLOBALS['phpgw']->datetime->day_of_week($year,$month,$day)]; 60 60 $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 62 72 $vars = $uicalendar->bo->event2array($day_params[$i]); 63 73 $data = array ( … … 71 81 "enddate_data" => substr($vars['enddate']['data'],13, 17), 72 82 "description_field" => $vars['description']['field'], 73 "description_data" => $vars['description']['data'] ? $vars['description']['data'] : " " 83 "description_data" => $vars['description']['data'] ? $vars['description']['data'] : " ", 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 74 90 ); 75 91 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); 78 95 } 79 96 }
Note: See TracChangeset
for help on using the changeset viewer.