ajaxgetdropmenu.html.php 864 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * The head switcher view file of repo 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 Zeng Gang<zenggang@easycorp.ltd>
  7. * @package repo
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $data = array('repo' => array_values($repoGroup));
  12. $tabs = array();
  13. $tabs[] = array('name' => 'repo', 'text' => $lang->repo->codeRepo);
  14. $json = array();
  15. $json['data'] = $data;
  16. $json['tabs'] = $tabs;
  17. $json['searchHint'] = $lang->searchAB;
  18. $json['labelMap'] = array('product' => $lang->product->common);
  19. $json['link'] = array('repo' => sprintf($link, '{id}'));
  20. $json['itemType'] = 'repo';
  21. renderJson($json);