Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mei Romauli Sagala
RestoranPondokEdo
Commits
d0c1b693
Commit
d0c1b693
authored
May 18, 2017
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Penambahan halaman Profil pantai bulbul
parent
55e20f65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
61 deletions
+107
-61
form_login.php
form_login.php
+62
-61
profil_bulbul.php
profil_bulbul.php
+45
-0
No files found.
form_login.php
View file @
d0c1b693
<?php
require_once
(
dirname
(
__FILE__
)
.
'/common/header.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/cek_login.php'
);
if
(
isset
(
$_GET
[
'do_login'
])){
$login
=
getUser
(
$_POST
[
'username'
],
$_POST
[
'password'
]);
if
(
$login
==
false
){
$_SESSION
[
'login_error'
]
=
TRUE
;
}
else
{
$_SESSION
[
'user'
]
=
TRUE
;
header
(
"location:index.php"
);
}
$log
=
getAdmin
(
$_POST
[
'username'
],
$_POST
[
'password'
]);
if
(
$log
==
false
){
$_SESSION
[
'login_error'
]
=
TRUE
;
}
else
{
$_SESSION
[
'admin'
]
=
TRUE
;
header
(
"location:admin_menu.php"
);
}
if
(
isset
(
$_SESSION
[
"login_error"
])){
echo
"<script> window.alert('Login Gagal !! Username dan Password Salah !!')</script>"
;
}
}
?>
<br/>
<form
class=
'well form-horizontal'
action=
'form_login.php?do_login=1'
method=
'post'
id=
'contact_form'
>
<fieldset>
<legend><span
class=
'glyphicon glyphicon-log-in'
></span>
Login
</legend>
<div
class=
'form-group'
>
<label
class=
'col-md-4 control-label'
>
Username
</label>
<div
class=
'col-md-4 inputGroupContainer'
>
<div
class=
'input-group'
>
<span
class=
'input-group-addon'
><i
class=
'glyphicon glyphicon-user'
></i></span>
<input
type=
'text'
name=
'username'
required
placeholder=
'Username'
class=
'form-control'
type=
'text'
>
</div>
</div>
</div>
<div
class=
'form-group'
>
<label
class=
'col-md-4 control-label'
>
Password
</label>
<div
class=
'col-md-4 inputGroupContainer'
>
<div
class=
'input-group'
>
<span
class=
'input-group-addon'
><i
class=
'glyphicon glyphicon-lock'
></i></span>
<input
name=
'password'
required
placeholder=
'Password'
class=
'form-control'
type=
'password'
>
</div>
</div>
</div>
<div
class=
'form-group'
>
<label
class=
'col-md-4 control-label'
></label>
<div
class=
'col-md-4'
>
<input
type=
'submit'
value=
'login'
class=
'btn btn-default'
>
</div>
</div>
<center>
Belum punya akun?
<a
href=
'form_daftar.php'
>
silahkan daftar disini
</center>
</fieldset>
</form>
<?php
require_once
(
dirname
(
__FILE__
)
.
'/common/footer.php'
);
<?php
require_once
(
dirname
(
__FILE__
)
.
'/common/header.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/cek_login.php'
);
if
(
isset
(
$_GET
[
'do_login'
])){
$login
=
getUser
(
$_POST
[
'username'
],
$_POST
[
'password'
]);
if
(
$login
==
false
){
$_SESSION
[
'login_error'
]
=
TRUE
;
}
else
{
$_SESSION
[
'user'
]
=
TRUE
;
header
(
"location:index.php"
);
}
$log
=
getAdmin
(
$_POST
[
'username'
],
$_POST
[
'password'
]);
if
(
$log
==
false
){
$_SESSION
[
'login_error'
]
=
TRUE
;
}
else
{
$_SESSION
[
'admin'
]
=
TRUE
;
header
(
"location:admin_menu.php"
);
}
if
(
isset
(
$_SESSION
[
"login_error"
])){
echo
"<script> window.alert('Login Gagal !! Username dan Password Salah !!')</script>"
;
}
}
?>
<br/>
<form
class=
'well form-horizontal'
action=
'form_login.php?do_login=1'
method=
'post'
id=
'contact_form'
>
<fieldset>
<legend><span
class=
'glyphicon glyphicon-log-in'
></span>
Login
</legend>
<div
class=
'form-group'
>
<label
class=
'col-md-4 control-label'
>
Username
</label>
<div
class=
'col-md-4 inputGroupContainer'
>
<div
class=
'input-group'
>
<span
class=
'input-group-addon'
><i
class=
'glyphicon glyphicon-user'
></i></span>
<input
type=
'text'
name=
'username'
required
placeholder=
'Username'
class=
'form-control'
type=
'text'
>
</div>
</div>
</div>
<div
class=
'form-group'
>
<label
class=
'col-md-4 control-label'
>
Password
</label>
<div
class=
'col-md-4 inputGroupContainer'
>
<div
class=
'input-group'
>
<span
class=
'input-group-addon'
><i
class=
'glyphicon glyphicon-lock'
></i></span>
<input
name=
'password'
required
placeholder=
'Password'
class=
'form-control'
type=
'password'
>
</div>
</div>
</div>
<div
class=
'form-group'
>
<label
class=
'col-md-4 control-label'
></label>
<div
class=
'col-md-4'
>
<input
type=
'submit'
value=
'login'
class=
'btn btn-default'
>
</div>
</div>
<center>
Belum punya akun?
<a
href=
'form_daftar.php'
>
silahkan daftar disini
</center>
</fieldset>
</form>
<?php
require_once
(
dirname
(
__FILE__
)
.
'/common/footer.php'
);
?>
\ No newline at end of file
profil_bulbul.php
0 → 100644
View file @
d0c1b693
<?php
include
(
'common/header.php'
);
?>
<h1
style=
"color: #333;"
>
<font
face=
"gothic"
>
Profil Pantai Lumban Bulbul
</font></h1>
<hr/>
<hr/>
<br/>
<div
class=
"col-md-6"
>
<div
class=
"thumbnail"
>
<img
src=
"picture/bulbul1.jpg"
width=
"300"
height=
"300"
>
<div
class=
"caption"
>
<p>
Pantai Lumban Bulbul Balige merupakan salah satu obyek wisata andalan dengan pasir putih yang indah dan landai
yang saat ini sedang dalam tahap pembenahan oleh pemerintah. Dibukanya jalur penerbangan Bandara Internasional
Soekarno Hatta-Bandara Silangit, Siborong-borong semakin mempermudah akses untuk mengunjungi daerah wisata di
Tapanuli Utara. Dari Bandara Silangit ke Kota Balige dapat ditempuh hanya dalam waktu lebih kurang 45 menit.
dengan dibukanya Pantai Lumban Bulbul sebagai salah satu lokasi wisata, maka terbuka juga peluang usaha bagi penduduk setempat
yaitu dengan menyediakan fasilitas penunjang.
<br/>
<br/>
Keindahan pemandangan panorama awan di atas danau toba dan juga bias matahari terbenam menjadi daya tarik tersendiri
bagi pengunjung pantai Lumban Bulbul.
</p>
</div>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"thumbnail"
>
<img
src=
"picture/bulbul2.jpg"
width=
"300"
height=
"300"
>
<br/>
<div
class=
"caption"
>
<p>
Obyek wisata pantai bulbul yang mengandalkan keindahan pantai Danau Toba secara bertahap mulai dibenahi.
Kunjungan wisatawan lokal dan domestik meningkat secara meyakinkan ke salah satu objek wisata andalan kota balige ini dalam beberapa bulan terakhir.
Pantai pasir putih yang landai yang langka ditemui di sepanjang tepian Danau Toba, menjadi daya tarik tersendiri
bagi pengunjung Pantai Bulbul.
<br/>
<br/>
Dalam dua tahun terakhir, Pemerintah kabupaten Toba Samosir berupaya memoles kwasan pantai lumban bulbul
dengan membangun beberapa fasilitas pendukung, yakni lahan parkir, taman bermain, jalan setapak,
<i>
galery shop
</i>
, kamar mandi, dan panggung terbuka.
<br/>
</p>
</div>
</div>
</div>
<?php
include
(
'common/footer.php'
);
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment