Changeset 4557 for branches/2.2.0.1
- Timestamp:
- 05/31/11 17:20:18 (13 years ago)
- Location:
- branches/2.2.0.1/calendar
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
r4550 r4557 5462 5462 } 5463 5463 5464 $evDescription = ''; 5464 5465 if($title_view == 0) 5465 5466 { 5466 if($_GET['menuaction'] == 'calendar.uicalendar.day') 5467 $evDescription = " - ".$event['description']; 5468 } 5469 5470 if($_GET['menuaction'] == 'calendar.uicalendar.day') 5471 { 5472 $text = $event['description']; 5473 } 5474 elseif($_GET['menuaction'] == 'calendar.uicalendar.week') 5475 { 5476 5477 $text = ' - '.$event['end']['hour'].':'.$event['end']['min']; 5478 5479 //is recurrent? 5480 $text .= (isset($recur) && $recur != false) ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('recurring event').'" src="calendar/templates/'.$templateSet.'/images/recur.png"/>' : '' ; 5481 5482 //participants? 5483 if(count($event['participants']) > 1) 5467 5484 { 5468 $text = $event['description']; 5469 } 5470 elseif($_GET['menuaction'] == 'calendar.uicalendar.week') 5471 { 5472 $text = ' - '.$event['end']['hour'].':'.$event['end']['min']; 5473 5474 //is recurrent? 5475 $text .= (isset($recur) && $recur != false) ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('recurring event').'" src="calendar/templates/'.$templateSet.'/images/recur.png"/>' : '' ; 5476 5477 //participants? 5478 if(count($event['participants']) > 1) 5479 { 5480 $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/multi_3.png"/>'; 5481 } 5482 else 5483 { 5484 $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/single.png"/>'; 5485 } 5486 5487 //has attachments? 5488 $text .= (isset($event['attachment']) && $event['attachment'] != '') ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('email notifications with attachments has been sent').'" src="calendar/templates/'.$templateSet.'/images/clip.png"/>' : '' ; 5489 5490 //is public? 5491 $text .= $isPublic == 0 ? ' ' . '<img width="11px" height="10px" border="0" title="'.$isPublicTitle.'" src="calendar/templates/'.$templateSet.'/images/private.png"/>' : '' ; 5492 5493 //has alarm? 5494 $text .= (isset($event['alarm']) && count($event['alarm']) >= 1) ? ' ' . '<img width="11px" height="10px" border="0" title="'.lang('alarm').'" src="calendar/templates/'.$templateSet.'/images/alarm.png"/>' : '' ; 5495 5496 $text .= ' - ' . $event['title']." - ".$event['description']; 5485 $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/multi_3.png"/>'; 5497 5486 } 5498 5487 else 5499 5488 { 5500 $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title']." - ".$event['description'];5489 $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/single.png"/>'; 5501 5490 } 5491 5492 //has attachments? 5493 $text .= (isset($event['attachment']) && $event['attachment'] != '') ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('email notifications with attachments has been sent').'" src="calendar/templates/'.$templateSet.'/images/clip.png"/>' : '' ; 5494 5495 //is public? 5496 $text .= $isPublic == 0 ? ' ' . '<img width="11px" height="10px" border="0" title="'.$isPublicTitle.'" src="calendar/templates/'.$templateSet.'/images/private.png"/>' : '' ; 5497 5498 //has alarm? 5499 $text .= (isset($event['alarm']) && count($event['alarm']) >= 1) ? ' ' . '<img width="11px" height="10px" border="0" title="'.lang('alarm').'" src="calendar/templates/'.$templateSet.'/images/alarm.png"/>' : '' ; 5500 5501 $text .= ' - ' . $event['title'].$evDescription; 5502 5502 } 5503 5503 else 5504 5504 { 5505 $text = ' ';5505 $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title'].$evDescription; 5506 5506 } 5507 5507 … … 5510 5510 end_date => $event['end']['year'].'-'.$event['end']['month'].'-'.$event['end']['mday'].' '.$event['end']['hour'].':'.$event['end']['min'] . ' - ' . utf8_encode($event['title']), 5511 5511 text => utf8_encode($text), 5512 textTitle => utf8_encode($event['description']), 5513 descOnTitle => ($eventTime <= 30) ? 1 : 0,5512 textTitle => utf8_encode($event['description']), //week and month tooltip 5513 descOnTitle => ($eventTime <= 57) ? 1 : 0, 5514 5514 title => utf8_encode($event['title']), 5515 5515 observation => utf8_encode($event['observations']), -
branches/2.2.0.1/calendar/js/dhtmlx/codebase/dhtmlxscheduler_debug.js
r4529 r4557 3173 3173 if (cse) cs=cs+" "+cse; 3174 3174 //alert(h); 3175 //alert(title_view); 3176 var evDescription = contentB; 3177 3175 3178 var html = ''; 3176 3179 if(h == 41) … … 3186 3189 else 3187 3190 { 3191 //hide/show event description according to the preference title_view 3192 if(ev.title_view == 1) 3193 { 3194 evDescription = ''; 3195 } 3196 3188 3197 html='<div event_id="'+id+'" class="'+cs+'" ondblclick="javascript:callViewEvent(\''+id+'\');" title="'+contentB+'" style="position:absolute; top:'+y+'px; left:'+x+'px; width:'+(w-4)+'px; height:'+h+'px;'+(style||"")+'">'; 3189 3198 //var html='<div event_id="'+id+'" class="'+cs+'" ondblclick="javascript:callViewEvent(\''+id+'\');" title="'+contentB+'" style="position:absolute; top:'+y+'px; left:'+x+'px; width:'+(w-4)+'px; height:'+(h-(this._quirks?15:25))+'px;">'; … … 3191 3200 html+='<div class="dhx_title">'+contentA+'</div>'; 3192 3201 //html+='<div class="dhx_title" style="height:'+(h-(this._quirks?15:25))+'px;">'+contentA+'</div>'; 3193 html+='<div class="dhx_body" style=" width:'+(w-(this._quirks?4:14))+'px; height:'+(h-(this._quirks?20:30))+'px;">'+ contentB+'</div>';3202 html+='<div class="dhx_body" style=" width:'+(w-(this._quirks?4:14))+'px; height:'+(h-(this._quirks?20:30))+'px;">'+evDescription+'</div>'; 3194 3203 html+='<div class="dhx_footer" style=" width:'+(w-8)+'px;'+(bottom?' margin-top:-1px;':'')+'" ></div></div>'; 3195 3204 } -
branches/2.2.0.1/calendar/templates/default/day_cal.tpl
r4549 r4557 150 150 } 151 151 152 //hide/show event description according to the preference title_view 152 153 if(event.title_view == 0) 153 154 { 154 if(event.descOnTitle == 1) 155 if(event.descOnTitle == 1) //to show, or not, description beside the title 155 156 { 156 157 var eventDescOnTitle = (" - ") + event.text;
Note: See TracChangeset
for help on using the changeset viewer.