| Server IP : 103.48.194.25 / Your IP : 216.73.217.33 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 : 8.2.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/thegioimaycongnghiep.vn/public_html/site/components/errcode/views/ |
Upload File : |
<?php
$this->load->model('news/news_model','news');
$list_category = $this->news->category_product();
$list_product = $this->news->get_product(5,0) ;
?>
<div class="post-sidebar large-3 col">
<div id="secondary" class="widget-area " role="complementary">
<aside id="flatsome_recent_posts-2" class="widget flatsome_recent_posts widget_product_categories" style="margin-bottom: 15px;border: 1px solid #CCC;border-top: 0;">
<h3 class="widget-title "><span>Tìm mã lỗi</span></h3>
<form method="get" name="frmerrcode" id="frmerrcode" action="<?=site?>tim-ma-loi.html">
<ul style="padding:15px">
<li class="recent-blog-posts-li">Nhập từ khóa</li>
<li class="recent-blog-posts-li" style="position:relative;">
<input type="text" name="keyscode" id="keyscode" value="" />
<input type="image" src="<?=skin?>images/bt_search.png" style="position:absolute; top:3px; right:6px;" />
</li>
</ul>
</form>
</aside>
<aside id="woocommerce_product_categories-3" class="widget woocommerce widget_product_categories">
<h3 class="widget-title "><span>Danh mục sản phẩm</span></h3>
<div class="is-divider small"></div>
<ul class="product-categories">
<? foreach ($list_category as $cat) : ?>
<li class="cat-item cat-item-58"><a href="<?=site?>danh-muc/<?=$cat->cat_alias?>-<?=$cat->catid?>.html"><?=$cat->cat_name?></a></li>
<? endforeach ;?>
</ul>
</aside>
<aside id="woocommerce_products-3" class="widget woocommerce widget_products">
<h3 class="widget-title tab">Sản phẩm nổi bật</h3>
<div class="is-divider small"></div>
<ul class="product_list_widget">
<?
foreach ($list_product as $rs) :
$link = site."san-pham/".$rs->pro_alias."-".$rs->proid.".html";
?>
<li><a href="<?=$link?>" title="<?=$rs->pro_name?>">
<? if(!empty($rs->proimg) && file_exists(ROOT_IMG."products/100/".$rs->proimg)) {?>
<img src="<?=urlimg?>products/100/<?=$rs->proimg?>" class="attachment-shop_thumbnail size-shop_thumbnail wp-post-image" alt="<?=$rs->pro_name?>" title="<?=$rs->pro_name?>" width="120" height="120">
<? }else{ ?>
<img src="<?=urlimg?>products/noimage.png" class="attachment-shop_thumbnail size-shop_thumbnail wp-post-image" alt="No Images" width="114" height="130" title="<?=$rs->pro_name?>">
<? }?>
<span class="product-title"><?=$rs->pro_name?></span> </a> </li>
<? endforeach ;?>
</ul>
</aside>
<!--<aside id="flatsome_recent_posts-2" class="widget flatsome_recent_posts">
<h3 class="widget-title "><span>Bài viết gần đây</span></h3>
<div class="is-divider small"></div>
<ul>
<li class="recent-blog-posts-li">
</li>
</ul>
</aside>-->
</div>
<!-- #secondary -->
</div>
<script language="javascript">
$(document).ready(function(e) {
$('#frmerrcode').submit(function(e) {
var keyscode = $('#keyscode').val();
if(keyscode)
{
var pageto = site+'tu-khoa/';
$.post(pageto,{'keyscode':keyscode},function(){
window.location = site+'tim-ma-loi.html';
});
}
else
{
alert('Vui lòng nhập từ khóa cần tìm');
return false;
}
});
});
</script>