history.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php if (isset($error)) { ?>
  2. <div class="alert alert-error">
  3. <?php echo $error; ?>
  4. </div>
  5. <?php } ?>
  6. <?php if (isset($success)) { ?>
  7. <div class="alert alert-success" role="alert">
  8. <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  9. <?php echo $success; ?>
  10. </div>
  11. <?php } ?>
  12. <table class="table table-bordered">
  13. <thead>
  14. <tr>
  15. <td class="left"><b>生成日期</b></td>
  16. <td class="left"><b>订单附言</b></td>
  17. <td class="left"><b>状态</b></td>
  18. <td class="left"><b>通知会员</b></td>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <?php if ($histories) { ?>
  23. <?php foreach ($histories as $history) { ?>
  24. <tr>
  25. <td class="left"><?php echo $history['date_added']; ?></td>
  26. <td class="left"><?php echo $history['comment']; ?></td>
  27. <td class="left"><?php echo $history['status']; ?></td>
  28. <td class="left"><?php echo $history['notify']; ?></td>
  29. </tr>
  30. <?php } ?>
  31. <?php } else { ?>
  32. <tr>
  33. <td class="center" colspan="20">没有记录</td>
  34. </tr>
  35. <?php } ?>
  36. </tbody>
  37. </table>