Anda di halaman 1dari 13

<?php echo " <body onload='getAllCategory()'> include("includes/connection.

php");$Data = file_get_contents('php://input');

<h3>Add New Wall Image</h3> <hr> <div class='single-but item_add'> <div> $Data = json_decode($Data); $query = "INSERT INTO category VALUES(null,'$Data->name')";

<img style='width:20%; height::20%;' ondblclick='selectWall()' id='prodimage' src='images/banner.jpg'> $result = mysqli_query($con, $query);

</div> </div><div class='details-image-info'> <input type='file' id='prodfile' accept='image/*' if ($result){echo "True";}else{echo "False";}
onchange='PrevPic(this)' style='visibility:hidden'/>
?> <?php include("includes/connection.php");$term = $_GET['terms'];
</div> <div class='single-but item_add'> <input type='submit' value='save' onclick='saveWall()'/>
$query = "UPDATE terms SET terms='$term'";
</div> <br> <hr> <h3>Wall Images</h3><br> <div id='aw'>";
$result = mysqli_query($con, $query);
include("includes/connection.php"); $query = "SELECT * FROM wall";
if($result){echo "1";}else{echo "0";}
$result = mysqli_query($con, $query); while($row=mysqli_fetch_array($result,MYSQLI_NUM)){ echo "
<center> <div class='gallery'> ?><?phpinclude("includes/connection.php");$id = $_GET['id'];

<a target='_blank' href='".$row[1]."'><img style='width:80%; height:300px; border:1px solid black' $query = "DELETE FROM user WHERE UserID = '$id'";
src='".$row[1]."' alt='Trolltunga Norway' width='300' height='200'> </a>
$result = mysqli_query($con, $query);echo $result;
<div class='desc'> <div class='single-but item_add'> <input type='hidden' id='wid' value='". $row[0]. "'/>
?><?phpinclude("includes/connection.php");
<input type='submit' value='delete image' onclick='deleteWall()'/></div></div><br></div></center>";
$query = "SELECT UserID, CONCAT(FirstName, ' ', MIddleName, ' ', LastName) AS fullname, Contact, UserName,
} echo "</div></div><br><br>";?><?php include("includes/header.html");?> PASSWORD, UserPrivilege FROM USER";

<!--bottom-header--> <!--start-breadcrumbs--> $result = mysqli_query($con, $query);echo "

<div class="breadcrumbs"><div class="container"><div class="breadcrumbs-main"> <table style='width:80%; border:solid 1px;'><th>User ID</th>

<ol class="breadcrumb"><li><a href="index.html">Home</a></li> <th>User FullName</th><th>Contact</th><th>User name</th>

<li class="active">Account</li></ol></div></div></div> <th>User password</th><th>User Type</th><th>Action</th>";

<!--end-breadcrumbs--><!--start-account--><div class="account"> while($row=mysqli_fetch_array($result,MYSQLI_NUM)){

<div class="container"> <div class="account-bottom"><div class="col-md-6 account-left"> echo "<tr><td id='data1'>". $row[0] ."</td><td id='data2'>". $row[1] ."</td>

<div class="account-top heading"><h3>NEW CUSTOMERS</h3></div> <td id='data2'>". $row[2] ."</td><td id='data2'>". $row[3] ."</td>

<div class="address"><span>First Name</span> <td id='data2'>". $row[4] ."</td><td id='data2'>". $row[5] ."</td>

<input type="text" id="firstname" required="required"></div> <td><a style='text-decoration:none; cursor:pointer;' onclick='editUser(this)'>Update</a>

<div class="address"><span>Middle Name</span> &emsp;<a style='text-decoration:none; cursor:pointer;' onclick='deleteUser(" . $row[0] . ")'>Delete</a>

<input type="text" id="middlename" required="required"> </td></tr>";} echo "</table>";?>

</div><div class="address"><span>Last Name</span> <?php ??

<input type="text" id="lastname" required="required"> <style>.address input[type="text"], .address input[type="password"] {

</div><div class="address"><span>Contact</span> border: 1px solid yellow;outline: none;width: 100%;font-size: 14px;

<input type="text" id="contact" required="required"></div> padding: 10px 10px;font-family: 'Lato', sans-serif;}

<div class="address"><span>Email Address</span> .address {margin-bottom: 20px;font-style: normal;

<input type="text" id="email" required="required"> line-height: 1.42857143;}

</div><div class="address"><span>Postal Address</span> </style><?php echo "<body onload='getAllUsers()'>

<input type="text" id="address" required="required"> <center><h3>New User</h3><hr><table><tr><td>

</div><div class="address"><span>Password</span> <input class='address' type='text' id='firstname' required='required' placeholder='First Name'>

<input type="password" id="password" required="required"></div> <input class='address' type='text' id='middlename' required='required' placeholder='Middle Name'>

<div class="address"><span>Reenter Password</span> <input class='address' type='text' id='lastname' required='required' placeholder='Last Name'>

<input type="password" id="repassword" required="required"> </td></tr><tr><td><input type='text' id='contact' required='required' placeholder='Contact'>

</div><div class="address new"><input type="submit" value="Register" name="Register" onclick="register()"> <input type='text' id='username' required='required' placeholder='UserName'>

</div></div><div class="col-md-6 account-left"><div class="account-top heading"> <input type='password' id='password' required='required' placeholder='Password'>

<h3>REGISTERED CUSTOMERS</h3></div><form action="functions.php" method="post"> </td></tr></table><div class='single-but item_add'><input id='catsave' type='submit' value='save'
onclick='saveUpdateUser(this.value)'/>
<div class="address"><span>Email Address</span><input type="text" name="email" required="required">
</div><br><hr><h3>List of users</h3><br><div id='aw'></div></center>
</div><div class="address"><span>Password</span>
</div><br><br>";?><?phpsession_start();include("includes/connection.php");
<input type="password" name="password" required="required"></div>
include("includes/header.html");include("includes/menu.html");
<div class="address"><a class="forgot" href="#">Forgot Your Password?</a>
$query = "SELECT CommentID, ProductCode, CONCAT(c.firstname,' ', c.middlename, ' ', c.lastname) AS
<input type="submit" value="Login" name="CustomerLogin"> fullname, COMMENT, cdate FROM comments INNER JOIN customer AS c ON
c.CustomerID=comments.CustomerID";$result = mysqli_query($con, $query);
</div></form></div><div class="clearfix"> </div></div></div></div>
?>
<!--end-account--><!--start-footer--><?php include("includes/footer.php");?>
<!DOCTYPE html>
<!--end-footer-text--> <?php
<html dir="ltr" lang="en-US">
<head> <script src="js/responsiveslides.min.js"></script> echo "<tr>

<style>.btnoption { <td >". $row[0] ."</td>

background: #8c2830; <td >". $row[1] ."</td>

color: #FFF; <td >". $row[2] ."</td>

font-size: 0.8em; <td ><a style='font-size:10pt; font-color:#000;text-decoration:none; cursor:pointer;'>". $row[3] ."</a></td>

padding: 0.5em 1em; <td >". $row[4] ."</td>

transition: 0.5s all; <td><a id='no' class='btnoption' href='single.php?code=".$row[1]."'>REPLY</a><a id='no'


class='btnoption'onclick=\"deleteComment('".$row[0]."', '".$row[1]."')\" >DELETE</a></td></tr>";}
-webkit-transition: 0.5s all;

-moz-transition: 0.5s all; ?></tbody></table></div></div> </div></div></div>

-o-transition: 0.5s all; <?php include("includes/footer.html"); ?>

cursor: pointer; </body>

outline: none; <?php include("includes/connection.php");

text-transform: uppercase; ?>

border: none; <div class='container'>

cursor:pointer; <div class='ckeckout-top'>

} <div class='cart-items heading'>

