From e6988247360fa98b85915a38803d018dd353df00 Mon Sep 17 00:00:00 2001
From: M.Gergo
Date: Sun, 16 Dec 2018 16:35:17 +0100
Subject: Rev: 4412
---
.../classic/module-session/css/accountInfo.css | 18 +++++-
.../classic/module-session/html/accountInfo.phtml | 65 +++++++++++++++++++++-
2 files changed, 77 insertions(+), 6 deletions(-)
(limited to 'mayor-orig/www/skin/classic/module-session')
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 '';
+ } else {
+ echo '';
+ $ADAT['eduroamAdat']['eduroamUID'] = _USERACCOUNT;
+ $ADAT['eduroamAdat']['eduroamPASSWORD'] = @exec('pwgen'); // --TODO
+ }
+ echo '
';
+ 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 'ismeretlen attribútum típus: '.$name.' ('.($anAttrDef[$name]['type']).')
';
+ else echo ''.$name.': nem elérhető
';
}
@@ -55,7 +113,6 @@
echo '';
echo ''."\n";
-
}
function putIntAttr($name, $values, $anAttrDef) {
@@ -191,7 +248,9 @@
echo '';
echo '';
echo '';
- echo '';
+
+ if (_ACCESS_AS === _ADMIN_ACCESS) $_class = "asAdmin";
+ echo '';
echo '';
if ($toPolicy != _POLICY) echo ''.$toPolicy.' |
'."\n";
echo ''.$userInfo['userCn'][0].' |
';
--
cgit v1.2.3