create.html.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * The create view file of workflowaction module of ZDOO.
  4. *
  5. * @copyright Copyright 2009-2016 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license 商业软件,非开源软件
  7. * @author Gang Liu <liugang@cnezsoft.com>
  8. * @package workflowaction
  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('create', "module=$flow->module");?>'>
  15. <table class='table table-form' id='actionTable'>
  16. <tr>
  17. <th class='w-120px'><?php echo $lang->workflowaction->name;?></th>
  18. <td class='required'><?php echo html::input('name', '', "class='form-control'");?></td>
  19. <td class='w-40px'></td>
  20. </tr>
  21. <tr>
  22. <th><?php echo $lang->workflowaction->action;?></th>
  23. <td class='required'><?php echo html::input('action', '', "class='form-control' placeholder='{$lang->workflowaction->placeholder->code}'");?></td>
  24. <td></td>
  25. </tr>
  26. <tr>
  27. <th><?php echo $lang->workflowaction->type;?></th>
  28. <?php if($flow->buildin):?>
  29. <?php unset($lang->workflowaction->typeList['batch']);?>
  30. <?php endif;?>
  31. <td><?php echo html::select('type', $lang->workflowaction->typeList, '', "class='form-control'");?></td>
  32. <td></td>
  33. </tr>
  34. <tr class='hide'>
  35. <th><?php echo $lang->workflowaction->batchMode;?></th>
  36. <td><?php echo html::select('batchMode', $lang->workflowaction->batchModeList, '', "class='form-control'");?></td>
  37. <td></td>
  38. </tr>
  39. <tr>
  40. <th><?php echo $lang->workflowaction->open;?></th>
  41. <td><?php echo html::select('open', $lang->workflowaction->openList, '', "class='form-control'");?></td>
  42. <td></td>
  43. </tr>
  44. <tr>
  45. <th><?php echo $lang->workflowaction->position;?></th>
  46. <td>
  47. <?php
  48. $positionList = $lang->workflowaction->positionList;
  49. $position = 'browseandview';
  50. if($flow->buildin)
  51. {
  52. unset($positionList['menu']);
  53. $position = 'view';
  54. }
  55. echo html::select('position', $positionList, $position, "class='form-control'");
  56. ?>
  57. </td>
  58. <td><a data-toggle='tooltip' title='<?php echo $lang->workflowaction->tips->position;?>'><i class='icon-help-circle icon-md'></i></a></td>
  59. </tr>
  60. <tr>
  61. <th><?php echo $lang->workflowaction->show;?></th>
  62. <td><?php echo html::select('show', $lang->workflowaction->showList, '0', "class='form-control'");?></td>
  63. <td><a data-toggle='tooltip' title='<?php echo $lang->workflowaction->tips->show;?>'><i class='icon-help-circle icon-md'></i></a></td>
  64. </tr>
  65. <tr>
  66. <th><?php echo $lang->workflowaction->desc;?></th>
  67. <td><?php echo html::textarea('desc', '', "rows='3' class='form-control'");?></td>
  68. <td></td>
  69. </tr>
  70. <tr>
  71. <th></th>
  72. <td class='form-actions'>
  73. <?php echo html::hidden('module', $flow->module);?>
  74. <?php echo html::submitButton();?>
  75. </td>
  76. <td></td>
  77. </tr>
  78. </table>
  79. </form>
  80. <?php include '../../common/view/footer.modal.html.php';?>