-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_project.php
executable file
·64 lines (59 loc) · 3.66 KB
/
create_project.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
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" href="logo.png" sizes="16x16 32x32" type="image/png">
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase.js"></script>
<script src="creds/creds.js"></script>
<script>firebase.initializeApp(config);</script>
<script src="https://cdn.firebase.com/libs/firebaseui/1.0.0/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/1.0.0/firebaseui.css" />
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
<script src="js/custom.js"></script>
<link rel="stylesheet" href="css/main.css"/>
<script src="js/authvar.js"></script>
</head>
<body>
<div class="sup">
<ul>
<li><a href="main_page.php" style="font-size: 1.2rem;">Explore</a></li>
<li><a href="create_project.php" style="color: #D8D8D8 !important; font-size: 1.2rem;">Create</a></li>
<li><a href="account.php" style="font-size: 1.2rem;">Profile</a></li>
<li><a href="#" id="signout" style="color: #FFF; font-size: 1.2rem;">Sign Out</a></li>
</ul>
</div>
<?php
//when you access this page from 'edit', id is equal to the id of the post
//when you access this page from 'create', id is 0
//$id = $_POST['edit_id'];
$id =0;
?>
<div style="padding-top: 2em; width: 90%; margin: 0 auto;">
<center>
<form action='post.php' method='post'>
<input type="hidden" name='id' value="<?php echo $id; ?>">
<h1 style="font-size:1.5em; margin-bottom: -.2em;">Name of Project</h1><br>
<input type='text' name='name_of_project' style="width: 500px; height: 30px; font-size:14px;"><br>
<h1 style="font-size:1.5em; margin-bottom: -.2em; padding-top: 1em;">Description</h1>
<textarea name='description' style="margin-top:1.7em; width: 600px; height: 250px; font-size:14px;"></textarea>
<h1 style="font-size:1.5em; margin-bottom: -.2em; padding-top: 1.3em;">Looking For</h1>
Category: <select name="categories" style="margin-top: 1.6em;">
<option value="Art/Design">Art/Design</option>
<option value="Computer Science" checked>Computer Science</option>
<option value="Engineering">Engineering</option>
<option value="Humanities">Humanities</option>
<option value="Math">Math</option>
<option value="Science">Science</option>
<option value="Other">Other</option>
</select><br>
<input type='text' name='looking_at' placeholder="example: designer" style="margin-top:1.7em; width: 500px; height: 30px; font-size:14px;"><br>
<input type='submit' style="border: none; background-color: #D8D8D8; margin-top: 2em; width: 75px; height: 30px;">
</form>
</center>
</div>
</body>
</html>