Add header to main views

This commit is contained in:
Kyle Johnson 2014-11-02 00:47:14 +00:00
parent 79e41dbb1b
commit 1436414ddc
5 changed files with 19 additions and 25 deletions

View File

@ -90,6 +90,9 @@ $focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['CycleWatch'] ); xhtmlHeaders(__FILE__, $SLANG['CycleWatch'] );
?> ?>
<body> <body>
<?php include("header.php"); ?>
<div id="page"> <div id="page">
<div id="header"> <div id="header">
<div id="headerButtons"> <div id="headerButtons">
@ -98,9 +101,7 @@ xhtmlHeaders(__FILE__, $SLANG['CycleWatch'] );
<?php } else { ?> <?php } else { ?>
<a href="?view=<?= $view ?>&amp;mode=stream&amp;group=<?= $group ?>&amp;mid=<?= $monitor['Id'] ?>"><?= $SLANG['Stream'] ?></a> <a href="?view=<?= $view ?>&amp;mode=stream&amp;group=<?= $group ?>&amp;mid=<?= $monitor['Id'] ?>"><?= $SLANG['Stream'] ?></a>
<?php } ?> <?php } ?>
<a href="#" onclick="closeWindow(); return( false );"><?= $SLANG['Close'] ?></a>
</div> </div>
<h2><?= $SLANG['Cycle'] ?> - <?= validHtmlStr($monitor['Name']) ?></h2>
</div> </div>
<div id="content"> <div id="content">
<div id="imageFeed"> <div id="imageFeed">

View File

@ -137,13 +137,10 @@ $focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['EventFilter'] ); xhtmlHeaders(__FILE__, $SLANG['EventFilter'] );
?> ?>
<body> <body>
<div id="page">
<div id="header"> <?php include("header.php"); ?>
<div id="headerButtons">
<a href="#" onclick="closeWindow();"><?= $SLANG['Close'] ?></a> <div class="container-fluid">
</div>
<h2><?= $SLANG['EventFilter'] ?></h2>
</div>
<div id="content"> <div id="content">
<form name="contentForm" id="contentForm" method="get" action="<?= $_SERVER['PHP_SELF'] ?>"> <form name="contentForm" id="contentForm" method="get" action="<?= $_SERVER['PHP_SELF'] ?>">
<input type="hidden" name="view" value="filter"/> <input type="hidden" name="view" value="filter"/>

View File

@ -44,10 +44,10 @@ foreach( dbFetchAll( $sql ) as $row )
xhtmlHeaders(__FILE__, $SLANG['Groups'] ); xhtmlHeaders(__FILE__, $SLANG['Groups'] );
?> ?>
<body> <body>
<?php include("header.php"); ?>
<div id="page"> <div id="page">
<div id="header">
<h2><?= $SLANG['Groups'] ?></h2>
</div>
<div id="content"> <div id="content">
<form name="groupsForm" method="get" action="<?= $_SERVER['PHP_SELF'] ?>"> <form name="groupsForm" method="get" action="<?= $_SERVER['PHP_SELF'] ?>">
<input type="hidden" name="view" value="none"/> <input type="hidden" name="view" value="none"/>

View File

@ -83,20 +83,16 @@ if ( isset($_COOKIE['zmMontageLayout']) )
xhtmlHeaders(__FILE__, $SLANG['Montage'] ); xhtmlHeaders(__FILE__, $SLANG['Montage'] );
?> ?>
<body> <body>
<?php include("header.php"); ?>
<div id="page"> <div id="page">
<div id="header"> <div id="header">
<div id="headerButtons"> <div id="headerButtons">
<?php <?php if ( $showControl ) ?>
if ( $showControl )
{
?>
<a href="#" onclick="createPopup( '?view=control', 'zmControl', 'control' )"><?= $SLANG['Control'] ?></a> <a href="#" onclick="createPopup( '?view=control', 'zmControl', 'control' )"><?= $SLANG['Control'] ?></a>
<?php <?php ?>
}
?>
<a href="#" onclick="closeWindow()"><?= $SLANG['Close'] ?></a>
</div> </div>
<h2><?= $SLANG['Montage'] ?></h2>
<div id="headerControl"> <div id="headerControl">
<span id="scaleControl"><?= $SLANG['Scale'] ?>: <?= buildSelect( "scale", $scales, "changeScale( this );" ); ?></span> <span id="scaleControl"><?= $SLANG['Scale'] ?>: <?= buildSelect( "scale", $scales, "changeScale( this );" ); ?></span>
<label for="layout"><?= $SLANG['Layout'] ?>:</label><?= buildSelect( "layout", $layouts, 'selectLayout( this )' )?> <label for="layout"><?= $SLANG['Layout'] ?>:</label><?= buildSelect( "layout", $layouts, 'selectLayout( this )' )?>

View File

@ -55,10 +55,10 @@ $focusWindow = true;
xhtmlHeaders( __FILE__, $SLANG['Options'] ); xhtmlHeaders( __FILE__, $SLANG['Options'] );
?> ?>
<body> <body>
<div id="page">
<div id="header"> <?php include("header.php"); ?>
<h2><?= $SLANG['Options'] ?></h2>
</div> <div class="container-fluid">
<div id="content"> <div id="content">
<ul class="tabList"> <ul class="tabList">
<?php <?php