Diff of /uinterface/index.php [000000] .. [748a59]

Switch to unified view

a b/uinterface/index.php
1
<?php
2
3
//include "include/dbconnect.php";
4
5
?>
6
7
<HTML>
8
<HEAD>
9
10
  <meta charset="utf-8">
11
  <meta name="viewport" content="width=device-width, initial-scale=1">
12
  <title>:: CTEligible :: Writing Clinical Trial Protocols</title>
13
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
14
 <!-- 
15
 <link rel="stylesheet" href="/resources/demos/style.css">
16
 -->
17
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
18
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
19
20
<!--  
21
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
22
23
<script src="https://code.jquery.com/ui/jquery-ui-git.js"></script>
24
-->
25
<script>
26
  $( function() {
27
//    $( document ).tooltip();
28
    $( "wordsuggest" ).tooltip();
29
  } );
30
  </script>
31
<style>
32
.wordsuggest{ color:"red"; }
33
</style>
34
</HEAD>
35
<BODY style="background-color: #FFFFFF">
36
<!-- <BODY style="background-image: url(background_body.jpg)"> -->
37
<?php
38
39
//include "wordsuggest.php";
40
$input = "Within";
41
42
43
?>
44
<P>
45
<font size=5>
46
<b>ELIGIBILITY:</b> <br /><br />
47
<b>
48
Trial ID: NCT6472<a href="#"></a> </span>
49
</b>
50
</font>
51
<br />
52
<br />
53
54
<table>
55
<tr>
56
<td>
57
<font size=5>
58
Within <span class="wordsuggest" title="40 days prior. Score = 55%" style="background-color: orange">36 days prior</span> to registration, you must not have treatment.
59
</font>
60
</td>
61
<td>&nbsp;</td>
62
<td>
63
<b><font color="purple" size=5>Criteria ID: 40.2, Score: 50%</font></b>
64
</td>
65
</tr>
66
<tr>
67
<td>
68
<font size=5>
69
 Platelet count <span class="wordsuggest" title="greater than or equal to 100000 platelets. Score = 68%" style="background-color: #FFFF00">greater than or equal to 70000 platelets</span> per cubic milimeter.
70
 </font>
71
 </td>
72
 <td width=2%>&nbsp;</td>
73
<td>
74
<b><font color="purple" size=5>Criteria ID: 40.6, Score: 42%</font></b>
75
</td>
76
</tr>
77
78
79
<tr>
80
<td>
81
Browse File: <br />
82
<input  name="browsefile1" type="file"></input>
83
</td><td>&nbsp;</td>
84
<td>
85
<br />
86
<br />
87
<b><font size="6"><u>Consensus Score</u>: 46%</font></b>
88
</td>
89
</tr>
90
</table>
91
92
</P>
93
94
<!--<span class="wordsuggest" title="Another similar word exists">
95
-->
96
97
<?php 
98
99
//echo ("Within 36 days prior to registration you must not have treatment");
100
//wordFunction("Within 36 days prior to registration you must not have treatment");
101
102
?>
103
104
<!--
105
</span>.
106
-->
107
<br />
108
<br />
109
<br />
110
<br />
111
<br />
112
<br />
113
<br />
114
<br />
115
<br />
116
<br />
117
<br />
118
<br />
119
<br />
120
<br />
121
<br />
122
<br />
123
<br />
124
<br />
125
<br />
126
<br />
127
<br />
128
<br />
129
<form action="process.php" method="POST">
130
Inclusion/Exclusion Criteria: <br />
131
<select name="Eligibility">
132
    <option value="">--Please choose eligibility criteria--</option>
133
    <option value="inclusion">Inclusion</option>
134
    <option value="exclusion">Exclusion</option>
135
</select>
136
<p>
137
Platelet must be greater than: <br />
138
    <input type="text" name="platelet">
139
<br />
140
And:
141
<br />
142
    <input type="text" name="and2">
143
144
List of Trials:
145
<select name="ListOfTrial">
146
    <option value=""></option>
147
    <option value="look2a">Inclusion</option>
148
    <option value="look2b">Exclusion</option>
149
 </select>
150
151
<br /> 
152
<br /> 
153
Browse File: <br />
154
<input name="browsefile2" type="file"></input>
155
 
156
<p>
157
158
<!--
159
<p>
160
Inclusion/Exclusion Criteria: <br />
161
<select name="Eligibility">
162
    <option value="">--Please choose eligibility criteria--</option>
163
    <option value="inclusion">Inclusion</option>
164
    <option value="exclusion">Exclusion</option>
165
    <option value="hamster">Hamster</option>
166
    <option value="parrot">Parrot</option>
167
    <option value="spider">Spider</option>
168
    <option value="goldfish">Goldfish</option>
169
</select>
170
<p>
171
-->
172
173
</form>
174
175
<!--
176
Wrap
177
178
Make a php function that takes a string input, queries a database, and gets the word suggestions and corresponding scores and returns those as output.
179
180
<HTML>
181
<P>
182
This is a <?php wordfunction("word"); ?>
183
184
</P>
185
</HTML>
186
187
- editing and adding the new words, we will take more jquery script, and Ajax does the updating of the database onclick.
188
189
Jquery methods: .click methods, .ajax methods are cool to do it.
190
191
192
193
194
195
196
-->
197
</font>
198
</BODY>
199
200
</HTML>