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')";
</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";
<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="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'>
</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>
text-decoration:none; <br><table><tr>
td { <td>Category :</td>
font-family:calibri; <td>
echo "<option>".$row[1]."</option>";}
echo "<option>".$row[1]."</option>";}?></select></td></tr></table>
</tr> </table>
</thead>
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>
<?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;
<input type='submit' value='Update Terms and Condition' onclick='updateTerms()'/></div></div> transition:color .4s ease-in-out;
include("includes/connection.php"); }
$comment = $_GET['comment'];
.myImg { </div></div></div><div id="prodview">
.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;
<span class="close">×</span>
-webkit-animation-name: zoom;
<div id="caption">Furniture</div>
</div>
@-webkit-keyframes zoom {
from {-webkit-transform:scale(0)}
</div>
to {-webkit-transform:scale(1)}
from {transform:scale(0)}
<tr>
.close {
<td><h4>Furniture : </h4></td>
position: absolute;
</tr>
color: #f1f1f1;font-size: 40px;
<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; ?>')">
}else {
<div class="breadcrumbs"><div class="container">
}
<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
<td><h4>Price : </h4></td>
<hr class='style14'>
<span>Quick View</span>
<tr> </div>
<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
<!--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];
<script src="js/responsiveslides.min.js"></script>
} <ol class="breadcrumb">
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>
span.onclick = function() {
</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
include("includes/connection.php");
if($result) {
if(empty($_SESSION['AdminName'])){
echo "1";
header('location:index.php');
}else {
}
echo "0";
?>
}
?> echo "</td>";
<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 ."%' ";
while($row=mysqli_fetch_array($result,MYSQLI_NUM)) include("includes/connection.php");
echo "<tr>";
echo "<td>".$row[2]."</td>";
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')";
$row=mysqli_fetch_array($result,MYSQLI_NUM);
function category($cat) {
$query = "SELECT ID FROM category WHERE category='" . $cat ."'"; $max = ceil($row[1] / 100) * 100;
} $query1 = "SELECT COUNT(ProductCode) FROM products WHERE Price BETWEEN " . $min . " AND ". ($min +
100) . "";
$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>";
} </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";
$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 ";
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> }
echo "
<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>
<div class="ckeckout-top">
</div></div> </div></div></div>
<?php
}?>
<div class="container">
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>
<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>
<ul class="product-ul">
</div>
<span>Classification :</span>
<br/>
<option selected disabled>--Select Classification--</option>
</center>
<?php
<div class="details-image-info">
$query = mysqli_query($con,"SELECT * FROM classification");
echo "<option>".$row[1]."</option>";}?></select></ul></div>
</div>
</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>
<div class="details-image-info">
<option selected disabled>--Select Materials--</option>
</div> <option>Wood</option><option>Leather</option></select></ul>
<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>
while($row=mysqli_fetch_array($result)) {echo " </div> <div class="clearfix"> </div> </div> </div><?php include("includes/footer.html"); ?>
$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;
<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">
<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>
$result = mysqli_query($con, $query); $id = $_GET['id'];$query = "DELETE FROM type_sub WHERE SubTypeID = '$id'";$result = mysqli_query($con,
<div class="ckeckout">
</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";
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> "; }
$query = "SELECT ProductCode, CONCAT(c.firstname,' ', c.middlename, ' ', c.lastname) AS fullname,
<?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/">