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="notice_area" class="notice_area"></div>
<div id="topnav"> <div id="topnav">
<? <?
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) { if(count($config['languages'])>1) {
echo "<form name=\"languageselect\" method=\"get\" action=\"".$_SERVER['PHP_SELF']."\">";
echo i18n("Language").": "; echo i18n("Language").": ";
echo "<select name=\"switchlanguage\" onchange=\"document.forms.languageselect.submit()\">\n"; echo "<select name=\"switchlanguage\" onchange=\"document.forms.languageselect.submit()\">\n";
foreach($config['languages'] AS $key=>$val) { foreach($config['languages'] AS $key=>$val) {
@ -473,18 +474,22 @@ if(count($config['languages'])>1) {
echo "<option $selected value=\"$key\">$val</option>"; echo "<option $selected value=\"$key\">$val</option>";
} }
echo "</select>"; echo "</select>";
echo "</form>";
} }
echo "</form>";
?> ?>
</div> </div>
<div id="header"> <div id="header">
<div id="header_logo"> <div id="header_logo">
<? <?
echo "<a href=\"{$config['SFIABDIRECTORY']}/index.php\">";
if(file_exists($prependdir."data/{$conference['id']}-logo-100.gif")) { 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")) { } 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>
<div id="header_title"> <div id="header_title">
@ -551,7 +556,9 @@ if(isset($_SESSION['users_type'])) {
</td></tr><tr><td> </td></tr><tr><td>
<?=i18n("Password")?>:</td><td><input type="password" size="20" name="pass" /> <?=i18n("Password")?>:</td><td><input type="password" size="20" name="pass" />
</td></tr> </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")?> /> <input type="submit" value=<?=i18n("Login")?> />
</td></tr> </td></tr>
</table> </table>
@ -602,7 +609,6 @@ if(is_array($nav)) {
?> ?>
<ul class="mainnav"> <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 "<li><a href=\"{$config['SFIABDIRECTORY']}/important_dates.php\">".i18n("Important Dates").'</a></li>';
echo $registrationconfirmationlink; 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_main.php\">".i18n("Participant Home").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/register_participants.php?action=logout\">".i18n("Logout")."</a></li>\n"; echo "<li><a href=\"{$config['SFIABDIRECTORY']}/register_participants.php?action=logout\">".i18n("Logout")."</a></li>\n";
} else { } else {
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/login.php\">".i18n("Login/Register").'</a></li>';
} }
?></ul> ?></ul>
<div class="aligncenter"> <div class="aligncenter">
<? <?
?> ?>
</div> </div>
<?
echo "<br /><ul class=\"mainnav\">\n";
echo "<li><a href=\"{$config["SFIABDIRECTORY"]}/contact.php\">".i18n("Contact Us")."</a></li>\n";
echo "</ul>";
?>
</div> </div>
<? <?

View File

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