• Tidak ada hasil yang ditemukan

Peranginangin K. 2006. Aplikasi Web dengan PHP dan MySQL. ANDI. Yogyakarta.

Abdulloh. 2016. Easy & Simple Web Programing. PT Elex Media Komputindo.

Jakarta

Al Fatta, H. 2007. Analisis dan Perancangan Sistem Informasi (Untuk Keunggulan Bersaing Perusahaan dan Organisasi Modern). Penerbit Andi. Yogyakarta:

Bertha, S. 2005. MySQL Untuk Pengguna, Administrator, dan Pengembang Aplikasi Web. Informatika.

Murdick dkk. 2005. Cyber Law (Aspek HukumTeknologi Informasi). Refika Aditama. Bandung

Murdick dk. 1991. Sistem Informasi Untuk Manajemen Modern. Erlangga. Jakarta.

Hartono J. 2000. Konsep Dasar Pemrograman Bahasa C. ANDI. Yogyakarta.

Iriadi N. & Indrasari A. U. 2017. Informasi Penjualan Berbasis Web Pada Sistem.

Cv . Bambu Jaya. Jakarta.

Jogiyaanto H. 2009. Analisis dan Desain Sistem Informasi, Edisi III. ANDI.

Yogyakarta.

Jogiyanto H. 2005. Analisa dan Desain Sistem Informasi: Pendekatan Terstruktur Teori dan Praktik Aplikas iBisnis. ANDI. Yogyakarta.

Jugiyanto. 2007. Sistem Informasi Keperilakuan. EdisiRevisi. Penerbit Andi.

Yogyakarta.

Jugiyanto. 2010. Teori Portofoliodan Analysis Investasi. Edisi 7. BPFE. Yogyakarta.

MADCOMS. 2016. Sukses Menbangun Toko Online dengan PHP & MYSQL. CV Andi Offiset. Yogyakarta.

Supriyanto. 2006. Pemberdayaan Usaha Mikro, Kecil, dan Menengah (UMKM) Sebagai Salah Satu Upaya Penanggulangan Kemiskinan. Jurnal Ekonomi dan Pendidikan , Vol. 3, No,1: 1-16.

Yakub. 2012. Pengantar Sistem Informasi. Graha Ilmu. Yogyakarta.

<?php

session_start();

include "../includes/koneksi.php";

include "../includes/lib.php";

$username=htmlentities(trim($_POST['username'])); // Filter Input Username

$password=md5(htmlentities(trim($_POST['password'].$salt_pass))); //

Filter Input Password

if(isset($_POST['login'])){

$sql_login=mysql_query("select *from t_user where username='".$username."' and password='".$password."'");

$row=mysql_fetch_assoc($sql_login);

$login=mysql_num_rows($sql_login);

if($login==1){

$_SESSION['id_user']=$row['id_user'];

$_SESSION['username']=$row['username'];

$_SESSION['level']=$row['level'];

echo "<script>window.location=('index.php');</script>";

}else{

echo "<script>alert('Login Gagal, Check Kembali Username dan Password!');</script>";

} }

?>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php echo "".$judul_web." - Halaman Login "; ?></title>

<link rel='SHORTCUT ICON' href='<?php echo ".".$favicon_web.""; ?>'>

<link href="css/login.css" rel="stylesheet" type="text/css"></script>

<link href="js/SpryAssets/SpryValidationTextField.css" rel="stylesheet"

type="text/css" />

<form id="form1" name="form1" method="post" action="">

<p>&nbsp;</p>

<table width="497" class="table" height="249" align="center"

cellpadding="0" cellspacing="0">

<tr>

<th height="25" colspan="4" align="center" bgcolor="#00ADF1"

scope="col" valign="middle"><h2><strong class="judul-login">ADMINISTRATOR LOGIN</strong></h2></th>

</tr>

<tr>

<td width="18" rowspan="3" align="center" bgcolor="#DAD5D3"><img src="img/login.png" width="134" height="136" /></td>

