close.html.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * The close 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: 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. <div id='mainContent' class='main-content'>
  16. <div class='main-header'>
  17. <h2>
  18. <span class='prefix label-id'><strong><?php echo $research->id;?></strong></span>
  19. <?php echo isonlybody() ? ("<span title='$research->name'>" . $research->name . '</span>') : html::a($this->createLink('marketresearch', 'view', 'researchID=' . $research->id), $research->name, '_blank');?>
  20. <?php if(!isonlybody()):?>
  21. <small> <?php echo $lang->arrow . $lang->marketresearch->close;?></small>
  22. <?php endif;?>
  23. </h2>
  24. </div>
  25. <form class='load-indicator main-form' method='post' target='hiddenwin'>
  26. <table class='table table-form'>
  27. <tbody>
  28. <tr class='hide'>
  29. <th class='w-50px'><?php echo $lang->marketresearch->status;?></th>
  30. <td><?php echo html::hidden('status', 'closed');?></td>
  31. </tr>
  32. <?php $this->printExtendFields($research, 'table');?>
  33. <tr>
  34. <th><?php echo $lang->project->realEnd;?></th>
  35. <td>
  36. <div>
  37. <?php echo html::input('realEnd',(!helper::isZeroDate($research->realEnd) ? $research->realEnd : date('Y-m-d')), "class='form-control form-date'");?>
  38. </div>
  39. </td>
  40. </tr>
  41. <tr>
  42. <th><?php echo $lang->marketresearch->closedReason;?></th>
  43. <td><?php echo html::select('closedReason', $lang->marketresearch->reasonList, 'finished', 'class="form-control"');?></td>
  44. </tr>
  45. <tr>
  46. <th><?php echo $lang->comment;?></th>
  47. <td colspan='4'><?php echo html::textarea('comment', '', "rows='6' class='form-control kindeditor' hidefocus='true'");?></td>
  48. </tr>
  49. <tr>
  50. <td class='text-center form-actions' colspan='5'><?php echo html::submitButton($lang->marketresearch->close) . html::linkButton($lang->goback, $this->session->marketresearchList, 'self', '', 'btn btn-wide'); ?></td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. </form>
  55. <hr class='small' />
  56. <div class='main'><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  57. </div>
  58. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>