-
Notifications
You must be signed in to change notification settings - Fork 9
/
template-view.php
89 lines (80 loc) · 2.9 KB
/
template-view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
############################################
# ThaiRIS (Thai Radiology Information System)
# Version: 1.0
# File last modified: 8 Nov 2016
# File name: template-edit-show.php
# Description : Show text box for create template edit
# http://www.thairis.net
# Email : [email protected]
############################################
header("Content-type: text/html; charset=TIS-620");
include ("session.php");
$TEMPLATE_ID = $_GET['TEMPLATE_ID'];
?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620" />
<script type="text/JavaScript" src="createtemplate.js"></script>
<script type="text/javascript" src="nicEdit.js"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() {
//new nicEditor().panelInstance('area1');
//new nicEditor({fullPanel : true}).panelInstance('area2');
//new nicEditor({fullPanel : true}).panelInstance('area2');
//new nicEditor({iconsPath : 'nicEditorIcons.gif'}).panelInstance('area3');
new nicEditor({iconsPath : 'nicEditIcons-latest.gif'}).panelInstance('area2');
//new nicEditor({buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image']}).panelInstance('area4');
//new nicEditor({buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html']}).panelInstance('area2');
//new nicEditor({maxHeight : 100}).panelInstance('area5');
});
</script>
<script language=JavaScript src="frames_body_array_<?php echo $LANGUAGE ?>.js" type=text/javascript></script>
<script language=JavaScript src="mmenu.js" type=text/javascript></script>
<script language="javascript">
function fncSubmit()
{
if(document.template.modality.value == "")
{
alert('Please Select a modality type !');
document.template.modality.focus();
return false;
}
if(document.template.BODYPART.value == "")
{
alert('Please Select body part !');
document.template.BODYPART.focus();
return false;
}
document.template.submit();
}
</script>
<?php
include "connectdb.php";
include "session.php";
echo "<b><u>View Template </u></b><p>";
echo "<form name=template method=post action=template-edit-save.php enctype=\"multipart/form-data\" onSubmit=\"JavaScript:return fncSubmit();\">";
?>
<div id=showprocedure></div>
<div id="reportspace">
<textarea cols="105" rows="20" id="area2" name="TEXTREPORT">
<?php
$sql ="select ID, NAME, XRAY_CODE, XRAY_TYPE_CODE, BODY_PART, USER_ID, REPORT_DETAIL FROM xray_report_template WHERE ID='$TEMPLATE_ID'";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo $row['REPORT_DETAIL'];
$TEMPLATE_ID = $row['ID'];
$TEMPLATE_NAME = $row['NAME'];
}
?>
</textarea><br>
Template Name :
<?php
echo "<b>".$TEMPLATE_NAME."</b>";
echo "<input type=hidden name='TEMPLATE_ID' value=\"".$TEMPLATE_ID."\">";
?>
</div>
<?php
echo "</form>\n";
echo "</td></tr></table>";
echo "<center>CopyRight(C)</center>"
?>