1{* $Id$ *} 2<div class="table-responsive"> 3 <table class="caltable table"> 4 <tr> 5 <td style="width: 1%;" class="heading weeks"></td> 6 {section name=dn loop=$daysnames} 7 {if in_array($smarty.section.dn.index,$viewdays)} 8 <td id="top_{$smarty.section.dn.index}" class="heading" style="width:14%;">{$daysnames[dn]}</td> 9 {/if} 10 {/section} 11 </tr> 12 13 {section name=w loop=$cell} 14 <tr id="row_{$smarty.section.w.index}" style="height:80px"> 15 <td class="heading weeks"><a href="{$myurl}?viewmode=week&todate={$cell[w][0].day}" title="{tr}View this Week{/tr}">{$weekNumbers[w]}</a></td> 16 {section name=d loop=$weekdays} 17 {if in_array($smarty.section.d.index,$viewdays)} 18 {if $cell[w][d].focus} 19 {cycle values="odd,even" print=false advance=false} 20 {else} 21 {cycle values="text-muted" print=false advance=false} 22 {/if} 23 <td id="row_{$smarty.section.w.index}_{$smarty.section.d.index}" class="{if $cell[w][d].day eq $today}calhighlight calborder{/if} {cycle}" style="padding:0px"> 24 <table style="width:100%; border:none"> 25 <tr> 26 <td class="focus {if $cell[w][d].day eq $today}calhighlight{/if}" style="width:50%;text-align:left"> 27 {* test display_field_order and use %d/%m or %m/%d on each day 'cell' *} 28 {if ($prefs.display_field_order eq 'DMY') || ($prefs.display_field_order eq 'DYM') || ($prefs.display_field_order eq 'YDM')} 29 <a href="{$myurl}?focus={$cell[w][d].day}" title="{tr}Change Focus{/tr}" class="change-focus"> 30 {$cell[w][d].day|tiki_date_format:"%d/%m"} 31 </a> 32 {else} 33 <a href="{$myurl}?focus={$cell[w][d].day}" title="{tr}Change Focus{/tr}" class="change-focus"> 34 {$cell[w][d].day|tiki_date_format:"%m/%d"} 35 </a> 36 {/if} 37 </td> 38 {if $myurl neq "tiki-action_calendar.php"} 39 <td class="focus {if $cell[w][d].day eq $today}calhighlight{/if}" style="width:50%;text-align:right;font-size:75%"> 40 {* add additional check to NOT show add event icon if no calendar displayed *} 41 {if $tiki_p_add_events eq 'y' and count($listcals) > 0 and $displayedcals|@count > 0} 42 <a href="tiki-calendar_edit_item.php?todate={$cell[w][d].day}{if $displayedcals|@count eq 1}&calendarId={$displayedcals[0]}{/if}" title=":{tr}Add event{/tr}" class="addevent tips"> 43 {icon name='create'} 44 </a> 45 {/if} 46 <a class="viewthisday tips" href="tiki-calendar.php?viewmode=day&todate={$cell[w][d].day}{if $displayedcals|@count eq 1}&calendarId={$displayedcals[0]}{/if}" title=":{tr}View this Day{/tr}"> 47 {icon name='calendar'} 48 </a> 49 </td> 50 {/if} 51 </tr> 52 </table> 53 {if $cell[w][d].focus} 54 {section name=item loop=$cell[w][d].items} 55 {if $smarty.section.item.first} 56 <table style="width:100%;"> 57 {/if} 58 {assign var=over value=$cell[w][d].items[item].over} 59 {assign var=calendarId value=$cell[w][d].items[item].calendarId} 60 <tr> 61 {if is_array($cell[w][d].items[item])} 62 <td class="Cal{$cell[w][d].items[item].type} calId{$cell[w][d].items[item].calendarId} viewcalitemId_{$cell[w][d].items[item].calitemId} tips" style="padding:0;height:14px;background-color:#{$infocals.$calendarId.custombgcolor};border-color:#{$infocals.$calendarId.customfgcolor};opacity:{if $cell[w][d].items[item].status eq '0'}0.8{else}1{/if};filter:Alpha(opacity={if $cell[w][d].items[item].status eq '0'}80{else}100{/if});border-width:1px {if $cell[w][d].items[item].endTimeStamp <= ($cell[w][d].day + 86400)}1{else}0{/if}px 1px {if $cell[w][d].items[item].startTimeStamp >= $cell[w][d].day}1{else}0{/if}px;cursor:pointer" 63 {if $prefs.calendar_sticky_popup eq 'y'} 64 {popup caption="{tr}Event{/tr}" vauto=true hauto=true sticky=true fullhtml="1" trigger="onClick" text=$over} 65 {else} 66 {popup caption="{tr}Event{/tr}" vauto=true hauto=true sticky=false fullhtml="1" text=$over} 67 {/if}> 68 69 {if $myurl eq "tiki-action_calendar.php" or ($cell[w][d].items[item].startTimeStamp >= $cell[w][d].day or $smarty.section.d.index eq '0' or $cell[w][d].firstDay or $infocals[$cell[w][d].items[item].calendarId].nameoneachday eq 'y')} 70 <a style="padding:1px 3px;{if $infocals.$calendarId.customfgcolor}color:#{$infocals.$calendarId.customfgcolor}{/if}{if $cell[w][d].items[item].status eq '2'} text-decoration:line-through;{/if}" 71 {if $myurl eq "tiki-action_calendar.php"} 72 {if $cell[w][d].items[item].modifiable eq "y" || $cell[w][d].items[item].visible eq 'y'}href="{$cell[w][d].items[item].url}"{/if} 73 {elseif $prefs.calendar_sticky_popup neq 'y'} 74 {if $cell[w][d].items[item].modifiable eq "y" || $cell[w][d].items[item].visible eq 'y'}href="tiki-calendar_edit_item.php?viewcalitemId={$cell[w][d].items[item].calitemId}"{/if} 75 {else} 76 href="#" 77 {/if} 78 >{$cell[w][d].items[item].name|truncate:$trunc:".."|escape|default:"..."}</a> 79 {if $cell[w][d].items[item].web} 80 <a href="{$cell[w][d].items[item].web}" target="_other" class="calweb" title="{$cell[w][d].items[item].web}"><img src="img/icons/external_link.gif" width="7" height="7" alt=">"></a> 81 {/if} 82 {if $cell[w][d].items[item].nl} 83 <a href="tiki-newsletters.php?nlId={$cell[w][d].items[item].nl}&info=1" class="calweb" title="Subscribe"><img src="img/icons/external_link.gif" width="7" height="7" alt=">"></a> 84 {/if} 85 {else} 86 {/if} 87 </td> 88 {else} 89 <td style="padding: 0; height: 14px; border: solid white 1px; width: 100%; font-size: 10px"> </td> 90 {/if} 91 </tr> 92 {if $smarty.section.item.last} 93 </table> 94 {/if} 95 {/section} 96 {/if} 97 </td> 98 {/if} 99 {/section} 100 </tr> 101 {/section} 102 </table> 103</div> 104