Server : Apache
System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/saimikebio.com/temp/compiled/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/saimikebio.com/temp/compiled/cart_info_top.lbi.php
<a class="cart-mini" href="flow.php">
	<i class="iconfont">&#xe601;</i>
    购物车
    <span class="mini-cart-num J_cartNum" id="hd_cartnum">(<?php echo $this->_var['number']; ?>)</span>
</a>
<div id="J_miniCartList" class="cart-menu">
	<?php if ($this->_var['cart_list']): ?>
    <ul>
    	<?php $_from = $this->_var['cart_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['ioo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ioo']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['ioo']['iteration']++;
?>
    	<li class="clearfix <?php if (($this->_foreach['ioo']['iteration'] <= 1)): ?>first<?php endif; ?>">
        	<div class="cart-item">
              <a class="thumb" target="_blank" href="<?php echo $this->_var['goods']['url']; ?>">
                  <img src="<?php if ($this->_var['goods']['goods_thumb'] == 'package_img'): ?>themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/ico_cart_package.gif<?php else: ?><?php echo $this->_var['goods']['goods_thumb']; ?><?php endif; ?>">
              </a>
              <a class="name" target="_blank" href="<?php echo $this->_var['goods']['url']; ?>"><?php echo $this->_var['goods']['short_name']; ?></a>
              <span class="price"><?php echo $this->_var['goods']['shop_price']; ?>元 x <?php echo $this->_var['goods']['goods_number']; ?></span>
              <a class="btn-del delItem" href="javascript:deleteCartGoods(<?php echo $this->_var['goods']['rec_id']; ?>);">
                  <i class="iconfont">&#xe60e;</i>
              </a>
            </div>
        </li>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
    <div class="count clearfix">
    	<span class="total">
            <strong>合计:<em id="hd_cart_total"><?php echo $this->_var['amount']; ?>元</em></strong>
        </span>
        <a class="btnprimary" href="flow.php">去购物车结算</a>
    </div>
    <?php else: ?>
    <p class="loading_top">购物车中还没有商品,赶紧选购吧!</p>
    <?php endif; ?> 
</div>
<script type="text/javascript">
function deleteCartGoods(rec_id)
{
	Ajax.call('delete_cart_goods.php', 'id='+rec_id, deleteCartGoodsResponse_top, 'POST', 'JSON');
}

/**
 * 接收返回的信息
 */
function deleteCartGoodsResponse_top(res)
{
  if (res.error)
  {
    alert(res.err_msg);
  }
  else
  {
      $('.ECS_CARTINFO').html(res.content);
      $('.cart-panel-content').height($(window).height()-90);
      $("#ECS_CARTINFO_TOP").html(res.content_top);
  }
}
</script>