forked from VirtualPharmacist/vp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
warfarin_choose.php
145 lines (122 loc) · 3.56 KB
/
warfarin_choose.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php
$format=$_GET['format'];
$file_code = $_GET["file_code"]; //获取到文件名(来自index的form标签)
$age=$_GET['age'];
//$sex=$_GET['Sex'];
$race=$_GET['Race'];
$kg=$_GET['kg'];
$cm=$_GET['cm'];
$enzyme=$_GET['Enzyme'];
$amiodarone=$_GET['Amiodarone'];
$genotype1=$_GET['genotype1'];
$genotype2=$_GET['genotype2'];
//$fcount=fopen("upload_file/warfarin_data/count.xls","a+");
$c12=0;
$c13=0;
$c22=0;
$c23=0;
$c33=0;
$v1=0;
$v2=0;
$v_unknown=0;
$c_unknown=0;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
if($genotype2=="VKORC1 TT"){
$v1=1;
}
if($genotype2=="VKORC1 CT"){
$v2=1;
}
if($genotype1=="CYP2C9 *1*2"){$c12=1; }
if($genotype1=="CYP2C9 *2*2"){$c22=1; }
if($genotype1=="CYP2C9 *1*3"){$c13=1; }
if($genotype1=="CYP2C9 *3*3"){$c33=1; }
if($genotype1=="CYP2C9 *2*3"){$c23=1; }
if($race=="Asian"){$asian=1;}
if($race=="Black"){$african=1;}
if($race=="Unknown"){$un=1;}
if($enzyme=="YES"){$en=1;}
if($amiodarone=="YES"){$am=1;}
if($genotype2=="unknown"){$v_unknown=1;}
if($genotype1=="unknown"){$c_unknown=1;}
$result=5.6044-0.2614*(floor($age/10))+0.0087*$cm+0.0128*$kg-0.8677*$v2-1.6974*$v1-0.5211*$c12-0.9357*$c13-1.0616*$c22-1.9206*$c23-2.3312*$c33-0.1092*$asian-0.2760*$african-0.1032*$un+1.1816*$en-0.5503*$am-0.4854*$v_unknown-0.2188*$c_unknown;
?>
<style>
ul
{
list-style:none;
}
body
{
overflow:none;
color:#FFF;
}
h3
{
font-family:Verdana, Geneva, sans-serif;
}
.font
{
color:;
font-size:16px;
font-family:Verdana, Geneva, sans-serif;
padding-bottom:3px;
border-bottom-color:#76B7E2;
border-bottom-width:thin;
}
.meta
{
height:5px;
border-bottom: 1px dotted #66F;
}
body
{
background:url(images/20101002201059574.jpg)
}
.button
{
font-family:Verdana, Geneva, sans-serif;
padding:10px;
height:40px;
width:130px;
background:#7DBBE3;
font-size:18px;
}
</style>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<?php include("title.php") ?>
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div class="entry">
<b><p class="font" align="left">Your dosage of warfarin<font color="#FF4242" style="font-weight:bolder"> <?php echo round($result*$result, 0); ?>mg/week</font></p></b>
<br />
<p class="font"> Your genotype related to warfarin:</p>
<ul>
<li class="font"> CYP2C9: <font><?php echo $genotype1 ?></font></li>
<hr size="1" color="#FAFF8A" />
<li class="font"> VKORC1: <font><?PHP echo $genotype2 ?></font></li>
<hr size="1" color="#FAFF8A" />
</ul>
<br />
<p class="font"> Your file code is: <font><?php echo $file_code ?></font></p>
<div class="meta"></div>
</div>
</body>
<script src="./scripts/jquery-1.10.2.min.js"></script>
<script language="javascript">
$(".button").mouseover(function(){
$(this).css({"font-weight":"bold"});
$(this).css({"background":"#91C5E8"});
});
$(".button").mouseout(function(){
$(this).css({"font-weight":"lighter"});
$(this).css({"background":"#7DBBE3"});
});
</script>
</html>