<?php
/**
 * The edit of trainplan module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2020 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Fangzhou <hufangzhou@easycorp.ltd>
 * @package     trainplan
 * @version     $Id: edit.html.php 4903 2020-09-04 09:32:59Z wyd621@gmail.com $
 * @link        http://www.zentao.net
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<div id="mainContent" class="main-content fade">
  <div class="center-block">
    <div class="main-header">
      <h2><?php echo $lang->trainplan->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->trainplan->name;?></th>
            <td><?php echo html::input('name', $trainplan->name, "class='form-control'");?></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <th><?php echo $lang->trainplan->datePlan;?></th>
            <td>
              <div class='input-group'>
                <?php echo html::input("begin", $trainplan->begin == '0000-00-00' ? '' : $trainplan->begin, "class='form-control form-date' placeholder='{$lang->trainplan->begin}'");?>
                <span class='input-group-addon fix-border'>~</span>
                <?php echo html::input("end", $trainplan->end == '0000-00-00' ? '' : $trainplan->end, "class='form-control form-date' placeholder='{$lang->trainplan->end}'");?>
              </div>
            </td>
          </tr>
          <tr>
            <th><?php echo $lang->trainplan->place;?></th>
            <td><?php echo html::input('place', $trainplan->place, "class='form-control'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->trainplan->trainee;?></th>
            <td><?php echo html::select('trainee[]', $members, $trainplan->trainee, "class='form-control chosen' multiple");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->trainplan->lecturer;?></th>
            <td><?php echo html::input('lecturer', $trainplan->lecturer, "class='form-control'");?></td>
          </tr>
          <tr>
            <th><?php echo $lang->trainplan->type;?></th>
            <td><?php echo html::radio('type', $lang->trainplan->typeList, $trainplan->type);?></td>
          </tr>
          <tr>
            <td colspan='2' class='form-actions text-center'>
              <?php echo html::submitButton() . html::backButton();?>
            </td>
          </tr>
        </tbody>
      </table>
    </form>
  </div>
</div>
<?php include '../../common/view/footer.html.php';?>
