-
Notifications
You must be signed in to change notification settings - Fork 2
/
admin.php
94 lines (83 loc) · 2.4 KB
/
admin.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
<?php session_start();include "server.php";?>
<?
//periksa apakah user telah login atau memiliki session
if(!isset($_SESSION['user']) || !isset($_SESSION['pass']) || !isset($_SESSION['status']) || !isset($_SESSION['prodi'])){
?>
<script language="javascript">
alert("Anda belum login. Please login dulu");
document.location="index.php"
</script>
<?
}else{
$password=$_SESSION['pass'];
$status=$_SESSION['status'];
$username=$_SESSION['user'];
$id_prodi=$_SESSION['prodi'];
$prt="SELECT *FROM user where id_prodi='$id_prodi' and username='$username' and password='$password' and status='$status'";
$hasil=mysql_query($prt);
$ada=mysql_num_rows($hasil);
if($ada>=1)
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?
include "title.php";?></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />
<link href="tabel.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="bg_clouds">
<div id="main">
<!-- header begins -->
<div id="header">
<?
include "header.php";
include "top.php";
?>
</div>
<!-- header ends -->
<div class="top_top"></div>
<div class="top">
<div id="wrapper">
<?
include "wrapper.php";
?>
</div>
<script type="text/javascript" src="lib/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="lib/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</div>
<div class="top_bot"></div>
<div style="height:17px"></div>
<!-- content begins -->
<div class="cont_top"></div>
<div id="content">
<div class="razd_lr_h">
<?
include "home.php";
?>
<div style="clear: both"></div>
</div>
</div>
<div class="cont_bot"></div>
<!-- content ends -->
<div style="height:15px"></div>
<!-- bottom begin -->
</div>
</div>
</body>
</html>
<?
}
}
?>