403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/khonguyenlieu.vn/public_html/site/views/sanpham/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/khonguyenlieu.vn/public_html/site/views/sanpham/detail.php
<style type="text/css">
.breadscumb {
	padding:0 0 15px 0
}
.breadscumb > a {
	font-size:14px;
}
.hotpro {}
.hotpro ul {}
.hotpro ul li {
    clear: both;
    border-bottom: 1px solid #CCC;
    margin-bottom: 15px;
    min-height: 120px;
}
.hotpro ul li a {
	text-decoration:none
}
.hotpro ul li a img {
    float: left;
    margin-right: 8px;
    width: 30%;
    height: auto;
	border:1px solid #CCC;
}
.hotpro  ul li a .product-title{
    display: block;
    line-height: 22px;
    color: #444;
    font-weight: bold;
    min-height: 40px;
}
.hotpro ul li a ins, .hotpro ul li a del {
	text-decoration:none;
	color:#444;
}
.hotpro ul li a del .priceold{
	font-weight: bold;
	text-decoration:none
}
.hotpro ul li a ins .price {
    color: #f00;
    font-weight: bold;
	font-size:16px;
	text-decoration:none
}
.tab {
	text-transform:uppercase;
	font-weight:bold;
}
.tags {
	margin:15px 0;
	clear:both;
}
.panel-body h3 {
	font-weight:bold;
}
.panel-body * {
	line-height:25px;
}

.ProductFunc .flag {
    background: #f25510;
    display: block;
    width: 20px;
    height: 45px;
    position: absolute;
    top: 0;
    right: 5px;
}
</style>
<style type="text/css">
.shortdesc {
    height:330px;
    overflow:hidden;
    position:relative;
    padding-bottom:40px
}
.shortdesc .seemore {
    height: 50px;
    display: block;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, #dad7d7, transparent);
    left: 10px;
    padding: 15px;
    margin-left:-15px;
}
.shortdesc .seemore a {
    display: none;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #FFF;
    width: 120px;
    padding: 6px;
    border-radius: 8px;
    margin: 0 auto;
    background: #FFF;
}
.shortdesc .seemore a.xemtiep {
    display:block;
}
@media only screen and (max-width: 479px){
.section_product .product-blocks .item {
    height: 305.14px;
}
.shortdesc .seemore {
    margin-left:-8px;
}
}
</style>
<script type="text/javascript">
$(document).ready(function(){
	$('.jqzoom').jqzoom({
		zoomType: 'standard',
		lens:true,
		preloadImages: false,
		alwaysOn:false
	});
});
</script>
<div class="breadscumb col-md-12 col-sm-12 col-xs-12">
	<ul class="breadcrumb" typeof="BreadcrumbList" vocab="https://schema.org/">
        <li property="itemListElement" typeof="ListItem">
        	<a href="<?=site?>" title="Nguyên liệu pha chế" property="item" typeof="WebPage"><span property="name" property="item" typeof="WebPage">Trang chủ</span></a>
            <meta property="position" content="1"></li>
        <?php if($rs_cat){?>
            <li property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" href="<?=site?>chuyen-muc/<?=alias($rs_cat->CategoryName)?>-<?=$rs_cat->CategoryID?>.html" title="<?=$rs_cat->CategoryName?>"><span property="name"><?=$rs_cat->CategoryName?></span></a><meta property="position" content="2"></li>
        <?php }?>
        <li property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" href="<?=site?>chi-tiet/<?=$rs->Alias?>-<?=$rs->ProductID?>.html" title="<?=$rs->ProductName?>"><span property="name"><?=$rs->ProductName?></span></a><meta property="position" content="3"></li>
    </ul>
