Changed user name and log out section to diplay as block and removed <br>.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7476 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5ff72a6c1a
commit
5fe4ee8c10
@ -45,7 +45,7 @@
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
font: 14px verdana, arial, helvetica, sans-serif;
|
||||
color: #424242;;
|
||||
color: #424242;
|
||||
padding: 11px 30px;
|
||||
}
|
||||
|
||||
@ -53,20 +53,27 @@
|
||||
background-color: #A9D0F5;
|
||||
}
|
||||
|
||||
/* for usernamed login */
|
||||
#header div {
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
padding-right: 5px;
|
||||
text-align: right;
|
||||
font-size: 1em;
|
||||
}
|
||||
/* User name and log out */
|
||||
#header div span {
|
||||
color: yellow;
|
||||
color: #424242;
|
||||
padding: 2px 15px 0px 2px; /* Top right left bottom*/
|
||||
text-align: right;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#header div a {
|
||||
color: #ddd;
|
||||
padding: 2px 15px 0px 2px; /* Top right left bottom*/
|
||||
text-align: right;
|
||||
color: #0000FF;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#header div a:hover {
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
/****************** Content section ******************/
|
||||
body {
|
||||
background-color: #1C1C1C;
|
||||
|
@ -34,10 +34,14 @@ function loadPage(){
|
||||
<li><a href="monitor.php" class="top_link">Monitor</a></li>
|
||||
</ul>';
|
||||
|
||||
if (isset($_SESSION['username'])){
|
||||
echo "<div id='musername'>user: <span> {$_SESSION['username']}</span>".
|
||||
"<br><a href='lib/logout.php'>log out</a></div>";
|
||||
}
|
||||
// User name and log out section
|
||||
if (isset($_SESSION['username'])){
|
||||
echo
|
||||
"<div>
|
||||
<span>User: {$_SESSION['username']}</span>
|
||||
<a href='lib/logout.php'>Log out</a>
|
||||
</div>";
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
// Content
|
||||
|
Loading…
Reference in New Issue
Block a user