jiraside.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * The side view file of convert 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 Gang Liu <liugang@easycorp.ltd>
  7. * @package convert
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $items = array();
  12. foreach($stepList as $currentStep => $stepLabel)
  13. {
  14. $icon = '';
  15. $url = 'javascript:;';
  16. if($step == $currentStep)
  17. {
  18. $icon = icon('ellipsis-v', setClass('secondary rounded-full rotate-90 p-1 mx-2'));
  19. }
  20. else if(!empty($stepStatus[$currentStep]) && $stepStatus[$currentStep] == 'done')
  21. {
  22. $icon = icon('check', setClass('success rounded-full p-1 mx-2'));
  23. $url = inlink('mapJira2Zentao', "method={$method}&dbName={$dbName}&step={$currentStep}");
  24. if($currentStep == 'user') $url = inlink('initJiraUser', "method={$method}&dbName={$dbName}");
  25. }
  26. else
  27. {
  28. $icon = icon('ellipsis-v', setClass('gray-200 rounded-full rotate-90 text-white p-1 mx-2'));
  29. }
  30. $items[] = a(set::href($url), div(setClass('h-10 border content-center mb-4'), $icon, span(setClass('text-black'), $stepLabel)));
  31. }
  32. featureBar();
  33. toolbar
  34. (
  35. $backUrl ? item(set(array('text' => $lang->convert->jira->back, 'class' => 'default', 'url' => $backUrl))) : null,
  36. $step != 'confirme' ? item(set(array('text' => $lang->convert->jira->next, 'class' => 'primary', 'data-on' => 'click', 'data-call' => 'next', 'data-params' => 'event'))) : null
  37. );