Commit 6e1d3686 by Mei Romauli Sagala

iin progress

parents fcb3a68b 8c354753
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<nav class="navbar navbar-inverse"> <nav class="navbar navbar-inverse">
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<img src="picture/logo1.png"></a> <img src="picture/logo1.png">
</div> </div>
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="index.php"><span class="glyphicon glyphicon-home"></span>Home</a></li> <li><a href="index.php"><span class="glyphicon glyphicon-home"></span>Home</a></li>
...@@ -39,7 +39,10 @@ ...@@ -39,7 +39,10 @@
<li><a href="daftar_komen.php"><span class="glyphicon glyphicon-comment"></span>List feedback</a></li>'; <li><a href="daftar_komen.php"><span class="glyphicon glyphicon-comment"></span>List feedback</a></li>';
} }
elseif(isset($_SESSION['user'])){ elseif(isset($_SESSION['user'])){
echo'<li><a href="pesanan.php"><span class="glyphicon glyphicon-shopping-cart "></span>&nbsp;Cart</a></li>'; if(isset($_SESSION['username'])){
$id_member = $_SESSION['id_member'];
}
echo'<li><a href="cart.php?id_member='.$id_member.'"><span class="glyphicon glyphicon-shopping-cart "></span>&nbsp;Cart</a></li>';
} }
?> ?>
<li><a href="form_comment.php"><span class="glyphicon glyphicon-comment"></span>feedback</a></li> <li><a href="form_comment.php"><span class="glyphicon glyphicon-comment"></span>feedback</a></li>
......
...@@ -3,12 +3,6 @@ ...@@ -3,12 +3,6 @@
require_once(dirname(__FILE__).'/common/header.php'); require_once(dirname(__FILE__).'/common/header.php');
require_once(dirname(__FILE__).'/cek_login.php'); require_once(dirname(__FILE__).'/cek_login.php');
global $con;
$con = mysqli_connect("localhost", "p1d3ti04_pondokedo","MeiHong05");
if (!$con) {
die("database connect problem");
}
$db_use = mysqli_select_db($con, "p1d3ti04_pondokedo") or die("selet db problem !!");
if(isset($_GET['do_login'])){ if(isset($_GET['do_login'])){
$login =getUser($_POST['username'],$_POST['password']); $login =getUser($_POST['username'],$_POST['password']);
......
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