create.html.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * The create view file of workflowhook 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 workflowhook
  9. * @version $Id$
  10. * @link http://www.zdoo.com
  11. */
  12. ?>
  13. <?php include '../../common/view/header.modal.html.php';?>
  14. <?php include '../../common/view/picker.html.php';?>
  15. <?php js::set('moduleName', $flow->module);?>
  16. <form id='createLinkageForm' method='post' action='<?php echo inlink('create', "action={$action->id}&ui=$ui");?>'>
  17. <table class='table table-form' id='linkageTable'>
  18. <tr>
  19. <td class='w-80px'></td>
  20. <td></td>
  21. <td class='w-80px'></td>
  22. <td></td>
  23. <td class='w-120px'></td>
  24. </tr>
  25. <?php $sourceIndex = 1;?>
  26. <tr>
  27. <th class='source' rowspan='1'><?php echo $lang->workflowlinkage->source;?></th>
  28. <td><?php echo html::select("source[$sourceIndex]", $fields, '', "id='source$sourceIndex' class='form-control chosen'");?></td>
  29. <td><?php echo html::select("operator[$sourceIndex]", $config->workflowlinkage->operatorList, '', "id='operator$sourceIndex' class='form-control'");?></td>
  30. <td class='value required'><?php echo html::input("value[$sourceIndex]", '', "id='value$sourceIndex' class='form-control'");?></td>
  31. <td></td>
  32. </tr>
  33. <?php $sourceIndex++;?>
  34. <tr class='errorTR'>
  35. <th></th>
  36. <td colspan='4'><div id='source'></div></td>
  37. </tr>
  38. <?php $targetIndex = 1;?>
  39. <tr>
  40. <th class='target' rowspan='1'><?php echo $lang->workflowlinkage->target;?></th>
  41. <td><?php echo html::select("target[$targetIndex]", $fields, '', "id='target$targetIndex' class='form-control chosen'");?></td>
  42. <td class='text-center'><?php echo $lang->workflowlinkage->status;?></td>
  43. <td><?php echo html::select("status[$targetIndex]", $lang->workflowlinkage->statusList, '', "id='status$targetIndex' class='form-control'");?></td>
  44. <td>
  45. <a href='javascript:;' class='btn addTarget'><i class='icon icon-plus'></i></a>
  46. <a href='javascript:;' class='btn delTarget'><i class='icon icon-close'></i></a>
  47. </td>
  48. </tr>
  49. <?php $targetIndex++;?>
  50. <tr class='errorTR'>
  51. <th></th>
  52. <td colspan='4'><div id='target'></div></td>
  53. </tr>
  54. <tr>
  55. <th></th>
  56. <td class='form-actions' colspan='4'>
  57. <?php
  58. echo html::hidden('ui', $ui);
  59. echo html::submitButton();
  60. extCommonModel::printLink('workflowlinkage', 'browse', "action={$action->id}&ui={$ui}", $lang->goback, "class='btn btn-wide loadInModal iframe'");
  61. ?>
  62. </td>
  63. <tr>
  64. </table>
  65. </form>
  66. <?php
  67. echo html::select('fieldTemplate', $fields, '', "class='form-control hidden'");
  68. $th = "<th class='target' rowspan='ROWSPAN'>{$lang->workflowlinkage->target}</th>";
  69. $target = html::select('target[KEY]', $fields, '', "id='targetKEY' class='form-control chosen'");
  70. $status = html::select('status[KEY]', $lang->workflowlinkage->statusList, '', "id='statusKEY' class='form-control'");
  71. $targetRow = <<<EOT
  72. <tr>
  73. <td>{$target}</td>
  74. <td class='text-center'>{$lang->workflowlinkage->status}</td>
  75. <td>{$status}</td>
  76. <td>
  77. <a href="javascript:;" class="btn addTarget"><i class="icon icon-plus"></i></a>
  78. <a href="javascript:;" class="btn delTarget"><i class="icon icon-close"></i></a>
  79. </td>
  80. </tr>
  81. EOT;
  82. js::set('th', $th);
  83. js::set('targetRow', $targetRow);
  84. js::set('sourceIndex', $sourceIndex);
  85. js::set('targetIndex', $targetIndex);
  86. ?>
  87. <?php include '../../common/view/footer.modal.html.php';?>