mengedit kode yang sudah ada

parent f2b91a6f
......@@ -13,6 +13,7 @@
<script src="js/bootstrap.min.js"></script>
<script src="js/js.js"></script>
</head>
<body background="images/eirene.jpg">
<?php
include_once('header.php');
?>
......@@ -26,7 +27,7 @@
<table>
<tr>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:900px; padding-left:400px; padding-top:60px;"> </div></td>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:1100px; padding-left:200px; padding-top:60px;"> </div></td>
</tr>
</table><br><br>
<div class="profil"><center><p style="width:900px;" ><?php echo $data['konten']; ?> </p></div>
......@@ -43,4 +44,5 @@
<hr>
<p>Copyright &copy All Right Reserved - Kelompok PA1-1617-D3TI08 - 2016</p>
</footer>
</body>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -280,7 +280,7 @@ footer{
width: 100%;
background-color: #0f0e0a;
padding-bottom: 10px;
padding-top: 15px;
padding-top: 10px;
}
.footer .icon{
......@@ -332,11 +332,83 @@ hr{
margin-top: 150px;
}
.profil p{
text-align: justify;
font-size: 24px;
color: red;
font-size: 20px;
font-family: Malgun Gothic;
color: black;
width: 100px;
}
.hero-unit {
width: 800px;
border-left: 4px solid brown;
padding: 13px 13px 13px 15px;
font-style: italic;
margin: 20px auto;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
font-size: 14px !important;
}
.hero{
background: #fff url(../img/bg-k10.png);
width: 500px;
border-left: 4px solid brown;
padding: 13px 13px 13px 15px;
font-style: italic;
margin: 20px auto;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
font-size: 14px !important;
}
#kirim{
margin-left: 300px;
width: 100px;
margin-top: 0px;
}
.dropdown-menu>li>a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: 400;
line-height: 1.42857143;
color: #f8f0f0;
white-space: nowrap;
}
.dropdown-submenu{
position: relative;
}
.dropdown-menu{
background-color: #384d53;
color: white;
}
.dropdown-submenu>a:after{
display: block;
content: " ";
float: right;
width:0;
height:0;
border-color:transparent;
border-style:solid;
border-width: 5px 0 5px 5px;
border-left-color: #ccc;
margin-top: 5px;
margin-right: -10px;
}
.dropdown-submenu:hover> .dropdown-menu{
display:block;
}
.dropdown-submenu .dropdown-menu{
left:100%;
top:0;
}
.navbar-nav{
color: black;
}
.dropdown-submenu .pull-left{
float:none;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,11 +2,11 @@
global $conn;
$conn = mysql_connect("localhost", "root", "");
$conn = mysql_connect("127.0.0.1", "root", "", "p1d3ti08_proyek");
if(!$conn){
die("database connect problem");
}
$db_use = mysql_select_db("proyek", $conn) or die ("select db problem!!");
$db_use = mysql_select_db("p1d3ti08_proyek", $conn) or die ("select db problem!!");
function execQ($strQ){
global $conn;
......@@ -15,16 +15,29 @@
return $res;
}
function getUser($username, $password){
$strQ = "select * from user where username = '$username' AND password='$password'";
$resUsr = execQ($strQ);
if (mysql_num_rows($resUsr) > 0) {
return $resUsr;
}else{
return NULL;
function getUser(){
$strQ = "SELECT * FROM user ";
$resItem = execQ($strQ);
if(mysql_num_rows($resItem)!=0){
$ret = array();
while($data = mysql_fetch_assoc($resItem)){
array_push($ret, array(
'id' => $data['id'],
'nama' => $data['namalengkap'],
'alamat' => $data['alamat'],
'email' => $data['email'],
'peserta' => $data['jumlahpeserta']
));
}
}
return $ret;
} else{
return false;
}
}
function getAllKeluhan(){
......@@ -97,4 +110,31 @@ function getUser($username, $password){
function redirect($_location){
header('Location: ' .$_location);
}
function getPemesanan(){
$strQ = "SELECT * FROM pemesanan";
$resItem = execQ($strQ);
if(mysql_num_rows($resItem)!=0){
$ret = array();
while($data = mysql_fetch_assoc($resItem)){
array_push($ret, array(
'id' => $data['id'],
'namalengkap' => $data['namalengkap'],
'alamat' => $data['alamat'],
'email' => $data['email'],
'jumlahpeserta' => $data['jumlahpeserta'],
'waktumulai' => $data['waktumulai'],
'waktuselesai' => $data['waktuselesai'],
'namaruangan' => $data['namaruangan'],
'gambar' => $data['gambar']
));
}
return $ret;
} else{
return false;
}
}
\ No newline at end of file
File added
<?php
require_once('fungsi.php');
session_start();
require_once('fungsi.php');
if(isset($_GET['out'])){
session_start();
session_destroy();
......@@ -10,34 +11,36 @@ if(isset($_GET['out'])){
<!DOCTYPE html>
<html>
<body class="tp-hd-lft wow fadeInDown animated" data-wow-delay="0.5s" background="images/bg.jpg">
<body class="tp-hd-lft wow fadeInDown animated" data-wow-delay="0.5s" >
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.htm l"></a>
<a class="navbar-brand" ></a>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<button class="navbar-toggle collapsed" data-toggle="dropdown" data-target="#bs-example-navbar-collapse-1" role="button" aria-haspopup="true" aria-expanded="false">&#9776
</button>
<ul class="dropdown-menu">
<li><a href="index.html">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PROFIL
</a>
<ul class="dropdown-menu">
<li><a href="profilwisata.php">TEMPAT WISATA</a></li>
<li><a href="profil.php">PEMILIK</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">KAMAR
</a>
<ul class="dropdown-menu">
<li><a href="daftarkamar.php">DAFTAR KAMAR</a></li>
<li><a href="mesankamar.php">MEMESAN KAMAR</a></li>
</ul>
</li>
<li><a href="aboutus.php">About Us</a></li>
<li><a href="index.php">Home</a></li>
<li><a href="profil.php">PROFIL</a></li>
<li class="dropdown-submenu">
<a href="">FASILITAS</a>
<ul class="dropdown-menu">
<li><a href="pusatseminari.php">Pusat Seminari Bukit Gibeon</a></li>
<li><a href="airterjun.php">Air Terjun</a></li>
<li class="dropdown-submenu">
<a href="rumahretret.php">Rumah retreat</a>
<ul class="dropdown-menu">
<a href="daftarkamar.php">Daftar Kamar</a>
</ul>
</li>
<li><a href="rumahdoa.php">Rumah Doa</a>
</ul>
</li>
<li><a href="aboutus.php">FEEDBACK</a></li>
</ul>
</li>
</ul>
......@@ -45,10 +48,10 @@ if(isset($_GET['out'])){
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse1">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.php">Home</a></li>
<li><a href="profil.php">PROFIL</a></li>
<li><a href="profil.php">Profil</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">FASILITAS
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Fasilitas
</a>
<ul class="dropdown-menu">
<li><a href="pusatseminari.php">Pusat Seminari Bukit Gibeon</a></li>
......@@ -58,7 +61,7 @@ if(isset($_GET['out'])){
<ul class="dropdown-menu">
<a href="daftarkamar.php">Daftar Kamar</a>
</u>
</li>
</ul>
</li>
......@@ -69,12 +72,12 @@ if(isset($_GET['out'])){
<?php
if(!isset($_SESSION['is_logged_in']))
{
echo '<li><a href="login.php">LOGIN</a></li>';
echo '<li><a href="login.php">Login</a></li>';
}
else{
echo '<li><a href="index.php?out">LOGOUT (' . $_SESSION['username'] .')</a></li>';
}?>
<li><a href="aboutus.php">CONTACT US</a></li>
}?>
<li><a href="aboutus.php">Feedback</a></li>
</ul>
</div>
</div>
......
<?php
<?php
session_start();
include_once('fungsi.php');
......@@ -6,12 +6,12 @@
header("location: login.php");
}
?>
<!DOCTYPE html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PENELOLA GIBEON</title>
<title>PENGELOLA GIBEON</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/datepicker3.css" rel="stylesheet">
......@@ -41,7 +41,7 @@
<ul class="user-menu">
<li class="dropdown pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> User <span class="caret"></span></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> Admin <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="Logout.php"><svg class="glyph stroked cancel"><use xlink:href="#stroked-cancel"></use></svg> Logout</a></li>
......@@ -62,40 +62,18 @@
<ul class="nav menu">
<li class="active"><a href="home.php"><svg class="glyph stroked dashboard-dial"><use xlink:href="#stroked-dashboard-dial"></use></svg> Dashboard</a></li>
<li><a href="isikeluhan.php"><svg class="glyph stroked calendar"><use xlink:href="#stroked-calendar"></use></svg> DAFTAR KELUHAN</a></li>
<li><a href="charts.html"><svg class="glyph stroked line-graph"><use xlink:href="#stroked-line-graph"></use></svg> UPDATE</a></li>
<li><a href="tables.html"><svg class="glyph stroked table"><use xlink:href="#stroked-table"></use></svg> PESANAN</a></li>
<li><a href="Daftar_pesanan.php"><svg class="glyph stroked table"><use xlink:href="#stroked-table"></use></svg> PESANAN</a></li>
<li class="parent ">
<a href="#">
<span data-toggle="collapse" href="#sub-item-1"><svg class="glyph stroked chevron-down"><use xlink:href="#stroked-chevron-down"></use></svg></span> Dropdown
</a>
<ul class="children collapse" id="sub-item-1">
<li>
<a class="" href="#">
<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Sub Item 1
</a>
</li>
<li>
<a class="" href="#">
<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Sub Item 2
</a>
</li>
<li>
<a class="" href="#">
<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Sub Item 3
</a>
</li>
</ul>
</li>
<li role="presentation" class="divider"></li>
</ul>
<div class="attribution">Template by <a href="http://www.medialoot.com/item/lumino-admin-bootstrap-template/">Medialoot</a><br/><a href="http://www.glyphs.co" style="color: #333;">Icons by Glyphs</a></div>
</div><!--/.sidebar-->
<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
<div class="row">
<ol class="breadcrumb">
<li><a href="#"><svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg></a></li>
<li><a href="home.php"><svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg></a></li>
<li class="active">Icons</li>
</ol>
</div><!--/.row-->
......@@ -104,7 +82,7 @@
<div class="col-lg-12">
<h1 class="page-header">Dashboard</h1>
<p> Welcome Admin </p>
<center><p style="padding-top:100px;"><font size="30px"> Welcome Admin </font> </p>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
......
......@@ -28,36 +28,33 @@ require_once(dirname(__FILE__).'/header.php');
<!-- Carousel -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="images/1.jpg" alt="slider"style="width:1400px; height:340px">
<img src="images/pintu.jpg"" alt="slider"style="width:1400px; height:600px">
<div class="carousel-caption">
<h2>SELAMAT DATANG</h2>
</div>
</div>
<div class="item">
<img src="images/gibeon.jpg" alt="slider"style="width:1400px; height:340px">
<img src="images/Bukit Gibeon.png" alt="slider"style="width:1400px; height:600px">
<div class="carousel-caption">
<h2>AIR TERJUN BUKIT GIBEON</h2>
</div>
</div>
<div class="item">
<img src="images/dodi.jpg" alt="slider"style="width:1400px; height:340px">
<img src="images/dodi.jpg" alt="slider"style="width:1400px; height:600px">
<div class="carousel-caption">
<h2>BUKIT </h2>
</div>
</div>
<div class="item">
<img src="images/menara doa.jpg" alt="slider" style="width:1400px; height:340px">
<img src="images/menara.jpg" alt="slider" style="width:1400px; height:600px">
<div class="carousel-caption">
<h2>MENARA DOA</h2>
</div>
</div>
<div class="item">
<img src="images/5.JPG" alt="slider"style="width:1400px; height:340px">
<img src="images/5.JPG" alt="slider"style="width:1400px; height:600px">
<div class="carousel-caption">
<h2>RUMAH DOA</h2>
</div>
</div>
</div>
......@@ -74,16 +71,9 @@ require_once(dirname(__FILE__).'/header.php');
</div>
</div>
<div class="jumbotron" >
<div class="container">
<h1 class="headline">BUKIT GIBEON</h1>
<p>Dengan kasih integritas dan keterampilan membawa umat-Nya kembali kepada kebenaran</p>
<br>
</div>
</div>
<footer class="footer">
<footer class="footer" style="margin-top:590px">
<div class="icon">
<a href="https://facebook.com" target="_blank"><i class="fa fa-facebook" style="font-size: 20px;"></i></a>
<a href="https://instagram.com" target="_blank"><i class="fa fa-instagram" style="font-size: 20px;"></i></a>
......
This diff is collapsed. Click to expand it.
$(document).ready(function() {
$('#register_form').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh',
},
fields: {
full_name : {
validators : {
stringLength : {
min: 4,
},
notEmpty : {
message: 'Fill your name'
}
}
},
email : {
validators : {
notEmpty : {
message : 'Fill your email'
},
emailAddress: {
message : 'Wrong email'
}
}
},
password : {
validators : {
stringLength : {
min: 6,
},
notEmpty : {
message : 'Fill your password'
}
}
},
date : {
validators : {
notEmpty : {
message : 'Fill your birth date'
}
}
},
country : {
validators : {
notEmpty : {
message : 'Where are you living ?'
}
}
},
term : {
validators : {
notEmpty : {
message : 'You must agree the term'
}
}
}
}
})
$('#register_form').data('bootstrapValidator').resetForm();
})
$(document).ready(function() {
$('.img-responsive').click(function(){
$('.modal-body').empty();
var title = $(this).parent('a').attr("title");
$('.modal-title').html(title);
$($(this).parents('div').html()).appendTo('.modal-body');
$('#myModal').modal({show:true});
});
});
\ No newline at end of file
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
\ No newline at end of file
......@@ -25,9 +25,9 @@ session_start();
<script src="js/bootstrap.min.js"></script>
</head>
<body background="images/bg.jpg" width="0px">
<body>
<body background="images/jay.jpg">
<div class="containers">
......@@ -46,12 +46,12 @@ session_start();
<form action="login_proses.php" autocomplete="on" method="POST">
<h1>Log in</h1>
<p>
<label for="username" class="uname" > Your email or username </label>
<input id="username" name="username" type="text" placeholder="enter username"/>
<label for="username" class="uname" > Your username</label>
<input id="username" name="username" type="text" placeholder="enter username" required>
</p>
<p>
<label for="password" class="youpasswd" > Your password </label>
<input id="password" name="password" type="password" placeholder="masukkan passoword" />
<input id="password" name="password" type="password" placeholder="enter passoword" required >
</p>
<p class="login button">
......
......@@ -16,6 +16,10 @@ if($check>=0){
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
$_SESSION['role'] = $r['role'];
$_SESSION['nama'] = $r['namalengkap'];
$_SESSION['alamat'] = $r['alamat'];
$_SESSION['email'] = $r['email'];
if($r['role']=='admin'){
header('LOCATION: home.php');
......
......@@ -13,9 +13,9 @@
<script src="js/bootstrap.min.js"></script>
<script src="js/js.js"></script>
</head>
<body background="images/bg.jpg" width="0px">
<body background="images/eirene.jpg">
<div class="container">
<div class="container" style="padding-top:20px">
<?php
include_once('header.php');
require_once(dirname(__FILE__ ).'/fungsi.php');
......@@ -23,19 +23,21 @@
$query = mysql_query("SELECT * FROM profil WHERE id='3'");
$data = mysql_fetch_array($query);
?>
<div class="col-md-6">
<table>
<tr>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:1000px; padding-left:150px; padding-top:60px;"> </div></td>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:400px; height:400px; padding-top:60px;"> </div></td>
</tr>
</table><br><br>
<div class="profil"><center><p style="width:840px;" ><?php echo $data['konten']; ?> </p></div>
</div> `
</table>
</div><br><br><br>
<div class="col-md-4" >
<div class="profil"><center><p style="width:500px;" ><?php echo $data['konten']; ?> </p></div>
</div>
</div>
</body>
<footer class="footer">
<footer class="footer" style="margin-top:165px">
<div class="icon">
<a href="https://facebook.com" target="_blank"><i class="fa fa-facebook" style="font-size: 20px;"></i></a>
<a href="https://instagram.com" target="_blank"><i class="fa fa-instagram" style="font-size: 20px;"></i></a>
......
......@@ -13,6 +13,7 @@
<script src="js/bootstrap.min.js"></script>
<script src="js/js.js"></script>
</head>
<body background="images/eirene.jpg">
<?php
include_once('header.php');
?>
......@@ -25,7 +26,7 @@
<table>
<tr>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:900px; padding-left:400px; padding-top:60px;"> </div></td>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:900px; margin-left:220px; padding-top:60px;"> </div></td>
</tr>
</table> <br><br>
<div class="profil"><center><p style="width:900px;" ><?php echo $data['konten']; ?> </p></div>
......@@ -42,5 +43,6 @@
<hr>
<p>Copyright &copy All Right Reserved - Kelompok PA1-1617-D3TI08 - 2016</p>
</footer>
</body>
</html>
\ No newline at end of file
......@@ -13,6 +13,7 @@
<script src="js/bootstrap.min.js"></script>
<script src="js/js.js"></script>
</head>
<body background="images/eirene.jpg">
<?php
include_once('header.php');
?>
......@@ -24,14 +25,20 @@
$data = mysql_fetch_array($query);
?>
<table>
<div class="col-md-6">
<table>
<tr>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:900px; padding-left:400px; padding-top:60px;"> </div></td>
<td><img src="<?php echo $data['gambar']; ?>"style="width:500px; padding-left:70px; margin-top:100px;"> </td>
</tr>
</table><br><br>
<div class="profil"><center><p style="width:900px;" ><?php echo $data['konten']; ?> </p></div>
</table>
</div>
<br><br><br><br><br>
<div class="col-md-4">
<center><div class="profil"><p style="width:500px; padding-top:30px;" ><?php echo $data['konten']; ?> </p></div>
</div>
</body>
<footer class="footer">
<footer class="footer" style="margin-top:472px">
<div class="icon">
<a href="https://facebook.com" target="_blank"><i class="fa fa-facebook" style="font-size: 20px;"></i></a>
<a href="https://instagram.com" target="_blank"><i class="fa fa-instagram" style="font-size: 20px;"></i></a>
......@@ -43,4 +50,5 @@
<hr>
<p>Copyright &copy All Right Reserved - Kelompok PA1-1617-D3TI08 - 2016</p>
</footer>
</body>
</html>
\ No newline at end of file
......@@ -13,6 +13,7 @@
<script src="js/bootstrap.min.js"></script>
<script src="js/js.js"></script>
</head>
<body background="images/eirene.jpg">
<?php
include_once('header.php');
?>
......@@ -24,14 +25,20 @@
$data = mysql_fetch_array($query);
?>
<table>
<div class="col-md-6">
<table>
<tr>
<td><div class="gambar"><img src="<?php echo $data['gambar']; ?>"style="width:900px; padding-left:400px; padding-top:60px;"> </div></td>
<td><img src="<?php echo $data['gambar']; ?>"style="width:600px; height:360px; margin-top:140px;"> </td>
</tr>
</table><br><br>
<div class="profil"><center><p style="width:900px;" ><?php echo $data['konten']; ?> </p></div>
</table>
</div>
<br><br><br><br><br>
<div class="col-md-4">
<center><div class="profil"><p style="width:500px; padding-top:30px;" ><?php echo $data['konten']; ?> </p></div>
</div>
</body>
<footer class="footer">
<footer class="footer" style="margin-top:472px">
<div class="icon">
<a href="https://facebook.com" target="_blank"><i class="fa fa-facebook" style="font-size: 20px;"></i></a>
<a href="https://instagram.com" target="_blank"><i class="fa fa-instagram" style="font-size: 20px;"></i></a>
......@@ -43,4 +50,5 @@
<hr>
<p>Copyright &copy All Right Reserved - Kelompok PA1-1617-D3TI08 - 2016</p>
</footer>
</body>
</html>
\ No newline at end of file
......@@ -2,7 +2,7 @@
$host="127.0.0.1";
$user="root";
$pass="";
$name="proyek";
$name="p1d3ti08_proyek";
$koneksi=mysql_connect($host,$user,$pass)or die("Koneksi ke database gagal!");
mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!");
......@@ -13,5 +13,6 @@ mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!");
$password = $_POST['password'];
mysql_query("insert into user (namalengkap, alamat, email, username, password) values('$nama_lengkap', '$alamat', '$email', '$username', '$password')");
header('Location: pengunjung.php');
header('Location: login.php');
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment