Skip to content
Snippets Groups Projects
Commit e4cb031f authored by Husnulzaki Wibisono Haryadi's avatar Husnulzaki Wibisono Haryadi
Browse files

Add passing user_id parameter on menu.php

parent f969a8b5
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
......@@ -2,30 +2,28 @@
<html>
<head>
<title>U Wanna Call Me Beibh?</title>
<link rel="stylesheet" type="text/css" href="../css/main.css">
<link rel="stylesheet" type="text/css" href="../css/default_style.css">
<link rel="stylesheet" type="text/css" href="../css/order.css">
<script type="text/javascript">
function setURL(url) {
document.getElementById('content_iframe').src = url;
}
</script>
<link rel="stylesheet" type="text/css" href="../css/header.css">
</head>
<body>
<<<<<<< HEAD
<div class="frame">
<p>Order</p>
<div class="frame" id="container">
<div class="button" id="first">
<input type="button" name="select_location" onclick="setURL('select_location.html')" >
<div class="header">
<?php
$user_id = $_GET['id'];
include '../database/dbconnect.php';
$query=mysqli_query($con,"SELECT * FROM user WHERE user_id='".$user_id."'") or die(mysqli_error());
if(mysqli_num_rows($query)!=0)
{
$row=mysqli_fetch_assoc($query);
$username = $row['username'];
include("../template/header.php");
}
mysqli_close($con);
?>
</div>
<div class="button" id="second">
<input type="button" name="select_driver" onclick="setURL('select_driver.html')">
</div>
<div class="button" id="third">
<input type="button" name="complete_order" onclick="setURL('complete_order.html')">
</div>
<iframe id="content_iframe" src=""/>
</div>
</body>
</html>
<?php
echo '
<a href="../order/order.php" name="order_link">
<a href="../order/order.php?id='. $user_id .'" name="order_link">
<div class="menu" id="order_link">
<h3>ORDER</h3>
</div>
</a>
<a href="../history/history.php" name="history_link">
<a href="../history/history.php?id='. $user_id .'" name="history_link">
<div class="menu" id="history_link">
<h3>HISTORY</h3>
</div>
</a>
<a href="../profile/profile.php" name="profile_link">
<a href="../profile/profile.php?id='. $user_id .'" name="profile_link">
<div class="menu" id="profile_link">
<h3>MY PROFILE</h3>
</div>
......
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