Repository navigation
Expand file tree
/
Copy pathsolus_editPro.php
More file actions
107 lines (90 loc) · 3.5 KB
/
Copy pathsolus_editPro.php
File metadata and controls
107 lines (90 loc) · 3.5 KB
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
<!-- Purpose: Edit a program information
Author: Songyu Yang -->
<?php
include 'solus_connectdb.php';
// get the id from the url
$id = isset($_GET['id']) ? $_GET['id'] : '';
if (!empty($id)) {
// get the degree plan information
$sql = "SELECT * FROM degreePlan WHERE code = :id";
$stmt = $connection->prepare($sql);
$stmt->bindParam(':id', $id);
$stmt->execute();
$info = $stmt->fetch(PDO::FETCH_ASSOC);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Student Management System</title>
<link rel="stylesheet" type = "text/css" href="main.css">
<link rel="stylesheet" type = "text/css" href="Table_CSS.css">
</head>
<style>
.textClass{
height: 25px;
width: 360px;
}
.textClass label{
/*width: 50px;*/
}
.textClass input{
height: 25px;
}
.labelClass{
width: 240px;
}
</style>
<body>
<div>
<div style="display: flex">
<div style="margin: auto">
<h1>Welcome to Solus</h1>
<h3>Edit a Program Information</h3>
</div>
</div>
<div class="header" style="display: flex;">
<div style="margin: auto">
<form action="solus_enterProInfo.php" method="post">
<table>
<tr>
<div >
<td class="labelClass"><label for="code">Code:</label></td>
<td><input type="text" id="code" name="code" class="textClass" readonly value="<?=isset($info['code'])?$info['code']:''?>"></td>
<input type="hidden" name="type" value="1">
</div>
</tr>
<tr>
<div >
<td class="labelClass"><label for="name">Degree Plan Name:</label></td>
<td><input type="text" name="name" class="textClass" value="<?=isset($info['name'])?$info['name']:''?>"></td>
</div>
</tr>
<tr>
<div >
<td class="labelClass"><label for="automaticAcceptanceGPA">Automatic Acceptance GPA:</label></td>
<td><input type="text" name="automaticAcceptanceGPA" class="textClass" value="<?=isset($info['automaticAcceptanceGPA'])?$info['automaticAcceptanceGPA']:''?>"></td>
</div>
</tr>
<tr>
<div >
<td class="labelClass"><label for="pendingListAcceptanceGPA">Pending List Acceptance GPA:</label></td>
<td><input type="text" name="pendingListAcceptanceGPA" class="textClass" value="<?=isset($info['pendingListAcceptanceGPA'])?$info['pendingListAcceptanceGPA']:''?>"></td>
</div>
</tr>
</table>
<div class="">
<div>
<div style="margin-left: 50px;margin-top: 10px">
<input type="submit" value="Edit Program" style="height: 28px">
<a href="index.php" style="padding: 2px 6px;background: #54c4e5;color: white">Home</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
</html>