This repository has been archived by the owner on Nov 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editemploy.html
113 lines (105 loc) · 4.03 KB
/
editemploy.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
<?php
session_start();
if(!session_is_registered(myusername)){
header("Location: index.html");
}
require_once('dbconnect.php');
$result = mysqli_query($con, "SELECT * FROM members");
$info = array();
$i=0;
while($info[$i] = mysqli_fetch_row($result)){
++$i;
}
mysqli_close($con);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Information (edit)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
<!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
<!--script src="js/less-1.3.3.min.js"></script-->
<!--append ‘#!watch’ to the browser URL, then refresh the page. -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="img/favicon.png">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
<ul class="nav nav-tabs nav-stacked">
<li>
<a href="Schedulescreen.php">Schedules</a>
</li>
<li class="active">
<a href="#">Info</a>
</li>
<li>
<a href="#">Messages</a>
</li>
<li>
<a href="logout.php">Logout</a>
</li>
<li class="dropdown pull-right">
<a href="#" data-toggle="dropdown" class="dropdown-toggle">Dropdown<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li>
<a href="#">Action</a>
</li>
<li>
<a href="#">Another action</a>
</li>
<li>
<a href="#">Something else here</a>
</li>
<li class="divider">
</li>
<li>
<a href="#">Separated link</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="span10">
<form name="empinfo">
<fieldset>
<legend>Employee Information (editing)</legend> <label>First Name</label><input type="text" value="" name="First"> <span class="help-block">Example block-level help text here.</span>
<label>Last Name</label><input type="text" value="" name="Last"> <span class="help-block">Example block-level help text here.</span></br>
<label>ID Number</label><input type="text" value="" name="Idnum"> <span class="help-block">Example block-level help text here.</span></br>
<label>Email</label><input type="text" value="" name="Email"> <span class="help-block">Example block-level help text here.</span></br>
<label>Phone Number</label><input type="text" value="" name="Phone"> <span class="help-block">Example block-level help text here.</span>
<button type="button" class="btn" onclick="checkAndReturn()">Submit Changes</button>
<button type="button" class="btn" onclick="location.href='employ.php'">Cancel</button>
</fieldset>
</form>
</div>
</div>
</div>
<script type="text/javascript">
function checkAndReturn(){
if(document.empinfo.First.value == "" && document.empinfo.Last.value == "" && document.empinfo.Idnum.value == "" && document.empinfo.Email.value == "" && document.empinfo.Phone.value == "")
alert("No changes Made")
window.location="employ.php";
}
</script>
</body>
</html>