site/cart.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php include('header.php');
$arr = $_SESSION['cart'];
?>
<div class="row">
<div class="xzt-wp box shop">
<div class="span9">
<h3> 购物车产品数量 [ <small><?php echo $_SESSION['TotalCartNum'];?> </small>]
<a href="../index.php" class="btn btn-large pull-right"><i class="icon-arrow-left"></i> 继续购物 </a></h3>
<hr class="soft">
<table class="table table-bordered">
<thead>
<tr>
<th>产品</th>
<th>单价(¥)</th>
<th>数量</th>
<th>总价(¥)</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($arr))
{
foreach($arr as $i=>$c)
{?>
<tr>
<td>
<a href="../index.php?m=product_view&init=<?php echo $c[0]['id'];?>">
<?php echo $c[0]['product_name'];?>
<!-- <img src="--><?php //echo $c[0]['thumb'];?><!--" width="80" height="80">-->
</a>
</td>
<td>
¥<?php echo $c[0]['price'];?>
</td>
<td><?php echo $c[1];?></td>
<td><?php echo $c[0]['price'];?>*<?php echo $c[1];?>=
<?php echo $c[1]*$c[0]['price'];?></td>
<td>
[<a href="../index.php?m=rm&sequence=<?php echo $i; ?>">
<i class="icon icon-trash"></i>
移除
</a>]
</td>
</tr>
<?php }}else{?>
<tr>
<td colspan="5" class="alert alert-danger">
购物车空空如也.
<a class="btn btn-success" href="../index.php">马上选购</a>
</td>
</tr>
<?php }?>
后面还有 31 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。