.btnoption:hover { <h3 id='title_qty'>List Of All Furnitures </h3>

text-decoration:none; <br><table><tr>

color:white; <td>Search Furniture :</td>

} <td><input type='text' id='textsearch' onkeyup="searchFurniture(this.value, '')"></td>

td { <td>Category :</td>

font-family:calibri; <td>

} <select style='width:200px; height:26px;' id='type' onchange="searchFurniture('', this.value)">

</style> <option selected disabled>Select Category</option><?php

</head> $query = mysqli_query($con,"SELECT * FROM category");

<body> while($row = mysqli_fetch_array($query)) {

echo "<option>".$row[1]."</option>";}

<div class="ckeckout"> ?></select></td><td>Type :</td><td>

<div class="container"> <select style='width:200px; height:26px;' id='type' onchange="searchFurniture('', '', this.value)">

<div class="ckeckout-top"> <option selected disabled>Select Type</option><?php

<div class=" cart-items heading">

<h3>Comments and Reviews</h3> $query = mysqli_query($con,"SELECT * FROM type");

<div class="in-check" id="tableview"> while($row = mysqli_fetch_array($query)) {

echo "<option>".$row[1]."</option>";}?></select></td></tr></table>

<table width="100%" align="center" border="1">

<thead> <div class='in-check' id='tableview'></div>

<tr> </div> </div></div><?php echo "

<th width="5%" align="right">ID </th> <body onload='getAllCategory()'> <center>

<th width="15%">ITEM CODE</th> <h3>New Furniture Type</h3><hr>

<th width="15%">Customer</th> <table><tr><td>

<th width="35%">COMMENT</th> <input style='width:400px; text-align:center' id='typename' placeholder='Type Name' type='text'>

<th width="15%">COMMENT DATE</th> </td>

<th width="15%">Action</th> </tr>

</tr> </table>

</thead>

<tbody id="catview"> <div class='single-but item_add'>

<?php <input id='catsave' type='submit' value='save' onclick='addupdateType(this.value)'/>

while($row=mysqli_fetch_array($result,MYSQLI_NUM)){ </div>
<hr> $id = $_SESSION['AdminID'];

<br> $query = "INSERT INTO comments VALUES(NULL, '$pcode', NULL, '$id', '$comment', '".date("y.m.d")."',
'Admin')";
<h3>List Of Furniture Type</h3>
$result = mysqli_query($con, $query);
<br>
if($result){ echo "1"; }else{
<div id='aw'>
echo "0";}?><?php session_start();

include("includes/header.html");
</div>
include("includes/menu.html");
</center>
$code = $_GET['code'];
</div>

<br>
$query = "SELECT * FROM furniture WHERE ProductCode = '$code' ";
<br>
$result = mysqli_query($con, $query);
";

?>
$row = mysqli_fetch_array($result, MYSQLI_NUM);

<?php
$qty = $row[7];
include('includes/header.html');
$type = $row[3];
include('includes/connection.php');
$stock = "In Stock";

?>

<section class="content">
?>
<div class="container">

<div class="row">

<div class="form_block2">
<!DOCTYPE html>
<div class="container">
<html dir="ltr" lang="en-US">
<div class="row">
<head>
<div class="grid_11">
<meta name="viewport" content="width=device-width, initial-scale=1">
<h2>Terms and Condition</h2>
<script src="js/responsiveslides.min.js"></script>

<center>

<div width="90%; height:300px;">

<?php
<style>
$query = "SELECT * FROM terms";
body {font-family: Arial, Helvetica, sans-serif;}
$result = mysqli_query($con, $query);

.menubutton {
while($row = mysqli_fetch_array($result)) {
color:#242424;
echo "<textarea style='color:gray; resize:none; width:100%; height:300px;' id='termsandcondition'
name='termsandagreement' placeholder='Terms and Agreement' spellcheck='false'>$row[1]</textarea>"; -webkit-appearance:none;

} background: white;

?> border: none;

</div><div class='dec'><div class='single-but item_add'> outline: none;

<input type='submit' value='Update Terms and Condition' onclick='updateTerms()'/></div></div> transition:color .4s ease-in-out;

</center></form> </div></div></div></div></div></div></section> -moz-transition:color .4s ease-in-out;

<?php require_once 'includes/footer.html' ?> -webkit-transition:color .4s ease-in-out;

<?php session_start(); -o-transition:color .4s ease-in-out;

include("includes/connection.php"); }

