2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// ZoneMinder web function library, $Date: 2008-07-08 16:06:45 +0100 (Tue, 08 Jul 2008) $, $Revision: 2484 $
|
2008-07-25 17:48:16 +08:00
|
|
|
// Copyright (C) 2001-2008 Philip Coombes
|
2008-07-14 21:54:50 +08:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 2
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
//
|
|
|
|
|
|
|
|
function xhtmlHeaders( $file, $title )
|
|
|
|
{
|
|
|
|
$skinCssFile = getSkinFile( 'css/skin.css' );
|
|
|
|
$skinCssPhpFile = getSkinFile( 'css/skin.css.php' );
|
|
|
|
$skinJsFile = getSkinFile( 'js/skin.js' );
|
|
|
|
$skinJsPhpFile = getSkinFile( 'js/skin.js.php' );
|
|
|
|
|
|
|
|
$basename = basename( $file, '.php' );
|
|
|
|
$viewCssFile = getSkinFile( 'views/css/'.$basename.'.css' );
|
|
|
|
$viewCssPhpFile = getSkinFile( 'views/css/'.$basename.'.css.php' );
|
|
|
|
$viewJsFile = getSkinFile( 'views/js/'.$basename.'.js' );
|
|
|
|
$viewJsPhpFile = getSkinFile( 'views/js/'.$basename.'.js.php' );
|
|
|
|
|
|
|
|
extract( $GLOBALS, EXTR_OVERWRITE );
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
2008-09-26 17:47:20 +08:00
|
|
|
<title><?= ZM_WEB_TITLE_PREFIX ?> - <?= validHtmlStr($title) ?></title>
|
2008-07-16 21:18:05 +08:00
|
|
|
<link rel="icon" type="image/ico" href="graphics/favicon.ico"/>
|
|
|
|
<link rel="shortcut icon" href="graphics/favicon.ico"/>
|
|
|
|
<link rel="stylesheet" href="css/reset.css" type="text/css"/>
|
2011-07-28 00:09:09 +08:00
|
|
|
<link rel="stylesheet" href="css/overlay.css" type="text/css"/>
|
2008-07-14 21:54:50 +08:00
|
|
|
<link rel="stylesheet" href="<?= $skinCssFile ?>" type="text/css" media="screen"/>
|
|
|
|
<?php
|
|
|
|
if ( $viewCssFile )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<link rel="stylesheet" href="<?= $viewCssFile ?>" type="text/css" media="screen"/>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
if ( $viewCssPhpFile )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<style type="text/css">
|
2009-10-17 01:04:44 +08:00
|
|
|
/*<![CDATA[*/
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
require_once( $viewCssPhpFile );
|
|
|
|
?>
|
2009-10-17 01:04:44 +08:00
|
|
|
/*]]>*/
|
2008-07-14 21:54:50 +08:00
|
|
|
</style>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2009-10-15 01:38:13 +08:00
|
|
|
<script type="text/javascript" src="tools/mootools/mootools-core.js"></script>
|
|
|
|
<script type="text/javascript" src="tools/mootools/mootools-more.js"></script>
|
2008-07-14 21:54:50 +08:00
|
|
|
<script type="text/javascript" src="js/mootools.ext.js"></script>
|
2011-06-21 17:19:10 +08:00
|
|
|
<script type="text/javascript" src="js/logger.js"></script>
|
|
|
|
<script type="text/javascript" src="js/overlay.js"></script>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
if ( $skinJsPhpFile )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
2009-10-17 01:04:44 +08:00
|
|
|
//<![CDATA[
|
|
|
|
<!--
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
require_once( $skinJsPhpFile );
|
|
|
|
?>
|
2009-10-17 01:04:44 +08:00
|
|
|
//-->
|
|
|
|
//]]>
|
2008-07-14 21:54:50 +08:00
|
|
|
</script>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
if ( $viewJsPhpFile )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
2009-10-17 01:04:44 +08:00
|
|
|
//<![CDATA[
|
|
|
|
<!--
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
require_once( $viewJsPhpFile );
|
|
|
|
?>
|
2009-10-17 01:04:44 +08:00
|
|
|
//-->
|
|
|
|
//]]>
|
2008-07-14 21:54:50 +08:00
|
|
|
</script>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<script type="text/javascript" src="<?= $skinJsFile ?>"></script>
|
|
|
|
<?php
|
|
|
|
if ( $viewJsFile )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<script type="text/javascript" src="<?= $viewJsFile ?>"></script>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</head>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|