index.html.php 965 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * The index view file of product module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author dingguodong <dingguodong@easycorp.ltd>
  8. * @package product
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. if(empty($products))
  13. {
  14. div(
  15. setClass('table-empty-tip bg-canvas h-40 flex items-center justify-center'),
  16. span(
  17. setClass('text-gray'),
  18. $lang->product->noProduct
  19. ),
  20. a(
  21. setClass('btn primary-pale border-primary'),
  22. icon('plus'),
  23. set::href(createLink('product', 'create')),
  24. $lang->product->create
  25. )
  26. );
  27. }
  28. else
  29. {
  30. echo $this->fetch('block', 'dashboard', 'dashboard=product');
  31. helper::end();
  32. }
  33. render();