edit.max.html.hook.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace zin;
  3. global $lang,$config;
  4. $bug = data('bug');
  5. $injectionList = data('injectionList');
  6. $identifyList = data('identifyList');
  7. query('.browserTR')->append(
  8. h::tr
  9. (
  10. h::th
  11. (
  12. set::className('py-1.5 pr-2 font-normal nowrap text-right'),
  13. strpos(",{$config->bug->edit->requiredFields},", ',injection,') !== false ? set::className('required') : null,
  14. $lang->bug->injection
  15. ),
  16. h::td
  17. (
  18. set::className('py-1.5 pl-2 w-full'),
  19. picker
  20. (
  21. set::name('injection'),
  22. set::items($injectionList),
  23. set::value($bug->injection)
  24. )
  25. )
  26. ),
  27. h::tr
  28. (
  29. h::th
  30. (
  31. set::className('py-1.5 pr-2 font-normal nowrap text-right'),
  32. strpos(",{$config->bug->edit->requiredFields},", ',identify,') !== false ? set::className('required') : null,
  33. $lang->bug->identify
  34. ),
  35. h::td
  36. (
  37. set::className('py-1.5 pl-2 w-full'),
  38. picker
  39. (
  40. set::name('identify'),
  41. set::items($identifyList),
  42. set::value($bug->identify)
  43. )
  44. )
  45. )
  46. );