<td width="103" height="47" bgcolor="#DAD5D3">Username</td>

<td width="13" bgcolor="#DAD5D3">:</td>

<td width="201" bgcolor="#DAD5D3"><span id="sprytextfield1">

<input name="username" type="text" id="username" size="20"

maxlength="20" />

<tr>

<td height="40" bgcolor="#DAD5D3">Password</td>

<td bgcolor="#DAD5D3">:</td>

<td bgcolor="#DAD5D3"><span id="sprytextfield2">

<input name="password" type="password" id="password" size="20"

maxlength="40" />

<span class="textfieldRequiredMsg">Input Tidak Boleh Kosong!</span></span></td>

</tr>

<tr>

<td height="76" bgcolor="#DAD5D3">&nbsp;</td>

<td bgcolor="#DAD5D3">&nbsp;</td>

<td style="padding-right:40px" align="right" bgcolor="#DAD5D3"><input type="submit" class="button green" name="login" id="login" value="Login"

/></td>

</tr>

<tr>

<td colspan="4" align="center" bgcolor="#DAD5D3"><font size="2"

color="#272727"><em>Powered by vMart - Version <?php echo"".versi_cms.""

?></em></font></td>

</tr>

</table>

</form>

<table width="532" height="230" align="center" cellpadding="0"

cellspacing="0">

<tr> </tr>

</table>

</script>

</body>

</html> <?php

session_start();

if(!isset($_SESSION['id_user']) && !isset($_SESSION['username'])){

header('location:index.php');

}

$awalload = microtime(true);

require_once "../includes/koneksi.php";

require_once "../includes/lib.php";

require_once "../includes/fungsi.php";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php echo "".$judul_web." - Halaman Login "; ?></title>

<link rel='SHORTCUT ICON' href='<?php echo ".".$favicon_web.""; ?>'>

<script src="js/jquery.min.js"></script>

<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />

<link href="css/style.css" rel="stylesheet" type="text/css" />

<script src="js/SpryAssets/SpryValidationTextField.js"

type="text/javascript"></script>

type="text/javascript"></script>

<script src="js/js.js" type="text/javascript"></script>

<link href="js/SpryAssets/SpryValidationTextarea.css" rel="stylesheet"

type="text/css" />

<script src="plugins/ckeditor/ckeditor.js" type="text/javascript"></script>

<link rel="stylesheet" href="js/fancybox/jquery.fancybox.css?v=2.1.5"

type="text/css" media="screen" />

<script type="text/javascript"

src="js/fancybox/jquery.fancybox.pack.js?v=2.1.5"></script>

</head>

<body>

<div class="banner">

<img src="<?php echo ".".$banner_web."" ?>" width="220px"

height="40px">

</div>

<div class="text-welcome">

<img src="img/icon/user-4.png" style="float:left; margin-top:5px; margin-left:-20px; margin-right:10px;">

<font color="#222244"><b>Anda Login Sebagai <font

color="#FF0000"><?php echo "".ubah_huruf_awal(" ",$level)."" ?></font></b>

</font><br>

<?php

$sql_user=mysql_query("select *from t_user where id_user=".$_SESSION['id_user']."");

$row_user=mysql_fetch_assoc($sql_user);

?>

"".$row_user['ip_login']."" ?></font> </b>

<br>

<a href='../index.php' target="_blank" style="color:#2BA6CB; text-decoration:none; position:absolute; margin-left:140px;"><i class="fa fa-arrow-right"></i> <b>Lihat Situs</b></a>

</div>

<div class="konten">

<div class="side-menu">

<div class="menu-header">

<h2>MENU ADMIN </h2>

</div>

<div id="wrapper">

<ul class="menu">

<li><a href="index.php?module=dashboard" ><i class="fa fa-home"></i> Dashboard</a></li>

<li><a href="#"><i class="fa fa-edit"></i>

Kelola<span><i class='fa fa-caret-down'></i></span></a>

<ul>

