-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooking.html
97 lines (79 loc) · 3.07 KB
/
booking.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
<!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 src ="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
var usr_id = GetUrlValue('usr_id');
document.getElementById("usr_id").value = usr_id;
var doc_id = GetUrlValue('doc_id');
document.getElementById("doc_id").value = doc_id;
//var hide_text = document.getElementById('uid');
document.getElementById('usr_id').style.display = 'none';
document.getElementById('doc_id').style.display = 'none';
console.log(document.getElementById("usr_id").value);
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;">Booking</h1>
</div><!-- /header -->
<div data-role="content">
<h4>Enter the details</h4>
<form action ="http://lit-journey-1188.herokuapp.com/booking.php" method ="get" data-ajax = "false" >
<label for="pat_name">Name</label>
<input type ="text" name="pat_name" id="pat_name" value=""/><br>
<label for="age">Age</label>
<input type ="text" name="age" id="age" value=""/><br>
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Sex:</legend>
<input type="radio" name="sex" id="male" value="male" checked="checked">
<label for="male">Male</label>
<input type="radio" name="sex" id="female" value="female">
<label for="female">Female</label>
</fieldset>
<input type ="text" id ="usr_id" value="" name="usr_id" ></input>
<input type ="text" id ="doc_id" value="" name="doc_id" ></input>
<label for="add">Addres</label>
<textarea name="add" id="add"></textarea><br>
<!-- <input type="button" value="addButton" data-theme="b" data-icon="arrow-r" data-iconpos="right" id = "addButton"> -->
<input type="submit" value="Submit" data-theme="b" data-icon="arrow-r" data-iconpos="right">
</form>
</div><!-- /content -->
<div data-role="footer" data-theme="b">
<p style="text-align:center">Medical Cloud</p>
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>