<?php
/**
 * The create view file of workflow module of ZDOO.
 *
 * @copyright   Copyright 2009-2020 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     商业软件，非开源软件
 * @author      Dongdong Jia <jiadongdong@easycorp.ltd> 
 * @package     workflow 
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.modal.html.php';?>
<form id="ajaxForm" method='post' action='<?php echo inlink('create', "module=$module");?>'>
  <table class='table table-form'>
    <tr>
      <th class='w-80px'><?php echo $lang->workflowreport->name;?></th>
      <td><?php echo html::input('name', '', "class='form-control'");?></td>
      <td class='w-40px'></td>
    </tr>
    <tr>
      <th><?php echo $lang->workflowreport->type;?></th>
      <td><?php echo html::radio('type', $lang->workflowreport->iconList, 'pie');?></td>
      <td></td>
    </tr>
    <tr>
      <th><?php echo $lang->workflowreport->countType;?></th>
      <td><?php echo html::radio('countType', $lang->workflowreport->countTypeList, 'sum');?></td>
      <td></td>
    </tr>
    <tr>
      <th><?php echo $lang->workflowreport->displayType;?></th>
      <td><?php echo html::radio('displayType', $lang->workflowreport->displayTypeList, 'value');?></td>
      <td></td>
    </tr>
    <tr>
      <th><?php echo $lang->workflowreport->dimension;?></th>
      <td>
        <div class="input-group">
          <?php echo html::select('dimension', $dimension, '', "class='form-control chosen'");?>
          <span class="input-group-addon fix-border fix-padding"></span>
          <?php echo html::select('granularity', $lang->workflowreport->granularityList, 'month', "class='form-control chosen'");?>
        </div>
      </td>
      <td></td>
    </tr>
    <tr>
      <th><?php echo $lang->workflowreport->fields;?></th>
      <td><div id='fieldsSelect'><?php echo html::select('fields[]', $fields, '', "class='form-control chosen'");?></div></td>
      <td></td>
    </tr>
    <tr>
      <th></th>
      <td class='form-actions'><?php echo baseHTML::submitButton();?></td>
      <td></td>
    </tr>
  </table>
</form>
<?php js::set('controlPairs', $controlPairs);?>
<?php include '../../common/view/footer.modal.html.php';?>
