view.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The detail view file of trip module of RanZhi.
  4. *
  5. * @copyright Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Gang Liu <liugang@cnezsoft.com>
  8. * @package trip
  9. * @version $Id$
  10. * @link http://www.ranzhi.org
  11. */
  12. ?>
  13. <?php include '../../common/view/header.modal.html.php';?>
  14. <table class='table table-bordered'>
  15. <tr>
  16. <th class='w-120px'><?php echo $lang->$type->name;?></th>
  17. <td><?php echo $trip->name;?></td>
  18. </tr>
  19. <tr>
  20. <th class='text-middle'><?php echo $lang->$type->customer;?></th>
  21. <td>
  22. <?php foreach(explode(',', $trip->customers) as $customer) echo "<div>" . zget($customers, $customer) . "</div>";?>
  23. </td>
  24. </tr>
  25. <tr>
  26. <th><?php echo $lang->$type->begin;?></th>
  27. <td><?php echo formatTime($trip->begin . ' ' . $trip->start, DT_DATETIME2);?></td>
  28. </tr>
  29. <tr>
  30. <th><?php echo $lang->$type->end;?></th>
  31. <td><?php echo formatTime($trip->end . ' ' . $trip->finish, DT_DATETIME2);?></td>
  32. </tr>
  33. <?php if($trip->type == 'trip'):?>
  34. <tr>
  35. <th><?php echo $lang->$type->from;?></th>
  36. <td><?php echo $trip->from;?></td>
  37. </tr>
  38. <?php endif;?>
  39. <tr>
  40. <th><?php echo $lang->$type->to;?></th>
  41. <td><?php echo $trip->to;?></td>
  42. </tr>
  43. <tr>
  44. <th><?php echo $lang->$type->desc;?></th>
  45. <td><?php echo $trip->desc;?></td>
  46. </tr>
  47. </table>
  48. <div class='page-actions'><?php echo baseHTML::a('#', $lang->goback, "class='btn' data-dismiss='modal'");?></div>
  49. <?php include '../../common/view/footer.modal.html.php';?>