<li><a href="#"><i class="fa fa-bars"></i>

Pesanan<span><i class='fa fa-caret-down'></i></span></a>

<ul>

<li><a

href="index.php?module=order">Daftar Pesanan</a></li>

</li>

<li><a href="index.php?module=member"><i class="fa fa-users"></i> Member</a></li>

<li><a href="index.php?module=testimonial"><i class="fa fa-quote-right"></i> Testimonial</a></li>

<li><a href="index.php?module=pesan"><i class="fa fa-envelope"></i> Pesan<span><i class='fa fa-caret-down'></i></span></a>

<ul>

<li><a href="#"><i class="fa fa-check-square"></i>

Polling<span><i class='fa fa-caret-down'></i></span></span></a>

<ul>

<li><a href="#"><i class="fa fa-info-circle"></i>

Toko<span><i class='fa fa-caret-down'></i></span></span></a>

<ul>

<li><a

href='index.php?module=rekening'>Rekening</a></li>

</ul>

<li><a href="#"><i class="fa fa-wrench"></i>

Pengaturan<span><i class='fa fa-caret-down'></i></span></a>

<ul>

<li><a

href="index.php?module=shipping">Pengiriman</a></li>

<li><a

href='index.php?module=pengaturan'>Pengaturan Website</a></

}

Lokasi Config Database : includes/koneksi.php

Akun Admin :

Username : admin Password : admin

Akun User :

Username : erma Password : erma1506

?>

</ul>

</li>

<li><a href="index.php?module=keluar"><i class="fa fa-power-off"></i> Keluar</a></li>

</ul>

</div>

<div class="isi">

<?php

