2 [-* we want to include out stylesheet for this view*-]
3 [-include
file=
"$TPL_NAME/views/header.html"-]
4 [-fetch
file=
"$TPL_STYLE_PATH/search.css" assign=
"css"-]
6 <!-- main navigation -->
7 [-*Load the Language Definitions*-]
8 [-config_load
file=
"lang.$USER_LANG"-]
10 [-include
file=
"$TPL_NAME/views/global/small_navigation.html"-]
11 <table width=
"100%" border=
"0" cellpadding=
"0" cellspacing=
"0" style=
"border: 1px solid black;"><tr><td>
12 <form name=
"search" action=
"[-$FORM_ACTION-]" method=
"POST" onsubmit=
"return top.restoreSession()">
14 [-#_PC_SEARCH_KEYWORDS#-]:
<input type=
"text" name=
"pc_keywords" value=
"" />
15 <select name=
"pc_keywords_andor">
16 <option value=
"AND">[-#_PC_SEARCH_AND#-]
</option>
17 <option value=
"OR">[-#_PC_SEARCH_OR#-]
</option>
20 <select name=
"pc_category">
21 <option value=
"">[-#_PC_SEARCH_ANY_CATEGORY#-]
</option>
25 <select name=
"pc_topic">
26 <option value=
"">[-#_PC_SEARCH_ANY_TOPIC#-]
</option>
30 <input type=
"submit" name=
"submit" value=
"[-#_PC_SUBMIT#-]" />
34 [-if $SEARCH_PERFORMED-]
36 [-*We should have results and should display them*-]
37 [-counter start=
0 print=false
assign=
"eventCount"-]
38 [-pc_sort_events
var=
"S_EVENTS" sort=
"category" order=
"asc" value=$A_EVENTS-]
39 [-foreach name=dates item=date key=cdate from=$S_EVENTS-]
40 [-if $date|@count
> 0-]
41 [-assign
var=
"dayname" value=$cdate|date_format:
"%w"-]
42 [-assign
var=
"day" value=$cdate|date_format:
"%d"|string_format:
"%1d"-]
43 [-assign
var=
"month" value=$cdate|date_format:
"%m"|string_format:
"%1d"-]
44 [-assign
var=
"month" value=$month-
1-]
45 [-assign
var=
"year" value=$cdate|date_format:
"%Y"|string_format:
"%4d"-]
46 <table width=
"100%" border=
"0" cellpadding=
"5" cellspacing=
"0" class=
"dayheader">
49 <a href=
"[-pc_url action=day date=$cdate-]" onclick=
"top.restoreSession()">
50 [-if $USE_INT_DATES eq true-]
51 [-pc_date_format date=$cdate
format=
"%A, %d %B %Y"-]
53 [-pc_date_format date=$cdate
format=
"%A, %B %d %Y"-]
58 <table width=
"100%" border=
"0" cellpadding=
"5" cellspacing=
"0" class=
"calcontainer">
60 <td width=
"100%" class=
"eventslist">
61 [-assign
var=
"oldCat" value=
""-]
62 [-foreach name=events item=event from=$date-]
64 [-assign
var=
"cCat" value=$event.catname-]
65 [-if $oldCat != $cCat-]
66 [-if $smarty.foreach.events.first != true-]
69 <div width=
"100%" style=
"padding: 2px; background-color: [-$event.catcolor-];">
72 <div width=
"100%" style=
"padding: 2px; border:solid 1px [-$event.catcolor-];">
75 [-assign
var=
"timestamp" value=$event.startTime|date_format:
"%H:%M"-]
77 [-assign
var=
"timestamp" value=$event.startTime|date_format:
"%I:%M %p"-]
79 [-if $event.alldayevent != true-]
82 <a href=
"[-pc_url action=detail eid=$event.eid date=$cdate-]" onclick=
"top.restoreSession()"
83 [-pc_popup
delay=
"500"
84 bgcolor=$event.catcolor
86 text=$event.hometext-]
>
87 [-$event.title|strip_tags-]
</a>
88 [-if $event.alldayevent != true-]
89 ([-$event.duration_hours-]:[-$event.duration_minutes-])
91 [-include
file=
"$TPL_NAME/user/patient_line.html" event=$event show_patient=true show_icons=true show_provider=true-]
93 [-assign
var=
"oldCat" value=$event.catname-]
94 [-if $smarty.foreach.events.last-]
95 [-* we need to close out the
<div> tag *-]
104 [-if $eventCount ==
0-]
105 [-#_PC_SEARCH_NO_RESULTS#-]
108 [-include
file=
"$TPL_NAME/views/footer.html"-]