-
Notifications
You must be signed in to change notification settings - Fork 1
/
renew.php
38 lines (37 loc) · 1.26 KB
/
renew.php
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
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<?php
require_once 'UserInterface.php';
if (isset($_POST['resubmit'])){
$ui = new UserInterface();
$return = $ui->postData();
if ($return === 0){
echo "<h2 align=center>An error occurred</h2>";
}else{
echo "<h2 align=center>$return</h2>";
}
}else{
?>
<h1 align="center">Renew Book</h1>
<form action="renew.php" method="POST">
<p align="center">User's name<br><input type="text" name="user" style=width:8em;>
<p align="center">Admin's name<input type="text" name="admin" style=width:8em;>
Admin's password<input type="password" name="pass" style=width:8em;>
<p align="center">ISBN<br><input type="text" name="isbn" style=width:8em;>
<p align="center"><input type="submit" name="resubmit" value="Enter">
</form>
<?php
}
?>
</body>
<br><p align="center"><a href="main.php">Return to Main Page</a>
</html>