corrected smarty tag
[openemr.git] / interface / main / calendar / modules / PostCalendar / pntemplates / default / user / findfirst.html
blob43eab5d4102d779c4b01db02b6f05458e6ff450b
1 [-*Smarty*-]
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"-]
5 [-eval var=$css-]
6 <!-- main navigation -->
7 [-*Load the Language Definitions*-]
8 [-config_load file="lang.$USER_LANG"-]
9 [-*Main Navigation*-]
10 <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid black;"><tr><td>
11 <form name="search" action="[-$FORM_ACTION-]&no_nav=1" method="POST" onsubmit="return top.restoreSession()">
12 <br />
13 <table>
14 <tr><td>Provider</td>
15 <td>
16 [-strip-]
18 <select name="provider_id">
19 <option value="">Unassigned</option>
20 [-foreach item=provider from=$providers-]
21 <option value="[-$provider.id-]"
22 [-if $ProviderID eq $provider.id-]
23 selected
24 [-/if-]
25 >[-$provider.lname-], [-$provider.fname-]</option>
26 [-/foreach-]
28 </select>
29 [-/strip-]
30 <input type="hidden" name="patient_id" value="[-$patient_id-]">
31 <input type="hidden" name="event_category" value="[-$event_category-]">
32 <input type="hidden" name="event_dur_minutes" value="[-$event_dur_minutes-]">
33 <input type="hidden" name="event_dur_hours" value="[-$event_dur_hours-]">
34 <input type="hidden" name="event_subject" value="[-$event_subject-]">
35 </td>
36 </tr>
37 <tr><td>Starting:&nbsp;</td><td>[-$SelectDateTimeStart-]</td></tr>
38 <tr><td>Ending:&nbsp;</td><td>[-$SelectDateTimeEnd-]</td></tr>
39 <!--<tr><td colspan="2">Number Available:
40 <select name="number_available">
41 <option value="1">1</option>
42 <option value="2">2</option>
43 <option value="3">3</option>
44 <option value="4">4</option>
45 <option value="5">5</option>
46 </select>-->
47 </td></tr></table>
48 <br />
49 <!--[-#_PC_SEARCH_KEYWORDS#-]: <input type="text" name="pc_keywords" value="" />-->
50 <!--<select name="pc_keywords_andor">
51 <option value="AND">[-#_PC_SEARCH_AND#-]</option>
52 <option value="OR">[-#_PC_SEARCH_OR#-]</option>
53 </select>-->
54 <!--[-#_PC_SEARCH_IN#-]:
55 <select name="pc_category">
56 <option value="">[-#_PC_SEARCH_ANY_CATEGORY#-]</option>
57 [-$CATEGORY_OPTIONS-]
58 </select>-->
59 <!--[-if $USE_TOPICS-]
60 <select name="pc_topic">
61 <option value="">[-#_PC_SEARCH_ANY_TOPIC#-]</option>
62 [-$TOPIC_OPTIONS-]
63 </select>
64 [-/if-]-->
65 <input type="submit" name="submit" value="Find First" />
66 </form>
67 </td></tr></table>
69 [-if $SEARCH_PERFORMED-]
70 <br />
71 [-foreach name=times key=date item=available from=$available_times-]
72 <table width="100%" border="0" cellpadding="5" cellspacing="0" class="dayheader">
73 <tr>
74 <td width="100%">
75 <a href="[-pc_url action=day date=$cdate-]" onclick="top.restoreSession()">
76 [-if $USE_INT_DATES eq true-]
77 [-pc_date_format date=$date format="%A, %d %B %Y"-]
78 [-else-]
79 [-pc_date_format date=$date format="%A, %B %d %Y"-]
80 [-/if-]</a>
81 </td>
82 </tr>
83 </table>
84 <table width="100%" border="0" cellpadding="5" cellspacing="0" class="calcontainer">
85 <tr>
86 <td width="100%" class="eventslist">
87 [-foreach name=entrylist item=entry from=$available-]
88 <div width="100%" style="padding: 2px; border:solid 1px [-$event.catcolor-];">
89 [-if $24HOUR_TIME-]
90 [-assign var="timestamp" value=$entry.startTime|date_format:"%H:%M"-]
91 [-else-]
92 [-assign var="timestamp" value=$entry.startTime|date_format:"%I:%M %p"-]
93 [-/if-]
94 [-if $event.alldayevent != true-]
95 [-$timestamp-]
96 [-/if-]
97 [-assign var="ampm" value="1" -]
98 [-if $entry.startTime|date_format:"%p" eq "PM"-]
99 [-assign var="ampm" value=2-]
100 [-/if-]
101 &nbsp;&nbsp;&nbsp;
102 <a href="javascript:{}" onclick="top.restoreSession();window.opener.location = 'find_patient.php?no_nav=1&event_startmonth=[-$entry.startTime|date_format:"%m"-]&event_startday=[-$entry.startTime|date_format:"%d"-]&event_startyear=[-$entry.startTime|date_format:"%Y"-]&patient_id=[-$patient_id-]&provider_id=[-$provider_id-]&event_starttimeh=[-$entry.startTime|date_format:"%I"-]&event_starttimem=[-$entry.startTime|date_format:"%M"-]&event_startampm=[-$ampm-]&event_dur_hours=[-$event_dur_hours-]&event_dur_minutes=[-$event_dur_minutes-]&event_category=[-$event_category-]&event_subject=[-$event_subject-]';window.close();">
103 [-assign var="durhours" value=$entry.endTime|date_format:"%H"-]
104 [-if $durhours > 0-]
105 [-$durhours-] hours and
106 [-/if-]
107 [-$entry.endTime|date_format:"%M"-] minutes</a>
108 </div>
109 [-/foreach-]
110 </td>
111 </tr>
112 </table>
114 <br />
115 [-/foreach-]
116 <br />
118 [-if count($available_times) == 0-]
119 [-#_PC_SEARCH_NO_RESULTS#-]
120 [-/if-]
121 [-/if-]
122 [-include file="$TPL_NAME/views/footer.html"-]