-
Notifications
You must be signed in to change notification settings - Fork 2
/
user.php
94 lines (84 loc) · 2.44 KB
/
user.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
tes
<?php session_start();include "server.php";?>
<?
//periksa apakah user telah login atau memiliki session
if(!isset($_SESSION['id_kelas']) || !isset($_SESSION['nim']) || !isset($_SESSION['nama']) || !isset($_SESSION['id_prodi'] || !isset($_SESSION['paswrd']))){
?>
<script language="javascript">
alert("Anda belum login. Please login dulu");
document.location="../index.php"
</script>
<?
}else{
echo $id_kelas=$_SESSION['id_kelas'];
$nim=$_SESSION['nim'];
$nama=$_SESSION['nama'];
$id_prodi=$_SESSION['id_prodi'];
echo $paswrd=$_SESSION['paswrd'];
$prt="select * from paswrd_khs where id_prodi='$id_prodi' and nim='$nim' and paswrd='$paswrd'";
$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>SIAKAD - POLTEKKES KENDARI</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="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 "admin.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>
<?
}
}
?>