<?php
/**
 * The create view file of project module of ZDOO.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Yidong Wang <yidong@cnezsoft.com>
 * @package     project 
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../../sys/common/view/header.modal.html.php';?>
<?php include '../../../sys/common/view/kindeditor.html.php';?>
<?php include '../../../sys/common/view/datepicker.html.php';?>
<?php if(!helper::isAjaxRequest()):?>
<div class='panel'>
  <div class='panel-body'>
<?php endif;?>
    <form method='post' id='ajaxForm' action='<?php echo inlink('create')?>'>
      <table class='table table-form'>
        <tr>
          <th class='w-70px'><?php echo $lang->project->name;?></th>
          <td class='w-300px'>
            <div class='required required-wrapper'></div>
            <?php echo html::input('name', '', "class='form-control'");?>
          </td>
          <td></td>
        </tr>
        <tr>
          <th><?php echo $lang->project->begin;?></th>
          <td>
            <div class='required required-wrapper'></div>
            <?php echo html::input('begin', '', "class='form-control form-date'");?>
          </td>
          <td></td>
        </tr>
        <tr>
          <th><?php echo $lang->project->end;?></th>
          <td>
            <div class='required required-wrapper'></div>
            <?php echo html::input('end', '', "class='form-control form-date'");?>
          </td>
          <td></td>
        </tr>
        <tr>
          <th><?php echo $lang->project->manager;?></th>
          <td><?php echo html::select('manager', $users, $this->app->user->account, "class='form-control chosen'");?></td>
          <td></td>
        </tr>
        <tr>
          <th><?php echo $lang->project->member;?></th>
          <td colspan='2'><?php echo html::select('member[]', $users, $this->app->user->account, "class='form-control chosen' multiple");?></td>
        </tr>
        <tr>
          <th><?php echo $lang->project->desc;?></th>
          <td colspan='2'><?php echo html::textarea('desc', '', "class='form-control' rows='5'");?></td>
        </tr>
        <tr>
          <th><?php echo $lang->project->whitelist . ' ' . html::a('javascript:void(0)', "<i class='icon-help-circle icon-md'></i>", "data-original-title='{$lang->project->whitelistTip}' data-toggle='tooltip'");?></th>
          <td class='whitelistTD' colspan='2'><?php echo html::checkbox('whitelist', $groups, '');?></td>
        </tr>
        <tr>
          <th></th>
          <td class='form-actions'><?php echo html::submitButton();?></td>
          <td></td>
        </tr>
      </table>
    </form>
<?php if(helper::isAjaxRequest()):?>
  </div>
</div>
<?php endif;?>
<?php js::set('projectID', '0')?>
<?php include '../../../sys/common/view/footer.modal.html.php';?>
