* change common views.

This commit is contained in:
Catouse
2018-05-08 16:18:20 +08:00
parent f3d0efab57
commit c91ca33cb7
3 changed files with 4 additions and 4 deletions
+1 -3
View File
@@ -4,7 +4,7 @@
<div id='divider'></div>
<iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='debugwin hidden'></iframe>
<?php $onlybody = zget($_GET, 'onlybody', 'no');?>
<?php if($onlybody != 'yes'):?>
</main><?php /* end '#wrap' in 'header.html.php'. */ ?>
<footer id='footer'>
@@ -75,8 +75,6 @@ $(function(){ redirect('<?php echo $ranzhiURL?>', '<?php echo $this->config->sso
</script>
<?php endif;?>
<script>config.onlybody = '<?php echo $onlybody?>';</script>
<?php
if($this->loadModel('cron')->runable()) js::execute('startCron()');
if(isset($pageJS)) js::execute($pageJS); // load the js for current page.
+1 -1
View File
@@ -1,7 +1,7 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='debugwin hidden'></iframe>
<?php if($this->loadModel('cron')->runable()) js::execute('startCron()');?>
<script laguage='Javascript'>
<script>
<?php if(isset($pageJS)) echo $pageJS;?>
</script>
</body>
+2
View File
@@ -6,6 +6,7 @@ $themeRoot = $webRoot . "theme/";
$defaultTheme = $webRoot . 'theme/default/';
$langTheme = $themeRoot . 'lang/' . $app->getClientLang() . '.css';
$clientTheme = $this->app->getClientTheme();
$onlybody = zget($_GET, 'onlybody', 'no');
?>
<!DOCTYPE html>
<html lang='<?php echo $app->getClientLang();?>'>
@@ -17,6 +18,7 @@ $clientTheme = $this->app->getClientTheme();
<?php
echo html::title($title . ' - ' . $lang->zentaoPMS);
js::exportConfigVars();
echo '<script>config.onlybody = "' . $onlybody . '";</script>';
if($config->debug)
{
js::import($jsRoot . 'jquery/lib.js');