edit.html.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The edit view file of workflow module of ZDOO.
  4. *
  5. * @copyright Copyright 2009-2020 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license 商业软件,非开源软件
  7. * @author Dongdong Jia <jiadongdong@easycorp.ltd>
  8. * @package workflow
  9. * @version $Id$
  10. * @link http://www.zdoo.com
  11. */
  12. ?>
  13. <?php include '../../common/view/header.modal.html.php';?>
  14. <form id="ajaxForm" method='post' action='<?php echo inlink('edit', "id=$report->id");?>'>
  15. <table class='table table-form'>
  16. <tr>
  17. <th class='w-80px'><?php echo $lang->workflowreport->name;?></th>
  18. <td><?php echo html::input('name', $report->name, "class='form-control'");?></td>
  19. <td class='w-40px'></td>
  20. </tr>
  21. <tr>
  22. <th><?php echo $lang->workflowreport->type;?></th>
  23. <td><?php echo html::radio('type', $lang->workflowreport->iconList, $report->type);?></td>
  24. <td></td>
  25. </tr>
  26. <tr>
  27. <th><?php echo $lang->workflowreport->countType;?></th>
  28. <td><?php echo html::radio('countType', $lang->workflowreport->countTypeList, $report->countType);?></td>
  29. <td></td>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->workflowreport->displayType;?></th>
  33. <td><?php echo html::radio('displayType', $lang->workflowreport->displayTypeList, $report->displayType);?></td>
  34. <td></td>
  35. </tr>
  36. <tr>
  37. <th><?php echo $lang->workflowreport->dimension;?></th>
  38. <td>
  39. <div class="input-group">
  40. <?php echo html::select('dimension', $dimension, $report->dimension, "class='form-control chosen'");?>
  41. <span class="input-group-addon fix-border fix-padding"></span>
  42. <?php echo html::select('granularity', $lang->workflowreport->granularityList, zget($report, 'granularity', 'month'), "class='form-control chosen'");?>
  43. </div>
  44. </td>
  45. <td></td>
  46. </tr>
  47. <tr>
  48. <th><?php echo $lang->workflowreport->fields;?></th>
  49. <td><div id='fieldsSelect'><?php echo html::select('fields[]', $fields, $report->fields, "multiple='multiple' class='form-control chosen'");?></div></td>
  50. <td></td>
  51. </tr>
  52. <tr>
  53. <th></th>
  54. <td class='form-actions'>
  55. <?php echo html::hidden('module', $report->module);?>
  56. <?php echo html::submitButton();?>
  57. </td>
  58. <td></td>
  59. </tr>
  60. </table>
  61. </form>
  62. <?php js::set('currentType', $report->type);?>
  63. <?php js::set('controlPairs', $controlPairs);?>
  64. <?php include '../../common/view/footer.modal.html.php';?>