Changeset 3966 for branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 04/11/11 09:44:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
r3914 r3966 3561 3561 } 3562 3562 3563 if($event['attachment'] != '') 3564 { 3565 $picture[] = Array( 3566 'pict' => $GLOBALS['phpgw']->common->image('calendar','clip'), 3567 'width' => 9, 3568 'height'=> 9, 3569 'title' => lang('Notification with attachments sent.') 3570 ); 3571 } 3572 3563 3573 $description = $this->bo->get_short_field($event,$is_private,'description'); 3564 3574 for($i=0;$i<count($picture);$i++) … … 4487 4497 $vars = $this->bo->event2array($event); 4488 4498 4499 if($vars['attachment']['data'] == "") 4500 $vars['attachment']['data'] = lang('No Attachment'); 4501 else{ 4502 $vars['attachment']['data'] = lang('Has attachment(s)'); 4503 } 4504 4489 4505 $vars['title']['tr_color'] = $this->theme['th_bg']; 4490 4506 … … 5406 5422 // $this->output_template_array($p,'row','list',Array('data' => '<script src="simple_show_hide.js" type="text/javascript"></script>')); 5407 5423 5424 if ($event['attachment'] == '' || $event['attachment'] == 'ERROR' || is_array($event['attachment'])) 5425 $data = '<a onClick="javascript:addAttach()" href="#divFiles" >Anexos: adicionar+</a><div id="divFiles"</div>'; 5426 else 5427 $data = '<input type="hidden" name="cal[attachment]" value='.$event["attachment"].'>'.lang('Notification with attachments sent.').'<br><a onClick="javascript:addAttach()" href="#divFiles" >Anexos: adicionar+</a><div id="divFiles"</div>'; 5428 5429 $var['attachment'] = Array( 5430 'field' => lang('Attachment'), 5431 //'data' => '<input type="file" name="cal[attachment]" />' 5432 'data' => $data 5433 ); 5434 5408 5435 if (!isset($this->fields)) 5409 5436 {
Note: See TracChangeset
for help on using the changeset viewer.