m.edit.html.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * The edit mobile view file of trip module of ZDOO.
  4. *
  5. * @copyright Copyright 2009-2016 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Tingting Dai <daitingting@xirangit.com>
  8. * @package trip
  9. * @version $Id
  10. * @link http://www.zdoo.com
  11. */
  12. if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
  13. <div class='heading divider'>
  14. <div class='title'><i class='icon icon-plus'></i> <strong><?php echo $lang->$type->edit;?></strong></div>
  15. <nav class='nav'><a data-dismiss='display'><i class='icon icon-remove'></i></a></nav>
  16. </div>
  17. <form class='content box' id='editTripForm' data-form-refresh='#page' method='post' action='<?php echo $this->createLink('trip', 'edit', "tripID={$trip->id}");?>'>
  18. <div class='control'>
  19. <label for='name'><?php echo $lang->$type->name;?></label>
  20. <?php echo html::input('name', $trip->name, "class='input' placeholder='{$lang->required}'");?>
  21. </div>
  22. <div class='control'>
  23. <label for='customers[]'><?php echo $lang->$type->customer;?></label>
  24. <div class='select'>
  25. <?php echo html::select('customers[]', $customerList, $trip->customers, 'multiple');?>
  26. </div>
  27. </div>
  28. <div class='row'>
  29. <div class='cell-6'>
  30. <div class='control'>
  31. <label for='begin'><?php echo $lang->$type->begin;?></label>
  32. <input type='date' class='input' id='begin' name='begin' value='<?php echo $trip->begin;?>' placeholder='<?php echo $lang->required;?>'>
  33. </div>
  34. </div>
  35. <div class='cell-6'>
  36. <div class='control'>
  37. <label for='start'><?php echo $lang->$type->time;?></label>
  38. <input type='time' class='input' id='start' value='<?php echo $trip->start;?>' name='start' placeholder='<?php echo $lang->required;?>'>
  39. </div>
  40. </div>
  41. </div>
  42. <div class='row'>
  43. <div class='cell-6'>
  44. <div class='control'>
  45. <label for='end'><?php echo $lang->$type->end;?></label>
  46. <input type='date' class='input' id='end' name='end' value='<?php echo $trip->end;?>' placeholder='<?php echo $lang->required;?>'>
  47. </div>
  48. </div>
  49. <div class='cell-6'>
  50. <div class='control'>
  51. <label for='finish'><?php echo $lang->$type->time;?></label>
  52. <input type='time' class='input' id='finish' value='<?php echo $trip->finish;?>' name='finish' placeholder='<?php echo $lang->required;?>'>
  53. </div>
  54. </div>
  55. </div>
  56. <?php if($type == 'trip'):?>
  57. <div class='control'>
  58. <label for='from'><?php echo $lang->$type->from;?></label>
  59. <?php echo html::input('from', $trip->from, "class='input' placeholder='{$lang->required}'");?>
  60. </div>
  61. <?php endif;?>
  62. <div class='control'>
  63. <label for='to'><?php echo $lang->$type->to;?></label>
  64. <?php echo html::input('to', $trip->to, "class='input' placeholder='{$lang->required}'");?>
  65. </div>
  66. <div class='control'>
  67. <label for='desc'><?php echo $lang->$type->desc;?></label>
  68. <?php echo html::textarea('desc', $trip->desc, "rows='3' class='textarea'");?>
  69. <?php echo html::hidden('type', $type);?>
  70. </div>
  71. </form>
  72. <div class='footer has-padding'>
  73. <button type='button' data-submit='#editTripForm' class='btn primary'><?php echo $lang->save;?></button>
  74. </div>
  75. <script>
  76. $(function()
  77. {
  78. $('#editTripForm').modalForm().listenScroll({container: 'parent'});
  79. });
  80. </script>