$pcode = $_GET['pcode']; .breadcrumb li input[type="button"].menubutton:hover{ color:#e64b50; }

$comment = $_GET['comment'];
.myImg { </div></div></div><div id="prodview">

border-radius: 5px; <div class="single contact">

cursor: pointer; <div class="container"><div class="single-main">

transition: 0.3s; <div class="col-md-9 single-main-left"><div class="sngl-top">

} <div class="col-md-5 single-top-left">

.myImg:hover {opacity: 0.7;} <div class="flexslider"><ul class="slides"><li data-thumb="<?php echo $row[1]; ?>" style="list-style:none;">

<img class="myImg" alt="<?php echo $row[1]; ?>" style="width:100%; height:45%;" src="<?php echo $row[10]
?>" />
.modal {
<br><br>
display: none;position: fixed;z-index: 1;
<center>
padding-top: 100px; left: 0;top: 0;
<img class="myImg" alt="<?php echo $row[1]; ?>" style="width:25%; height:10%;" src="<?php echo $row[11]
width: 100%; height: 100%; overflow: auto; ?>" />

background-color: rgb(0,0,0); <img class="myImg" alt="<?php echo $row[1]; ?>" style="width:25%; height:10%;" src="<?php echo $row[12]
?>" />
background-color: rgba(0,0,0,0.9);}
<img class="myImg" alt="<?php echo $row[1]; ?>" style="width:25%; height:10%;" src="<?php echo $row[13]
?>" />
.modal-content {margin: auto;

</center>
display: block;width: 80%;max-width: 700px;}

</li>
#caption {margin: auto;

</ul>
display: block;width: 80%;max-width: 700px;

</div>
text-align: center;color: #ccc;

padding: 10px 0;height: 150px;}

<div id="myModal" class="modal">


.modal-content, #caption {

<span class="close">&times;</span>
-webkit-animation-name: zoom;

<img class="modal-content" id="img01">


-webkit-animation-duration: 0.6s;animation-name: zoom;animation-duration: 0.6s;}

<div id="caption">Furniture</div>

</div>
@-webkit-keyframes zoom {

from {-webkit-transform:scale(0)}

</div>
to {-webkit-transform:scale(1)}

<div class="col-md-7 single-top-right">


}

<div class="details-left-info simpleCart_shelfItem">


