-
Notifications
You must be signed in to change notification settings - Fork 1
/
createtemplate.php
114 lines (107 loc) · 4.71 KB
/
createtemplate.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
# ThaiRIS (Thai Radiology Information System)
# Version: 1.8
# File last modified: 4-Oct 2020
# File name:
# http://www.thairis.net
# By ThaiRIS.Net
# Email : [email protected]
##############################################################################
# COPYRIGHT NOTICE
# Copyright 2009-2024 ThaiRIS All Rights Reserved.
#
# This script may be used and modified free of charge by anyone so long as
# this copyright notice and the comments above remain intact. By using this
# code you agree to indemnify ThaiRIS.net from any liability that might
# arise from it's use.
#
# Selling the code for this program without prior written consent is
# expressly forbidden. In other words, please ask first before you try and
# make money off this program.
#
# Obtain permission before redistributing this software over the Internet or
# in any other medium. In all cases copyright and header must remain intact.
# This Copyright is in full effect in any country that has International
##############################################################################
header("Content-type: text/html; charset=TIS-620");
include ("session.php");
include "connectdb.php";
$Accession = $_GET['Accession'];
?>
<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;
}
if(document.template.TEMPLATENAME.value == "")
{
alert('Please input Template Name !');
document.template.TEMPLATENAME.focus();
return false;
}
document.template.submit();
}
</script>
<?php
$sql = "select XRAY_TYPE_CODE from xray_type";
$result = mysqli_query($dbconnect, $sql);
echo "<b><u>Create Template</u></b><p>";
echo "<form name=template method=post action=createtemplate-save.php enctype=\"multipart/form-data\" onSubmit=\"JavaScript:return fncSubmit();\">";
echo "<input type=hidden name='CENTER' value=\"".$center_code."\">";
echo "<input type=\"hidden\" name=\"department_selected\" value=''></div>";
echo "Template In :";
echo "<SELECT NAME=\"owner\">\n<OPTION VALUE=".$usercode.">My Template</OPTION>\n";
echo "<OPTION VALUE=\"ALL\">ALL User</OPION></SELECT>";
echo "Modality Type : <SELECT id=\"modality\" name=\"modality\" onChange=select_mod('xxx')>";
echo "<OPTION></OPTION>";
while($row = mysqli_fetch_array($result)){
echo "<OPTION VALUE=".$row['XRAY_TYPE_CODE'].">".$row['XRAY_TYPE_CODE']."</OPTION>";
}
echo "</SELECT>";
?>
<div id=showprocedure></div>
<div id="reportspace">
<textarea cols="105" rows="20" id="area2" name="TEXTREPORT">
<?php
$sql ="select TEMP_REPORT FROM xray_request_detail WHERE ACCESSION='$Accession'";
$result = mysqli_query($dbconnect, $sql);
while($row = mysqli_fetch_array($result))
{
echo $row['TEMP_REPORT'];
}
?>
</textarea><br>
Template Name : <input type=text name=TEMPLATENAME maxlength="30">
<input type=submit value="Save Template"> </div>
<?php
echo "</form>\n";
echo "</td></tr></table>";
echo "<center>CopyRight(C) ThaiRIS.net</center>"
?>