More UI recommendations

This commit is contained in:
james 2010-07-09 19:24:04 +00:00
parent fe5b170371
commit 5321de365f
2 changed files with 24 additions and 20 deletions

View File

@ -463,8 +463,9 @@ if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config")
<div id="notice_area" class="notice_area"></div>
<div id="topnav">
<?
if(count($config['languages'])>1) {
echo "<form name=\"languageselect\" method=\"get\" action=\"".$_SERVER['PHP_SELF']."\">";
echo "<a href=\"{$config["SFIABDIRECTORY"]}/contact.php\">".i18n("Contact Us")."</a> &nbsp; | &nbsp; \n";
if(count($config['languages'])>1) {
echo i18n("Language").": ";
echo "<select name=\"switchlanguage\" onchange=\"document.forms.languageselect.submit()\">\n";
foreach($config['languages'] AS $key=>$val) {
@ -473,18 +474,22 @@ if(count($config['languages'])>1) {
echo "<option $selected value=\"$key\">$val</option>";
}
echo "</select>";
echo "</form>";
}
echo "</form>";
?>
</div>
<div id="header">
<div id="header_logo">
<?
echo "<a href=\"{$config['SFIABDIRECTORY']}/index.php\">";
if(file_exists($prependdir."data/{$conference['id']}-logo-100.gif")) {
echo "<img align=\"left\" height=\"50\" src=\"".$config['SFIABDIRECTORY']."/data/{$conference['id']}-logo-100.gif\">";
echo "<img style=\"border: 0px;\" height=\"70\" src=\"".$config['SFIABDIRECTORY']."/data/{$conference['id']}-logo-100.gif\">";
} else if(file_exists($prependdir."data/logo-100.gif")) {
echo "<img align=\"left\" height=\"50\" src=\"".$config['SFIABDIRECTORY']."/data/logo-100.gif\">";
echo "<img style=\"border: 0px;\" height=\"70\" src=\"".$config['SFIABDIRECTORY']."/data/logo-100.gif\">";
} else {
echo i18n("Home Page");
}
echo "</a>";
?>
</div>
<div id="header_title">
@ -551,7 +556,9 @@ if(isset($_SESSION['users_type'])) {
</td></tr><tr><td>
<?=i18n("Password")?>:</td><td><input type="password" size="20" name="pass" />
</td></tr>
<tr><td colspan="2" align="center">
<tr><td align="center" colspan="2">
<a href="register.php"><?=i18n("Register")?></a>
&nbsp; &nbsp; &nbsp;
<input type="submit" value=<?=i18n("Login")?> />
</td></tr>
</table>
@ -602,7 +609,6 @@ if(is_array($nav)) {
?>
<ul class="mainnav">
<?
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/index.php\">".i18n("Home Page").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/important_dates.php\">".i18n("Important Dates").'</a></li>';
echo $registrationconfirmationlink;
/*
@ -652,19 +658,12 @@ else if($_SESSION['registration_number'] && $_SESSION['registration_id']) {
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/register_participants_main.php\">".i18n("Participant Home").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/register_participants.php?action=logout\">".i18n("Logout")."</a></li>\n";
} else {
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/login.php\">".i18n("Login/Register").'</a></li>';
}
?></ul>
<div class="aligncenter">
<?
?>
</div>
<?
echo "<br /><ul class=\"mainnav\">\n";
echo "<li><a href=\"{$config["SFIABDIRECTORY"]}/contact.php\">".i18n("Contact Us")."</a></li>\n";
echo "</ul>";
?>
</div>
<?

View File

@ -46,7 +46,8 @@ table tr.odd {
#header_logo {
position: absolute;
width: 180px;
width: 170px;
text-align: center;
}
#header_title {
@ -56,11 +57,15 @@ table tr.odd {
}
#header_conferences {
border: 1px solid #777777;
position: absolute;
right: 210px;
height: 70px;
background-color: #DDDDDD;
}
#header_login {
font-size: 1.1em;
border: 1px solid #777777;
background-color: #DDDDDD;
position: absolute;
@ -495,22 +500,22 @@ ul.conferencenav {
list-style : none;
margin : 0;
padding : 0;
background-color : #d6d6d6;
background-color : #DDDDDD;
width: 165px;
}
ul.conferencenav li {
display : block;
border-top : 1px solid #a5b5c6;
border-top : 1px solid #DDDDDD;
}
ul.conferencenav li a {
display : block;
margin : 0;
padding : 3px;
background-color : #5C6F90;
font : bold 0.9em/1.2em Arial, sans-serif;
color : #fff;
background-color : #DDDDDD;
font : 0.9em/1.2em Arial, sans-serif;
color : #000;
text-decoration : none;
}
@ -519,7 +524,7 @@ ul.conferencenav li a.selected {
margin : 0;
padding : 3px;
background-color : #1F6DFF;
font : bold 0.9em/1.2em Arial, sans-serif;
font : 0.9em/1.2em Arial, sans-serif;
color : #fff;
text-decoration : none;
}