@keyframes zoom {

from {transform:scale(0)}

<input id="product-id" type="hidden" value="<?php echo $row[1] ?>" />


to {transform:scale(1)}

<table border="1" width="70%">

<tr>
.close {

<td><h4>Furniture : </h4></td>
position: absolute;

<td align="right"><h4><?php echo $row[1] ?></h4></td>


top: 15px;right: 35px;

</tr>
color: #f1f1f1;font-size: 40px;

font-weight: bold;transition: 0.3s;}

<tr>
.close:hover,.close:focus {

<td><h4>Availability : </h4></td>
color: #bbb;text-decoration: none;cursor: pointer;}

<td align="right">
@media only screen and (max-width: 700px){

<?php
.modal-content {width: 100%;}}</style></head>

if ($qty == 0) {
<body onload="getComment('<?php echo $code; ?>')">

echo "<h4>Out of Stock </h4> ";


<br>

}else {
<div class="breadcrumbs"><div class="container">

echo "<h4>In Stock</h4>";


<div class="breadcrumbs-main"><ol class="breadcrumb">

}
<li><input class="menubutton" type="button" value="Home" href="index.php"/></li>

?>
<li><input id="bcat" class="menubutton" type="button" value="<?php echo $row[3]; ?>" /></li>

</td>
<li class="active"><?php echo $row[2] ?></li></ol>
</tr> <?php

$query2 = "SELECT * FROM furniture WHERE Type = '$type'";

<tr> $result2 = mysqli_query($con, $query2);

<td><h4>Price : </h4></td>

<td align="right"><h4><?php echo number_format($row[8],2); ?></h4></td> echo "

</tr> <h1>Related Furnitures (" .mysqli_num_rows($result2). ")</h1>

<hr class='style14'>

<tr> <div class='product-one'>

<td><h4>Description : </h4></td> ";

<td align="right"><h4><?php echo $row[9]; ?></h4></td> while($r=mysqli_fetch_array($result2)) {

</tr> echo "

<div class='col-md-4 product-left single-left'>

<tr> <div class='p-one simpleCart_shelfItem'>

<td><h4>Quantity : </h4></td> <a sty le='cursor:pointer' href='single.php?code=".$r[0]."'>

<td align="right"><h4><?php echo $row[7]; ?></h4></td> <img src='".$r[10]."' alt='' style='height:180px;'/>

</tr> <div class='mask mask1'>

<span>Quick View</span>

<tr> </div>

<td><h4>Color : </h4></td> </a>

<td align="right"><div title="<?php echo $row[6]; ?>"style="width:60px; height:20px; background-color:<?php <h4>". $r[1] ."</h4>
echo $row[6]; ?>" ></div></td>
<p><a class='item_add' href=''><i></i> <span class='item_price'>".$r[1]."</span></a></p>
</tr>
</div>

<br>
<tr>
</div>
<td><hr></td>
";
<td><hr></td>
}
</tr>
?>

<div class='clearfix'></div>
</table>
</div>

</div>
</div>
</div>
</div>
<?php
<div class="clearfix"></div>
include_once("rightside.php");
</div>
?>
<br><br>
<div class="clearfix"> </div>
<h1>Reviews and Comments</h1>
</div>

</div>

</div>
<!---COMMENT SECTION-->
</div>
<div id="commentsection">

<script>
</div>
// Get the modal

var modal = document.getElementById('myModal');

<!--RELATED FURNITURES-->
// Get the image and insert it inside the modal - use its "alt" text as a caption
<div class="latest products">
var img1 = document.getElementsByClassName('myImg')[0];

var img2 = document.getElementsByClassName('myImg')[1];


var img3 = document.getElementsByClassName('myImg')[2]; <!DOCTYPE html>

var img4 = document.getElementsByClassName('myImg')[3]; <html dir="ltr" lang="en-US">

var modalImg = document.getElementById("img01"); <head>

<?php include("includes/header.html"); ?>

var captionText = document.getElementById("caption");

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

img1.onclick = function(){ </head>

modal.style.display = "block"; <body>

modalImg.src = this.src; <br>

captionText.innerHTML = this.alt; <?php include("includes/menu.html"); ?>

img2.onclick = function(){ <center>

modal.style.display = "block"; <div class="breadcrumbs">

modalImg.src = this.src; <div class="container">

captionText.innerHTML = this.alt; <div class="breadcrumbs-main">

} <ol class="breadcrumb">

img3.onclick = function(){ <li><input style="width:160px;" class="inputbutton" type="button" value="Users"


onclick="getSettings(this.value)" /></li>
modal.style.display = "block";
<li><input style="width:160px;" class="inputbutton" type="button" value="Category"
modalImg.src = this.src; onclick="getSettings(this.value)" /></li>

captionText.innerHTML = this.alt; <li><input style="width:160px;" class="inputbutton" type="button" value="Types"


onclick="getSettings(this.value)" /></li>
}
<li><input style="width:160px;" class="inputbutton" type="button" value="Classification"
onclick="getSettings(this.value)" /></li>
img4.onclick = function(){

<li><input style="width:160px;" class="inputbutton" type="button" value="Wall Picture"


modal.style.display = "block";
onclick="getSettings(this.value)" id="getWall" /></li>

modalImg.src = this.src;
<li><input style="width:170px;" class="inputbutton" type="button" value="Terms & Condition"
onclick="getSettings(this.value)" id="getWall" /></li>
captionText.innerHTML = this.alt;

</ol>
}

</div>

</div>
// Get the <span> element that closes the modal

</div>
var span = document.getElementsByClassName("close")[0];

</center>

// When the user clicks on <span> (x), close the modal

span.onclick = function() {

<?php include("includes/footer.html"); ?>


modal.style.display = "none";

</body>
}

<?php
</script>

include("includes/connection.php");

<?php

$Data = file_get_contents('php://input');
include("includes/footer.html");

$Data = json_decode($Data);
?>

<a href="#home" id="toTop" class="scroll" style="display: block;"> <span id="toTopHover" style="opacity: 1;">
</span></a>
$query = "INSERT INTO messages VALUES(null, '$Data->to', '$Data->from', '$Data->message', '".date('Y-m-
d')."', 'Unread', '$Data->sender')";
<?php

$result = mysqli_query($con, $query);


session_start();

include("includes/connection.php");

if($result) {
if(empty($_SESSION['AdminName'])){

echo "1";
header('location:index.php');

}else {
}

echo "0";
?>

}
?> echo "</td>";

echo "<td style='cursor:pointer'><a onclick=\"deleteFurniture('".$row[0]."')\">DELETE</a> <a


onclick=\"updateFurniture('".$row[0]."')\">UPDATE</a></td>";
<table width='100%' align='center' border='1'>
echo "</tr>";
<thead>
}
<tr>
?>
<th width="10%">Product Code</th>
</tbody>
<th width="15%">Product</th>
</table>
<th width="10%">Category </th>
<?php
<th width="10%">Type</th>

<th width="10%">Classification</th>
include("includes/connection.php");
<th width="10%">Materials</th>

<th width="10%">Color</th>

<th width="5%>">Quantity</th>
$Data = file_get_contents('php://input');
<th width="5%>">Price</th>
$Data = json_decode($Data);
<th width="30%">Description</th>

<th width="30%">Image</th>
$Data->wall=str_replace("__","+",$Data->wall);
<th width="70%" colspan='2'>OPTION</th>

</tr>
$query = "INSERT INTO wall VALUES(null, '$Data->wall')";
</thead>
$result = mysqli_query($con, $query);
<tbody id='catview'>

<?php
if($result){
include("includes/connection.php");
echo "1";

}else{
$product = $_GET['prod'];
echo $query;
$category = $_GET['cat'];
}
$type = $_GET['type'];

$query = "SELECT * FROM furniture WHERE ProductName LIKE '%" . $product . "%' AND Category LIKE '%".
$category ."%' AND Type LIKE '%". $type ."%' ";

$result = mysqli_query($con, $query); ?>

echo "<h4>Search Total : (". mysqli_num_rows($result) .") </h4>"; <?php

while($row=mysqli_fetch_array($result,MYSQLI_NUM)) include("includes/connection.php");

echo "<tr>";

echo "<td>".$row[0]."</td>"; $Data = file_get_contents('php://input');

echo "<td>".$row[1]."</td>"; $Data = json_decode($Data);

echo "<td>".$row[2]."</td>";

echo "<td>".$row[3]."</td>"; $Data->photo1=str_replace("__","+",$Data->photo1);

echo "<td>".$row[4]."</td>"; $Data->photo2=str_replace("__","+",$Data->photo2);

echo "<td>".$row[5]."</td>"; $Data->photo3=str_replace("__","+",$Data->photo3);

echo "<td>".$row[6]."</td>"; $Data->photo4=str_replace("__","+",$Data->photo4);

echo "<td>".$row[7]."</td>";

echo "<td>".$row[8]."</td>"; $query = "INSERT INTO products VALUES('$Data->code','$Data->prod', '". category($Data->cat). "', '".
subtype($Data->stype) ."' ,'$Data->mat','$Data->color','$Data->quan','$Data->desc','$Data->price','$Data-
echo "<td>".$row[9]."</td>"; >photo1', '$Data->photo2', '$Data->photo3', '$Data->photo4')";

echo "<td>"; $result = mysqli_query($con, $query);

echo "<img style='width:100px; height:100px;' src='".$row[10]."' onmouseleave=this.src='".$row[10]."'


onmouseover=this.src='".$row[11]."' >";
if($result){
echo "1"; <h3>Prices</h3>

}else{ <ul class="product-categories p1">

echo $query; <?Php

} $query = "SELECT MIN(Price), MAX(Price) FROM products";

$result = mysqli_query($con, $query);

$row=mysqli_fetch_array($result,MYSQLI_NUM);

function category($cat) {

include("includes/connection.php"); $min = floor($row[0] / 100) * 100;

$query = "SELECT ID FROM category WHERE category='" . $cat ."'"; $max = ceil($row[1] / 100) * 100;

$result = mysqli_query($con, $query);

$result = mysqli_fetch_array($result); $loop = ($max - $min) / 100;

return $result[0]; for ($i=0; $i < $loop; $i++) {

} $query1 = "SELECT COUNT(ProductCode) FROM products WHERE Price BETWEEN " . $min . " AND ". ($min +
100) . "";

$result1 = mysqli_query($con, $query1);


function subtype($classi) {

$row1=mysqli_fetch_array($result1,MYSQLI_NUM);
include("includes/connection.php");

echo "<li><input class='menubutton' type='button' value='Php " . $min . " - Php ". ($min + 100) . "'
$query = "SELECT SubTypeID FROM type_sub WHERE Name='" . $classi ."'"; onClick='goToRight(" . $min . ")'/> <span class='count'>(" . $row1[0] . ")</span></li>";

$result = mysqli_query($con, $query);

$result = mysqli_fetch_array($result); $min = $min + 100;

return $result[0]; ?>

} </ul>

</div>

?> <?php

session_start();

<?php include_once("includes/connection.php");

include_once("includes/connection.php");

?> $query = "SELECT r.RequestID, CONCAT(c.FirstName,' ', c.MiddleName,' ', c.LastName) AS FullName,
r.Materials, r.Color, r.Length, r.Width, r.Height, r.DateRequested, r.Quantity, r.AdditionalInfo , r.Status,
r.Image1, r.Image2 FROM request AS r INNER JOIN customer AS c ON c.CustomerID = r.CustomerID";

$result = mysqli_query($con, $query);


<div class="col-md-3 p-right single-right">

$total = mysqli_num_rows($result);
<h3>Category</h3>

?>
<ul class="product-categories">

<?php
<?Php

echo "
$query = "SELECT c.category, COUNT(t.CategoryID) AS Qty FROM category AS c INNER JOIN products AS t ON
c.ID = t.CategoryID GROUP BY c.ID ";

$result = mysqli_query($con, $query);


";

while($row=mysqli_fetch_array($result)) {
while($row=mysqli_fetch_array($result,MYSQLI_NUM)){
echo "
echo "<li><input class='menubutton' type='button' value='" . $row[0] . "' onClick='goToRight(this.value)'/>
<span class='count'>(" . $row[1] . ")</span></li>";

} <div id='prodview'>

?> <div class='cart-items heading'>

</ul> <center><h3>Customers Requested Furnitures : (" .$total. ")</h3></center>


<hr id='style14'> echo "<h3 >Status : <a style='text-decoration:none; color:green'>".$row[10]."</a></h3>";

</div> }

<div class='single contact'>

echo "

<div class='container'> <div class='single-but item_add'><input type='button' value='Appoved This Request'


onclick=\"approvedRequest('".$row[0]."')\"/>
<div class='single-main'>
<input type='button' value='Disapprove This Request'
onclick=\"disapprovedRequest('".$row[0]."')\"/></div></div></div>

<div class='col-md-9 single-main-left'> <div class='clearfix'></div>

<div class='sngl-top'> </div></div></div></div></div></div></div>";

<div class='col-md-5 single-top-left'> echo "<hr class='style14'>";

<div class='flexslider'> }?><!--end-ckeckout-->

<ul class='slides'> <?php

<li data-thumb=".$row[0]." style=;list-style:none;'> session_start();

<img alt='Failed to load Image' style='border:solid black 1px; width:100%; height:220px;' src='". $row['Image1'] include("includes/connection.php");
."'/>
if(empty($_SESSION['AdminName'])){
<br><br>
header('location:index.php');}?>
<img alt='Failed to load Image' style='border:solid black 1px; width:100%; height:220px;' src='". $row['Image2']
."'/> <!DOCTYPE html>

</li> <html dir="ltr" lang="en-US"><head>

</ul> <?php include("includes/header.html"); ?>

</div> <script src="js/responsiveslides.min.js"></script>

</div> </head><body onload="getAllRequest()">

<div class='col-md-7 single-top-right'> <br/><?php include("includes/menu.html"); ?>

<div class='details-left-info simpleCart_shelfItem'> <div class="ckeckout">

<input id='product-id' type='hidden' value='".$row[1]."' /> <div class="container">

<div class="ckeckout-top">

<h3>Request Number : ". $row[0] . "</h3> <div class=" cart-items heading">

<p class='availability'>Date Requested : ".$row[7]."</p> <div class="in-check" id="tableview">

</div></div> </div></div></div>

<h3>Customer :</h3> <?php include("includes/footer.html"); ?>

<p class='availability'>Customer Name : ".$row[1]."</p> </body>

<?php

<h3>Size Specification : </h3> session_start();

<p class='availability'>Length : ".$row[4]."</p> include("includes/connection.php");

<p class='availability'>Width : ".$row[5]."</p> if(empty($_SESSION['AdminName'])){

<p class='availability'>Height : ".$row[6]."</p> header('location:index.php');

}?>

<h3>Details : </h3> <!DOCTYPE html><html dir="ltr" lang="en-US"><head>

<p class='availability'>Materials : ".$row[2]."</p> <?php include("includes/header.html"); ?>

<p class='availability'>Color : ".$row[3]."</p> <script src="js/responsiveslides.min.js"></script>

<p class='availability'>Quantity : ".$row[8]."</p> </head><body> <br>

<p class='availability'>Description : ".$row[9]."</p> <?php include("includes/menu.html"); ?> <center>

"; <div class="breadcrumbs">

<div class="container">

if($row[10] == "Pending") { <div class="breadcrumbs-main">

echo "<h3 >Status : <a style='text-decoration:none; color:red'>".$row[10]."</a></h3>"; <ol class="breadcrumb">

}elseif($row[10] == "Disapproved") { <li><input class="inputbutton" type="button" value="Sold Products" onclick="getListOfFurniture()" /></li>

echo "<h3 >Status : <a style='text-decoration:none; color:red'>".$row[10]."</a></h3>"; <li><input class="inputbutton" type="button" value="List of Customers" onclick="getCustomers()" /></li>

}else { <li><input class="inputbutton" type="button" value="Messages" onclick="getMessage()" /></li>


</ol></div></div></div></center> <div class="details-image-info">

<input type="file" id="prodfile4" accept="image/*" onchange="PreviewPic(this, 'prodimage4')"


style="visibility:hidden"/>
<?php include("includes/footer.html"); ?>
</div></div>
</body>
<div class="col-md-7 single-top-right">
<?php
<div class="details-left-info simpleCart_shelfItem">
include("includes/connection.php");
<div class="product_box">
?>
<ul class="product-ul">

<span>Product Code:</span>
<div class="container">
<input readonly id="code" class="product-input" type="text" style=" width:100%;"/>
<section class="panel panel-default">
</ul></div>
<div class="panel-heading" style="background-color:#8c2830">
<div class="product_box">
<center><h3 class="panel-title" style="font-family:calibri;color:#FFF; border:none;">NEW FURNITURE </h3>
</center> <ul class="product-ul">

</div> <span>Category:</span>

<div class="panel-body"> <select id="category" class="product-select" style=" width:100%;">

<div class="container"> <option selected disabled>--Select Category--</option><?php

<div class="single-main"> $query = mysqli_query($con,"SELECT * FROM category");

<div class="col-md-9 single-main-left" style=" width:95%;"> while($row = mysqli_fetch_array($query)) {

<div class="sngl-top" > echo "<option>".$row[1]."</option>";}?>

<div class="col-md-5 single-top-left"> </select></ul></div>

<br><br> <div class="product_box" >

<div class="flexslider" > <ul class="product-ul">

<img ondblclick="doubleclickimage(this.id)" id="prodimage1" title="Upload front image" src="images/def.jpg" <span>Type :</span>


style="width:100%; height:100%;"/></div>
<select id="type" class="product-select" style=" width:100%;">
<br/><center>
<option selected disabled>--Select Furniture Type--</option>
<div class="flexslider" >
<?php
<img ondblclick="doubleclickimage(this.id)" id="prodimage2" title="Upload right image" src="images/def.jpg"
style="background-color:red; width:30%; height:40%; "/> $query = mysqli_query($con,"SELECT * FROM Type");

<img ondblclick="doubleclickimage(this.id)" id="prodimage3" title="Upload left image" src="images/def.jpg" while($row = mysqli_fetch_array($query))


style="background-color:red; width:30%; height:40%; "/>
{echo "<option>".$row[1]."</option>";}?></select></ul></div>
<img ondblclick="doubleclickimage(this.id)" id="prodimage4" title="Upload back image" src="images/def.jpg"
style="background-color:red; width:30%; height:40%; "/>
<div class="product_box">

<ul class="product-ul">

</div>
<span>Classification :</span>

<h5>Double Click the image above to change image.</h5>


<select id="classification" class="product-select" style=" width:100%;">

<br/>
<option selected disabled>--Select Classification--</option>

</center>
<?php

<div class="details-image-info">
$query = mysqli_query($con,"SELECT * FROM classification");

<input type="file" id="prodfile1" accept="image/*" onchange="PreviewPic(this, 'prodimage1')"


while($row = mysqli_fetch_array($query)) {
style="visibility:hidden"/>

echo "<option>".$row[1]."</option>";}?></select></ul></div>
</div>

<div class="product_box"><ul class="product-ul"><span>Product:</span>

<input id="product" class="product-input" type="text" style=" width:100%;" placeholder="Furniture Name"/>


<div class="details-image-info">

</ul></div>
<input type="file" id="prodfile2" accept="image/*" onchange="PreviewPic(this, 'prodimage2')"
style="visibility:hidden"/>

</div>
<div class="product_box"><ul class="product-ul"><span>Material:</span>

<select id="material" class="product-select" style="width:100%;">

<div class="details-image-info">
<option selected disabled>--Select Materials--</option>

<input type="file" id="prodfile3" accept="image/*" onchange="PreviewPic(this, 'prodimage3')"


style="visibility:hidden"/> <option>Plastic</option><option>Metal</option>

</div> <option>Wood</option><option>Leather</option></select></ul>

</div><div class="product_box" >


<ul class="product-ul"> <div class="chat-message" style="background-color:#f1f5fc">

<span>Color:</span> </div><br><br><div class="input-group">

<input style="width:100%;" id="color" type="color" name="favcolor" value="#FFFFFF"> <input class="form-control border no-shadow no-rounded" id="content" placeholder="Type your message
here">
</ul></div>
<span class="input-group-btn">
<div class="product_box">
<button class="btn btn-success no-rounded" type="button" style="background-color:#8c2830"
<ul class="product-ul"> onclick="uploadFile()">Upload Image</button>

<span>Price:</span> <button class="btn btn-success no-rounded" type="button" style="background-color:#8c2830"


onclick="sendMessage()">Send</button></span></div> <br>
<input placeholder="e.g (1000)" id="price" class="product-input" type="number" style=" width:100%;" />
</div> </div></div><?phpsession_start();
</ul></div>
include("includes/connection.php");
<div class="product_box">
if(empty($_SESSION['AdminName'])){
<ul class="product-ul">
header('location:index.php');
<span>Quantity:</span>
}?><!DOCTYPE html>
<input placeholder="e.g (20)" id="quantity" class="product-input" type="number" style=" width:100%;"/>
<html dir="ltr" lang="en-US"><head>
</ul></div>
<?php include("includes/header.html"); ?><!--Slideshow 4 -->

<script src="js/responsiveslides.min.js"></script> </head><body> <br>


<h2 class="quick">Description:</h2>

<textarea placeholder="Enter Furniture Description" id="description" class="product-textarea" style="


width:100%;"></textarea> <?php include("includes/menu.html"); ?>

<div class="clearfix"> </div><div class="single-but item_add"> <script src="js/responsiveslides.min.js"></script>

<input type="submit" value="save" onclick="addProduct()"/> <script>$(function () {

<input type="submit" value="clear" onclick="newFurniture()"/></div></div></div> <div // Slideshow 4$("#slider4").responsiveSlides({


class="clearfix"></div>
auto: true,pager: true,nav: false,speed: 500,
</div></div><div class="clearfix"> </div></div></div> </div></section></div>
namespace: "callbacks",before: function () {
<?php
$('.events').append("<li>before event fired.</li>");
include("includes/connection.php");
},after: function () {$('.events').append("<li>after event fired.</li>");}});
?>
});</script>
<link href="css/chat.css" rel="stylesheet">
<div id="body_container" style="height:auto; min-height:50px; width:100%; ">
<div class="container bootstrap snippet" >
<div class="bnr" id="home">
<div class="row"
<div id="top" class="callbacks_container">
<!--customer inbox | customer messages-->
<ul class="rslides" id="slider4">
<div class="col-md-4 bg-white " style="background-color:#f1f5fc">
<?php
<div class=" row border-bottom padding-sm" style="height: 40px; background-color:white">
$query = mysqli_query($con, "SELECT * FROM wall");
<h4>Customers Message</h4></div>
if(mysqli_num_rows($query) == 0 ) {
<ul class="friend-list" style=""><?php
echo "<div><img src='images/banner-3.jpg' style='width:100%; height:550px;'></div>";}else {
$query = "SELECT * FROM msg GROUP BY CustomerID";
while($row = mysqli_fetch_array($query)) {echo "<li> <div><img src='$row[1]' style='width:100%;
$result = mysqli_query($con, $query); height:550px;'></div> </li> ";}}?></ul>

while($row=mysqli_fetch_array($result)) {echo " </div> <div class="clearfix"> </div> </div> </div><?php include("includes/footer.html"); ?>

<li class='active bounceInDown' > </body><?php

<a class='clearfix' onclick=\"viewConversation('".$row[1]."', '".$row[3]."')\"> session_start();

<div class='friend-name'><strong>". $row[2]. "</strong> unset($_SESSION["AdminName"]);

</div><div class='last-message text-muted'>". $row[4] ."</div> if (empty($_SESSION["AdminName"])) {

<small class='time text-muted'>". $row[5] = date("m.d.y") ."</small>"; header("location:main.php");} else {header("location:index.php");}?>

$result2 = mysqli_query($con, "SELECT COUNT(Message) FROM msg WHERE FullName='$row[2]' AND <?phpsession_start();include("includes/connection.php");
Status='Unread' AND SenderType='Customer'");
if(!empty($_SESSION['AdminName'])){
if (mysqli_num_rows($result2) >= 1) {
header('location:main.php');
echo "<small class='chat-alert label label-danger'>".mysqli_fetch_array($result2)[0]."</small> ";
}?><!DOCTYPE html><html><head>
}else {echo " <small class='chat-alert label label-danger'></small> ";
<title>Quinones Online Furniture Shop | Home </title>
}echo "</a>";
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
echo " </li>";}?></ul></div>
<link href="css/style2.css" rel="stylesheet" type="text/css" media="all" />
<!--coversation panel--><div class="col-md-8 bg-white "><h4>Conversation</h4>
<link href="css/memenu.css" rel="stylesheet" type="text/css" media="all" /> cursor: pointer;outline: none;

<script src="js/jquery-1.11.0.min.js"></script> text-transform: uppercase;border: none;}

<meta name="viewport" content="width=device-width, initial-scale=1"> .inputbutton:hover {background: #242424;color: #FFF;}

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> .mpanel {height:auto;}</style></head><body>

<meta name="keywords" content="Free Style Responsive web template, Bootstrap Web Templates, Flat Web <br><?php nclude("includes/menu.html"); ?>
Templates, Andriod Compatible web template,
<center>
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web
design" /> <div class="breadcrumbs">

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, <div class="container">


false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<div class="breadcrumbs-main">

<ol class="breadcrumb">
<script type="text/javascript" src="js/move-top.js"></script>
<li><input class="inputbutton" type="button" value="List of Furnitures" onclick="getListOfFurniture()" /></li>
<script type="text/javascript" src="js/easing.js"></script>
<li><input class="inputbutton" type="button" value="Add New Furniture" onclick="newFurniture()" /></li>
</head><body><br><br><br><br><br>
</ol></div></div></div></center>

<div class="shoes"> <div class="container"></div></div>


<div id="body_container">
<?php include("includes/footer.html"); ?>
<div class="account" style="border-style:solid; border-color:lightgray; boder:1px;">
</body>
<div class="container">
<?php session_start();
<div class="account-bottom">
include("includes/connection.php");
<div class="col-md-6 account-left">
date_default_timezone_set('Asia/Manila');
<form method='POST' action='functions.php'>
$Date = date('Y-m-d');
<div class="account-top heading">
$mode = $_GET['mode'];
<center><h3>Administrator Login</h3></center>
if(isset($_POST['AdminLogin'])) {
</div><div class="address"><span>Username</span>
$username= $_POST['username'];
<input id="user" type="text" name="username" class="logged-input" value="" required="required"/>
$password = $_POST['password'];
</div><div class="address"><span>Password</span>
$query = mysqli_query($con, "SELECT * FROM user WHERE username='$username' AND
<input id="pass" type="password" name="password" class="logged-input" value="" required="required"/> password='$password'");$row = mysqli_fetch_array($query);$adminname = $row[1]." ".$row[2]." ".$row[3];
$id = $row[0];
</div><div class="address new">
if(mysqli_num_rows($query)==0) {?>
<input type="submit" value="Login" name="AdminLogin">
<script type="text/javascript">
</div></form></div></div></div></div></div><?php
alert("Invalid Account");
session_start();
window.location.href = "index.php";
include("includes/connection.php");
</script>
if(empty($_SESSION['AdminName'])){
<?php}else {
header('location:index.php');
$_SESSION['AdminID'] = $id;
}?>
$_SESSION['AdminName'] = $adminname;
<!DOCTYPE html>
header ('location:main.php'); }}
<html dir="ltr" lang="en-US">
if($mode == "gencode") {
<head
function generateProductCode() {
<?php include("includes/header.html"); ?>
$code =
<script src="js/responsiveslides.min.js"></script> substr(str_shuffle(str_repeat("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
10)), 0, 10);return $code;}
<style>
echo generateProductCode();}
.inputbutton {
if($mode == "deleteFurniture") {
background: #8c2830;
$pcode = $_GET['pcode'];
color: #FFF;
$query = "DELETE FROM products WHERE ProductCode='$pcode'";
font-size: 0.8em;
$result = mysqli_query($con, $query);
padding: 0.5em 1em;
if($result) {echo "1";}else {echo "0";}}?><?php
transition: 0.5s all;
include("includes/connection.php");
-webkit-transition: 0.5s all;
$wid=$_GET['wid'];
-moz-transition: 0.5s all;
$query = "DELETE FROM wall WHERE Id='$wid'";
-o-transition: 0.5s all;
$result = mysqli_query($con, $query); "<option>".$row[1]."</option>";}echo "</select></td></tr><tr><td>

if($result){ <input style='width:400px; text-align:center' id='classification' placeholder='Classification Name'

echo "1";}else{echo "0";}?><?php type='text'></td></tr>

include("includes/connection.php"); </table> <div class='single-but item_add'><input id='catsave' type='submit' value='save'

$cid=$_GET['cid']; onclick='addupdateClassification(this.value)'/></div><hr><br><h3>List Of Furniture

$pid=$_GET['pcode']; Classification</h3><br><div id='aw'></div></center></div><br><br>"; ?>

$query = "DELETE FROM comments WHERE CommentID='$cid'"; <?phpinclude("includes/connection.php");

$result = mysqli_query($con, $query); $id = $_GET['id'];$query = "DELETE FROM type_sub WHERE SubTypeID = '$id'";$result = mysqli_query($con,

if($result){echo "1";}else{echo "0";}?> $query);echo $result;?>

<div class="ckeckout">

<div class="container"><div class="ckeckout-top">

<div class=" cart-items heading"> <h3>List Of Customers</h3>

<div class="in-check" id="tableview">

<table width="100%" align="center" border="1"> <thead> <tr>

<th width="20%">Customer</th> <th width="30%" colspan="2">Front and Back ID Picture</th>

<th width="15%">Contact </th> <th width="10%">Email </th>

<th width="15%">Shipping Address</th> <th width="30%">Action</th>

</tr> </thead> <tbody id="catview"> </tbody> </table> </div> </div> </div> </di>

</div> <?php

session_start();

include("includes/connection.php");

$cusid = $_GET['cusid'];

$userid = $_GET['userid'];

$query = "SELECT * FROM msg WHERE CustomerID='$cusid' AND UserID='$userid' ORDER by MessageID ASC";

$result= mysqli_query($con, $query); ?> <ul class="chat"> <?php

while($row=mysqli_fetch_array($result)) {

if($row[7] == "Admin") {

echo "<input type='hidden' id='userid' value=".$row[1].">"; echo " <li class='right clearfix'> <div class='chat-
body clearfix'> <p style='text-align:left;'> <b>[Administrator]</b> : ".$row[4]." </p> </div> </li>

}else {

echo "<input type='hidden' id='customerid' value=".$row[3].">"; echo " <li class='right clearfix'> <div
class='chat-body clearfix'> <p style='text-align:left;'> <b>[Customer]</b> : ".$row[4]." </p></div> </li> "; }

} ?> </ul> <?php

include("includes/connection.php"); $code = $_GET['code'];

$query = "SELECT ProductCode, CONCAT(c.firstname,' ', c.middlename, ' ', c.lastname) AS fullname,

COMMENT, cdate FROM comments LEFT JOIN customer AS c ON c.CustomerID=comments.CustomerID WHERE

ProductCode='$code'"; $result = mysqli_query($con, $query); ?> <head> <link rel="stylesheet"

href="css/comment.css"> <style></style> </head> <body> <hr class="style14"><ul class="comment-section">

<?phpwhile($row = mysqli_fetch_array($result)) {

echo"<liclass='commentusercomment'><divclass='info'>";if(!empty($row[1])){echo"<ahref='#'>".$row[1]."</a

>";}else{echo"<ahref='#'>Administrator</a>";}ech<span>".$row[3]."</span></div><aclass='avatar'href='#'><i

mgsrc='images/defav.png'width='35'alt='ProfileAvatar'title='Administrator'/>?><liclass="writenew"><formacti

on="#"method="post"><textareaplaceholder="Writeyourcommenthere"id="comment"name="comment"></t

extarea><divclass='singlebutitem_add'><inputtype='button'value='Comment'onclick="submitComment('<?ph

pecho$code;?>')"/></div></form></li></ul><!<footer><aclass="tz"href="http://facebook.com/px1998/">

</a></footer>--></body><?php include("includes/connection.php");echo "<body

onload='getAllClassification()'> <center><h3>New Furniture Classification</h3><hr><table><tr><td><select

style='width:400px; height:26px;' id='type'><option selected disabled>Select Furniture</option>";$query =

mysqli_query($con,"SELECT * FROM type"); while($row = mysqli_fetch_array($query)) {echo