create.html.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * The create 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 chujilu <chujilu@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. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  15. <?php include $app->getModuleRoot() . 'common/view/chosen.html.php';?>
  16. <?php js::set('module', $this->moduleName);?>
  17. <?php js::set('method', $this->methodName);?>
  18. <?php js::set('params', '');?>
  19. <form id='ajaxForm' method='post' action="<?php echo $this->createLink("$type", 'create')?>">
  20. <table class='table table-form table-condensed'>
  21. <tr>
  22. <th class='w-80px'><?php echo $lang->$type->name?></th>
  23. <td><?php echo html::input('name', '', "class='form-control'")?></td>
  24. <td></td>
  25. </tr>
  26. <tr>
  27. <th><?php echo $lang->$type->customer;?></th>
  28. <td><?php echo html::select('customers[]', $customerList, $customers, "class='form-contorl chosen' multiple data-no_results_text='" . $lang->searchMore . "'")?></td>
  29. <td></td>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->$type->begin?></th>
  33. <td>
  34. <div class='input-group'>
  35. <span class='input-group-addon'><?php echo $lang->$type->date?></span>
  36. <?php echo html::input('begin', date('Y-m-d'), "class='form-control form-date date-picker-down'")?>
  37. <span class='input-group-addon fix-border'><?php echo $lang->$type->time?></span>
  38. <?php echo html::input('start', $config->attend->signInLimit, "class='form-control form-time date-picker-down'")?>
  39. </div>
  40. </td>
  41. <td></td>
  42. </tr>
  43. <tr>
  44. <th><?php echo $lang->$type->end?></th>
  45. <td>
  46. <div class='input-group'>
  47. <span class='input-group-addon'><?php echo $lang->$type->date?></span>
  48. <?php echo html::input('end', $type == 'egress' ? date('Y-m-d') : '', "class='form-control form-date date-picker-down'")?>
  49. <span class='input-group-addon fix-border'><?php echo $lang->$type->time?></span>
  50. <?php echo html::input('finish', $config->attend->signOutLimit, "class='form-control form-time date-picker-down'")?>
  51. </div>
  52. </td>
  53. <td></td>
  54. </tr>
  55. <?php if($type == 'trip'):?>
  56. <tr>
  57. <th><?php echo $lang->$type->from?></th>
  58. <td><?php echo html::input('from', '', "class='form-control'")?></td>
  59. <td></td>
  60. </tr>
  61. <?php endif;?>
  62. <tr>
  63. <th><?php echo $lang->$type->to?></th>
  64. <td><?php echo html::input('to', '', "class='form-control'")?></td>
  65. <td></td>
  66. </tr>
  67. <tr>
  68. <th><?php echo $lang->$type->desc?></th>
  69. <td><?php echo html::textarea('desc', '', "class='form-control'")?></td>
  70. <td></td>
  71. </tr>
  72. <tr>
  73. <th></th>
  74. <td><?php echo html::hidden('type', $type) . baseHTML::submitButton();?></td>
  75. <td></td>
  76. </tr>
  77. </table>
  78. </form>
  79. <script>
  80. <?php helper::import('../js/searchcustomer.js');?>
  81. </script>
  82. <?php include '../../common/view/footer.modal.html.php';?>