create.html.php 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * The view file of marketresearch 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 marketresearch
  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. <?php js::set('longTime', $lang->marketresearch->longTime);?>
  16. <?php js::set('weekend', $config->execution->weekend);?>
  17. <?php js::set('LONG_TIME', LONG_TIME);?>
  18. <div id="mainContent" class="main-content fade">
  19. <div class="center-block">
  20. <div class="main-header">
  21. <h2><?php echo $lang->marketresearch->create;?></h2>
  22. </div>
  23. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  24. <table class="table table-form">
  25. <tbody>
  26. <tr>
  27. <th class='w-140px'><?php echo $lang->marketresearch->name;?></th>
  28. <td><?php echo html::input('name', '', "class='form-control'");?></td>
  29. </tr>
  30. <tr>
  31. <th><?php echo $lang->marketresearch->market;?></th>
  32. <td id='marketBox' class='required'>
  33. <?php if(empty($marketID)):?>
  34. <div class='input-group '>
  35. <?php echo html::select('market', $marketList, $marketID, "class='form-control picker-select'");?>
  36. <?php echo html::input('marketName', '', "class='form-control newMarket' style='display:none'");?>
  37. <?php if(common::hasPriv('market', 'create')):?>
  38. <span class='input-group-addon newMarket'>
  39. <?php echo html::checkBox('newMarket', $lang->market->create, '', "onchange=addNewMarket();");?>
  40. </span>
  41. <?php endif;?>
  42. </div>
  43. <?php else:?>
  44. <?php echo html::select('market', $marketList, $marketID, "class='form-control picker-select'");?>
  45. <?php endif;?>
  46. </td>
  47. </tr>
  48. <tr>
  49. <th><?php echo $lang->marketresearch->PM;?></th>
  50. <td><?php echo html::select('PM', $users, '', "class='form-control picker-select'");?></td>
  51. </tr>
  52. <tr>
  53. <th id="dateRange"><?php echo $lang->marketresearch->dateRange;?></th>
  54. <td>
  55. <div id='dateBox' class='input-group'>
  56. <?php echo html::input('begin', date('Y-m-d'), "class='form-control form-date' onchange='computeWorkDays();' placeholder='" . $lang->marketresearch->begin . "' required");?>
  57. <span class='input-group-addon'><?php echo $lang->marketresearch->to;?></span>
  58. <?php echo html::input('end', '', "class='form-control form-date' onchange='computeWorkDays();' placeholder='" . $lang->marketresearch->end . "' required");?>
  59. </div>
  60. </td>
  61. <td id="endList" colspan='2'><?php echo html::radio('delta', $lang->marketresearch->endList, '', "onclick='computeEndDate(this.value)'");?></td>
  62. </tr>
  63. <tr>
  64. <th><?php echo $lang->marketresearch->desc;?></th>
  65. <td colspan='3'><?php echo html::textarea('desc', '', "class='form-control kindeditor'");?></td>
  66. </tr>
  67. <tr>
  68. <th><?php echo $lang->marketresearch->acl;?></th>
  69. <td colspan='3' class='aclBox'><?php echo nl2br(html::radio('acl', $lang->marketresearch->aclList, 'private', "onclick='setWhite(this.value);'", 'block'));?></td>
  70. </tr>
  71. <tr id="whitelistBox">
  72. <th><?php echo $lang->whitelist;?></th>
  73. <td colspan='2'>
  74. <div class='input-group'>
  75. <?php echo html::select('whitelist[]', $users, '', 'class="form-control picker-select" multiple');?>
  76. <?php echo $this->fetch('my', 'buildContactLists', "dropdownName=whitelist");?>
  77. </div>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td class='form-actions text-center' colspan='4'><?php echo html::submitButton() . html::backButton();?></td>
  82. </tr>
  83. </tbody>
  84. </table>
  85. </form>
  86. </div>
  87. </div>
  88. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>