D7net Mini Sh3LL v1
Current File : C:/Domains/maymaytinson.com/httpdocs/lib/images/13/../10/../7/../16/../activity/../JUKI/../15/../zip_food/../18/../17/../2/../21/../20/../22/../5/../11/../7/../5/../22/../22/../20/../19/../10/../../../include/header.php |
<?php
include 'lib.php';
?>
<div id="leftTop">
<span><img src="lib/icons/headphone.png" height="15px" width="15px" align="center"> Hotline: <a href="callto:0908.899.677">0908.899.677</a> - <a href="callto:0916.005.977">0916.005.977</a></span><span class="vachNgan"></span><span><a target="_blank" href="https://www.facebook.com/thuytinson/"><img src="lib/icons/heart.png" height="25px" width="25px" align="center"> Máy may Tín Sơn</a></span>
</div>
<div id="rightTop">
<!-- <span class="vachNgan">|</span><span><a href=""><img src="lib/icons/package.png" height="15px" width="15px" align="center"> Theo dõi đơn hàng của bạn</a></span> -->
</div>
<div id="contentHeader">
<div id="menuchinh"><img src="lib/icons/menuchinh.png" height="80px"></div>
<div id="leftHeader">
<a href="index.php"><img src="lib/images/logo.png" height="90%" align="center"></a>
</div>
<div id="midHeader">
<div id="searchBar">
<form action="collections.php">
<input type="" name="keyword" id="searchBox" placeholder="Tìm kiếm sản phẩm..."><button id="searchButton">Tìm Kiếm</button>
</form>
</div>
</div>
<div id="rightHeader">
<?php if(isset($_SESSION['id'])){ ?>
<a href="mycart.php"><div id="cart">
<?php
if(isset($_SESSION['id'])){
$stmt=$conn->prepare("SELECT SUM(amount) AS countCart FROM cart WHERE customer='".$_SESSION['id']."'");
$stmt->execute();
$cart=$stmt->fetch(PDO::FETCH_ASSOC); }?>
<img src="lib/icons/cart.png" height="15px" width="15px" align="center">
<a id="countCart"><?php if(isset($_SESSION['id'])){echo $cart['countCart'];if(empty($cart['countCart'])){ echo "0"; }}else{ echo "0";} ?></a>
</div></a>
<?php } ?>
<div id="log">
<table>
<?php if(!isset($_SESSION['user'])){ ?>
<tr class="login">
<td rowspan="2"><img src="lib/icons/user.png" align="center"></td>
<td><a href="register.php">Đăng ký</a></td>
</tr>
<tr class="login">
<td><span>hoặc</span> <a href="login.php">Đăng nhập</a></td>
</tr>
<?php }else{?>
<tr class="logout">
<td rowspan="2"><img src="lib/icons/user.png" align="center"></td>
<td><a <?php if($_SESSION['level']!=1 && $_SESSION['level']!=7){ echo 'href="user.php"'; }else{ echo 'href="admin.php" target="_blank"'; } ?> ><?php $endUser=strripos($_SESSION['user'],"@"); $user=substr($_SESSION['user'],0, $endUser);if(strlen($user)>13){
echo $user."...";
}else{ echo $user;}if(empty($endUser)){
echo "admin";
} ?></a></td>
</tr>
<tr class="logout">
<td><a href="logout.php">Đăng xuất</a></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
AnonSec - 2021 | Recode By D7net