batchedit.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * The batchedit view file of branch module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Yanyi Cao<caoyanyi@easycorp.ltd>
  7. * @package branch
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('main_branch', BRANCH_MAIN);
  12. /* ====== Define the page structure with zin widgets ====== */
  13. foreach($branchList as $index => &$branch) $branch->key = $index + 1;
  14. formBatchPanel
  15. (
  16. set::mode('edit'),
  17. set::data($branchList),
  18. set::onRenderRow(jsRaw('renderRowData')),
  19. formBatchItem
  20. (
  21. set::name('branchID'),
  22. set::label($lang->idAB),
  23. set::control('hidden'),
  24. set::hidden(true)
  25. ),
  26. formBatchItem
  27. (
  28. set::name('id'),
  29. set::label($lang->idAB),
  30. set::control('index'),
  31. set::width('64px'),
  32. set::disabled('{branchID} == 0')
  33. ),
  34. formBatchItem
  35. (
  36. set::name("name"),
  37. set::label(sprintf($lang->branch->name, $lang->product->branchName[$product->type])),
  38. set::width('240px')
  39. ),
  40. formBatchItem
  41. (
  42. set::name("desc"),
  43. set::label(sprintf($lang->branch->desc, $lang->product->branchName[$product->type]))
  44. ),
  45. formBatchItem
  46. (
  47. set::name("status"),
  48. set::label($lang->branch->status),
  49. set::control(array('control' => 'picker', 'required' => true)),
  50. set::items($lang->branch->statusList)
  51. )
  52. );
  53. /* ====== Render page ====== */
  54. render();