</div>
<div class="row" itemscope itemtype="https://schema.org/Product">
	<meta itemprop="mpn" content="<?=$rs->ProductID?>" />
    <meta itemprop="name" content="<?=$rs->ProductName?>">
    <meta itemprop="image" content="<?=urlimg?>products/200/<?=$rs->ProductImg?>">
    <meta itemprop="description" content="<?=strip_tags($rs->ProductFunc)?>">
    <div class="bn_left col-md-5 col-sm-6 col-xs-12">
        <a href="<?=urlimg?>products/200/<?=$rs->ProductImg?>" class="jqzoom" rel="gal1" title="<?=$rs->ProductName?>">
            <img src="<?=urlimg?>products/200/<?=$rs->ProductImg?>" alt="<?=$rs->ProductName?>" /></a>
        <div class="clearfix"></div>
        <div>
            <ul id="thumblist">
            <?php 
                $class = 'class="zoomThumbActive"' ;
                foreach ($list_img as $img): 
            ?>
                <li><a <?=$class?> href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: '<?=urlimg?>products/200/<?=$img->ImageName?>',largeimage:'<?=urlimg?>products/200/<?=$img->ImageName?>'}"><img src="<?=urlimg?>products/200/<?=$img->ImageName?>" height="50" width="50" alt="<?=$rs->ProductName?>" /></a></li>
            <? 
                $class = '';
                endforeach ; 
            ?>
            </ul>
        </div>
    </div>
    <div class="bn_right col-md-4 col-sm-6 col-xs-12" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    	<link itemprop="url" href="<?=site?>chi-tiet/<?=$rs->Alias?>-<?=$rs->ProductID?>.html" />
        <h1 class="top_bn" itemprop="name"><?=$rs->ProductName?></h1>
        <form action="" name="frmproduct" id="frmproduct" method="post">
            <input type="hidden" id="crsf" name="crsf" value="<?=$crsf?>">
        	<meta itemprop="price" content="<?=$rs->Price?>">
            <meta itemprop="priceCurrency" content="VND">
            <meta itemprop="priceValidUntil" content="<?=date("Y-m-d")?>" />
            <div itemprop="shippingDetails" itemtype="https://schema.org/OfferShippingDetails" itemscope>
                <div itemprop="shippingRate" itemtype="https://schema.org/MonetaryAmount" itemscope>
                    <meta itemprop="value" content="3.49" />
                    <meta itemprop="currency" content="USD" />
                </div>
                <div itemprop="shippingDestination" itemtype="https://schema.org/DefinedRegion" itemscope>
                    <meta itemprop="addressCountry" content="US" />
                </div>
                <div itemprop="deliveryTime" itemtype="https://schema.org/ShippingDeliveryTime" itemscope>
                    <div itemprop="handlingTime" itemtype="https://schema.org/QuantitativeValue" itemscope>
                    <meta itemprop="minValue" content="0" />
                    <meta itemprop="maxValue" content="1" />
                    <meta itemprop="unitCode" content="DAY" />
                    </div>
                    <div itemprop="transitTime" itemtype="https://schema.org/QuantitativeValue" itemscope>
                    <meta itemprop="minValue" content="1" />
                    <meta itemprop="maxValue" content="5" />
                    <meta itemprop="unitCode" content="DAY" />
                    </div>
                </div>
            </div>
            <div class="sku"><?=$rs->ProductCode?></div>
            <div class="ct_left"><?=str_replace("\n","<br>",$rs->Description)?></div>
            <div class="ct_price_old"> <?=pricevn($rs->Price_Old)?> VND</div>
            <div class="ct_price"> <?=pricevn($rs->Price)?> VND</div>
            <div class="ct_number">
                <?php if($rs->ProductStatus==1){?>
                <div class="text">Số lượng</div>
                <div class="chose">
                    <input type="number" name="nb_order" id="nb_order" value="1" style="width: 70px; height: 30px; padding: 8px; font-size:16px" />
                    <input type="hidden" name="proid" id="proid" value="<?=$rs->ProductID?>" />
                    <input type="hidden" name="pro_name" id="pro_name" value="<?=$rs->ProductName?>" />
                    <input type="hidden" name="pro_price" id="pro_price" value="<?=$rs->Price?>" />
                    <input type="hidden" name="pro_img" id="pro_img" value="<?=$rs->ProductImg?>" />
                </div>
                <div class="ct_buttom"><input type="image" src="<?=base_url()?>templates/images/mn_26.png" onClick=" return cart.add();"  height="50" width="150"></div>
                <link itemprop="availability" href="https://schema.org/InStock" />
                <?php }elseif($rs->ProductStatus==2){ ?>
                <div class="text">Sản phẩm hiện hết hàng. Vui lòng quay lại sau.</div>
                <link itemprop="availability" href="https://schema.org/OutOfStock" />
                <?php }else {?>
                    <link itemprop="availability" href="https://schema.org/OutOfStock" />
                    <?php } ?>
            </div>
        </form>
    </div>
    <div class="col-md-3 hidden-sm hidden-xs">
    	<div class="panel panel-default hidden-xs">
            <div class="panel-body"> 
                <h3 class="page-widgets">Thông tin liên hệ</h3>
                <div class="camket">
                    <p><span class="glyphicon glyphicon-thumbs-up"></span> Đảm bảo 100% hàng chính hãng</p>
                    <p><span class="glyphicon glyphicon-refresh"></span> Đổi trả hàng trong 10 ngày (*)</p>
                    <p><span class="glyphicon glyphicon-heart"></span> Dịch vụ khách hàng tốt nhất</p>
                </div>
                <div class="hrviet"></div>
                <div class="hotlie">
                    <p class="sft"><span class="glyphicon glyphicon-phone-alt"></span><a href="tel: 0906 799 087" rel="nofollow"> 0906 799 087</a></p>
                    <p class="sft"><span class="glyphicon glyphicon-phone-alt"></span><a href="tel: 08 98 98 04 89" rel="nofollow"> 08 98 98 04 89</a></p>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="col-md-12 col-sm-12 col-xs-12 ProductFunc shortdesc" id="chucnang"><!-- style="height:250px; overflow:hidden;"-->
    <div class="col-md-8 col-sm-12 col-xs-12 nopad">
        <h2 class="tab">Mô tả sản phẩm <?=$rs->ProductName?></h2>
        <span class="flag" data-id="<?=$rs->ProductID?>"></span>
        <div class="mota"><?=$rs->ProductFunc?></div>
        <? if($rs->metakey){?><div class="tags">Từ khóa : <?=show_tags($rs->metakey)?></div><? } ?>
    </div>
    <div class="col-md-4 col-sm-4 col-xs-12 nopad-right cungloai">
        <h2 class="tab">Sản phẩm được xem nhiều</h2>
        <div class="hotpro">
        <ul>
		<?php
		//trit($list_hot);
		if($list_hot)
		{
			 foreach ($list_hot as $hot) :
			 	$link_to = site.'chi-tiet/'.$hot->Alias.'-'.$hot->ProductID.'.html';
				$link_img = urlimg.'products/200/'.$hot->ProductImg;
		?>
        	<li>
                <a href="<?=$link_to?>" title="<?=$hot->ProductName?>">
                    <img width="300" height="300" src="<?=$link_img?>" class="" alt="<?=$hot->ProductName?>" />
                    <span class="product-title"><?=$hot->ProductName?></span>
                	<del>Giá : <span class="price priceold"><?=pricevn($hot->Price_Old)?><span class="Symbol">₫</span></span></del>  <br>
               		<ins> Giá KM : <span class="price"><?=pricevn($hot->Price)?><span class="Symbol">₫</span></span></ins>
                </a>
            </li>
        <?php
			 endforeach ; 
		}
		?>
        </ul>
        </div>
    </div>
    <div class="seemore"><a class="xemtiep" href="javascript:seemore();">Xem tiếp</a><a class="rutgon" href="javascript:rutgon();">Rút gọn</a></div>
