-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcreateCampaign.php
92 lines (81 loc) · 3.71 KB
/
createCampaign.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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Fund Raiser | Raise Fund At An Ease</title>
<link rel="stylesheet" href="assets/css/createCampaign.css">
</head>
<body>
<!-- navigation section -->
<div class="nav-bar">
<a href="index.php">
<img src="assets/images/logo.png" alt="Fund Raiser logo">
</a>
<div class="nav-links">
<a href="campaigns.php">CAMPAIGNS</a>
<a href="donors.php">DONORS</a>
</div>
<?php
if(!isset($_SESSION['o_id'])) {
header("Location: index.php");
} else { //if organizers are logged in
echo '<form action="includes/Logout.inc.php" method="POST">
<div class="btn-login-signup">
<button type="submit" id="btn-login" name="submit">LOGOUT</button>
</div>
</form>';
}
?>
</div>
<!-- body part -->
<div class="signupbox">
<div class="boxone">
<span id="create">Create Campaigns to Raise Funds</span>
</div>
<div class="boxtwo">
<br>
<form action="includes/createCampaign.inc.php" method="POST" enctype="multipart/form-data">
<input type="text" name="campaignName" placeholder="Campaign name" required><br><br>
<select name="campaignType" required>
<option disabled selected>Type of Campaign</option>
<option value="natural disaster">Natural Disasters</option>
<option value="social">Social</option>
<option value="others">Others</option>
</select><br><br>
<input type="number" min="1" name="campaignDays" placeholder="Estimated Days" required><br><br>
<input type="text" name="campaignAmount" placeholder="Estimated Amount" required><br><br>
<textarea rows="5" cols="50" name="campaignDescription" placeholder="Description of your campaign" required></textarea><br><br>
<input type="tel" name="phone" placeholder="Phone: 98********" pattern="[0-9]{10}" required><br><br>
<!-- to-do upload file -upload image only-->
<span id="campaignImage">Upload image of campaign</span> <br>
<input type="file" name="campaignPhoto" accept="image/*"><br><br>
<input type="checkbox" required><span id="agreeterms"> Agree all terms and conditions</span><br>
<input type="submit" name="submit" value="Create Campaign">
</form>
</div>
</div>
<!-- extra information section is right side-->
<div class="extraInfo">
<div class="infoTextHeading">
<span id="create">Details to be filled:</span>
</div>
<div class="infoText">
<ul>
<li>Enter the name of your campaign.</li>
<li>Enter the type which fits your campaign</li>
<li>Enter the number of days you want to run the campaign and estimated amount.</li>
<li>Enter the detailed description of your campaign. Why it is necessary and for whom you are creating this campaign etc.</li>
<li>Enter the phone number of the person associated with this campaign.</li>
<li>Upload the image the suits the campaign.(Optional)</li>
</ul>
</div>
</div>
<!-- Footer section -->
<?php
include_once 'footer.php';
?>