default-body.php 1.51 KB
Newer Older
Lukas Haemmerle's avatar
Lukas Haemmerle committed
1
<?php // Copyright (c) 2019, SWITCH ?>
haemmer's avatar
haemmer committed
2

3
<!-- Identity Provider Selection: Start -->
haemmer's avatar
haemmer committed
4
5
<h1><?php echo getLocalString('header'); ?></h1> 
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
haemmer's avatar
haemmer committed
6
	<div id="userInputArea">
haemmer's avatar
haemmer committed
7
		<p class="promptMessage"><?php echo $promptMessage ?></p>
haemmer's avatar
haemmer committed
8
		<div style="text-align: center">
haemmer's avatar
haemmer committed
9
10
11
12
13
14
			<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>
haemmer's avatar
haemmer committed
15
		<div  style="text-align: left">
haemmer's avatar
haemmer committed
16
			<p class="selectOptions">
haemmer's avatar
haemmer committed
17
18
19
				<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) : ?>
haemmer's avatar
haemmer committed
20
				<!-- Value permanent must be a number which is equivalent to the days the cookie should be valid -->
haemmer's avatar
haemmer committed
21
				<input type="checkbox" name="permanent" id="rememberPermanent" value="100">
haemmer's avatar
haemmer committed
22
				<label for="rememberPermanent"><?php echo getLocalString('permanently_remember_selection') ?></label>
haemmer's avatar
haemmer committed
23
24
25
26
				<?php endif ?>
			</p>
		</div>
	</div>
haemmer's avatar
haemmer committed
27
</form>
28

haemmer's avatar
haemmer committed
29
<?php if (getLocalString('additional_info') != '') { ?>
haemmer's avatar
haemmer committed
30
<p><?php echo getLocalString('additional_info') ?></p>
haemmer's avatar
haemmer committed
31
<?php } ?>
32
<!-- Identity Provider Selection: End -->