-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (69 loc) · 2.6 KB
/
index.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
<!doctype html>
<html>
<head>
<title>medical cloud-set</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<style type="text/css">
.c_col{
border-top:1px solid #ccc;
}
.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e{
padding-top:5px;
padding-bottom: 5px;
font-size: 12px;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src ="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
$(document).ready(function()
{
var redirect = GetUrlValue('redirect');
if(redirect == "true")
$("#wrong_cred").html("<font color=\"red\">Wrong username or password</font><br>");
console.log(redirect);
function GetUrlValue(VarSearch)
{
var SearchString = window.location.search.substring(1);
var VariableArray = SearchString.split('&');
for(var i = 0; i < VariableArray.length; i++)
{
var KeyValuePair = VariableArray[i].split('=');
if(KeyValuePair[0] == VarSearch)
{
return KeyValuePair[1];
}
}
}
});
</script>
</head>
<body>
<div data-role="page" id="one">
<div data-role="header" data-theme="b">
<h1 style="font-size:1.3em;line-height:1.3em;">Login</h1>
</div><!-- /header -->
<div data-role="content">
<div class="c_content_body">
<h4 style="text-align:center">Please fill in the information below</h4>
<form action ="http://lit-journey-1188.herokuapp.com/login_check.php" method ="get" data-ajax = "false" >
<div id ="wrong_cred"></div>
<label for="uname">Username</label>
<input type ="text" name="uname" id="uname"/><br>
<label for="pwd">Password</label>
<input type = "password" name="pwd" id="pwd"/><br>
<input type="submit" value="Submit" data-theme="b" data-icon="check" data-iconpos="right" data-inline="true" >
</form>
<a href = "http://lit-journey-1188.herokuapp.com/new_user.html">New users click here to sign up</a><br>
<a href = "http://lit-journey-1188.herokuapp.com/new_doc.html">New doctors click here to sign up</a>
</div><!-- /content -->
<br><div data-role="footer" data-theme="b">
<p style="text-align:center">Medical Cloud</p>
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>