edit.html.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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: edit.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/datepicker.html.php';?>
  15. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  16. <?php js::set('sourceData', $report->source);?>
  17. <div id="mainContent" class="main-content fade">
  18. <div class="center-block">
  19. <div class="main-header">
  20. <h2><?php echo $lang->marketreport->edit;?></h2>
  21. </div>
  22. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  23. <table class="table table-form">
  24. <tbody>
  25. <tr>
  26. <th class='w-140px'><?php echo $lang->marketreport->name;?></th>
  27. <td><?php echo html::input('name', $report->name, "class='form-control' required");?></td>
  28. </tr>
  29. <tr>
  30. <th><?php echo $lang->marketreport->source;?></th>
  31. <td><?php echo nl2br(html::radio('source', $lang->marketreport->sourceList, $report->source, '', ''));?></td>
  32. </tr>
  33. <tr>
  34. <th><?php echo $lang->marketreport->market;?></th>
  35. <td><?php echo html::select('market', $marketList, $report->market, "class='form-control picker-select'");?></td>
  36. </tr>
  37. <tr class='showInside'>
  38. <th><?php echo $lang->marketreport->research;?></th>
  39. <td><?php echo html::select('research', $researchList, $report->research, "class='form-control picker-select'");?></td>
  40. </tr>
  41. <tr class='showInside'>
  42. <th><?php echo $lang->marketreport->owner;?></th>
  43. <td><?php echo html::select('owner', $users, $report->owner, "class='form-control picker-select'");?></td>
  44. </tr>
  45. <tr class='showInside'>
  46. <th><?php echo $lang->marketreport->participants;?></th>
  47. <td><?php echo html::select('participants[]', $users, $report->participants, "class='form-control picker-select' multiple");?></td>
  48. </tr>
  49. <tr>
  50. <th><?php echo $lang->marketreport->desc;?></th>
  51. <td colspan='3'><?php echo html::textarea('desc', $report->desc, "class='form-control'");?></td>
  52. </tr>
  53. <tr>
  54. <th><?php echo $lang->marketreport->files;?></th>
  55. <td colspan='3'>
  56. <?php
  57. echo $this->fetch('file', 'printFiles', array('files' => $report->files, 'fieldset' => 'false', 'object' => $report, 'method' => 'edit'));
  58. echo $this->fetch('file', 'buildOldform');
  59. ?>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td class='form-actions text-center' colspan='3'>
  64. <?php echo html::commonButton($lang->marketreport->save, "id='saveButton'", 'btn btn-primary btn-wide');?>
  65. <?php echo html::commonButton($lang->marketreport->saveDraft, "id='saveDraftButton'", 'btn btn-secondary btn-wide');?>
  66. <?php echo html::backButton();?>
  67. </td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. </form>
  72. </div>
  73. </div>
  74. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>