-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsendmailfrontend.php
66 lines (61 loc) · 2.67 KB
/
sendmailfrontend.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
<?php require 'nav.php' ?>
<?php
if(!isset($_SESSION['username']))
{
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
$url = "https://";
else
$url = "http://";
$url.= $_SERVER['HTTP_HOST'];
$url.= $_SERVER['REQUEST_URI'];
$_SESSION['back']=$url;
header('Location:'.'signin.php');
}
$accountid=$_SESSION['accountid'];
if($accountid!=40)
{
header('Location:'.'index.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/formoid-flat-green.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body class="hero-image">
<section>
<div class="container center">
<form enctype="multipart/form-data" class="formoid-flat-green" style="background-color:#E4E4F4;font-size:14px;font-family:'Lato', sans-serif;color:#000;max-width:600px;min-width:150px" method="post" action="sendmail.php">
<div class="title">
<h2 style="margin-right: 27px;margin-left: 27px;">Send Promotional Emails</h2>
</div>
<div lass="element-name">
<label class="title">Subject</label> <input type="text" name="subject" required="required" style="width:50%;" /><br>
<label class="title">Customer Priority</label>
<span class="mid1">
<select name="priority" style="width:50%;">
<option value="1" selected>High Priority</option>
<option value="2">Medium Priority</option>
<option value="3">Low Priority</option>
</select>
</span><br>
<label class="title">Discount</label> <input type="text" name="discount" required="required" style="width:50%;" /><br><br>
<label class="title">Select Image</label>
<input type="file" name="fileToUpload" id="fileToUpload" style="width:50%;">
<br><br>
<label class="title">Description</label> <textarea name="description" required="required"></textarea><br>
</div>
<div class="submit"><input type="submit" value="Submit" /></div>
</form>
</section>
<!-- inspection section finish -->
<!-- footer section -->
<footer class="center">
<p style="color:white">Some Text here<br> <a href="mailto:[email protected]" style="color:white">EMAIL US</a>
</footer>
<!-- footer section finish -->
</div>
</body>
</html>