<?php
/**
 * The edit view of researchreport module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2021 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Qiyu Xie <xieqiyu@cnezsoft.com>
 * @package     researchreport
 * @version     $Id: edit.html.php 4129 2021-06-08 16:48:14Z
 * @link        https://www.zentao.net
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<div id="mainContent" class="main-content">
  <div class="center-block">
    <div class="main-header">
      <h2><?php echo $lang->researchreport->edit;?></h2>
    </div>
    <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
      <table class="table table-form">
        <tbody>
          <tr>
            <th><?php echo $lang->researchreport->title;?></th>
            <td><?php echo html::input('title', $report->title, "class='form-control'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->author;?></th>
            <td><?php echo html::select('author', $users, $report->author, "class='form-control chosen'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->relatedPlan;?></th>
            <td><?php echo html::select('relatedPlan', $planPairs, $report->relatedPlan, "class='form-control chosen' onchange='loadPlanInfo(this.value)'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->customer;?></th>
            <td><?php echo html::input('customer', $report->customer, "class='form-control'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->researchObjects;?></th>
            <td><?php echo html::input('researchObjects', $report->researchObjects, "class='form-control'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->researchTime;?></th>
            <td>
              <div class='input-group'>
                <?php echo html::input("begin", helper::isZeroDate($report->begin) ? '' : $report->begin, "class='form-control form-datetime' placeholder='{$lang->researchreport->begin}'");?>
                <span class='input-group-addon fix-border'>~</span>
                <?php echo html::input("end", helper::isZeroDate($report->end) ? '' : $report->end, "class='form-control form-datetime' placeholder='{$lang->researchreport->end}'");?>
              </div>
            </td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->location;?></th>
            <td><?php echo html::input('location', $report->location, "class='form-control'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->method;?></th>
            <td><?php echo html::select('method', $lang->researchreport->methodList, $report->method, "class='form-control chosen'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->researchreport->content;?></th>
            <td colspan="3">
              <?php echo $this->fetch('user', 'ajaxPrintTemplates', 'type=researchreport&link=content');?>
              <?php echo html::textarea('content', $report->content, 'row="6"');?>
            </td>
          </tr>
          <tr>
            <td colspan='3' class='text-center form-actions'>
              <?php echo html::submitButton();?>
              <?php echo html::backButton();?>
            </td>
          </tr>
        </tbody>
      </table>
    </form>
  </div>
</div>
<?php include '../../common/view/footer.html.php';?>
