3 <script type=
"text/javascript" src=
"{php}echo $GLOBALS['webroot'];{/php}/library/js/jquery-1.4.2.min.js"></script>
4 <script type=
"text/javascript" src=
"{php}echo $GLOBALS['webroot'];{/php}/library/js/jquery-ui-1.8.6.custom.min.js"></script>
5 <script type=
"text/javascript" src=
"{php}echo $GLOBALS['webroot'];{/php}/library/js/jquery.cookie.js"></script>
6 <script type=
"text/javascript" src=
"{php}echo $GLOBALS['webroot'];{/php}/library/js/clickmap.js"></script>
8 <link rel=
"stylesheet" type=
"text/css" href=
"{$form->template_dir}/css/ui-lightness/jquery-ui-1.8.6.custom.css" />
9 <link rel=
"stylesheet" type=
"text/css" href=
"{$form->template_dir}/css/clickmap.css" />
12 <div class=
"outer-container">
13 <div id=
"container" class=
"container">
14 <img src=
"{$form->image}"/>
16 <div id=
"legend" class=
"legend">
22 <p style=
"clear:both">
25 <button id=
"btn_save">{xl
t=
"Save"}
</button>
26 <button id=
"btn_clear">{xl
t=
"Clear"}
</button>
27 <button id=
"cancel">{xl
t=
"Cancel"}
</button>
29 {xl
t=
"Click a spot on the graphic to add a new annotation, click it again to remove it"}
<br/>
30 {xl
t=
"The 'Clear' button will remove all annotations."}
34 <div class=
"dialog-form" style=
"display:none">
36 <label for=
"label">{xl
t=
"Label"}
</label>
37 <input type=
"text" name=
"label" id=
"label" class=
"text ui-widget-content ui-corner-all label" />
38 <label for=
"options"></label>
39 <select name=
"options">
41 <label for=
"detail">{xl
t=
"Detail"}
</label>
42 <textarea name=
"detail" id=
"detail" class=
"textarea ui-widget-content ui-corner-all detail"></textarea>
46 <div class=
"marker-template" style=
"display:none">
47 <span class='count'
></span>
50 <script type=
"text/javascript">
51 var cancellink
= '{$DONT_SAVE_LINK}';
53 $(document
).ready( function() {
54 $("#cancel").click(function() { location
.href
=cancellink
; });
55 var optionsLabel
= {/literal
}{$form
->optionsLabel
}{literal
};
56 var options
= {/literal
}{$form
->optionList
}{literal
};
57 var data
= {/literal
}{$form
->data
}{literal
};
58 var hideNav
= {/literal
}{$form
->hideNav
}{literal
};
63 dropdownOptions
: { label
: optionsLabel
, options
: options
},
64 container
: $("#container")
70 <form id=
"submitForm" name=
"submitForm" method=
"post" action=
"{$form->saveAction}" onsubmit=
"return top.restoreSession()">
71 <input type=
"hidden" name=
"id" value=
"{$form->get_id()}" />
72 <input type=
"hidden" name=
"pid" value=
"{$form->get_pid()}" />
73 <input type=
"hidden" name=
"process" value=
"true" />
74 <input type=
"hidden" name=
"data" id=
"data" value=
""/>