Updated Templating to match the Cemeteries application
git-svn-id: https://rosehill.googlecode.com/svn/branches/php@5 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
parent
cab10aa324
commit
4f4eefaa2f
|
@ -0,0 +1,7 @@
|
|||
#banner .loginForm { position:absolute; top:5px; right:5px; color:white; }
|
||||
#banner .loginForm h1 { display:none; }
|
||||
#banner .loginForm th label { color:white; }
|
||||
#banner .loginForm fieldset { border:none; margin:0; padding:0; }
|
||||
#banner .loginForm legend { display:none; }
|
||||
#banner .loginForm button {display:inline; }
|
||||
#banner .loginForm a { font-weight:bold; color:blue; }
|
|
@ -9,7 +9,9 @@
|
|||
<body>
|
||||
<?php
|
||||
include $dir.'/partials/banner.inc';
|
||||
include $dir.'/partials/menubar.inc';
|
||||
if (isset($_SESSION['USER'])) {
|
||||
include $dir.'/partials/menubar.inc';
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="panel-container">
|
||||
|
|
|
@ -3,4 +3,14 @@
|
|||
<div id="location_name">
|
||||
<a href="<?php echo BASE_URL; ?>">City of Bloomington, Mark Kruzan, Mayor</a>
|
||||
</div>
|
||||
<div class="loginForm">
|
||||
<?php
|
||||
if (isset($_SESSION['USER'])) {
|
||||
echo "<a href=\"".BASE_URL."/login/logout.php\">Logout</a>";
|
||||
}
|
||||
else {
|
||||
include APPLICATION_HOME.'/blocks/html/loginForm.inc';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
<div class="menuBar">
|
||||
<ul><li><a href="<?php echo BASE_URL; ?>">Home</a></li>
|
||||
<?php
|
||||
if (isset($_SESSION['USER'])) {
|
||||
echo "<li><a href=\"".BASE_URL."/login/logout.php\">Logout</a></li>";
|
||||
}
|
||||
else {
|
||||
echo "<li><a href=\"".BASE_URL."/login\">Login</a></li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul><li><a href="<?php echo BASE_URL; ?>">Internments</a></li>
|
||||
<?php
|
||||
if (userIsAllowed('Cemeteries')) {
|
||||
echo "<li><a href=\"".BASE_URL."/cemeteries\">Cemeteries</a></li>";
|
||||
}
|
||||
if (userIsAllowed('Deeds')) {
|
||||
echo "<li><a href=\"".BASE_URL."/deeds\">Deeds</a></li>";
|
||||
}
|
||||
if (userIsAllowed('Users')) {
|
||||
echo "
|
||||
<li><a href=\"".BASE_URL."/people\">People</a></li>
|
||||
<li><a href=\"".BASE_URL."/users\">Users</a></li>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
<div id="panel-one">
|
||||
<ul><li><a href="<?php echo BASE_URL; ?>/cemeteries">Cemeteries</a></li>
|
||||
<li><a href="<?php echo BASE_URL; ?>/deeds">Deeds</a></li>
|
||||
<li><a href="<?php echo BASE_URL; ?>/internments">Internments</a></li>
|
||||
</ul>
|
||||
<?php
|
||||
if (userIsAllowed('Users')) {
|
||||
include APPLICATION_HOME.'/templates/html/partials/panel-widgets/Users.inc';
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
echo $this->includeBlocks('panel-one');
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
<div id="panel-two">
|
||||
<?php
|
||||
echo $this->includeBlocks('panel-two');
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
<div>
|
||||
<h1>Admin</h1>
|
||||
<ul>
|
||||
<li><a href="<?php echo BASE_URL; ?>/people">People</a></li>
|
||||
<li><a href="<?php echo BASE_URL; ?>/users">User Accounts</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -9,7 +9,9 @@
|
|||
<body>
|
||||
<?php
|
||||
include $dir.'/partials/banner.inc';
|
||||
include $dir.'/partials/menubar.inc';
|
||||
if (isset($_SESSION['USER'])) {
|
||||
include $dir.'/partials/menubar.inc';
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="panel-container">
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
<body>
|
||||
<?php
|
||||
include $dir.'/partials/banner.inc';
|
||||
include $dir.'/partials/menubar.inc';
|
||||
if (isset($_SESSION['USER'])) {
|
||||
include $dir.'/partials/menubar.inc';
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="panel-container">
|
||||
|
|
Loading…
Reference in New Issue