2 [-config_load
file=
"default.conf"-]
3 [-*Load the Language Definitions*-]
4 [-config_load
file=
"lang.$USER_LANG"-]
5 [-include
file=
"$TPL_NAME/views/header.html"-]
6 [-* we want to include out stylesheet for this view*-]
7 [-fetch
file=
"$TPL_STYLE_PATH/month.css" assign=
"css"-]
9 [-if $PRINT_VIEW !=
1-]
11 [-include
file=
"$TPL_NAME/views/global/navigation.html"-]
13 <table width=
"100%" border=
"0" cellpadding=
"5" cellspacing=
"0" class=
"monthheader">
15 <td nowrap
width=
"100%" align=
"center" valign=
"top" class=
"monthheader">
16 <a href=
"[-$PREV_MONTH_URL-]"><<</a>
17 [-$DATE|pc_date_format:#_PC_DATE_FORMAT_MY#-]
18 <a href=
"[-$NEXT_MONTH_URL-]">>></a>
20 [-if $PRINT_VIEW !=
1-]
21 <td nowrap
align=
"right" valign=
"top" class=
"monthheader">
27 <table width=
"100%" border=
"0" cellpadding=
"1" cellspacing=
"0" class=
"calcontainer"><tr><td>
28 <table width=
"100%" border=
"0" cellpadding=
"0" cellspacing=
"0">
30 [-foreach from=$S_LONG_DAY_NAMES item=day-]
31 <td width=
"14%" align=
"center" valign=
"middle" class=
"daynames">[-$day-]
</td>
34 [-* CREATE THE CALENDAR *-]
35 [-foreach name=weeks item=days from=$CAL_FORMAT-]
37 [-foreach name=days item=date from=$days-]
38 [-if $date == $TODAY_DATE-]
39 [-assign
var=
"stylesheet" value=
"monthtoday"-]
40 [-elseif ($date < $MONTH_START_DATE || $date
> $MONTH_END_DATE)-]
41 [-assign
var=
"stylesheet" value=
"monthoff"-]
43 [-assign
var=
"stylesheet" value=
"monthon"-]
45 <td height=
"75" align=
"left" valign=
"top" class=
"[-$stylesheet-]"
46 onmouseover=
"this.style.backgroundColor='[-#CellHighlight#-]'"
47 onmouseout=
"this.style.backgroundColor=''"
48 onclick=
"javascript:location.href='[-pc_url action=day date=$date-]';">
49 <table width=
"100%" border=
"0" cellpadding=
"0" cellspacing=
"0">
51 <td align=
"left" valign=
"top"><a
52 href=
"[-pc_url action=day date=$date-]">[-$date|date_format:
"%d"-]
</a>
53 [-if $smarty.foreach.days.iteration ==
1-]
54 <a href=
"[-pc_url action=week date=$date-]">[[-#_PC_MV_WEEK#-]]
</a>
57 <td align=
"right" valign=
"top">
58 [-if $ACCESS_ADD eq true-]
59 <a href=
"[-pc_url action=submit date=$date-]"><img
60 src=
"[-$TPL_IMAGE_PATH-]/new.gif" width=
"10" height=
"10" border=
"0" /></a>
65 <td colspan=
"2" valign=
"top" align=
"left">
66 [-*sort the events by category so we can make it pretty*-]
67 [-pc_sort_events
var=
"S_EVENTS" sort=
"time" order=
"asc" value=$A_EVENTS-]
68 [-assign
var=
"oldCat" value=
""-]
69 [-foreach name=events item=event from=$S_EVENTS.$date-]
70 [-assign
var=
"cCat" value=$event.catname-]
71 [-if $oldCat != $cCat-]
72 [-if $smarty.foreach.event.first != true-]
75 <div width=
"100%" style=
"padding: 1px; background-color: [-$event.catcolor-];">
76 <span style=
"font-size:10pt;">[-$event.catname-]
</span>
78 <div width=
"100%" style=
"padding: 2px; border:solid 1px [-$event.catcolor-];">
81 [-* Here we determine if the event is an
82 all day event or a timed event
83 and determine how to display the time *-]
84 [-if $event.alldayevent != true-]
86 [-assign
var=
"timestamp" value=$event.startTime|date_format:#_PC_TIME_FORMAT_24#-]
88 [-assign
var=
"timestamp" value=$event.startTime|date_format:#_PC_TIME_FORMAT_12#-]
90 [-*assign
var=
"title" value=$event.title|truncate:
15:
"...":true*-]
91 [-assign
var=
"title" value=$event.title|strip_tags-]
94 [-assign
var=
"timestamp" value=
""-]
95 [-*assign
var=
"title" value=$event.title|truncate:
30:
"...":true*-]
96 [-assign
var=
"title" value=$event.title|strip_tags-]
98 [-assign
var=
"desc" value=$event.hometext|truncate:
255:
"..."-]
99 [-* Here we start the actual display of the event *-]
100 <a style=
"font-size: 7pt; text-decoration: none;"
101 href=
"[-pc_url action=detail eid=$event.eid date=$date-]"
102 [-pc_popup
delay=
"500"
103 bgcolor=
"$event[catcolor]"
105 caption=
"$timestamp $event[title]"
107 [-$timestamp-] [-$title-]
</a>
108 <span style=
"font-size:7pt;text-decoration:none;">
109 [-include
file=
"$TPL_NAME/user/patient_line.html" event=$event show_icons=false show_provider=true show_patient=true -]
</span><br />
110 [-assign
var=
"oldCat" value=$event.catname-]
111 [-if $smarty.foreach.event.last-]
112 [-* we need to close out the
<div> tag *-]
125 [-if $PRINT_VIEW !=
1-]
126 <table width=
"100%" border=
"0" cellpadding=
"0" cellspacing=
"0">
129 <a href=
"[-pc_url action="month
" print="true
"-]">[-#_PC_THEME_PRINT#-]
</a>
135 [-include
file=
"$TPL_NAME/views/global/footer.html"-]
136 [-include
file=
"$TPL_NAME/views/footer.html"-]