-
Notifications
You must be signed in to change notification settings - Fork 9
/
template-create.php
105 lines (100 loc) · 3.97 KB
/
template-create.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
<?php
############################################
# ThaiRIS (Thai Radiology Information System)
# Version: 0.9
# File last modified: 8 Nov 2016
# File name: template-create.php
# Description : Create template from Menu
# http://www.thairis.net
# Email : [email protected]
############################################
header("Content-type: text/html; charset=TIS-620");
include "connectdb.php";
include "session.php";
?>
<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>
<body bgcolor="#d4d4d4" topmargin=0 leftmargin=0>
<div id="header-wrap">
<div id="header-container">
<table border=0 cellspacing=0 cellpedding=0 width=100%>
<tr>
<td BACKGROUND="cornner/hl.gif" border=0 width=20 height=36></td>
<td background="cornner/bg.gif" height=36 width=70%></td>
<td background="cornner/hm1.gif" width=33 align=right></td>
<td background="cornner/hm2.gif">Create Template</td>
<td background="cornner/hm4.gif" width=1></td>
<td background="cornner/hm2.gif"><?php echo $username; ?></td>
<td background="cornner/hm3.gif" width=30></td>
</tr>
</table>
</div>
</div>
<br/>
<?php
$sql = "select XRAY_TYPE_CODE from xray_type";
$result = mysql_query($sql);
echo "<center><table bgcolor=white ><tr><td>";
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 = mysql_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"></textarea><br />
<center>Template Name : <input type=text name=TEMPLATENAME maxlength="30">
<input type=submit value="Save Template"> </center></div>
<?php
echo "</form>\n";
echo "</td></tr></table>";
echo "<center>CopyRight(C)</center>"
?>