1 <style type=
"text/css">@import url
(library/dynarch_calendar.css);</style>
2 <script type=
"text/javascript" src=
"library/dialog.js"></script>
3 <script type=
"text/javascript" src=
"library/textformat.js"></script>
4 <script type=
"text/javascript" src=
"library/dynarch_calendar.js"></script>
5 <script type=
"text/javascript" src=
"library/dynarch_calendar_en.js"></script>
6 <script type=
"text/javascript" src=
"library/dynarch_calendar_setup.js"></script>
7 <script language=
"JavaScript">
8 var mypcc
= '{php} echo $GLOBALS['phone_country_code
'] {/php}';
9 // Process click on Delete link.
10 function deleteme(docid
) {literal
}{{/literal
}
11 dlgopen('interface/patient_file/deleter.php?document=' + docid
, '_blank', 500, 450);
14 // Called by the deleter.php window on a successful delete.
15 function imdeleted() {literal
}{{/literal
}
17 window
.location
.href
='{$REFRESH_ACTION}';
23 <a href=
"{$web_path}" onclick=
"top.restoreSession()">{xl t='Click to download'}
</a>
24 {$delete_string}
26 <p><form method=
"post" name=
"document_update" action=
"{$UPDATE_ACTION}" onsubmit=
"return top.restoreSession()">
28 <input type='text' size='
10' name='docdate' id='docdate'
29 value='{$DOCDATE}' title='{xl t='yyyy-mm-dd document date'}'
30 onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)'
/>
31 <img src='interface/pic/show_calendar.gif' id='img_docdate' align='absbottom'
32 width='
24' height='
22' border='
0' alt='[?]' style='cursor:pointer'
33 title='{xl t='Click here to choose a date'}'
/>
35 <select name=
"issue_id">{$ISSUES_LIST}
</select>
37 <input type=
"submit" name=
"docupdate" value=
"{xl t='Update'}" />
40 <p><form method=
"post" name=
"document_move" action=
"{$MOVE_ACTION}" onsubmit=
"return top.restoreSession()">
41 <select name=
"new_category_id">{$tree_html_listbox}
</select>
42 {xl t='Move to Patient'} #
<input type=
"text" name=
"new_patient_id" size=
"4" />
43 <a href=
"javascript:{literal}{}{/literal}"
44 onclick=
"top.restoreSession();var URL='controller.php?patient_finder&find&form_id={"document_move['new_patient_id']
"|escape:"url
"}&form_name={"document_move['new_patient_name']
"|escape:"url
"}'; window.open(URL, 'document_move', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=450,height=400,left=425,top=250');">
45 <img src=
"images/stock_search-16.png" border=
"0" /></a>
46 <input type=
"hidden" name=
"new_patient_name" value=
"" />
47 <input type=
"submit" name=
"move" value=
"{xl t='Move'}" />
50 <p><form name=
"notes" method=
"post" action=
"{$NOTE_ACTION}" onsubmit=
"return top.restoreSession()">
51 <textarea cols=
"53" rows=
"4" wrap=
"virtual" name=
"note"></textarea><br>
52 <input type=
"submit" name=
"add note" value=
"{xl t='Add Note'}">
53 <input type=
"hidden" name=
"process" value=
"{$PROCESS}" />
54 <input type=
"hidden" name=
"foreign_id" value=
"{$file->get_id()}" />
57 <textarea cols=
"53" rows=
"10" readonly style='background-color:transparent'
>
58 {foreach name=note_loop from=$notes item=note}
59 {xl t='Note'} #{$note-
>get_id()}
60 {xl t='Date:'} {$note-
>get_date()}
70 {if $file-
>get_mimetype() eq
"image/tiff"}
71 <embed frameborder=
"0" type=
"{$file->get_mimetype()}" src=
"{$web_path}as_file=false"></embed>
72 {elseif $file-
>get_mimetype() eq
"image/png" or $file-
>get_mimetype() eq
"image/jpg" or $file-
>get_mimetype() eq
"image/jpeg" or $file-
>get_mimetype() eq
"image/gif"}
73 <iframe frameborder=
"0" type=
"{$file->get_mimetype()}" src=
"{$web_path}as_file=false"></iframe>
75 <iframe frameborder=
"0" type=
"{$file->get_mimetype()}" src=
"{$web_path}as_file=true"></iframe>
80 <script language='JavaScript'
>
81 Calendar
.setup({literal
}{{/literal}inputField:"docdate", ifFormat:"%Y-%m-%d", button:"img_docdate"{literal}}{/literal});