activate.html.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * The activate file of project 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: start.html.php 4769 2023-09-06 07:24:21Z
  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 include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  16. <?php js::import($jsRoot . 'misc/date.js');?>
  17. <div id='mainContent' class='main-content'>
  18. <div class='main-header'>
  19. <h2>
  20. <span class='prefix label-id'><strong><?php echo $research->id;?></strong></span>
  21. <?php echo isonlybody() ? ("<span title='$research->name'>" . $research->name . '</span>') : html::a($this->createLink('marketresearch', 'view', 'researchID=' . $research->id), $research->name, '_blank');?>
  22. <?php if(!isonlybody()):?>
  23. <small><?php echo $lang->arrow . $lang->marketresearch->activate;?></small>
  24. <?php endif;?>
  25. </h2>
  26. </div>
  27. <form class='load-indicator main-form' method='post' target='hiddenwin'>
  28. <table class='table table-form'>
  29. <tr style='height:50px;'>
  30. <th class='w-70px'><?php echo $lang->execution->beginAndEnd;?></th>
  31. <td colspan='2'>
  32. <div id='sourceTimeBox' class='muted'><?php echo $research->begin . ' ~ ' . $research->end;?></div>
  33. <div id='readjustTimeBox' class='hide'>
  34. <div class='input-group'>
  35. <?php echo html::input('begin', $newBegin, "class='form-control form-date'")?>
  36. <span class='input-group-addon'> ~ </span>
  37. <?php echo html::input('end', $newEnd, "class='form-control form-date'");?>
  38. </div>
  39. </div>
  40. </td>
  41. <td colspan='3'>
  42. <div class='clearfix row'>
  43. <div class='col-md-6 pull-left'>
  44. <div class="checkbox-primary"><input name="readjustTime" value="1" id="readjustTime" type="checkbox"><label for="readjustTime" class="no-margin"><?php echo $lang->marketresearch->readjustTime;?></label></div>
  45. </div>
  46. <div class='col-md-6 pull-left'>
  47. <div id='readjustTaskBox' class='checkbox-primary hidden'><input name="readjustTask" value="1" id="readjustTask" type="checkbox"> <label for='readjustTask' class='no-margin'><?php echo $lang->execution->readjustTask?></label></div>
  48. </div>
  49. </div>
  50. </td>
  51. </tr>
  52. <tr class='hide'>
  53. <th><?php echo $lang->research->status;?></th>
  54. <td><?php echo html::hidden('status', 'doing');?></td>
  55. </tr>
  56. <?php $this->printExtendFields($research, 'table', 'columns=5');?>
  57. <tr>
  58. <th><?php echo $lang->comment;?></th>
  59. <td colspan='5'><?php echo html::textarea('comment', '', "rows='6' class='form-control kindeditor' hidefocus='true'");?></td>
  60. </tr>
  61. <tr>
  62. <td class='text-center form-actions' colspan='6'><?php echo html::submitButton($lang->marketresearch->activate) . html::linkButton($lang->goback, $this->session->marketresearchList, 'self', '', 'btn btn-wide'); ?></td>
  63. </tr>
  64. </table>
  65. </form>
  66. <hr class='small' />
  67. <div class='main'><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  68. </div>
  69. <script>
  70. $(function()
  71. {
  72. $('#readjustTime').change(function()
  73. {
  74. $('#sourceTimeBox').toggle(!$(this).prop('checked'))
  75. $('#readjustTimeBox').toggleClass('hide', !$(this).prop('checked'))
  76. $('#readjustTaskBox').toggleClass('hidden')
  77. })
  78. })
  79. </script>
  80. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>