batchedit.html.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace zin;
  3. jsVar('groupID', $groupID);
  4. $form = "<div class='panel panel-form panel-form-batch size-lg shadow' style='--zt-panel-form-max-width: auto;'>";
  5. $form .= "<div class='panel-heading'><div class='panel-title text-lg'>{$lang->auditcl->batchEdit}</div></div>";
  6. $form .= "<div class='panel-body'>";
  7. $form .= "<form class='load-indicator main-form' method='post' id='batchEditForm'>";
  8. $form .= "<table class='table table-bordered'>";
  9. $form .= "<thead>";
  10. $form .= "<tr>";
  11. $form .= "<th>{$lang->auditcl->process}<span class='required'></span></th>";
  12. $form .= "<th>{$lang->auditcl->activity}<span class='required'></span></th>";
  13. $form .= "<th>{$lang->auditcl->title}<span class='required'></span></th>";
  14. $form .= "</tr>";
  15. $form .= "</thead>";
  16. $form .= "<tbody id='formlist'>";
  17. foreach($processGroup as $processID => $activityGroup)
  18. {
  19. $processName = '';
  20. foreach($activityGroup as $auditcl)
  21. {
  22. $processName = current($auditcl)->processName;
  23. break;
  24. }
  25. $rowspan = count($activityGroup) + 1;
  26. $form .= "<tr>";
  27. $form .= "<td id='process{$processID}' rowspan='{$rowspan}'>{$processName}</td>";
  28. $form .= "</tr>";
  29. foreach($activityGroup as $activityID => $auditclList)
  30. {
  31. $activityName = current($auditclList)->activityName;
  32. $form .= "<tr>";
  33. $form .= "<td>{$activityName}</td>";
  34. $form .= "<td>";
  35. foreach($auditclList as $auditcl)
  36. {
  37. $form .= "<div class='title-{$activityID} item flex activity-title'>";
  38. $form .= html::input("title[{$auditcl->id}]", $auditcl->title, 'class="form-control check-title"');
  39. $form .= "</div>";
  40. }
  41. $form .= "</td>";
  42. $form .= "</tr>";
  43. }
  44. }
  45. $form .= "</tbody>";
  46. $form .= "<tfoot>";
  47. $form .= "</tfoot>";
  48. $form .= "</table>";
  49. $form .= "<div class='toolbar form-actions form-group no-label'>";
  50. $form .= "<button class='toolbar-item btn primary' type='submit'><span class='text'>" . $lang->save . "</span></button>";
  51. $form .= "<button class='toolbar-item btn open-url' type='button' data-back='auditcl-browse'><span class='text'>" . $lang->goback . "</span></button>";
  52. $form .= "</div>";
  53. $form .= "</form>";
  54. $form .= "</div>";
  55. $form .= "</div>";
  56. html($form);