forked from vbonamy/esup-wayf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-settings.php
executable file
·104 lines (91 loc) · 4.54 KB
/
custom-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php // Copyright (c) 2014, SWITCH ?>
<body>
<div id="wrap">
<div class="container">
<!--div class="row">
<header id="header-logo" class="center-block"></header>
</div-->
<div class="row text-center">
<div>
<h4 class="promptMessage"><?php echo getLocalString('permanent_select_header'); ?></h4>
</div>
</div>
<div class="row">
<div id="col-co">
<!-- Block connexion au compte paris 1 -->
<?php if ($showLocalIDPDiv) : ?>
<a class="nounderline" onclick="selectMyFederation()" href="#" >
<div id="div-co-myfederation" class="well">
<h3><?php echo $useMyFederationAccount; ?><span class="glyphicon glyphicon-arrow-right pull-right"></span></h3>
</div>
</a>
<?php endif ?>
<div class="panel panel-default">
<?php if ($isPanelFolded) : ?>
<a id="block-map" class="nounderline collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
<?php else: ?>
<a id="block-map" class="nounderline" data-toggle="collapse" data-parent="#accordion" <?php if($adaptPanelText){echo 'href="#noCollapse" style="pointer-events: none; cursor: default;"';}else{echo 'href="#collapseOne"';} ?> aria-expanded="true" aria-controls="collapseOne">
<?php endif ?>
<div id="div-co-wayf" class="panel-heading" role="tab" id="headingOne" <?php if($adaptPanelText){echo 'style="background-color: #F5F5F5;"';} ?>>
<h3 class="panel-title"<?php if($adaptPanelText){echo 'style="visibility: hidden;"';} ?>><?php echo $useOtherFederationAccount ?><span id="glyph-collapse" class="glyphicon glyphicon-chevron-down pull-right"></span></h3>
</div>
</a>
<?php if ($isPanelFolded) : ?>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<?php else: ?>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<?php endif ?>
<div class="panel-body">
<div id="barreDeRecherche" class="input-group">
<label class="sr-only" for="recherche"><?php echo $searchBarText; ?></label>
<div id="search-icon" class="input-group-addon"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></div>
<input type="text" class="form-control" id="recherche" placeholder="<?php echo $searchBarText; ?>">
</div>
<input name="permanent" type="hidden" value="100">
<!-- Block liste et carte interactive -->
<div class="row">
<div id="conteneurListe" class="col-lg-4 well sidebar-nav">
<ul id="listeDynamique" class="nav nav-list">
</ul>
</div>
<div class="col-lg-7 hidden-xs" id="map"></div>
</div>
</div>
</div>
</div>
<!-- Block compte invité -->
<?php if ($showCRUAccountDiv) : ?>
<a class="nounderline" value="Comptes CRU" onclick="selectCRU()" href="#">
<div id="div-co-cru" class="well">
<p><?php echo getLocalString('cru_account') ?></p>
</div>
</a>
<?php endif ?>
</div>
</div>
</div>
</div>
<form id="IdPList" name="IdPList" method="post" style="display : none;" action="<?php echo $actionURL ?>">
<div id="userInputArea">
<div>
<select name="user_idp" id="userIdPSelection">
<option value="-" <?php echo $defaultSelected ?>><?php echo getLocalString('select_idp') ?> ...</option>
<?php printDropDownList($IDProviders, $selectedIDP) ?>
</select>
<input id="form-button" 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 should be valid -->
<input name="permanent" type="hidden" value="100">
</div>
</form>
<script type="text/javascript">
var myFederationShibURL = "<?php echo $LocalIDPID; ?>";
var CRUHShibURL = "<?php echo $CRUID; ?>";
</script>
<script type="text/javascript" src="Geo-SWITCHwayf/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="Geo-SWITCHwayf/js/bootstrap.min.js"></script>
<script type="text/javascript" src="Geo-SWITCHwayf/js/leaflet.js"></script>
<script type="text/javascript" src="Geo-SWITCHwayf/js/leaflet.awesome-markers.js"></script>
<script type="text/javascript" src="Geo-SWITCHwayf/js/leaflet.markercluster.js"></script>
<script type="text/javascript" src="Geo-SWITCHwayf/js/sprite_sheet_array.js"></script>
<script type="text/javascript" src="Geo-SWITCHwayf/geo-SWITCHwayf.js"></script>