-
Notifications
You must be signed in to change notification settings - Fork 3
/
agentindex.php
executable file
·110 lines (102 loc) · 4.15 KB
/
agentindex.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
108
109
110
<?php
session_start();
include_once 'db.php';
if(isset($_POST['btn_submit']))
{
$uname = mysqli_real_escape_string($conn, $_POST['uname']);
$upass = mysqli_real_escape_string($conn, $_POST['upass']);
$res = mysqli_query($conn, "SELECT * FROM add_agent WHERE uname='$uname' and password='$upass'");
$row = mysqli_fetch_assoc($res);
if($row && $row['password'] == $upass)
{
$_SESSION['user1'] = $row['uname'];
$_SESSION['user'] = $row['agid'];
header("Location: agenthome.php");
exit();
}
else
{
echo "<script>alert('Wrong details');</script>";
}
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="keywords" content="slideman, sliderman.js, javascript slider, jquery, slideshow, effects" />
<meta name="description" content="Sliderman.js - will do all the sliding for you :)" />
<style type="text/css">
* { margin: 0; outline: none; }
.c { clear: both; }
#wrapper { margin: 0 auto; padding: 0 40px 60px 40px; width: 960px; }
h2 { padding: 20px 0 10px 0; font-size: 24px; line-height: 40px; font-weight: normal; color: #adc276; text-shadow: 0 1px 3px #222222; }
</style>
<!-- sliderman.js -->
<script type="text/javascript" src="js/sliderman.1.3.8.js"></script>
<link rel="stylesheet" type="text/css" href="css/sliderman.css" />
<link href="style.css" rel="stylesheet">
<!-- /sliderman.js -->
</head>
<body id="back" style="width: 100%; height:100%; padding-bottom:20px" >
<!-- <div id="back" style="width: 100%"> -->
<div id="head" style="width: 50%; margin-left:25%; margin-right:30%; padding-top:10px"></div>
<div id="slider_container_1" style="margin-left: 18%; margin-right:15% " >
<div id="SliderName" >
<img src="images/banner2.jpg" title="Description from Image Title" width="1000" height="300"/>
<img src="images/banner3.jpg" />
<img src="images/banner1.jpg" />
</div>
<div class="c"></div>
<div id="SliderNameNavigation"></div>
<div class="c"></div>
<script type="text/javascript">
Sliderman.effect({name: 'demo01', cols: 10, rows: 5, delay: 10, fade: true, order: 'straight_stairs'});
var demoSlider = Sliderman.slider({
container: 'SliderName',
width: 900,
height: 300,
effects: 'demo01',
display: {
pause: true,
autoplay: 2000,
always_show_loading: 200,
description: {background: '#ffffff', opacity: 0.5, height: 50, position: 'bottom'},
loading: {background: '#000000', opacity: 0.2, image: 'img/loading.gif'},
buttons: {opacity: 1, prev: {className: 'SliderNamePrev', label: ''}, next: {className: 'SliderNameNext', label: ''}},
navigation: {container: 'SliderNameNavigation', label: ' '}
}
});
</script>
<div class="c"></div>
</div>
<div class="c"></div>
<div id="main">
<div id="menubar">
<ul id="menu">
<li class="selected"><a href="index.php">Donor</a></li>
<li><a href="Agentindex.php">Agent</a></li>
<li><a href="adminindex.php">Admin</a></li>
</ul>
</div>
<div style="margin-left: 200px;"><form method="POST">
<div id="lbackimage">
<div id="loginback">
<div id="loginhead">
Login
</div>
<div id="loginarea">
<label>Username</label> <input type="text" name="uname" required/><br><br>
<label>Password</label> <input type="password" name="upass" required/>
<div id="dbutton1">
<input type="submit" name="btn_submit" value="SIGN IN" style="text-decoration:none; margin-right:20px; font-size:20px;height:40px; font-size:10;background-color: blue;color:white ;padding-top:0px;padding-bottom:0px;padding-left:10px;padding-right:10px;border-radius:10px ;">
</div>
</div>
</div>
</div>
</form></div>
</div>
</div>
</body>
</html>