Commit bfc3b2ad authored by haemmer's avatar haemmer
Browse files

Removed tables

Improved IE compatibility
parent 9d09b9e4
...@@ -4,7 +4,6 @@ h1 { ...@@ -4,7 +4,6 @@ h1 {
font-size: 13px; font-size: 13px;
padding-bottom: 6px; padding-bottom: 6px;
text-align: left; text-align: left;
} }
p { p {
...@@ -28,17 +27,6 @@ a:focus, a:hover, a:active { ...@@ -28,17 +27,6 @@ a:focus, a:hover, a:active {
text-decoration: underline; text-decoration: underline;
} }
select {
max-width: 480px;
}
.container {
position: absolute;
left: 50%;
top: 50%;
margin-left: -320px;
margin-top: -200px;
}
.box { .box {
width:600px; width:600px;
...@@ -78,7 +66,6 @@ select { ...@@ -78,7 +66,6 @@ select {
line-height: 45px; line-height: 45px;
} }
.menu li { .menu li {
float: left; float: left;
list-style:none; list-style:none;
...@@ -93,24 +80,32 @@ select { ...@@ -93,24 +80,32 @@ select {
list-style:none; list-style:none;
} }
.content { #container {
position: absolute;
left: 50%;
top: 50%;
margin-left: -320px;
margin-top: -200px;
}
#content {
width: 100%; width: 100%;
float:left; float:left;
} }
.federationLogo { #federationLogo {
float:left; float:left;
margin-top: 32px; margin-top: 32px;
margin-left: 2px; margin-left: 2px;
border:0; border:0;
} }
.organisationLogo { #organisationLogo {
float:right; float:right;
border:0; border:0;
} }
.userInputArea { #userInputArea {
width: 100%; width: 100%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
...@@ -121,15 +116,6 @@ select { ...@@ -121,15 +116,6 @@ select {
padding: 6px; padding: 6px;
} }
.selectedIdP #userIdPSelection {
{ width: 400px;
font-family:Verdana, sans-serif;
font-size: 13px;
width: 380px;
background-color: white;
border-color: black;
border-style: solid;
margin: 2px;
border-width: 1px;
text-align: center;
} }
\ No newline at end of file
...@@ -3,12 +3,10 @@ ...@@ -3,12 +3,10 @@
<!-- Identity Provider Selection: Start --> <!-- Identity Provider Selection: Start -->
<h1><?php echo getLocalString('header'); ?></h1> <h1><?php echo getLocalString('header'); ?></h1>
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>"> <form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
<table class="userInputArea" width="500"> <div id="userInputArea">
<tr>
<td>
<p><?php echo $promptMessage ?></p> <p><?php echo $promptMessage ?></p>
<div align="center"> <div align="center">
<select name="user_idp"> <select name="user_idp" id="userIdPSelection">
<option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option> <option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option>
<?php printDropDownList($IDProviders, $selectedIDP) ?> <?php printDropDownList($IDProviders, $selectedIDP) ?>
</select> </select>
...@@ -25,17 +23,8 @@ ...@@ -25,17 +23,8 @@
<?php endif ?> <?php endif ?>
</p> </p>
</div> </div>
</td> </div>
</tr>
</table>
</form> </form>
<p><?php echo getLocalString('additional_info') ?></p>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td valign="top">
<p><?php echo getLocalString('additional_info') ?></p>
</td>
</tr>
</table>
<!-- Identity Provider Selection: End --> <!-- Identity Provider Selection: End -->
...@@ -60,12 +60,12 @@ function checkForm(){ ...@@ -60,12 +60,12 @@ function checkForm(){
--> -->
</script> </script>
<div class="container"> <div id="container">
<div class="box"> <div class="box">
<div class="header"> <div class="header">
<a href="http://www.switch.ch/aai"><img src="<?php echo $logoURL ?>" alt="SWITCHaai" class="federationLogo"></a><a href="http://www.switch.ch/"><img src="<?php echo $imageURL ?>/switch-logo.png" alt="SWITCH" class="organisationLogo" align="right"></a> <a href="http://www.switch.ch/aai"><img src="<?php echo $logoURL ?>" alt="SWITCHaai" id="federationLogo"></a><a href="http://www.switch.ch/"><img src="<?php echo $imageURL ?>/switch-logo.png" alt="SWITCH" id="organisationLogo" align="right"></a>
</div> </div>
<div class="content"> <div id="content">
<ul class="menu"> <ul class="menu">
<li><a href="http://www.switch.ch/<?php echo $language ?>/aai/about/"><?php echo getLocalString('about_federation'); ?></a></li> <li><a href="http://www.switch.ch/<?php echo $language ?>/aai/about/"><?php echo getLocalString('about_federation'); ?></a></li>
<li class="last"><a href="http://www.switch.ch/<?php echo $language ?>/aai/faq/"><?php echo getLocalString('faq') ?></a></li> <li class="last"><a href="http://www.switch.ch/<?php echo $language ?>/aai/faq/"><?php echo getLocalString('faq') ?></a></li>
......
...@@ -3,30 +3,19 @@ ...@@ -3,30 +3,19 @@
<!-- Identity Provider Selection: Start --> <!-- Identity Provider Selection: Start -->
<h1><?php echo getLocalString('settings'); ?></h1> <h1><?php echo getLocalString('settings'); ?></h1>
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>"> <form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
<table class="userInputArea" width="500"> <div id="userInputArea">
<tr>
<td>
<p><?php echo getLocalString('permanent_cookie_notice'); ?></p> <p><?php echo getLocalString('permanent_cookie_notice'); ?></p>
<div align="center"> <div align="center">
<div class="selectedIdP" style="float: left"> <select name="permanent_user_idp" id="userIdPSelection" disabled="disabled">
<?php echo $permanentUserIdPName ?> <option value="-"><?php echo $permanentUserIdPName ?></option>
</div> </select>
<input style="float: left" type="submit" accesskey="c" name="clear_user_idp" value="<?php echo getLocalString('delete_permanent_cookie_button') ?>"> <input type="submit" accesskey="c" name="clear_user_idp" value="<?php echo getLocalString('delete_permanent_cookie_button') ?>">
<?php if (isValidShibRequest()) : ?> <?php if (isValidShibRequest()) : ?>
<input style="float: left" type="submit" accesskey="s" name="Select" name="permanent" value="<?php echo getLocalString('goto_sp') ?>" onClick="showPermanentConfirmation()"> <input type="submit" accesskey="s" name="Select" name="permanent" value="<?php echo getLocalString('goto_sp') ?>" onClick="showPermanentConfirmation()">
<?php endif ?> <?php endif ?>
</div> </div>
</td> </div>
</tr>
</table>
</form> </form>
<p><?php echo getLocalString('additional_info') ?></p>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td valign="top">
<p><?php echo getLocalString('additional_info') ?></p>
</td>
</tr>
</table>
<!-- Identity Provider Selection: End --> <!-- Identity Provider Selection: End -->
...@@ -3,30 +3,19 @@ ...@@ -3,30 +3,19 @@
<!-- Identity Provider Selection: Start --> <!-- Identity Provider Selection: Start -->
<h1><?php echo getLocalString('permanent_select_header'); ?></h1> <h1><?php echo getLocalString('permanent_select_header'); ?></h1>
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>"> <form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
<table class="userInputArea" width="500"> <div id="userInputArea">
<tr>
<td>
<!-- Value permanent must be a number which is equivalent to the days the cookie shall be valid -->
<input name="permanent" type="hidden" value="100">
<p><?php echo getLocalString('permanently_remember_selection') ?></p> <p><?php echo getLocalString('permanently_remember_selection') ?></p>
<p> <div align="center">
<select name="user_idp"> <select name="user_idp" id="userIdPSelection">
<option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option> <option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option>
<?php printDropDownList($IDProviders, $selectedIDP) ?> <?php printDropDownList($IDProviders, $selectedIDP) ?>
</select> </select>
<input type="submit" name="Select" accesskey="s" value="<?php echo getLocalString('save_button') ?>" > <input type="submit" name="Select" accesskey="s" value="<?php echo getLocalString('save_button') ?>" >
</p> </div>
</td> <!-- Value permanent must be a number which is equivalent to the days the cookie shall be valid -->
</tr> <input name="permanent" type="hidden" value="100">
</table> </div>
</form> </form>
<p><?php echo getLocalString('additional_info') ?></p>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td valign="top">
<p><?php echo getLocalString('additional_info') ?></p>
</td>
</tr>
</table>
<!-- Identity Provider Selection: End --> <!-- Identity Provider Selection: End -->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment