Your IP : 18.226.150.130
<!--//инфа по корзине-->
<?
$site_path = $_SERVER['HTTP_X_FORWARDED_PROTO'] . "://" . $_SERVER['SERVER_NAME'];
$arID = array();
$arBasketItems = array();
if (!CModule::IncludeModule("sale")) return;
$dbBasketItems = CSaleBasket::GetList(
array(
"NAME" => "ASC",
"ID" => "ASC"
),
array(
"FUSER_ID" => CSaleBasket::GetBasketUserID(),
"LID" => SITE_ID,
"ORDER_ID" => "NULL"
),
false,
false,
array("ID", "CALLBACK_FUNC", "MODULE", "PRODUCT_ID", "QUANTITY", "PRODUCT_PROVIDER_CLASS")
);
while ($arItems = $dbBasketItems->Fetch())
{
if ('' != $arItems['PRODUCT_PROVIDER_CLASS'] || '' != $arItems["CALLBACK_FUNC"])
{
CSaleBasket::UpdatePrice($arItems["ID"],
$arItems["CALLBACK_FUNC"],
$arItems["MODULE"],
$arItems["PRODUCT_ID"],
$arItems["QUANTITY"],
"N",
$arItems["PRODUCT_PROVIDER_CLASS"]
);
$arID[] = $arItems["ID"];
}
}
if (!empty($arID))
{
$dbBasketItems = CSaleBasket::GetList(
array(
"NAME" => "ASC",
"ID" => "ASC"
),
array(
"ID" => $arID,
"ORDER_ID" => "NULL"
),
false,
false,
array("ID", "CALLBACK_FUNC", "MODULE", "PRODUCT_ID", "QUANTITY", "DELAY", "CAN_BUY", "PRICE", "WEIGHT", "PRODUCT_PROVIDER_CLASS", "NAME")
);
while ($arItems = $dbBasketItems->Fetch())
{
$arBasketItems[] = $arItems;
}
}
// Печатаем массив, содержащий актуальную на текущий момент корзину
?>
<?
$pics = array();
$i = 0;
$all_count = 0;
$all_pr = 0;
foreach($arBasketItems as $key=>$basketItem) {
$all_count = $all_count + $arBasketItems[$key]["QUANTITY"];
$all_pr = $all_pr + $arBasketItems[$key]["QUANTITY"] * $arBasketItems[$key]["PRICE"];
$res = CIBlockElement::GetByID($basketItem["PRODUCT_ID"]);
if ($ar_res = $res->GetNext())
// echo $img_path." <br>";//picture1_ru_new
$res = CIBlockElement::GetByID($arBasketItems[$key]["PRODUCT_ID"]);
$iblock = "";
if($ar_res = $res->GetNext()) {
//echo "ib:" . $ar_res['IBLOCK_ID'];
$iblock = $ar_res['IBLOCK_ID'];
}
$arSelect = Array("PROPERTY_picture1_ru_new");
$arFilter = Array("IBLOCK_ID"=>IntVal($iblock), "ID"=> $arBasketItems[$key]["PRODUCT_ID"], "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>50), $arSelect);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
// print_r($arFields);
}
$arBasketItems[$key]["IMG_PATH"] = $img_path = CFile::GetPath($arFields["PROPERTY_PICTURE1_RU_NEW_VALUE"]);
}
//echo "<pre>";
//print_r($arBasketItems);
//echo "</pre>";
?>
<?//
//$res = CIBlockElement::GetByID($arBasketItems["PRODUCT_ID"]);
//if($ar_res = $res->GetNext()){
// $im = CFile::ShowImage($ar_res["PREVIEW_PICTURE"], 0, 0, "border=0", "", true);}
//?>
<!--<div>--><?//=$im?><!--</div>-->
<style>
table, tr:not(.line), td{
border: none !important;
}
.border-line{
//-webkit-box-shadow: 0px 3px 8px -5px rgba(10,146,250,1);
//-moz-box-shadow: 0px 3px 8px -5px rgba(10,146,250,1);
//box-shadow: 0px 3px 8px -5px rgba(10,146,250,1);
}
.margequantity{
margin-left: 10px;
margin-right: 10px;
font-size: 18px;
}
#inBasket{
overflow: auto;
}
/*.inBasketPrice{*/
/*font-size: 18px;*/
/*}*/
#inBasketContainer{
top: 22%;
}
#inBasketContainer > table{
width: 100%
}
/*#inBasketTotal{*/
/*!*-webkit-box-shadow: 0px 7px 5px -5px rgba(166,166,255,0.42);*!*/
/*!*-moz-box-shadow: 0px 7px 5px -5px rgba(166,166,255,0.42);*!*/
/*!*box-shadow: 0px 7px 5px -5px rgba(166,166,255,0.42);*!*/
/*font: bold 18px "ElectroluxSans", sans-serif;*/
/*color: #041e41;*/
/*margin-right: 57px;*/
/*}*/
.del{
text-align: center;
display: inline-block;
width: 32px;
height: 32px;
background: url(/images/exit2.png) no-repeat 12px 12px transparent;
margin-top: 20px;
}
#inBasketToolsTable{
width: 100%;
float: right;
border: 0px;
}
#inBasketToolsTable td:nth-child(2){
//width: 20%;
//text-align: left;
}
#inBasketToolsTable img{
/*width:115px !important;*/
/*height:115px !important;*/
}
.inBasketToolsTableNew .count{
display: inline-block;
line-height: 25px;
color: #000000;
font-size: 18px;
font-weight: bold;
text-align: center;
width: 25px;
height: 24px;
border-radius: 3px;
cursor: pointer;
}
.hidd{
visibility: hidden;
}
.displaynone{
display: none;
}
.hidde{
display:block;
}
#inBasketContainer .empty{
padding-top: 88px !important;
margin-bottom: -25px !important;
font-size: 36px !important;
font-weight: bold !important;
color: #697ca2 !important;
/*text-shadow: 2px 0px 2px rgba(145, 145, 145, 0.73) !important;*/
}
#topQty #all_cnt, #topSum #all_pr{
background: #fff !important;
}
.subtitle span{
border: none !important;
}
.bx-soa-empty-cart-image{
width: 131px;
height: 135px;
/*margin: 50px auto 42px;*/
margin-top: 0px;
margin-left: 42%;
background: url(/images/empty-cart.png) no-repeat center;
-webkit-background-size: contain;
background-size: contain;
}
.waiting_overflow, .waiting_overflow1{
display: none;
position: absolute;
width: 100%;
height: 100%;
margin: -8px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.25);
z-index: 1000;
}
#floatBarsG{
position: relative;
width: 234px;
height: 28px;
margin: auto;
top: 50%;
}
.floatBarsG{
position:absolute;
top:0;
background-color: rgb(76, 78, 218);
width:50px;
height:50px;
border-radius: 25px;
animation-name:bounce_floatBarsG;
-o-animation-name:bounce_floatBarsG;
-ms-animation-name:bounce_floatBarsG;
-webkit-animation-name:bounce_floatBarsG;
-moz-animation-name:bounce_floatBarsG;
animation-duration:1.5s;
-o-animation-duration:1.5s;
-ms-animation-duration:1.5s;
-webkit-animation-duration:1.5s;
-moz-animation-duration:1.5s;
animation-iteration-count:infinite;
-o-animation-iteration-count:infinite;
-ms-animation-iteration-count:infinite;
-webkit-animation-iteration-count:infinite;
-moz-animation-iteration-count:infinite;
animation-direction:normal;
-o-animation-direction:normal;
-ms-animation-direction:normal;
-webkit-animation-direction:normal;
-moz-animation-direction:normal;
transform:scale(.3);
-o-transform:scale(.3);
-ms-transform:scale(.3);
-webkit-transform:scale(.3);
-moz-transform:scale(.3);
}
#floatBarsG_1{
left:0;
animation-delay:0.6s;
-o-animation-delay:0.6s;
-ms-animation-delay:0.6s;
-webkit-animation-delay:0.6s;
-moz-animation-delay:0.6s;
}
#floatBarsG_2{
left:29px;
animation-delay:0.75s;
-o-animation-delay:0.75s;
-ms-animation-delay:0.75s;
-webkit-animation-delay:0.75s;
-moz-animation-delay:0.75s;
}
#floatBarsG_3{
left:58px;
animation-delay:0.9s;
-o-animation-delay:0.9s;
-ms-animation-delay:0.9s;
-webkit-animation-delay:0.9s;
-moz-animation-delay:0.9s;
}
#floatBarsG_4{
left:88px;
animation-delay:1.05s;
-o-animation-delay:1.05s;
-ms-animation-delay:1.05s;
-webkit-animation-delay:1.05s;
-moz-animation-delay:1.05s;
}
#floatBarsG_5{
left:117px;
animation-delay:1.2s;
-o-animation-delay:1.2s;
-ms-animation-delay:1.2s;
-webkit-animation-delay:1.2s;
-moz-animation-delay:1.2s;
}
#floatBarsG_6{
left:146px;
animation-delay:1.35s;
-o-animation-delay:1.35s;
-ms-animation-delay:1.35s;
-webkit-animation-delay:1.35s;
-moz-animation-delay:1.35s;
}
#floatBarsG_7{
left:175px;
animation-delay:1.5s;
-o-animation-delay:1.5s;
-ms-animation-delay:1.5s;
-webkit-animation-delay:1.5s;
-moz-animation-delay:1.5s;
}
#floatBarsG_8{
left:205px;
animation-delay:1.64s;
-o-animation-delay:1.64s;
-ms-animation-delay:1.64s;
-webkit-animation-delay:1.64s;
-moz-animation-delay:1.64s;
}
@keyframes bounce_floatBarsG{
0%{
transform:scale(1);
background-color: rgb(76, 78, 218);
}
100%{
transform:scale(.3);
background-color:rgb(255,255,255);
}
}
@-o-keyframes bounce_floatBarsG{
0%{
-o-transform:scale(1);
background-color: rgb(76, 78, 218);
}
100%{
-o-transform:scale(.3);
background-color:rgb(255,255,255);
}
}
@-ms-keyframes bounce_floatBarsG{
0%{
-ms-transform:scale(1);
background-color: rgb(76, 78, 218);
}
100%{
-ms-transform:scale(.3);
background-color:rgb(255,255,255);
}
}
@-webkit-keyframes bounce_floatBarsG{
0%{
-webkit-transform:scale(1);
background-color: rgb(76, 78, 218);
}
100%{
-webkit-transform:scale(.3);
background-color:rgb(255,255,255);
}
}
@-moz-keyframes bounce_floatBarsG{
0%{
-moz-transform:scale(1);
background-color: rgb(76, 78, 218);
}
100%{
-moz-transform:scale(.3);
background-color:rgb(255,255,255);
}
}
</style>
<div id="inBasket" data-load="<?=SITE_TEMPLATE_PATH?>/images/picLoad.gif">
<div id="inBasketContainer">
<div class = "waiting_overflow">
<div id="floatBarsG">
<div id="floatBarsG_1" class="floatBarsG"></div>
<div id="floatBarsG_2" class="floatBarsG"></div>
<div id="floatBarsG_3" class="floatBarsG"></div>
<div id="floatBarsG_4" class="floatBarsG"></div>
<div id="floatBarsG_5" class="floatBarsG"></div>
<div id="floatBarsG_6" class="floatBarsG"></div>
<div id="floatBarsG_7" class="floatBarsG"></div>
<div id="floatBarsG_8" class="floatBarsG"></div>
</div>
</div>
<div class = "waiting_overflow1">
<div id="floatBarsG">
<div id="floatBarsG_1" class="floatBarsG"></div>
<div id="floatBarsG_2" class="floatBarsG"></div>
<div id="floatBarsG_3" class="floatBarsG"></div>
<div id="floatBarsG_4" class="floatBarsG"></div>
<div id="floatBarsG_5" class="floatBarsG"></div>
<div id="floatBarsG_6" class="floatBarsG"></div>
<div id="floatBarsG_7" class="floatBarsG"></div>
<div id="floatBarsG_8" class="floatBarsG"></div>
</div>
</div>
<?if($_SERVER['SCRIPT_URL'] != "/checkout/"){?>
<div id="button" class="heading"><span>Корзина</span></div>
<?} else {?>
<span id="button" class="heading">Редактировать заказ</span>
<?}?>
<a href="#" id="inBasketClose"></a>
<table>
<tbody>
<tr>
<td>
<table id="inBasketToolsTable" class="inBasketToolsTableNew" border="0">
<?
$offerPrice = 0;
foreach($arBasketItems as $basketItem){
echo "<tr>
<td rowspan='3' class='border' width='6%'><div class = 'del' to_delete='". $basketItem["ID"] ."' delPrice = '". substr($basketItem["PRICE"], 0, -5) ."'></div></td>
<td rowspan='3' width='1%'><img src = '" . $basketItem["IMG_PATH"] . "' class='img-". $basketItem["ID"] ."'></td>
<td colspan='3' class = 'head-". $basketItem["ID"] ."' id = '". $basketItem["ID"] ."' q = '". substr($basketItem["QUANTITY"], 0, -3) ."'>" . "<span class='productTitle'>".$basketItem["NAME"] . "</span></td>
</tr>
<tr class='border-line add row-". $basketItem["ID"] ."'>" .
"<td class='border' width='10%'> Цена: " . "<br><span class = 'inBasketPrice'>" . substr($basketItem["PRICE"], 0, -5) . "</span>" . " грн</td>".
"<td class='border'>Кол-во<br><div class='count minus_mod' item_id='". $basketItem["ID"] ."' p = '". substr($basketItem["PRICE"], 0, -5) ."'>-</div>
<span class='c margequantity item" . $basketItem["ID"] . "'>" . substr($basketItem["QUANTITY"], 0, -3) . " </span>
<div class='count plus_mod' item_id='". $basketItem["ID"] ."' p = '". substr($basketItem["PRICE"], 0, -5) ."'>+</div></td>
<td class='border sum'> Сумма: " . "<br><span class='ItemSum" . $basketItem["ID"] ."'>" . substr(($basketItem["PRICE"]*$basketItem["QUANTITY"]), 0) . "</span>" . " грн</td>"
//
. "</tr><tr class='line'><td colspan='4'><hr style='border-color: #f2f2f2;height: 1px;opacity: 0.4;'></td></tr>";
$i = $i + 1;
$offerPrice += $basketItem["PRICE"]*$basketItem["QUANTITY"];
}
?>
</table>
<div id="inBasketOther" class = "hidd"></div>
<div id="inBasketOtherHidden" class = "hidde"></div>
<hr style="width: 100%; visibility: hidden;">
<div class="bx-soa-empty-cart-image displaynone">
</div>
<!-- <div id="inBasketOrder">-->
<!-- <div hidden class="fast-in-cart">-->
<!-- <h3>Заказать без оформления</h3>-->
<!-- <p>Можно не заполнять никаких форм, просто оставить телефон, и консультант решит все вопросы по оформлению заказа</p>-->
<!-- <li class="fastBayinBasket">-->
<!-- <input type="tel" id="phone1" name="phone" placeholder="(0XX)XXX-XXXX" class="input-telinBasket">-->
<!-- <a href="#" class="oneClickinBasket" data-id="794" item-id="486" style="margin-left: 0">-->
<!-- --><?//= GetMessage("ONCLICK_BIG"); ?><!--Купить в один клик-->
<!-- </a>-->
<!-- </li>-->
<!-- <script>-->
<!-- $("#phone1").mask("(999) 999-9999");-->
<!--
<!-- </script>-->
<!-- </div>
<!-- <!--<a href="#" class="inBasketContinue button right80"><b><</b> Продолжить покупки</a>-->
<!-- <a href="#" style="color:black" id="CloseBasket" class="BasketContinue"><b><</b> Продолжить покупки</a>-->
<!-- <div id="inBasketTotal" class="">Итого: <span id="pricePos" class="all"><span id="pricePos" class="all">--><?//=$offerPrice?><!--</span></span> грн</div>-->
<!-- <!--<span id="total">Итого: <span id="pricePos" class="all">--><?//=$offerPrice?><!--</span> грн</span>-->
<!-- <a href="/personal/checkout_insite/" class="inBasketMake">Оформить заказ</a>-->
<!-- </div>-->
</td>
</tr>
<!--также в корзинке-->
</tbody>
</table>
<div id="inBasketOrder">
<div id="BasketContinue" style="float: left;width: 50%;">
<a href="#" style="color:black;line-height: 100px;" id="CloseBasket" class="BasketContinue"><b><</b> Продолжить покупки</a>
</div>
<div id="basket_right" style="float: right;width: 50%;line-height: 40px;">
<div id="inBasketTotal" class="">
Итого: <span id="pricePos" class="all" style="margin-left: 10px;"><span id="pricePos" class="all"><?=$offerPrice?></span></span> грн
</div>
<div id="inBasketMake">
<a href="/personal/checkout_insite/" class="inBasketMake">Оформить заказ</a>
</div>
</div>
</div>
</div>
</div>
<script>
var $newURL = window.location.protocol + "//" + window.location.host + "/";
var $pressed = 1;
var $displayBasketItem = 0;
$(document).on("click", ".minus_mod",function(){
var $item_id = $(this).attr('item_id');
var $p = parseInt($(this).attr('p'));
var $all_price = parseInt($('.all').text());
var $quan = $('#' + $item_id).attr('q');
if($quan > 1){
// $('.all').text($all_price - $p);
// $('.all_s').text($all_price - $p);
} else {$p = 0}
if($quan > 1) {
$quan = $quan - 1;
$('#' + $item_id).attr('q', $quan);
$('.item' + $item_id).text($quan+" ");
$.ajax({
type: 'get',//тип запроса: get,post либо head
url: $newURL + 'ajax/basket_utiles.php',//url адрес файла обработчика
data: {'quant': $quan, 'id': $item_id},//параметры запроса
response: 'text',//тип возвращаемого ответа text либо xml
success: function (quant) {//возвращаемый результат от сервера
$('.ItemSum'+$item_id).load($newURL + "ajax/basket_utiles.php .ItemSum"+$item_id);
reloadPrise();
}
});
} else {
$quan = 0;
$('.item' + $item_id).text(1);
}
reloadPrise();
});
$(document).on("click", ".plus_mod",function(){
var $item_id = $(this).attr('item_id');
var $p = parseInt($(this).attr('p'));
var $all_price = parseInt($('.all').text());
// $('.all_s').text($all_price + $p);
// $('.all').text($all_price + $p);
var $quan = parseInt($('#' + $item_id).attr('q'));
$quan = $quan + 1;
$('#' + $item_id).attr('q', $quan);
$('.item' + $item_id).text($quan);
$.ajax({
type:'get',//тип запроса: get,post либо head
url: $newURL + 'ajax/basket_utiles.php',//url адрес файла обработчика
data:{'quant': $quan, 'id' : $item_id},//параметры запроса
response:'text',//тип возвращаемого ответа text либо xml
success:function (quant) {//возвращаемый результат от сервера
$('.ItemSum'+$item_id).load($newURL + "ajax/basket_utiles.php .ItemSum"+$item_id);
reloadPrise();
}
});
reloadPrise();
});
$(document).on("click", ".del",function(){
$displayBasketItem = $displayBasketItem - 1;
var $attribute = $(this).attr('to_delete');
var $oneItemPrice = parseInt($('.item'+$attribute).text()) * parseInt($(this).attr('delPrice'));
var $items_in_cart = parseInt($('.subtitle .count').text());
// $('.subtitle .count').text($items_in_cart - parseInt($('.c.item'+$attribute).text()) + ' товара');
// $('.cnt').text($items_in_cart - parseInt($('.c.item'+$attribute).text()));
// $('.all_s').text(parseInt($('.all_s').text()) - $oneItemPrice);
// $('.all').text(parseInt($('.all').text()) - $oneItemPrice);
reloadPrise();
$.ajax({
type:'get',//тип запроса: get,post либо head
url: $newURL + 'ajax/basket_utiles.php',//url адрес файла обработчика
data:{'at': $attribute},//параметры запроса
response:'text',//тип возвращаемого ответа text либо xml
success:function (dat) {//возвращаемый результат от сервера
// alert(dat);
// sendScData();
$('.waiting_overflow').css('display', 'block');
$(this).css(background, "url(/images/delete2.png) -18px 0px no-repeat");
}
});
setTimeout(function(){
document.getElementById("button").click();
$('.waiting_overflow').css('display', 'none');
},1500);
if($('.all').text() == 0 || $('.del').length == 1){
//$('.block_title').text("Корзина пуста");
$('.heading').text("Ваша корзина пуста");
//$('.heading').addClass("empty");
$('#inBasketTotal').addClass("hidd");
$('.inBasketMake').addClass("hidd");
$('.BasketContinue').addClass("right");
$('.bx-soa-empty-cart-image').removeClass("displaynone");
$('.title_cart').addClass("hidd");
} $('#inBasketOrder .fast-in-cart').hide();
});
function GetCountAndPrice () {
console.log("get count and prise");
$('#inBasket').css('display', 'none');
$('.subtitle .numCount').load($newURL + "ajax/basket_utiles.php #all_cnt");
$('.cnt').load($newURL + "ajax/basket_utiles.php #all_cnt");
$('#topQty').load($newURL + "ajax/basket_utiles.php #all_cnt");
// $('#footCart').load($newURL + "ajax/basket_utiles.php #all_cnt");
$('#topSum').load($newURL + "ajax/basket_utiles.php #all_pr");
$('#topQty #all_cnt').css('background-color', '#ffffff');
$('#topSum #all_pr').css('background-color', '#ffffff');
// $all = parseInt($('.all').text());
console.log( $('.all').text() );
$('.all_s').text($('.all').text());
}
$('.inBasketContinue').click(function () {
GetCountAndPrice ();
if(window.location.pathname == '/checkout/'){
location.reload();
}
});
$('#inBasketClose').click(function () {
GetCountAndPrice ();
if(window.location.pathname == '/checkout/'){
location.reload();
}
});
$('#CloseBasket').click(function () {
GetCountAndPrice ();
if(window.location.pathname == '/checkout/'){
location.reload();
}
});
var $moreInBasket = 0;
$(document).on("click", ".addCart",function(){
console.log("click");
// sendScData();
$pressed = 0;
$displayBasketItem = $displayBasketItem + 1;
$('.waiting_overflow1').css('display', 'block');
var id = $(this).attr("data-id");
$.ajax({
url: "/ajax.php?act=add&id="+id,
context: document.body
}).done(function() {
$( this ).addClass( "done" );
});
for($i = 0; $i < 2; $i++){
setTimeout(function () {
document.getElementById("button").click();
$('.waiting_overflow1').css('display', 'none');
}, 2000);
}
$('#inBasket').css('display', 'block');
//$('.block_title').text("Корзина");
$("#inBasketContainer .heading").text("Ваш товар в корзине!");
$("#inBasketContainer .heading").removeClass("empty");
$("#inBasketTotal").removeClass("hidd");
$(".inBasketMake").removeClass("hidd");
$(".bx-soa-empty-cart-image").addClass("displaynone");
$('.BasketContinue').removeClass("right");
// $("#CloseBasket").css('display', 'none');
//$(".inBasketContinue").removeClass("right80");
$("#inBasketOrder").show();
// $( ".add" ).addClass( "append" );
// $all = parseInt($('.all_s').text());
// $('#inBasketTotal .all').text($all);
if( typeof $moreInBasket !== 'undefined')
$moreInBasket = $moreInBasket + 1;
if( typeof $moreInBasket !== 'undefined')
if($moreInBasket > 1){
$('#inBasketOther').css('visibility', 'visible')
};
document.getElementById("button").click();
});
$(document).ready(function(){
});
$(document).on("click", "#basket_add",function(){
if($('.all').text() == "NaN" || $('.all').text() == 0){
//$('.block_title').text("Корзина пуста");
$('.heading').text("Ваша корзина пуста");
//$('.title_cart').text("Корзина пуста");
//$('.heading').addClass("empty");
$('#inBasketTotal').addClass("hidd");
$('.inBasketMake').addClass("hidd");
$('.BasketContinue').addClass("right");
$('.bx-soa-empty-cart-image').removeClass("displaynone");
$('.title_cart').removeClass("hidd");
$("#inBasketOrder .fast-in-cart").hide();
reloadPrise();
}
});
$(document).on("click", "#button",function(){
$('.inBasketToolsTableNew').load($newURL + "ajax/basket_utiles.php .inBasketToolsTableNew");
$("#inBasketOtherHidden").find("#inBasketToolsTable tr:nth-child(3)" ).addClass('smthing');
reloadPrise();
});
function reloadPrise() {
$('#pricePos').load($newURL + "ajax/basket_utiles.php #pricePos",function() {
// $('.all_s').text(parseInt($('.all').text()));
console.log("reload");
});
}
</script>