aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/classic
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/www/skin/classic')
-rw-r--r--mayor-orig/www/skin/classic/base/css/base.css3
-rw-r--r--mayor-orig/www/skin/classic/base/html/base.phtml2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css14
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml38
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml18
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml4
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js1
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/accountInfo.css18
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml65
11 files changed, 128 insertions, 39 deletions
diff --git a/mayor-orig/www/skin/classic/base/css/base.css b/mayor-orig/www/skin/classic/base/css/base.css
index 66f74645..c384dd76 100644
--- a/mayor-orig/www/skin/classic/base/css/base.css
+++ b/mayor-orig/www/skin/classic/base/css/base.css
@@ -630,9 +630,10 @@ border: solid 0px #eee;
}
@media print {
- #nav, #nav1, #nav2, #poz, #head, #logo, #mayorfoot, #logobadge, #mayorGlobalLogin, #updateWindowSide, #updateWindowSideSub, #mayorErrorSmall, .noprint { display: none; }
+ #nav, #nav1, #nav2, #poz, #head, #logo, #logobadge, #mayorGlobalLogin, #updateWindowSide, #updateWindowSideSub, #mayorErrorSmall, .noprint { display: none; }
div.arckep--container {display: none;}
div.arckepContainer {display: none;}
+ #mayorfoot { text-align:center; font-size:x-small; }
}
@media (max-width: 900px) {
diff --git a/mayor-orig/www/skin/classic/base/html/base.phtml b/mayor-orig/www/skin/classic/base/html/base.phtml
index 8bd10e29..82f1c181 100644
--- a/mayor-orig/www/skin/classic/base/html/base.phtml
+++ b/mayor-orig/www/skin/classic/base/html/base.phtml
@@ -354,7 +354,7 @@ function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_S
echo ' <span class="onClickHideShow icon-cog"></span>';
echo '<div id="settings" class="openable" style="display: none">';
echo '<div>';
- echo '<p class="name">'._USERCN.'</p>';
+ echo '<p class="name"><a href="'.href('index.php?page=session&f=accountInfo').'">'._USERCN.'</a></p>';
echo '<p class="account">'._USERACCOUNT.'</p>';
echo '</div>';
echo '<table>';
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css
index 4acdd988..0cfda59b 100644
--- a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css
@@ -202,6 +202,17 @@ div.unfinished {
table.orarend div.orarendTools span.dolgozat:hover { color: orange;}
table.orarend div.orarendTools span.bezar:hover { color: #f06; }
+ h2.mayorSocialEdition {
+ text-align: center;
+ background-color: #f06;
+ width: 220px;
+ margin: auto;
+ color: #fff;
+ margin-bottom: 8px;
+ border-radius: 4px;
+ padding: 2px;
+ }
+
.animated {
-webkit-animation-duration: 1.5s;
animation-duration: 1.5s;
@@ -273,6 +284,9 @@ div.unfinished {
color: #dddddd; text-shadow: 0px 1px black;white-space:nowrap;font-size:xx-small; font-weight:normal; width:100%; text-align: center;
}
+ table.orarend div.orarendTools { display:none; }
+ h2.mayorSocialEdition { display:none; }
+
}
sup, sub {
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml
index 9c547f84..8dc73ed5 100644
--- a/mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml
@@ -59,7 +59,7 @@
global $aHetNapjai;
$nap = kisbetus($aHetNapjai[date('w',strtotime($D['oraAdat']['dt']))-1]);
$RETURN_STR .= 'A '.$D['oraAdat']['tankorCn'].' tankör '.$D['oraAdat']['dt'].' '.$nap.'i '.$D['oraAdat']['ora'].'. óra státusza megváltozott. ';
- if ($D['oraAdat']['teremId']>0) $RETURN_STR .= 'Terme: '.$D['oraAdat']['teremId'].'. ';
+ if ($D['oraAdat']['teremId']>0) $RETURN_STR .= 'Terme: '.$D['oraAdat']['teremLeiras'].' ('.$D['oraAdat']['teremId'].') ';
$RETURN_STR .= 'Új típusa: <b>'.$D['oraAdat']['tipus'].'</b>! ';
if ($D['oraAdat']['ki']>0) $RETURN_STR .= '('.$D['oraAdat']['kiCn'].')';
return $RETURN_STR;
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml
index fd51c8d8..0ab0693c 100644
--- a/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml
@@ -139,7 +139,7 @@
// if ($D['oraAdat']['dt']=='1970-01-01 01:00:00') return false;
$nap = kisbetus($aHetNapjai[date('w',strtotime($D['oraAdat']['dt']))-1]);
echo 'A '.$D['oraAdat']['tankorCn'].' tankör '.$D['oraAdat']['dt'].' '.$nap.'i '.$D['oraAdat']['ora'].'. óra státusza megváltozott. ';
- if ($D['oraAdat']['teremId']>0) echo 'Terme: '.$D['oraAdat']['teremId'].'. ';
+ if ($D['oraAdat']['teremId']>0) echo 'Terme: '.$D['oraAdat']['teremLeiras'].' ('.$D['oraAdat']['teremId'].') ';
echo 'Új típusa: <b>'.$D['oraAdat']['tipus'].'</b>! ';
if ($D['oraAdat']['ki']>0) echo '('.$D['oraAdat']['kiCn'].')';
}
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml
index c1c526fb..563f2bd6 100644
--- a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml
@@ -52,7 +52,7 @@
echo '</td>'."\n";
echo '<th>'."\n";
- echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</lable>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$ADAT['tanarAdat']['allampolgarsag'].'" />';
@@ -61,21 +61,21 @@
echo '<tr>'."\n";
echo '<th>'."\n";
- echo '<label for="tajSzam">'._TAJSZAM.'</lable>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$ADAT['tanarAdat']['tajSzam'].'" />';
echo '</td>'."\n";
*/
echo '<th>'."\n";
- echo '<label for="oId">'._OID.'</lable>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="15" id="oId" name="oId" value="'.$ADAT['tanarAdat']['oId'].'" />';
echo '</td>'."\n";
echo '<th>'."\n";
- echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</lable>'."\n";
+ echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="20" id="NEKAzonosito" name="NEKAzonosito" value="'.$ADAT['tanarAdat']['NEKAzonosito'].'" />';
@@ -83,7 +83,7 @@
/*
echo '<th>'."\n";
- echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</lable>'."\n";
+ echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="15" id="diakigazolvanySzam" name="diakigazolvanySzam" value="'.$ADAT['tanarAdat']['diakigazolvanySzam'].'" />';
@@ -92,14 +92,14 @@
echo '</tr>'."\n";
echo '<tr>';
echo '<th>'."\n";
- echo '<label for="email">'._TITULUS.'</lable>'."\n";
+ echo '<label for="email">'._TITULUS.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="32" id="titulus" name="titulus" value="'.$ADAT['tanarAdat']['titulus'].'" />';
echo '</td>'."\n";
echo '<th>'."\n";
- echo '<label for="email">'._TITULUSROVID.'</lable>'."\n";
+ echo '<label for="email">'._TITULUSROVID.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="10" id="titulusRovid" name="titulusRovid" value="'.$ADAT['tanarAdat']['titulusRovid'].'" />';
@@ -107,12 +107,20 @@
echo '</tr>';
echo '<tr>';
echo '<th>'."\n";
- echo '<label for="email">'._EMAIL.'</lable>'."\n";
+ echo '<label for="email">'._EMAIL.'</label>'."\n";
echo '</th>'."\n";
echo '<td colspan="4">'."\n";
echo '<input type="text" size="64" id="email" name="email" value="'.$ADAT['tanarAdat']['email'].'" />';
echo '</td>'."\n";
echo '</tr>';
+ echo '<tr>';
+ echo '<th>'."\n";
+ echo '<label for="">'._KRETANEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="4">'."\n";
+ echo '<input type="text" size="64" id="kretaNev" name="kretaNev" value="'.$ADAT['tanarAdat']['kretaNev'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
echo '</table>'."\n";
echo '<input type="submit" />';
@@ -142,14 +150,14 @@
echo '<tr>'."\n";
echo '<th>'."\n";
- echo '<label for="szuletesiHely">'._SZULETESIHELY.'</lable>'."\n";
+ echo '<label for="szuletesiHely">'._SZULETESIHELY.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" id="szuletesiHely" name="szuletesiHely" value="'.$ADAT['tanarAdat']['szuletesiHely'].'" />';
echo '</td>'."\n";
echo '<th>'."\n";
- echo '<label for="szuletesiIdo">'._SZULETESIIDO.'</lable>'."\n";
+ echo '<label for="szuletesiIdo">'._SZULETESIIDO.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input class="date" type="text" id="szuletesiIdo" name="szuletesiIdo" value="'.$ADAT['tanarAdat']['szuletesiIdo'].'" />';
@@ -347,7 +355,7 @@
echo '</td>'."\n";
echo '<th>'."\n";
- echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</lable>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$ADAT['tanarAdat']['allampolgarsag'].'" />';
@@ -356,28 +364,28 @@
echo '<tr>'."\n";
echo '<th>'."\n";
- echo '<label for="tajSzam">'._TAJSZAM.'</lable>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$ADAT['tanarAdat']['tajSzam'].'" />';
echo '</td>'."\n";
*/
echo '<th>'."\n";
- echo '<label for="oId">'._OID.'</lable>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="15" id="oId" name="oId" value="'.$ADAT['tanarAdat']['oId'].'" />';
echo '</td>'."\n";
echo '<th>'."\n";
- echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</lable>'."\n";
+ echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="20" id="NEKAzonosito" name="NEKAzonosito" value="'.$ADAT['tanarAdat']['NEKAzonosito'].'" />';
echo '</td>'."\n";
echo '<th>'."\n";
- echo '<label for="beDt">'._BEDT.'</lable>'."\n";
+ echo '<label for="beDt">'._BEDT.'</label>'."\n";
echo '</th>'."\n";
echo '<td>'."\n";
echo '<input type="text" size="15" id="beDt" name="beDt" value="'.date('Y-m-d').'" />';
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml
index e34ea785..798c8e85 100644
--- a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml
@@ -57,17 +57,11 @@
$T = $ADAT['orarend']['assoc'];
if (MAYOR_SOCIAL === true) {
- echo '<h2 style="text-align: center;
- background-color: #f06;
- width: 220px;
- margin: auto;
- color: #fff;
- margin-bottom: 8px;
- border-radius: 4px;
- padding: 2px;">MaYoR Social Edition</h2>';
+ echo '<h2 class="mayorSocialEdition">MaYoR Social Edition</h2>';
formBegin();
echo '<input type="hidden" name="action" value="orarendiOraTeremModosit" />';
echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" />';
echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
echo '<input type="hidden" name="teremId" value="'.$ADAT['teremId'].'" />';
@@ -234,7 +228,7 @@
$het = $_T['het'];
$_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
-$_valosTeremId = (is_null($_ORA['teremId']))? $_T['teremId']:$_ORA['teremId'];
+ $_valosTeremId = (is_null($_ORA['teremId']))? $_T['teremId']:$_ORA['teremId'];
$_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
$_tankorTipusId = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipusId'];
@@ -281,8 +275,8 @@ $_valosTeremId = (is_null($_ORA['teremId']))? $_T['teremId']:$_ORA['teremId'];
}
if ($TANKOR_DOLGOZAT[$_T['tankorId']][$dt]>0) echo '<span style="color:orange;" class="icon-idea-alt" title="bejelentett dolgozat dolgozatAdat" data-dolgozatid="'.$TANKOR_DOLGOZAT[$_T['tankorId']][$dt].'"></span>';
if ($TANKOR_JEGYZET[$_T['tankorId']][$dt]>0) echo '<span style="color:lightgreen;" class="icon-file-edit-alt" title="jegyzet"></span>';
-$_teremKiir = ($_T['teremId'] != $_valosTeremId) ? '<del>'.$ADAT['termek'][$_T['teremId']]['leiras'].'</del><ins>'.$ADAT['termek'][$_valosTeremId]['leiras'].'</ins>' : $ADAT['termek'][$_T['teremId']]['leiras'];
-$_ferohely = $ADAT['termek'][$_valosTeremId]['ferohely'];
+ $_teremKiir = ($_T['teremId'] != $_valosTeremId) ? '<del>'.$ADAT['termek'][$_T['teremId']]['leiras'].'</del><ins>'.$ADAT['termek'][$_valosTeremId]['leiras'].'</ins>' : $ADAT['termek'][$_T['teremId']]['leiras'];
+ $_ferohely = $ADAT['termek'][$_valosTeremId]['ferohely'];
$_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
if ($_T['tankorId']!='') {
echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
@@ -298,7 +292,7 @@ $_ferohely = $ADAT['termek'][$_valosTeremId]['ferohely'];
if (MAYOR_SOCIAL === true) {
// if ($_valosTeremId == 0) {
// (`het`,`nap`,`ora`,`tanarId`,`tolDt` = teremId),
- $_keyBase = 'OOM+'.$_T['het'].'+'.$nap.'+'.$ora.'+'.$_T['tanarId'].'+'.$_T['tolDt'];
+ $_keyBase = 'OOM+'.$_T['het'].'+'.$nap.'+'.$ora.'+'.$_T['tanarId'].'+'.$_T['tolDt'].'+'.$_ORA['oraId'];
$_hidden = ($_valosTeremId > 0)?' style="display:none" ':'';
echo '<select class="teremModosit onChangeSubmit" data-tmpid="'.intval($tmpid).'" name="'.$_keyBase.'" '.$_hidden.'>';
if ($_valosTeremId!=0)
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml
index 2851b4b5..79c33e0f 100644
--- a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml
@@ -35,12 +35,12 @@
echo '<tr>'."\n";
if (__SHOW_FACES_TF) {
echo '<th id="virtualJegyEasterEgg">';
- //putFace($diakId,'diak');
echo '</th>';
$_sub=-1;
} else $_sub=0;
echo '<th class="nev diakNev" data-diakid="'.$diakId.'" colspan="'.($HO['count']+count($_TANEV['szemeszter'])-1+$_sub).'">';
- echo $diakNev.' '.$_osztalystr;
+ putFace($diakId,'diak');
+ echo ' '.$diakNev.' '.$_osztalystr;
echo '</th>'."\n";
if (__ATLAG_MUTATAS !== false) {
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js
index 664bacf1..c95aa28b 100644
--- a/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js
@@ -11,6 +11,7 @@ $(function() {
var el = $(event.target);
var tmpid = ($(el).data('tmpid'));
$("form select[data-tmpid='"+tmpid+"']").toggle();
+ event.stopPropagation();
});
$('table.orarend thead tr th').on('click',function() { // tool kezeles mobilon
diff --git a/mayor-orig/www/skin/classic/module-session/css/accountInfo.css b/mayor-orig/www/skin/classic/module-session/css/accountInfo.css
index 9259e788..92b23fec 100644
--- a/mayor-orig/www/skin/classic/module-session/css/accountInfo.css
+++ b/mayor-orig/www/skin/classic/module-session/css/accountInfo.css
@@ -6,17 +6,21 @@
}
table.personalSettings thead th {
- background-color: rgb(60,20,100);
+ background-color: cornflowerblue;
padding: 5px 40px 5px 40px;
}
-
+ table.personalSettings.asAdamin thead th {
+ background-color: cornflowerblue;
+ }
table.personalSettings thead th.policy {
background-color: rgb(225,125,25);
}
table.personalSettings tfoot th {
- background-color: rgb(60,20,100);
+ background-color: cornflowerblue;
+ height:30px;
}
+ table.personalSettings.asAdmin tfoot th { background-color: #f60; }
table.personalSettings tbody td {
background-color: rgb(200,200,210);
@@ -98,3 +102,11 @@
div.wall h2 { font-size:smaller; margin:0px; padding:0px; text-align: right;}
div.wall img { border: none; top:5px; right:5px; float:right; }
+
+ table.attr { min-width: 320px; width: 100%; }
+ table.attr tr th { min-width: 100px; text-align:left; font-weight:normal; height:2em; padding:4px 8px; }
+ table.attr tr td { background-color: white; color: black; text-align: left; min-width: 150px; }
+
+
+ div.unknownAttr { background-color: orange; text-align: center; }
+
diff --git a/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml b/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml
index 35c992f0..cd1cafa9 100644
--- a/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml
+++ b/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml
@@ -25,6 +25,63 @@
formEnd();
}
+ function putEduroamForm($ADAT) {
+return false;
+ global $eduroamDOMAINS;
+ if (__TANAR===true) {
+ $eduroamAFFILIATION = 'faculty';
+ } elseif (__DIAK===true) {
+ $eduroamAFFILIATION = 'student';
+ } else {
+ $eduroamAFFILIATION = 'staff';
+ }
+ // info https://wiki.niif.hu/SulinetMassImport
+
+ formBegin();
+ if ($ADAT['eduroamAdat']['userAccount']!='') {
+ echo '<input type="hidden" name="action" value="modifyEduroamId" />';
+ } else {
+ echo '<input type="hidden" name="action" value="generateEduroamId" />';
+ $ADAT['eduroamAdat']['eduroamUID'] = _USERACCOUNT;
+ $ADAT['eduroamAdat']['eduroamPASSWORD'] = @exec('pwgen'); // --TODO
+ }
+ echo '<table align="center" class="personalSettings">';
+ echo '<thead>';
+ echo '<tr><th colspan="2">Eduroam</th></tr>';
+ echo '</thead>';
+
+ echo '<tr>';
+ echo '<th>Eduroam felhasználói név:</th>';
+ echo '<td>'.($ADAT['eduroamAdat']['eduroamUID']).'@';
+ if ($ADAT['eduroamDOMAIN']!='') {
+ echo $ADAT['eduroamDOMAIN'];
+ } else {
+ echo '<select name="eduroamDOMAIN">';
+ for ($i=0; $i<count($eduroamDOMAINS); $i++) {
+ $_domain = $eduroamDOMAINS[$i];
+ echo '<option value="'.$_domain.'">'.$_domain.'</option>';
+ }
+ echo '</select>';
+ }
+ echo '</td>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>Eduroam jelszó:</th>';
+ echo '<td>'.($ADAT['eduroamAdat']['eduroamPASSWORD']).'</td>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>Eduroam viszony:</th>';
+ echo '<td>'.($eduroamAFFILIATION).'</td>';
+ echo '</tr>';
+
+ echo '<tr><th colspan="2"><input type="submit" value="'._OK.'" /></th></tr>';
+ echo '</table>';
+ formEnd();
+
+ }
+
function putAttr($name, $values, $anAttrDef, $toPolicy = _POLICY) {
global $AUTH;
@@ -35,7 +92,8 @@
elseif ($anAttrDef['type'] == 'radio') putRadioAttr($name, $values, $anAttrDef);
elseif ($anAttrDef['type'] == 'timestamp') putTimestampAttr($name, $values, $anAttrDef);
elseif ($anAttrDef['type'] == 'image') putImageAttr($name, $userAccount, $anAttrDef);
- else echo 'Ismeretlen atribútum típus: '.$name.' ('.$anAttrDef[$name]['type'].')';
+ elseif ($anAttrDef['type'] != '') echo '<div class="unknownAttr">ismeretlen attribútum típus: '.$name.' ('.($anAttrDef[$name]['type']).')</div>';
+ else echo '<div class="unknownAttr">'.$name.': nem elérhető</div>';
}
@@ -55,7 +113,6 @@
echo '</tr>';
echo '</table>'."\n";
-
}
function putIntAttr($name, $values, $anAttrDef) {
@@ -191,7 +248,9 @@
echo '<input type="hidden" name="action" value="changeSettings" />';
echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
echo '<input type="hidden" name="userAccount" value="'.$userInfo['userAccount'][0].'" />';
- echo '<table class="personalSettings" align="center" cellspacing="1">';
+
+ if (_ACCESS_AS === _ADMIN_ACCESS) $_class = "asAdmin";
+ echo '<table class="personalSettings '.$_class.'" align="center" cellspacing="1">';
echo '<thead>';
if ($toPolicy != _POLICY) echo '<tr><th class="policy">'.$toPolicy.'</th></tr>'."\n";
echo '<tr><th>'.$userInfo['userCn'][0].'</th></tr>';