echo $present['id']; ?> "> <td><?php echo htmlspecialchars($present['name']); ?> </td> <td><?php echo date('Y-m-d H:i:s', $present['start_time']); ?> 至<?php echo date('Y-m-d H:i:s', $present['end_time']); ?> </td> <td><?php echo $present['status'] ? getTimeType($present['start_time'], $present['end_time']) : '已结束'; ?> </td> <td><?php echo $present['number']; ?> </td> <td class="text-right js-operate" data-present_id="<?php echo $present['id']; ?> "> <?php if ($present['status']) { ?> <a href="#edit/<?php echo $present['id'];
} ?> <p class="gray">库存:<?php echo $coupon['total_amount'] - $coupon['number']; ?> </p></td> <td><?php if ($coupon['type'] == 1) { echo "优惠券"; } elseif ($coupon['type'] == '2') { echo "赠送券"; } ?> </td> <td><?php echo $coupon['status'] ? getTimeType($coupon['start_time'], $coupon['end_time']) : '已结束'; ?> </td> <td><?php if ($person_num = $unique_person_have[$coupon['id']]['counts']) { ?> <a href="#fetchlist/<?php echo $coupon['id']; ?> " class="info_detail_person"><?php echo $person_num; ?> </a> <?php } else { echo '0';
foreach ($reward_list as $value) { ?> <tr> <td><?php echo $value['name']; ?> </td> <td><?php echo date('Y-m-d H:i:s', $value['start_time']); ?> 至<?php echo date('Y-m-d H:i:s', $value['end_time']); ?> </td> <td><?php echo $value['status'] ? getTimeType($value['start_time'], $value['end_time']) : '已结束'; ?> </td> <td class="text-right js-operate" data-reward_id="<?php echo $value['id']; ?> "> <?php if ($value['status']) { ?> <a href="#edit/<?php echo $value['id']; ?> " class="js-edit">编辑资料</a> <span>-</span> <a href="javascript:" class="js-disabled">使失效</a>