if($module=='kategori'){

if($aksi=='kelola' || $aksi=='hapus'){

include "module/kategori/k-kategori.php";

}else{

include "module/kategori/kategori.php";

}

}elseif($module=='produk'){

if($aksi=='kelola' || $aksi=='hapus'){

include "module/produk/k-produk.php";

if($aksi=='kelola' || $aksi=='hapus'){

include 'module/template/k-template.php';

}else{

include 'module/template/template.php';

}

}elseif($module=='rekening'){

if($aksi=='kelola' || $aksi=='hapus'){

}elseif($module=='shipping'){

if($aksi=='kelola' || $aksi=='hapus'){

include 'module/ongkir/k-shipping.php';

}elseif($module=='user' && $level=='super admin'){

if($aksi=='kelola' ){

include "module/user/k-user.php";

}else{

include "module/user/user.php";

}

}elseif($module=='pengaturan' && $level=='super admin'){

include "module/pengaturan/pengaturan.php";

$sql_user=mysql_query("update t_user SET

ip_login='".$_SERVER['REMOTE_ADDR']."',last_login='".date("d-m-Y H:i")."' where id_user=".$_SESSION['id_user']."");

session_destroy();

session_unset();

echo "<script>window.location=('login.php');</script>";

}else{

include "module/dashboard/dashboard.php";

}

?>

</div>

<br><br>

</div>

<br>

<center>

<font style="color:#888888"><?php echo "".$judul_web.""; $akhirload = microtime(true); $waktuload = $akhirload - $awalload; ?> - Powered by vMart - Version <?php echo "".versi_cms." - Page Load : " .

number_format($waktuload, 3, '.', '') . " s"; ?></center>

<br>

</div>

</body>

</html>

<script>

$(document).ready(function() {

$("#single_1").fancybox({

helpers: { title : {

type : 'float' }

} });

});

</script>

<script type="text/javascript">

$(function() {

var menu_ul = $('.menu > li > ul'), menu_a = $('.menu > li > a');

menu_ul.hide();

menu_a.click(function(e) {

if(!$(this).hasClass('active')) { menu_a.removeClass('active');

menu_ul.filter(':visible').slideUp('normal');

$(this).addClass('active').next().stop(true,true).slideDown('normal');

} else {

$(this).removeClass('active');

$(this).next().stop(true,true).slideUp('normal');

} });

<?php

header("Location:../index.php");

?>

});

</script>

body {

background-image: url(../img/bg.jpg);

background-repeat: no-repeat;

}

.judul-login {

font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;

}

/* TOMBOL */

.button {

display: inline-block;

zoom: 1;

*display: inline;

vertical-align: baseline;

margin: 0 2px;

outline: none;

cursor: pointer;

text-align: center;

text-decoration: none;

font: 14px/100% Arial, Helvetica, sans-serif;

padding: 5px 3px 5px;

text-shadow: 0 1px 1px rgba(0,0,0,.3);

-webkit-border-radius: .5em;

-moz-border-radius: .5em;

border-radius: .5em;

-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);

-moz-box-shadow: 1px 1px 4px #AAAAAA;

box-shadow: 0 1px 2px rgba(0,0,0,.2);

}

.button:hover {

text-decoration: none;

}

.button:active {

border: solid 1px #980c10;

background: #d81b21;

background: -webkit-gradient(linear, left top, left bottom, from(#ed1c24), to(#aa1317));

background: -moz-linear-gradient(top, #ed1c24, #aa1317);

filter:

background: -webkit-gradient(linear, left top, left bottom, from(#c9151b), to(#a11115));

background: -moz-linear-gradient(top, #c9151b, #a11115);

filter:

background: -webkit-gradient(linear, left top, left bottom, from(#aa1317), to(#ed1c24));

background: -moz-linear-gradient(top, #aa1317, #ed1c24);

filter:

progid:DXImageTransform.Microsoft.gradient(startColorstr='#aa1317', endColorstr='#ed1c24');

}

.green {

color: #e8f0de;

border: solid 1px #538312;

background: #64991e;

background: -webkit-gradient(linear, left top, left bottom, from(#7db72f), to(#4e7d0e));

background: -moz-linear-gradient(top, #7db72f, #4e7d0e);

filter:

background: -webkit-gradient(linear, left top, left bottom, from(#6b9d28), to(#436b0c));

background: -moz-linear-gradient(top, #6b9d28, #436b0c);

filter:

background: -webkit-gradient(linear, left top, left bottom, from(#4e7d0e), to(#7db72f));

background: -moz-linear-gradient(top, #4e7d0e, #7db72f);

filter:

border: solid 1px #333;

background: #333;

background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#000));

background: -moz-linear-gradient(top, #666, #000);

.black:hover {

background: #000;

background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#000));

background: -moz-linear-gradient(top, #444, #000);

filter:

progid:DXImageTransform.Microsoft.gradient(startColorstr='#444444', endColorstr='#000000');}

.black:active { color: #666;

background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#444));

background: -moz-linear-gradient(top, #000, #444);

filter:

progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#666666');}

.blue {

color: #d9eef7;

border: solid 1px #0076a3;

background: #0095cd;

background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));

background: -moz-linear-gradient(top, #00adee, #0078a5);

filter:

filter:

progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e');

}

.blue:active {

color: #80bed6;

background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee));

background: -moz-linear-gradient(top, #0078a5, #00adee);

filter:

progid:DXImageTransform.Microsoft.gradient(startColorstr='#0078a5', endColorstr='#00adee');

}

input[type="text"]{

height:20px;

background-image:url(../img/inputbar.gif);

background-repeat:repeat-x;

background-color:#FFF;

border:#cccccc solid 1px;

padding:0px 5px;

}

input[type="password"]{

height:20px;

background-image:url(../img/inputbar.gif);

background-repeat:repeat-x;

background-color:#FFF;

border:#cccccc solid 1px;

padding:0px 5px;

}

table{

opacity:0.9;

}

.table:hover{

box-shadow:0px 0px 5px #272727;

}

<?php

session_start();

if(!isset($_SESSION['id_user']) && !isset($_SESSION['username'])){

header('location:login.php');

}

?>

<br><br><center><br /><h2><strong>SELAMAT DATANG DI HALAMAN ADMINISTRATOR</strong></h2><br />

<h2 style="margin-top:-20px;"><b><?php echo "".ubah_huruf_awal("

",$judul_web)."" ?></b></h2><br>

<p><img src="img/admin2.png" width="300" height="336" /></p><br /><br /><br>

</center></b> <?php session_start();

if(!isset($_SESSION['id_user']) && !isset($_SESSION['username'])){

header('location:login.php');

}

$table='t_kategori';

$link='index.php?module=kategori';

$pk='id_kategori';

// SIMPAN //

if(isset($_POST['simpan'])){

if(isset($id)){

// SIMPAN EDIT //

$sql_aksi=mysql_query("update $table SET

nama_kategori='".htmlentities($_POST['nama_kategori'])."' where

$pk='".$id."'");

$alert='Diperbarui';

}else{

// CHECK DUPLIKAT //

$sql_check=mysql_query("select *from $table where

$pk='".htmlentities($_POST['id_kategori'])."'");

$row_check=mysql_num_rows($sql_check);

if($row_check!=0){

echo "<script>alert('ID Kategori Sudah Dipakai!');</script>";

$alert='Ditambahkan';

}else{

// SIMPAN TAMBAH //

$sql_aksi=mysql_query("insert into $table VALUES

('".htmlentities($_POST['id_kategori'])."','".htmlentities($_POST['nama_kate

echo "<script>alert('Data Berhasil

$alert');window.location=('$link');</script>";

}else{

echo "<script>alert('Data Gagal

$alert');window.location=('$link');</script>";

}

}

// TAMPIL EDIT & HAPUS //

if(isset($id)){

$sql_check=mysql_query("select *from t_kategori where id_kategori='".$id."'");

$hitung_check=mysql_num_rows($sql_check);

if($hitung_check==1){

if($aksi=='hapus'){

$sql_aksi=mysql_query("delete from $table where

$pk='".$id."'");

if($sql_aksi){

echo "<script>alert('Data Berhasil Dihapus!');window.location=('$link');</script>";

}else{

echo "<script>alert('Data Gagal Dihapus!');window.location=('$link');</script>";

} }else{

$sql_edit=mysql_query("select *from $table where

$pk='".$id."'");

$row_edit=mysql_fetch_assoc($sql_edit);

} }else{

echo "<script>alert('Kategori Tidak Tersedia');window.location='index.php';</script";

} }

if(isset($aksi) && isset($id)){

$judul="- Edit Kategori ".$id." :";

}else{

$judul="- Tambah Kategori :";

}

?>

<div class="path"><h3><?php echo "".$judul."" ?> </h3></div>

<div class="input">

<form action="" method="post" name="form1" id="form1"><br>

<table width="390" height="150" align="center" cellpadding="0"

cellspacing="0">

<tr align="left">

<td width="122" height="50" scope="col" >ID Kategori</td>

<td width="10" scope="col">:</td>

<td width="312" scope="col"><span id="sprytextfield1">

<input name="id_kategori" type="text" id="id_kategori" size="10"

maxlength="10" value="<?php echo "".$row_edit['id_kategori'].""; ?>"<?php if(isset($_GET['id'])){ echo "readonly"; }?> />

<br />

<input name="nama_kategori" type="text" id="nama_kategori"

size="40" maxlength="40" value="<?php echo

"".$row_edit['nama_kategori']."";?>" />

<br />

<span class="textfieldRequiredMsg">Input Masih Kosong!</span></span></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td align="right"><input type="reset" name="batal" id="batal"

value="Batal" class="button red"

onClick="window.location.href='index.php?module=kategori'"/>

<input type="submit" name="simpan" id="simpan" value="Simpan"

class="button green" /></td>

</tr>

</table>

</form>

&nbsp;</td>

</div>

<script type="text/javascript">

var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");

var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");

</script> <?php session_start();

if(!isset($_SESSION['id_user']) && !isset($_SESSION['username'])){

header('location:login.php');

}

$table='t_kategori';

$link='index.php?module=kategori';

$pk='id_kategori';

//fungsi pagination

$BatasAwal = 15;

$MulaiAwal = $BatasAwal * $hal;

} else if (!empty($_GET['p']) and $_GET['p'] == 1) {

$MulaiAwal = 0;

} else if (empty($_GET['p'])) {

$MulaiAwal = 0;

}

?>

<style type="text/css">

.tabel {

color: #FFF;

}

</style>

<div class="path"><h3>- Daftar Kategori : </h3></div>

<div class="tambah"><br>

<a href="index.php?module=kategori&aksi=kelola" ><img src="img/icon/add.png"> Tambah Kategori</a></b>

</div>

<br>

<td valign="top">

<table width="508" height="57" border="0" align="center"

cellpadding="0" cellspacing="1" >

<tr class="tabel">

<th width="91" bgcolor="#575757" scope="col" height="36">ID Kategori</th>

<th width="226" bgcolor="#575757" scope="col">Nama Kategori</th>

<th width="89" bgcolor="#575757" scope="col">Aksi</th>

</tr>

<?php

$sql_tampil=mysql_query("select *from ".$table." limit

".$MulaiAwal.",".$BatasAwal."");

while($row_tampil=mysql_fetch_assoc($sql_tampil)){

$id_kategori=$row_tampil['id_kategori'];

$cekQuery = mysql_query("SELECT * FROM t_kategori");

$jumlahData = mysql_num_rows($cekQuery);

if ($jumlahData > $BatasAwal) {

echo '<br/><center><div style="font-size:10pt;">Halaman : ';

$a = explode(".", $jumlahData / $BatasAwal);

if(!isset($_SESSION['id_user']) && !isset($_SESSION['username'])){

header('location:login.php');

}

$MulaiAwal = 0;

}

?>

<style type="text/css">

.tabel {

color: #FFFFFF;

} a{

text-decoration:none;

}

a:hover{

opacity:0.8;

text-decoration:underline;

}

</style>

</head>

<body>

<div class="path"><h3>- Daftar Konfirmasi : </h3></div>

<br>

<table width="700" border="0" align="center" cellpadding="0"

cellspacing="1">

<tr class="tabel">

<th width="89" height="43" bgcolor="#575757" scope="col">No. Order</th>

<th width="317" bgcolor="#575757" scope="col">Nama</th>

<th width="161" bgcolor="#575757" scope="col">Foto Faktur</th>

<th width="200" bgcolor="#575757" scope="col">Total Tagihan</th>

<th width="200" bgcolor="#575757" scope="col">Status</th>

<th width="200" bgcolor="#575757" scope="col">Aksi</th>

</tr>

<?php

$sql_tampil=mysql_query("select *from t_tagihan INNER JOIN t_member on t_tagihan.id_member=t_member.id_member order by id_tagihan DESC limit

$MulaiAwal,$BatasAwal") or die(mysql_error());

while($row_tampil=mysql_fetch_assoc($sql_tampil)){

<tr bgcolor=#F6F4F5>

<td align=center>".$id_tagihan."</td>

<a

$cekQuery = mysql_query("SELECT * FROM t_tagihan");

$jumlahData = mysql_num_rows($cekQuery);

if ($jumlahData > $BatasAwal) {

echo '<br/><center><div style="font-size:10pt;">Halaman : ';

$a = explode(".", $jumlahData / $BatasAwal);

?> <?php

session_start();

if(!isset($_SESSION['id_user']) && !isset($_SESSION['username'])){

header('location:login.php');

}

$t=mysql_query("select *from t_kontak");

$r=mysql_fetch_assoc($t);

if(isset($_POST['simpan'])){

$sql=mysql_query("update t_kontak SET telpon='".htmlentities($_POST['telp'])."',

$sql=mysql_query("update t_kontak SET telpon='".htmlentities($_POST['telp'])."',

Dokumen terkait