Commit bfc3b2ad authored by haemmer's avatar haemmer

Removed tables

Improved IE compatibility
parent 9d09b9e4
......@@ -4,7 +4,6 @@ h1 {
font-size: 13px;
padding-bottom: 6px;
text-align: left;
}
p {
......@@ -28,17 +27,6 @@ a:focus, a:hover, a:active {
text-decoration: underline;
}
select {
max-width: 480px;
}
.container {
position: absolute;
left: 50%;
top: 50%;
margin-left: -320px;
margin-top: -200px;
}
.box {
width:600px;
......@@ -78,7 +66,6 @@ select {
line-height: 45px;
}
.menu li {
float: left;
list-style:none;
......@@ -93,24 +80,32 @@ select {
list-style:none;
}
.content {
#container {
position: absolute;
left: 50%;
top: 50%;
margin-left: -320px;
margin-top: -200px;
}
#content {
width: 100%;
float:left;
}
.federationLogo {
#federationLogo {
float:left;
margin-top: 32px;
margin-left: 2px;
border:0;
}
.organisationLogo {
#organisationLogo {
float:right;
border:0;
}
.userInputArea {
#userInputArea {
width: 100%;
margin-left: auto;
margin-right: auto;
......@@ -121,15 +116,6 @@ select {
padding: 6px;
}
.selectedIdP
{
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;
}
#userIdPSelection {
width: 400px;
}
\ No newline at end of file
......@@ -3,39 +3,28 @@
<!-- Identity Provider Selection: Start -->
<h1><?php echo getLocalString('header'); ?></h1>
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
<table class="userInputArea" width="500">
<tr>
<td>
<p><?php echo $promptMessage ?></p>
<div align="center">
<select name="user_idp">
<option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option>
<?php printDropDownList($IDProviders, $selectedIDP) ?>
</select>
<input type="submit" name="Select" accesskey="s" value="<?php echo getLocalString('select_button') ?>">
</div>
<div align="left">
<p>
<input type="checkbox" <?php echo $rememberSelectionChecked ?> name="session" id="rememberForSession" value="true">
<label for="rememberForSession"><?php echo getLocalString('remember_selection') ?></label><br>
<?php if ($showPermanentSetting) : ?>
<!-- Value permanent must be a number which is equivalent to the days the cookie shall be valid -->
<input type="checkbox" name="permanent" id="rememberPermanent" value="100">
<label for="rememberPermanent" /><?php echo getLocalString('permanently_remember_selection') ?></label>
<?php endif ?>
</p>
</div>
</td>
</tr>
</table>
<div id="userInputArea">
<p><?php echo $promptMessage ?></p>
<div align="center">
<select name="user_idp" id="userIdPSelection">
<option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option>
<?php printDropDownList($IDProviders, $selectedIDP) ?>
</select>
<input type="submit" name="Select" accesskey="s" value="<?php echo getLocalString('select_button') ?>">
</div>
<div align="left">
<p>
<input type="checkbox" <?php echo $rememberSelectionChecked ?> name="session" id="rememberForSession" value="true">
<label for="rememberForSession"><?php echo getLocalString('remember_selection') ?></label><br>
<?php if ($showPermanentSetting) : ?>
<!-- Value permanent must be a number which is equivalent to the days the cookie shall be valid -->
<input type="checkbox" name="permanent" id="rememberPermanent" value="100">
<label for="rememberPermanent" /><?php echo getLocalString('permanently_remember_selection') ?></label>
<?php endif ?>
</p>
</div>
</div>
</form>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td valign="top">
<p><?php echo getLocalString('additional_info') ?></p>
</td>
</tr>
</table>
<p><?php echo getLocalString('additional_info') ?></p>
<!-- Identity Provider Selection: End -->
......@@ -60,16 +60,16 @@ function checkForm(){
-->
</script>
<div class="container">
<div id="container">
<div class="box">
<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 class="content">
<ul class="menu">
<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/help/"><?php echo getLocalString('help') ?></a></li>
<li class="last"><a href="http://www.switch.ch/<?php echo $language ?>/aai/privacy/"><?php echo getLocalString('privacy') ?></a></li>
</ul>
<div id="content">
<ul class="menu">
<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/help/"><?php echo getLocalString('help') ?></a></li>
<li class="last"><a href="http://www.switch.ch/<?php echo $language ?>/aai/privacy/"><?php echo getLocalString('privacy') ?></a></li>
</ul>
<!-- Body: Start -->
......@@ -3,30 +3,19 @@
<!-- Identity Provider Selection: Start -->
<h1><?php echo getLocalString('settings'); ?></h1>
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
<table class="userInputArea" width="500">
<tr>
<td>
<p><?php echo getLocalString('permanent_cookie_notice'); ?></p>
<div align="center">
<div class="selectedIdP" style="float: left">
<?php echo $permanentUserIdPName ?>
</div>
<input style="float: left" type="submit" accesskey="c" name="clear_user_idp" value="<?php echo getLocalString('delete_permanent_cookie_button') ?>">
<?php if (isValidShibRequest()) : ?>
<input style="float: left" type="submit" accesskey="s" name="Select" name="permanent" value="<?php echo getLocalString('goto_sp') ?>" onClick="showPermanentConfirmation()">
<?php endif ?>
</div>
</td>
</tr>
</table>
<div id="userInputArea">
<p><?php echo getLocalString('permanent_cookie_notice'); ?></p>
<div align="center">
<select name="permanent_user_idp" id="userIdPSelection" disabled="disabled">
<option value="-"><?php echo $permanentUserIdPName ?></option>
</select>
<input type="submit" accesskey="c" name="clear_user_idp" value="<?php echo getLocalString('delete_permanent_cookie_button') ?>">
<?php if (isValidShibRequest()) : ?>
<input type="submit" accesskey="s" name="Select" name="permanent" value="<?php echo getLocalString('goto_sp') ?>" onClick="showPermanentConfirmation()">
<?php endif ?>
</div>
</div>
</form>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td valign="top">
<p><?php echo getLocalString('additional_info') ?></p>
</td>
</tr>
</table>
<p><?php echo getLocalString('additional_info') ?></p>
<!-- Identity Provider Selection: End -->
......@@ -3,30 +3,19 @@
<!-- Identity Provider Selection: Start -->
<h1><?php echo getLocalString('permanent_select_header'); ?></h1>
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
<table class="userInputArea" width="500">
<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>
<select name="user_idp">
<option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option>
<?php printDropDownList($IDProviders, $selectedIDP) ?>
</select>
<input type="submit" name="Select" accesskey="s" value="<?php echo getLocalString('save_button') ?>" >
</p>
</td>
</tr>
</table>
<div id="userInputArea">
<p><?php echo getLocalString('permanently_remember_selection') ?></p>
<div align="center">
<select name="user_idp" id="userIdPSelection">
<option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option>
<?php printDropDownList($IDProviders, $selectedIDP) ?>
</select>
<input type="submit" name="Select" accesskey="s" value="<?php echo getLocalString('save_button') ?>" >
</div>
<!-- Value permanent must be a number which is equivalent to the days the cookie shall be valid -->
<input name="permanent" type="hidden" value="100">
</div>
</form>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td valign="top">
<p><?php echo getLocalString('additional_info') ?></p>
</td>
</tr>
</table>
<p><?php echo getLocalString('additional_info') ?></p>
<!-- Identity Provider Selection: End -->
Markdown is supported
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