batchunlinkstory.html.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * The batchUnlinkStory view file of projectstory 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 Wang Yidong <yidong@easycorp.ltd>
  7. * @package projectstory
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader(set::titleClass('text-danger font-bold'), set::inModal(true), set::title($lang->projectstory->batchUnlinkTip));
  12. $tableTR = array();
  13. foreach($executionStories as $story)
  14. {
  15. $storyLink = helper::createLink('story', 'view', "storyID={$story->id}");
  16. $executionLink = helper::createLink('execution', 'story', "executionID={$story->executionID}");
  17. $tableTR[] = h::tr
  18. (
  19. h::td($story->id),
  20. h::td(a(set::href($storyLink), set::title($story->title), set::style(array('color' => '#5988e2')), $story->title)),
  21. h::td(a(set::href($executionLink), set::title($story->execution), set::style(array('color' => '#32579c')), setData('app', 'execution'), $story->execution))
  22. );
  23. }
  24. h::table
  25. (
  26. set::className('table'),
  27. h::tr
  28. (
  29. h::th(set::width('60px'), $lang->idAB),
  30. h::th($lang->story->name),
  31. h::th($lang->story->link . $lang->execution->common)
  32. ),
  33. $tableTR,
  34. h::tr
  35. (
  36. setClass('text-center border-b-0'),
  37. h::td(set::colspan(3), setStyle(array('text-align' => 'center')), btn(setClass('primary confirmBtn mt-4'), set('data-dismiss', 'modal'), $lang->projectstory->confirm))
  38. )
  39. );
  40. render('modalDialog');