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:
inghamn 2009-12-18 15:45:40 +00:00
parent cab10aa324
commit 4f4eefaa2f
9 changed files with 47 additions and 29 deletions

View File

@ -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; }

View File

@ -9,7 +9,9 @@
<body> <body>
<?php <?php
include $dir.'/partials/banner.inc'; include $dir.'/partials/banner.inc';
include $dir.'/partials/menubar.inc'; if (isset($_SESSION['USER'])) {
include $dir.'/partials/menubar.inc';
}
?> ?>
<div id="panel-container"> <div id="panel-container">

View File

@ -3,4 +3,14 @@
<div id="location_name"> <div id="location_name">
<a href="<?php echo BASE_URL; ?>">City of Bloomington, Mark Kruzan, Mayor</a> <a href="<?php echo BASE_URL; ?>">City of Bloomington, Mark Kruzan, Mayor</a>
</div> </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> </div>

View File

@ -1,12 +1,17 @@
<div class="menuBar"> <div class="menuBar">
<ul><li><a href="<?php echo BASE_URL; ?>">Home</a></li> <ul><li><a href="<?php echo BASE_URL; ?>">Internments</a></li>
<?php <?php
if (isset($_SESSION['USER'])) { if (userIsAllowed('Cemeteries')) {
echo "<li><a href=\"".BASE_URL."/login/logout.php\">Logout</a></li>"; echo "<li><a href=\"".BASE_URL."/cemeteries\">Cemeteries</a></li>";
} }
else { if (userIsAllowed('Deeds')) {
echo "<li><a href=\"".BASE_URL."/login\">Login</a></li>"; echo "<li><a href=\"".BASE_URL."/deeds\">Deeds</a></li>";
} }
?> if (userIsAllowed('Users')) {
</ul> echo "
<li><a href=\"".BASE_URL."/people\">People</a></li>
<li><a href=\"".BASE_URL."/users\">Users</a></li>
";
}
?>
</div> </div>

View File

@ -1,11 +1,5 @@
<div id="panel-one"> <div id="panel-one">
<ul><li><a href="<?php echo BASE_URL; ?>/cemeteries">Cemeteries</a></li> <?php
<li><a href="<?php echo BASE_URL; ?>/deeds">Deeds</a></li> echo $this->includeBlocks('panel-one');
<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';
}
?>
</div> </div>

View File

@ -1,2 +1,5 @@
<div id="panel-two"> <div id="panel-two">
<?php
echo $this->includeBlocks('panel-two');
?>
</div> </div>

View File

@ -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>

View File

@ -9,7 +9,9 @@
<body> <body>
<?php <?php
include $dir.'/partials/banner.inc'; include $dir.'/partials/banner.inc';
include $dir.'/partials/menubar.inc'; if (isset($_SESSION['USER'])) {
include $dir.'/partials/menubar.inc';
}
?> ?>
<div id="panel-container"> <div id="panel-container">

View File

@ -9,7 +9,9 @@
<body> <body>
<?php <?php
include $dir.'/partials/banner.inc'; include $dir.'/partials/banner.inc';
include $dir.'/partials/menubar.inc'; if (isset($_SESSION['USER'])) {
include $dir.'/partials/menubar.inc';
}
?> ?>
<div id="panel-container"> <div id="panel-container">