batchedit.html.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/sortable.html.php';?>
  3. <?php js::set('orderBy', $orderBy);?>
  4. <div class="main-content" id="mainContent">
  5. <div class="main-header">
  6. <h2><?php echo $lang->measurement->batchEdit;?></h2>
  7. </div>
  8. <form class="load-indicator main-form" method="post" target="hiddenwin" id="batchEdit">
  9. <div class="table-responsive">
  10. <table class="table table-form">
  11. <thead>
  12. <tr class="text-center">
  13. <th class="w-50px"><?php echo $lang->sort;?></th>
  14. <th class="w-30px"><?php echo $lang->idAB;?></th>
  15. <th class="w-120px"><?php echo $this->lang->measurement->purpose?></th>
  16. <th class="w-120px"><?php echo $this->lang->measurement->scope?></th>
  17. <th class="w-120px"><?php echo $this->lang->measurement->object?></th>
  18. <th class="required"><?php echo $this->lang->measurement->name?></th>
  19. <th class="required"><?php echo $this->lang->measurement->code?></th>
  20. <th class="required"><?php echo $this->lang->measurement->unit?></th>
  21. <th class="required"><?php echo $this->lang->measurement->definition?></th>
  22. </tr>
  23. </thead>
  24. <tbody class="sortable" id="measurementList">
  25. <?php foreach($measurements as $measurement):?>
  26. <tr data-id="<?php echo $measurement->id;?>" class="text-center">
  27. <td class='sort-handler' title='<?php echo $lang->dragAndSort?>'><i class='icon-move'></i></td>
  28. <td><?php echo $measurement->id;?></td>
  29. <td><?php echo html::select("purpose[$measurement->id]", $lang->measurement->purposeList, $measurement->purpose, "class='form-control'");?></td>
  30. <td><?php echo html::select("scope[$measurement->id]", $lang->measurement->scopeList, $measurement->scope, "class='form-control'");?></td>
  31. <td><?php echo html::select("object[$measurement->id]", $lang->measurement->objectList, $measurement->object, "class='form-control'");?></td>
  32. <td><?php echo html::input("name[$measurement->id]", $measurement->name, "class='form-control'");?></td>
  33. <td><?php echo html::input("code[$measurement->id]", $measurement->code, "class='form-control'");?></td>
  34. <td><?php echo html::input("unit[$measurement->id]", $measurement->unit, "class='form-control'");?></td>
  35. <td><?php echo html::textarea("definition[$measurement->id]", $measurement->definition, "class='form-control'");?></td>
  36. </tr>
  37. <?php endforeach;?>
  38. </tbody>
  39. <tfoot>
  40. <tr>
  41. <td colspan="9" class="text-center form-actions">
  42. <?php echo html::submitButton($lang->save)?>
  43. <?php echo html::backButton()?>
  44. </td>
  45. </tr>
  46. </tfoot>
  47. </table>
  48. </div>
  49. </form>
  50. </div>
  51. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>