45 lines
1.3 KiB
PHP
Executable File
45 lines
1.3 KiB
PHP
Executable File
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
|
|
<?php
|
|
$webRoot = $this->app->getWebRoot();
|
|
$jsRoot = $webRoot . "js/";
|
|
$themeRoot = $webRoot . "theme/";
|
|
$defaultTheme = $webRoot . 'theme/default/';
|
|
$langTheme = $themeRoot . 'lang/' . $app->getClientLang() . '.css';
|
|
$clientTheme = $this->app->getClientTheme();
|
|
?>
|
|
<?php if($this->server->HTTP_X_PJAX == false):?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8' />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<?php
|
|
echo html::title($title . ' - ' . $lang->zentaoPMS);
|
|
|
|
js::exportConfigVars();
|
|
if($config->debug)
|
|
{
|
|
js::import($jsRoot . 'jquery/mobile/jquery-1.10.1.min.js');
|
|
js::import($jsRoot . 'm.my.full.js');
|
|
js::import($jsRoot . 'jquery/mobile/jquery.mobile.min.js');
|
|
js::import($jsRoot . 'jquery/jquery.pjax.js');
|
|
|
|
css::import($defaultTheme . 'jquery.mobile.css');
|
|
css::import($defaultTheme . 'm.style.css');
|
|
css::import($langTheme);
|
|
}
|
|
else
|
|
{
|
|
js::import($jsRoot . 'm.all.js');
|
|
css::import($defaultTheme . 'm.' . $this->cookie->lang . '.default.css');
|
|
}
|
|
|
|
if(isset($pageCSS)) css::internal($pageCSS);
|
|
|
|
echo html::favicon($webRoot . 'favicon.ico');
|
|
?>
|
|
</head>
|
|
<body>
|
|
<div data-role="page" id='main'>
|
|
<?php endif;?>
|