ajaxgetmoreactions.html.php 769 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * The ajaxGetMoreActions view file of action 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 Hao Sun <sunhao@easycorp.ltd>
  7. * @package action
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. global $app;
  12. helper::import($app->getCoreLibRoot() . 'zin/wg/dynamic/dynamicitem.php');
  13. $lastAction = end($actions);
  14. foreach($actions as $action) dynamicItem::build($action,$users);
  15. div(setID('hasMore'), setClass('hidden'), $hasMore ? 1 : 0);
  16. div(setID('lastid'), setClass('hidden'), empty($lastAction) ? '' : $lastAction->id);