start.html.php 449 B

123456789101112131415161718192021
  1. <?php
  2. namespace zin;
  3. $message = $this->task->checkDepend($task->id, 'begin');
  4. if($message)
  5. {
  6. modalHeader();
  7. div
  8. (
  9. setClass('inline-flex items-center alert with-icon w-full py-4'),
  10. icon('exclamation-sign text-gray icon-2x pl-2 text-warning'),
  11. span($message)
  12. );
  13. render();
  14. }
  15. else
  16. {
  17. $oldDir = getcwd();
  18. chdir($app->getModuleRoot() . 'task/ui/');
  19. include './start.html.php';
  20. chdir($oldDir);
  21. }