browse.html.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * The browse 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 '../../workflow/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/sortable.html.php';?>
  15. <?php js::set('moduleName', $flow->module);?>
  16. <?php js::set('setLayout', $lang->workflowaction->setLayout);?>
  17. <?php js::set('flowGroup', $flow->group);?>
  18. <div class='space space-sm'></div>
  19. <div class='row'>
  20. <div class='col-md-6'>
  21. <div class='panel' id='previewArea'>
  22. <div class='panel-heading'></div>
  23. <div class='panel-body'>
  24. <div class='layout-buildin-tip text-center text-muted hide'><?php echo $lang->workflowaction->tips->buildin;?></div>
  25. <div class='layout-empty-tip text-center text-muted hide'><?php echo $lang->workflowaction->tips->emptyLayout;?></div>
  26. <div class='layout-no-tip text-center text-muted hide'><?php echo $lang->workflowaction->tips->noLayout;?></div>
  27. <div class='layout-preview hide'></div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class='col-md-6'>
  32. <div class='panel main-table'>
  33. <div class='panel-heading'>
  34. <strong><?php echo $lang->workflowaction->settings;?> </strong>
  35. <div class='panel-actions'><?php extCommonModel::printLink('workflowaction', 'create', "module=$flow->module", "<i class='icon-plus'> </i>" . $lang->workflowaction->create, "class='btn btn-primary' data-toggle='modal' data-width='600'");?></div>
  36. </div>
  37. <div class='panel-body'>
  38. <?php
  39. $sortable = false;
  40. if(strpos($orderBy, 'order_asc')) foreach($actions as $action) if($action->extensionType == 'override') $sortable = true;
  41. ?>
  42. <table class='table has-sort-head table-fixed' id='actionListTable'>
  43. <thead>
  44. <tr>
  45. <?php $vars="&module=$flow->module&orderBy=%s";?>
  46. <?php if($sortable):?>
  47. <th class='w-50px text-center'> <?php echo $lang->sort;?></th>
  48. <?php endif;?>
  49. <th><?php commonModel::printOrderLink('name', $orderBy, $vars, $lang->workflowaction->name);?></th>
  50. <th><?php commonModel::printOrderLink('action', $orderBy, $vars, $lang->workflowaction->action);?></th>
  51. <?php if($flow->buildin):?>
  52. <th class='w-60px text-center'><?php commonModel::printOrderLink('buildin', $orderBy, $vars, $lang->workflowaction->buildin);?></th>
  53. <th class='w-80px text-center'><?php commonModel::printOrderLink('extensionType', $orderBy, $vars, $lang->workflowaction->extensionType);?></th>
  54. <?php endif;?>
  55. <th class='text-center' style='width: <?php echo $lang->workflowaction->actionWidth;?>px'><?php echo $lang->actions;?></th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <?php foreach($actions as $action):?>
  60. <?php if($action->extensionType == 'override') continue;?>
  61. <?php $canSort = false;?>
  62. <?php include 'browse.tr.html.php';?>
  63. <?php endforeach;?>
  64. </tbody>
  65. <tbody class='<?php echo $sortable ? 'sortable' : '';?>' id='actionList'>
  66. <?php foreach($actions as $action):?>
  67. <?php if($action->extensionType != 'override') continue;?>
  68. <?php $canSort = true?>
  69. <?php include 'browse.tr.html.php';?>
  70. <?php endforeach;?>
  71. </tbody>
  72. </table>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>