create.html.php 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * The view file of marketreport module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Deqing Chai <chaideqing@easycorp.ltd>
  8. * @package marketreport
  9. * @version $Id: create.html.php 4808 2023-08-28 09:48:13Z zhujinyonging@gmail.com $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  15. <div id="mainContent" class="main-content fade">
  16. <div class="center-block">
  17. <div class="main-header">
  18. <h2><?php echo $lang->marketreport->create;?></h2>
  19. </div>
  20. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  21. <table class="table table-form">
  22. <tbody>
  23. <tr>
  24. <th class='w-140px'><?php echo $lang->marketreport->name;?></th>
  25. <td><?php echo html::input('name', '', "class='form-control' required");?></td>
  26. </tr>
  27. <tr>
  28. <th><?php echo $lang->marketreport->source;?></th>
  29. <td><?php echo nl2br(html::radio('source', $lang->marketreport->sourceList, 'inside', '', ''));?></td>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->marketreport->market;?></th>
  33. <td id='marketBox' class=<?php echo empty($marketID) ? '' : 'disabled'?>>
  34. <?php if(empty($marketID)):?>
  35. <div class='input-group '>
  36. <?php echo html::select('market', $marketList, $marketID, "class='form-control picker-select'");?>
  37. <?php echo html::input('marketName', '', "class='form-control newMarket' style='display:none'");?>
  38. <?php if(common::hasPriv('market', 'create')):?>
  39. <span class='input-group-addon newMarket'>
  40. <?php echo html::checkBox('newMarket', $lang->market->create, '', "onchange=addNewMarket();");?>
  41. </span>
  42. <?php endif;?>
  43. </div>
  44. <?php else:?>
  45. <?php echo html::select('market', $marketList, $marketID, "class='form-control picker-select' disabled");?>
  46. <?php endif;?>
  47. </td>
  48. </tr>
  49. <tr class='showInside'>
  50. <th><?php echo $lang->marketreport->research;?></th>
  51. <td><?php echo html::select('research', $researchList, '', "class='form-control picker-select'");?></td>
  52. </tr>
  53. <tr class='showInside'>
  54. <th><?php echo $lang->marketreport->owner;?></th>
  55. <td><?php echo html::select('owner', $users, $app->user->account, "class='form-control picker-select'");?></td>
  56. </tr>
  57. <tr class='showInside'>
  58. <th><?php echo $lang->marketreport->participants;?></th>
  59. <td><?php echo html::select('participants[]', $users, $app->user->account, "class='form-control picker-select' multiple");?></td>
  60. </tr>
  61. <tr>
  62. <th><?php echo $lang->marketreport->desc;?></th>
  63. <td colspan='3'><?php echo html::textarea('desc', '', "class='form-control kindeditor'");?></td>
  64. </tr>
  65. <tr>
  66. <th><?php echo $lang->marketreport->files;?></th>
  67. <td colspan='3'>
  68. <?php
  69. echo $this->fetch('file', 'buildoldform');
  70. ?>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class='form-actions text-center' colspan='3'>
  75. <?php echo html::commonButton($lang->marketreport->save, "id='saveButton'", 'btn btn-primary btn-wide');?>
  76. <?php echo html::commonButton($lang->marketreport->saveDraft, "id='saveDraftButton'", 'btn btn-secondary btn-wide');?>
  77. <?php echo html::backButton();?>
  78. </td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. </form>
  83. </div>
  84. </div>
  85. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>