-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEWT-TEST.html
117 lines (104 loc) · 4.18 KB
/
NEWT-TEST.html
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
<html>
<head><title> Note Software</title>
<!-- add the JQuery and newt.js to create a login bar-->
<script src="https://newt.nersc.gov/js/jquery-1.7.2.js"></script>
<script src="https://newt.nersc.gov/js/newt.js"></script>
<!-- login bar-->
<script type="text/javascript">
$.newt_ajax({type: "GET",
url: "/login",
success: function(res){
// res is { username: 'xxxxx', auth: true|false }
$("#auth").html("Login Status: "+res.auth);
if (!res.auth){
$("#auth").hide()
}
reset();
},
});
$newt_ajax({
url: "/notes",
type : "POST",
data : {
dummydata: "This is a dummy data"
},
success : function(res) {
$("#notes").window.location.href = "https://portal.nersc.gov/project/m1532/MVP-NEWT/notes.html";
}
});
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="{% static 'forum/css/main.css' %}">
</head>
<body>
<!-- the below is navbar and href represent the backend api -->
<!-- NAVBAR -->
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="background-color: rgba(0,0,255,0.3)">
<a class="navbar-brand" style="background-color: rgba(0,0,255,0.3)" href="#"><b class=illini>NoteSoftware</b><b class=land></b></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/user/home/">Home <span class="sr-only">(current)</span></a>
</li>
<!-- <li class="nav-item">
<a class="nav-link" href="/square/">Square</a>
</li> -->
<li class="nav-item">
<a class="nav-link" href="/login/">Sign In / Register</a>
</li>
</ul>
</div>
</nav>
<br>
<div id="auth">
<!--<form method="post"
action="https://portal.nersc.gov/project/m1532/MVP-NEWT/notes.html"> Hello. Do you want to visit the website: NOTES PAGE</a>?<br />
It's a good website! ;-)
<div class="submit-row">
<input type="submit" value="login" />
<input type="hidden" name="next" value="" />
</div>
</form>
-->
</div>
<div id="notes"></div>
</br>
<br>
<div class="main-container center">
<div class="container">
<div class="row text-center justify-content-center section-intro">
<div class="col-12 col-md-10 col-lg-8 center" style="background-color: rgba(220, 220, 220, 0.65)">
<h1 class="display-3"><b class=illini>Note Software</b><b class=land></b></h1>
<span class="lead">
Helping Doctor get better Idea of Medical Notes.</span>
</div>
</div>
</div>
</div>
</br>
<br>
<div class="main-container center">
<div class="container">
<div class="row text-center justify-content-center section-intro">
<form action="/search/" method="POST" class="form-inline my-2 my-lg-0" >
{% csrf_token %}
<input class="form-control mr-sm-2" name ="search_string" type="search" value="Patient ID" aria-label= "Search">
<select class ="form-control" name="search_type">
<option value="hadm1">hadm1</option>
<option value="hadm2">hadm2</option>
<option value="hadm3">hadm3</option>
<option value="hadm4">hadm4</option>
<option value="hadm5">hadm5 </option>
<option value="hadm6">hadm6 </option>
</select>
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</div>
</div>
</br>
</body>
</html>