You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
simple-yewu/frontend/views/gift/ajax-car-index.php

43 lines
2.1 KiB

<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="50" align="center" class="bg_tr" nowrap>序号</td>
<td width="80" align="center" class="bg_tr" nowrap>礼品名称</td>
<td width="80" align="center" class="bg_tr" nowrap>类型</td>
<td width="50%" align="center" class="bg_tr" nowrap>描述</td>
<td width="80" align="center" class="bg_tr" nowrap>分类</td>
<td width="80" align="center" class="bg_tr" nowrap>添加者</td>
<td width="50" align="center" class="bg_tr" nowrap>操作时间</td>
<td width="50" align="center" class="bg_tr" nowrap>状态</td>
<td width="70" align="center" class="bg_tr" nowrap>相关操作</td>
</tr>
<?php
foreach($items as $index => $item) {
if(!$item->gift) continue;
?>
<tr>
<td align="center" class="td_bg"nowrap ><?=$index+1?></td>
<td class="td_bg" nowrap><?=$item->gift->name?></td>
<td align="center" class="td_bg" nowrap><?=$item->gift->type->name?></td>
<td class="td_bg" nowrap><?=$item->gift->remark?></td>
<td align="center" class="td_bg" nowrap><?=$item->strategy_id>0?'公司礼品':'自费礼品'?></td>
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
<td align="center" class="td_bg" nowrap><?=date('Y-m-d H:i:s',$item->submit_time)?></td>
<td align="center" class="td_bg" nowrap><?php
if($item->status == 0) echo '未出库';
if($item->status == 1) echo '已出库';
if($item->status == 2) echo '正在退换';
?></td>
<td align="center" class="td_bg" nowrap>
<?php
if($item->strategy_id > 0 || $item->status > 0) {
echo '';
} else {
echo '[<a href="javascript:void();" onclick="deleteGift('.$item->id.')">删除</a>]';
}
?>
</td>
</tr>
<?php
}
?>
</table>