-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarketing.php
65 lines (64 loc) · 1.56 KB
/
marketing.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
<?php
require_once("initdb.php");
if (isset($_SESSION['type']))
{
switch ($_SESSION['type'])
{
case 'MN':
header("Location: $mn_page");
_exit();
case 'MK':
$level=0;
_exit();
case 'PR':
$level=2;
_exit();
case 'AD':
$level=0;
_exit();
case 'ML':
$level=2;
_exit();
case 'CL':
$level=2;
_exit();
case 'PL':
$level=2;
_exit();
case 'NU':
$level=1;
_exit();
}
} else
{
_exit("You do not have access to this page");
}
$user=$_SESSION['uname'];
if (isset($_POST["submit"]))
{
$in="INSERT INTO `marketing_contacts` (tel ,tel2 , offer, cmpname ,contactper , status, email, notes, submitted_by) VALUES ('$_POST[tel]', '$_POST[tel2]', '$_POST[offer]', '$_POST[cmpname]', '$_POST[contactper]', 'Check', '$_POST[email]', '$_POST[notes]', '$_SESSION[uname]');";
$mysqli->query($in) or die($mysqli->error);
}
?>
<html>
<head>
<title>Welcome : Tathva 13 Organiser</title>
<link rel="shortcut icon" href="taticon.png" type="image/png" />
<link rel="stylesheet" href="style/home.css" type="text/css" media="all" />
<link rel="stylesheet" href="style/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="style/kash.css" type="text/css" media="all" />
</head>
<body>
<?php include('font.php');?>
<?php include('header.php');?>
<div id="main">
<div id="show">
<?php include('modules/table-marketing');?>
</div>
<div id="add">
<?php include('modules/form-marketing');?>
</div>
</div>
<?php include('footer.php');?>
</body>
</html>