Removed comment as suggested by Brady
[openemr.git] / templates / documents / general_view.html
blob8c51d45dc237640ec8ece19d73cde1761c5a4d66
1 <head>
2 <style type="text/css">@import url(library/dynarch_calendar.css);</style>
3 <script type="text/javascript" src="library/dialog.js"></script>
4 <script type="text/javascript" src="library/textformat.js"></script>
5 <script type="text/javascript" src="library/dynarch_calendar.js"></script>
6 {php} include_once("{$GLOBALS['srcdir']}/dynarch_calendar_en.inc.php"); {/php}
7 <script type="text/javascript" src="library/dynarch_calendar_setup.js"></script>
8 <script language="JavaScript">
9 var mypcc = '{php} echo $GLOBALS['phone_country_code'] {/php}';
11 // Process click on Delete link.
12 function deleteme(docid) {literal}{{/literal}
13 dlgopen('interface/patient_file/deleter.php?document=' + docid, '_blank', 500, 450);
14 return false;
15 {literal}}{/literal}
17 // Called by the deleter.php window on a successful delete.
18 function imdeleted() {literal}{{/literal}
19 top.restoreSession();
20 window.location.href='{$REFRESH_ACTION}';
21 {literal}}{/literal}
23 // Called to show patient notes related to this document in the "other" frame.
24 function showpnotes(docid) {literal}{{/literal}
25 {php} if ($GLOBALS['concurrent_layout']) { {/php}
26 var othername = (window.name == 'RTop') ? 'RBot' : 'RTop';
27 parent.left_nav.forceDual();
28 parent.left_nav.setRadio(othername, 'pno');
29 parent.left_nav.loadFrame('pno1', othername, 'patient_file/summary/pnotes.php?docid=' + docid);
30 {php} } {/php}
31 return false;
32 {literal}}{/literal}
34 function submitNonEmpty( e ) {literal}{{/literal}
35 if ( e.elements['passphrase'].value.length == 0 ) {literal}{{/literal}
36 alert( "{xl t='You must enter a pass phrase to encrypt the document'}" );
37 {literal}}{/literal} else {literal}{{/literal}
38 e.submit();
39 {literal}}{/literal}
40 {literal}}{/literal}
42 </script>
44 </head>
46 <table valign="top" width="100%">
47 <tr>
48 <td>
49 <a class="css_button" href="{$web_path}" onclick="top.restoreSession()"><span>{xl t='Download'}</span></a>
50 <a class="css_button" href='' onclick='return showpnotes({$file->get_id()})'><span>{xl t='Show Notes'}</span></a>
51 {$delete_string}
52 </td>
53 </tr>
54 <tr>
55 <td valign="top">
56 {if !$hide_encryption}
57 <div class="text">
58 <form method="post" name="document_encrypt" action="{$web_path}" onsubmit="return top.restoreSession()">
59 <div>
60 <div style="float:left">
61 <b>{xl t='Encryption'}</b>&nbsp;
62 </div>
63 <div style="float:none">
64 <a href="javascript:;" onclick="submitNonEmpty( document.forms['document_encrypt'] );">(<span>{xl t='download encrypted file'})</span></a>
65 </div>
66 </div>
67 <div>
68 {xl t='Pass Phrase'}:
69 <input title="{xl t='Supports TripleDES encryption/decryption only.'} {xl t='Leaving the pass phrase blank will not encrypt the document'}" type='text' size='20' name='passphrase' id='passphrase' value=''/>
70 <input type="hidden" name="encrypted" value="true"></input>
71 </div>
72 </form>
73 </div>
74 <br/>
75 {/if}
76 <div class="text">
77 <form method="post" name="document_validate" action="{$VALIDATE_ACTION}" onsubmit="return top.restoreSession()">
78 <div>
79 <div style="float:left">
80 <b>{xl t='Sha-1 Hash'}:</b>&nbsp;
81 <i>{$file->get_hash()}</i>&nbsp;
82 </div>
83 <div style="float:none">
84 <a href="javascript:;" onclick="document.forms['document_validate'].submit();">(<span>{xl t='validate'})</span></a>
85 </div>
86 </div>
87 </form>
88 </div>
89 <br/>
90 <div class="text">
91 <form method="post" name="document_update" action="{$UPDATE_ACTION}" onsubmit="return top.restoreSession()">
92 <div>
93 <div style="float:left">
94 <b>{xl t='Update'}</b>&nbsp;
95 </div>
96 <div style="float:none">
97 <a href="javascript:;" onclick="document.forms['document_update'].submit();">(<span>{xl t='submit'})</span></a>
98 </div>
99 </div>
100 <div>
101 {xl t='Rename'}:
102 <input type='text' size='20' name='docname' id='docname' value='{$file->get_url_web()}'/>
103 </div>
104 <div>
105 {xl t='Date'}:
106 <input type='text' size='10' name='docdate' id='docdate'
107 value='{$DOCDATE}' title='{xl t='yyyy-mm-dd document date'}'
108 onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' />
109 <img src='interface/pic/show_calendar.gif' id='img_docdate' align='absbottom'
110 width='24' height='22' border='0' alt='[?]' style='cursor:pointer'
111 title='{xl t='Click here to choose a date'}' />
112 <select name="issue_id">{$ISSUES_LIST}</select>
113 </div>
114 </form>
115 </div>
117 <br/>
119 <div class="text">
120 <form method="post" name="document_move" action="{$MOVE_ACTION}" onsubmit="return top.restoreSession()">
121 <div>
122 <div style="float:left">
123 <b>{xl t='Move'}</b>&nbsp;
124 </div>
125 <div style="float:none">
126 <a href="javascript:;" onclick="document.forms['document_move'].submit();">(<span>{xl t='submit'})</span></a>
127 </div>
128 </div>
130 <div>
131 <select name="new_category_id">{$tree_html_listbox}</select>&nbsp;
132 {xl t='Move to Patient'} # <input type="text" name="new_patient_id" size="4" />
133 <a href="javascript:{literal}{}{/literal}"
134 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');">
135 <img src="images/stock_search-16.png" border="0" /></a>
136 <input type="hidden" name="new_patient_name" value="" />
137 </div>
138 </form>
139 </div>
141 <br/>
143 <form name="notes" method="post" action="{$NOTE_ACTION}" onsubmit="return top.restoreSession()">
144 <div class="text">
145 <div>
146 <div style="float:left">
147 <b>{xl t='Notes'}</b>&nbsp;
148 </div>
149 <div style="float:none">
150 <a href="javascript:;" onclick="document.forms['notes'].submit();">(<span>{xl t='add'}</span>)</a>
151 </div>
152 <div>
153 <textarea cols="53" rows="8" wrap="virtual" name="note" style="width:100%"></textarea><br>
154 <input type="hidden" name="process" value="{$PROCESS}" />
155 <input type="hidden" name="foreign_id" value="{$file->get_id()}" />
157 {if $notes}
158 <div style="margin-top:7px">
159 {foreach name=note_loop from=$notes item=note}
160 <div>
161 {xl t='Note'} #{$note->get_id()}
162 {xl t='Date:'} {$note->get_date()}
163 {$note->get_note()}
164 {if $note->get_owner()}
165 &nbsp;-{user_info id=$note->get_owner()}
166 {/if}
167 </div>
168 {/foreach}
169 {/if}
170 </div>
171 </div>
172 </div>
173 </form>
175 </td>
176 </tr>
177 <tr>
178 <td>
179 <div class="text"><b>{xl t='Content'}</b></div>
180 {if $file->get_mimetype() eq "image/tiff"}
181 <embed frameborder="0" type="{$file->get_mimetype()}" src="{$web_path}as_file=false"></embed>
182 {elseif $file->get_mimetype() eq "image/png" or
183 $file->get_mimetype() eq "image/jpg" or
184 $file->get_mimetype() eq "image/jpeg" or
185 $file->get_mimetype() eq "image/gif" or
186 $file->get_mimetype() eq "application/pdf" }
187 <iframe frameborder="0" type="{$file->get_mimetype()}" src="{$web_path}as_file=false"></iframe>
188 {elseif $file->get_ccr_type($file->get_id()) ne "CCR" and
189 $file->get_ccr_type($file->get_id()) ne "CCD"}
190 <iframe frameborder="0" type="{$file->get_mimetype()}" src="{$web_path}as_file=true"></iframe>
191 {/if}
192 </td>
193 </tr>
194 </table>
195 <script language='JavaScript'>
196 Calendar.setup({literal}{{/literal}inputField:"docdate", ifFormat:"%Y-%m-%d", button:"img_docdate"{literal}}{/literal});
197 </script>