wpfw_ewei_shopv2/plugin/seckill/template/web/goods.html
2023-02-14 19:57:32 +08:00

102 lines
4.3 KiB
HTML

{template '_header'}
<div class="page-heading">
<h2>商品查看 <small>总数: <span class="text text-danger">{$total}</span>
{if !empty($task)}所属专题: {$task['id']}-{$task['title']}{/if}
{if !empty($room)}会场: {$room['id']}-{$room['title']}{/if}</small></h2>
</div>
<form action="./index.php" method="get" class="form-horizontal form-search" role="form">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="{EWEI_SHOP_V2_MODULE_NAME}" />
<input type="hidden" name="do" value="web" />
<input type="hidden" name="r" value="seckill.goods" />
<input type="hidden" name="taskid" value="{$_GPC['taskid']}" />
<input type="hidden" name="roomid" value="{$_GPC['roomid']}" />
<div class="page-toolbar row m-b-sm m-t-sm">
<div class="col-sm-4">
<div class="input-group-btn">
<button class="btn btn-default btn-sm" type="button" data-toggle='refresh'><i class='fa fa-refresh'></i></button>
</div>
</div>
<div class="col-sm-6 pull-right">
<select name="time" class='form-control input-sm select-sm'>
<option value="" {if $_GPC['time'] === ''} selected{/if}>时间段</option>
{loop $alltimes $i}
<option value="{$i}" {if $_GPC['time']=== $i}selected{/if}>{$i}</option>
{/loop}
</select>
<div class="input-group">
<input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="专题名称/会场名称/商品名称">
<span class="input-group-btn">
<button class="btn btn-sm btn-primary" type="submit"> 搜索</button>
</span>
</div>
</div>
</div>
</form>
<form action="" method="post">
{if count($list)>0}
<table class="table table-responsive table-hover" >
<thead class="navbar-inner">
<tr>
<th style="width:60px;">商品</th>
<th style="width:400px;">&nbsp;</th>
<th style="width:100px;" >秒杀价格</th>
<th style="width:150px;" >已付款/未付款/库存</th>
<th style="">操作</th>
</tr>
</thead>
<tbody>
{loop $list $row}
<tr>
<td style="vertical-align: top">
<img src="{php echo tomedia($row['thumb'])}" style="width:40px;height:40px;padding:1px;border:1px solid #ccc;" />
</td>
<td class='full' style="overflow-x: hidden">
{$row['title']}<br/>
<a href="{php echo webUrl('seckill/task/edit',array('id'=>$row['taskid']))}" target="_blank"><span class="label label-primary">{$row['tasktitle']}</span></a>
<a href="{php echo webUrl('seckill/room/edit',array('id'=>$row['roomid'],'taskid'=>$row['taskid']))}" target="_blank"><span class="label label-warning">{$row['roomtitle']}</span></a>
<span class="label label-danger">{$row['time']}点</span>
</td>
<td><span class="text text-danger" style="font-size:14px">&yen; {$row['price']}</span><br />
<span style="text-decoration: line-through;color:#666;">&yen;{$row['marketprice']}</span></td>
<td>{php echo $row['count']-$row['notpay']}&nbsp;/&nbsp;{$row['notpay']}&nbsp;/&nbsp;{$row['total']} </td>
<td style="overflow:visible;position:relative">
{ifp 'seckill.goods.delete'}
<a class='btn btn-default btn-sm' data-toggle='ajaxRemove' href="{php echo webUrl('seckill/goods/delete', array('id' => $row['id']))}" data-confirm='确认取消此时间段该商品的秒杀?<br/><small>如果有多规格,所有规格将全部取消</small>'><i class='fa fa-trash'></i> 取消</a>
{/if}
</td>
</tr>
{/loop}
<tr>
<td colspan='5'>
<div class='pagers' style='float:right;'>
{$pager}
</div>
</td>
</tr>
</tbody>
</table>
{else}
<div class='panel panel-default'>
<div class='panel-body' style='text-align: center;padding:30px;'>
暂时没有任何商品!
</div>
</div>
{/if}
</form>
{template '_footer'}