m.header.lite.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The header.lite mobile view of common module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Fei Chen <chenfei@cnezsoft.com>
  8. * @package common
  9. * @version $Id: header.lite.html.php 3299 2015-12-02 02:10:06Z daitingting $
  10. * @link http://www.zentao.net
  11. */
  12. if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
  13. // Common variables for views
  14. $webRoot = $config->webRoot;
  15. $jsRoot = $webRoot . "mobile/js/";
  16. $cssRoot = $webRoot . "mobile/css/";
  17. ?>
  18. <!DOCTYPE html>
  19. <html lang='<?php echo $this->app->getClientLang();?>'>
  20. <head profile="http://www.w3.org/2005/10/profile">
  21. <meta charset="utf-8">
  22. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
  23. <?php
  24. echo html::icon($webRoot . 'favicon.ico');
  25. echo html::title($title . ' - ' . $lang->zentaoPMS);
  26. js::exportConfigVars();
  27. if($config->debug)
  28. {
  29. js::import($jsRoot . 'mzui.js');
  30. js::import($jsRoot . 'my.js');
  31. css::import($cssRoot . 'mzui.min.css');
  32. css::import($cssRoot . 'style.css');
  33. }
  34. else
  35. {
  36. js::import($jsRoot . 'all.js');
  37. css::import($cssRoot . 'all.css');
  38. }
  39. if(isset($pageCSS)) css::internal($pageCSS);
  40. ?>
  41. </head>
  42. <body class='m-<?php echo $this->app->getModuleName() . '-' . $this->app->getMethodName() . (isset($bodyClass) ? ' ' . $bodyClass : ''); ?>'>