zentaolist.executionstory.html.php 1012 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace zin;
  3. $fnGenerateFormRows = function () use ($lang, $settings)
  4. {
  5. $executions = $this->loadModel('execution')->getPairs();
  6. $searchConditions = array();
  7. foreach($lang->execution->featureBar['story'] as $key => $label) $searchConditions[$key] = $label;
  8. return array
  9. (
  10. formRow
  11. (
  12. formGroup
  13. (
  14. set::width('1/2'),
  15. set::name('execution'),
  16. set::label($lang->doc->execution),
  17. set::items($executions),
  18. set::value(isset($settings['execution']) ? $settings['execution'] : null)
  19. )
  20. ),
  21. formRow
  22. (
  23. formGroup
  24. (
  25. set::width('1/2'),
  26. set::name('condition'),
  27. set::label($lang->doc->searchCondition),
  28. set::items($searchConditions),
  29. set::value(isset($settings['condition']) ? $settings['condition'] : null)
  30. )
  31. )
  32. );
  33. };