Click on time of event to edit event
[openemr.git] / interface / main / calendar / modules / PostCalendar / pntemplates / default / views / header.html
blob71ce122f6537559aacad0bf92be7afedd8217ab5
1 <html>
2 <head>
3 <!-- Get the style sheet for the theme defined in globals.php -->
4 <link rel="stylesheet" href="[-php-]echo $GLOBALS['css_header'][-/php-]" type="text/css">
7 [-if $cal_ui eq 3-]
8 <!-- this style sheet is used for the ajax_* style calendars -->
9 <link rel="stylesheet" href="[-php-]echo $GLOBALS['webroot'].'/interface/themes/ajax_calendar.css';[-/php-]" type="text/css">
10 <!--[if IE]>
11 <link rel="stylesheet" href="[-php-]echo $GLOBALS['webroot'].'/interface/themes/ajax_calendar_ie.css';[-/php-]" type="text/css"/>
12 <![endif]-->
14 <!-- the javascript used for the ajax_* style calendars -->
15 <script type="text/javascript" src="[-php-] echo $GLOBALS['webroot'] [-/php-]/library/dialog.js"></script>
16 <script type="text/javascript" src="[-php-] echo $GLOBALS['webroot'] [-/php-]/library/textformat.js"></script>
17 <script type="text/javascript" src="[-php-] echo $GLOBALS['webroot'] [-/php-]/library/js/jquery-1.6.4.min.js"></script>
18 <script type="text/javascript" src="[-php-] echo $GLOBALS['webroot'] [-/php-]/library/js/calendarDirectSelect.js"></script>
19 <script>function event_time_click(elem){EditEvent($(elem).parents("div.event_appointment").get(0))} </script>
20 [-php-]
21 /**
22 * @param string $displayString This is the text to be displayed(most likely representing the time of an event). It is the responsibility of the caller to escape any entities as needed. This allows html tags to be used in the $displayString if desired.
23 * @return string html anchor element with javascript onclick event that edits an appointment
25 function create_event_time_anchor($displayString)
27 $title=htmlspecialchars(xl('Click to edit'));
28 return "<a class='event_time' onclick='event_time_click(this)' title='" .$title."'>".$displayString."</a>";
30 [-/php-]
31 [-/if-]
33 </head>
34 [-php-]
35 /* in an attempt to not 'rock the boat' too much the concurrent_layout
36 * color scheme remains unchanged
38 if ($GLOBALS['concurrent_layout']) {
39 echo "<body style='background-color:".$GLOBALS['style']['BGCOLOR2']."'>";
41 else {
42 echo "<body class='body_top'>";
44 [-/php-]