-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddNewProperty.php
107 lines (89 loc) · 3.5 KB
/
AddNewProperty.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
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
<?php
include 'includes/Security_inc.php';
if(isset($_GET['error'])){
echo '<script>alert("please fill all the information");</script>';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add New Property</title>
<link rel="stylesheet" href="Styles\head.css">
<link rel="stylesheet" href="Styles\Fstyle.css">
<link rel="icon" href="image/Logo.png">
<style>main{padding: 33px;}
body .copyright{margin-top: 15%;}</style>
</head>
<body>
<header>
<div class="nav container">
<!-- Logo -->
<a href="index.php" class="logo"> <img src="image/Logo.png" alt=""> Your Home</a>
<!-- Menu Icon -->
<input type="checkbox" name="" id="menu">
<label for="menu" <i class='bx bx-menu' id="menu-icon" ></i>></label>
<!-- Nav List -->
<ul class="navbar">
<li><a href="index.php">Home</a></li>
<li><a href="index.php">About Us</a></li>
<li><a href="login.php"><img class="logOut" src="image/logOut.png" alt="Log out" width="80" height="80"></a></li>
</ul>
</div>
</header>
<main>
<form class="myForm" method="POST" action="add.php" enctype="multipart/form-data">
<fieldset>
<legend>Property Details</legend>
<ul>
<li>
<label>Property Name:
<input type="text" name="PrName"id="pname"></label>
</li>
<li>
<label>Category:</label>
<select id="Category" name="Pcate">
<option value ="11111">Apartment</option>
<option value ="22222">villa</option>
<option value ="33333">Delux</option>
</select>
</li>
<li>
<label>Number of Rooms:
<input type="text" name="numOfRooms"id="NOR"></label>
</li>
<li>
<label>Rent:
<input type="text" name="rent" id="rent"></label>
</li>
<li>
<label>Location:
<input type="text" name="location" id="location"></label>
</li>
<li>
<label>Max number of tenants:
<input type="text" name="numOfTen" id="MT"></label>
</li>
<li>
<label>Description:<br>
<textarea name="desc" id="Des" rows="6" cols="30"></textarea></label>
</li>
<li>
<label>Upload Image:
<input type="file" name="images[]" accept="image/*" multiple>
</label>
</li>
</ul>
<button name = "Submit" class="button">Submit</button>
<button type="reset" name = "Reset" class="button">Reset</button>
</fieldset>
</form>
</main>
<!-- copyright -->
<div class="copyright">
<p>© YOUR HOME 2023.com</p>
</div>
</body>
</html>