add log out button
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7442 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6e77c62653
commit
4c1557038a
@ -15,6 +15,7 @@
|
||||
|
||||
/****************** Header ******************/
|
||||
#header {
|
||||
height : 40px;
|
||||
width: 1000px;
|
||||
margin: 0px auto;
|
||||
background: url(../images/header-gloss-wave.png) 50% 50% repeat-x;
|
||||
@ -25,6 +26,7 @@
|
||||
}
|
||||
|
||||
#header ul {
|
||||
float : left;
|
||||
list-style: none;
|
||||
padding: 0 0 0 30px;
|
||||
margin: 0;
|
||||
@ -51,6 +53,20 @@
|
||||
background-color: #A9D0F5;
|
||||
}
|
||||
|
||||
/* for usernamed login */
|
||||
#header div {
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
padding-right: 5px;
|
||||
text-align: right;
|
||||
font-size: 1em;
|
||||
}
|
||||
#header div span {
|
||||
color: yellow;
|
||||
}
|
||||
#header div a {
|
||||
color: #ddd;
|
||||
}
|
||||
/****************** Content section ******************/
|
||||
body {
|
||||
background-color: #1C1C1C;
|
||||
|
@ -32,9 +32,14 @@ function loadPage(){
|
||||
<li><a href="configure.php" class="top_link">Configure</a></li>
|
||||
<li><a href="provision.php" class="top_link">Provision</a></li>
|
||||
<li><a href="monitor.php" class="top_link">Monitor</a></li>
|
||||
</ul>
|
||||
</div>';
|
||||
</ul>';
|
||||
|
||||
if (isset($_SESSION['username'])){
|
||||
echo "<div id='musername'>user: <span> {$_SESSION['username']}</span>".
|
||||
"<br><a href='lib/logout.php'>log out</a></div>";
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
// Content
|
||||
echo '<div class="content" id="content"></div>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user