</div>
<div class="ProductFunc pro_relate">
    <div class="introduce">
        <h2 class="m_product tab">Sản phẩm liên quan </h2>
        <div class="grid row">
            <?php foreach ($list_pro as $pro) : 
                $links = site.'chi-tiet/'.$pro->Alias.'-'.$pro->ProductID.'.html';
            ?>
            <div class="item col-md-2 col-xs-6 col-sm-4">
                <div class="img">
                    <a class="i_img" href="<?=$links?>"><img src="<?=urlimg?>products/200/<?=$pro->ProductImg?>" width="100%" alt="<?=$pro->ProductName?>" /></a>
                    <a href="<?=$links?>" class="btn hidden-sm">Xem ngay »</a>
                </div>
                <a href="<?=$links?>" class="i_name"><?=$pro->ProductName?></a>
                <div class="i_price">
                    <p><span><del><?=pricevn($pro->Price_Old)?></del> đ</span><span class="price"><?=pricevn($pro->Price)?> đ</span></p>
                    <p><?=$pro->nb_view?></p>
                </div>
            </div>
            <? endforeach ; ?>
        </div>
        <div class="paging"><?=$pagination?></div>
    </div>
    <div class="clear"></div>
</div>
<script language="javascript">
function seemore(){
    $('.shortdesc').css('height',"auto");
    $('.xemtiep').hide();
    $('.rutgon').show();
}
function rutgon(){
    $('.shortdesc').css('height',"450px");
    $('.rutgon').hide();
    $('.xemtiep').show();
}
$(document).ready(function(e) {
    $('.ProductFunc span.flag').on('click',function(e) {
        const id = $(this).data('id');
        const crsf = $('#crsf').val();
        fetch(site+'sanpham/flag', {
          method: 'POST', // hoặc PUT, PATCH
          headers: {
            'Content-Type': 'application/json'
          },
          body: JSON.stringify({
            proid: id,
            crsf: crsf
          })
        })
        .then(response => ()=>{
            response.json();
            console.log(123);
        })
        .then(data => ()=>{
            console.log(data);
            console.log(321);
        })
        .catch(error => console.error('Error:', error));
    });
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit