history.html 1012 B

123456789101112131415161718192021222324252627282930313233343536
  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. </tr>
  19. </thead>
  20. <tbody>
  21. <?php if ($histories) { ?>
  22. <?php foreach ($histories as $history) { ?>
  23. <tr>
  24. <td class="left"><?php echo $history['date_added']; ?></td>
  25. <td class="left"><?php echo $history['comment']; ?></td>
  26. <td class="left"><?php echo $history['status']; ?></td>
  27. </tr>
  28. <?php } ?>
  29. <?php } else { ?>
  30. <tr>
  31. <td class="center" colspan="20">没有记录</td>
  32. </tr>
  33. <?php } ?>
  34. </tbody>
  35. </table>