responsive layout

This commit is contained in:
Roland Gruber 2017-11-04 15:09:29 +01:00
parent 8d78f0d040
commit ed325fcab6
2 changed files with 6 additions and 2 deletions

View File

@ -160,6 +160,10 @@ function getSelfServiceProfiles() {
$types = LAM\TYPES\getTypes();
$dir = dir(substr(__FILE__, 0, strlen(__FILE__) - 20) . "/config/selfService");
$ret = array();
if ($dir === false) {
logNewMessage(LOG_ERR, 'Unable to read self service profiles');
return $ret;
}
while ($entry = $dir->read()){
$ext = substr($entry, strrpos($entry, '.') + 1);
$name = substr($entry, 0, strrpos($entry, '.'));

View File

@ -144,7 +144,7 @@ $tabindex = 1;
$box->add(new htmlLink(_("Manage server profiles"), 'profmanage.php'), 12, 12, 12, 'text-center');
$boxDiv = new htmlDiv(null, $box);
$boxDiv->setCSSClasses(array('ui-corner-all', 'roundedShadowBox', 'limitWidth'));
$boxDiv->setCSSClasses(array('ui-corner-all', 'roundedShadowBox', 'limitWidth', 'text-center'));
$row->add($boxDiv, 12);
// back link
@ -152,7 +152,7 @@ $tabindex = 1;
$backLink = new htmlLink(_("Back to login"), '../login.php', '../../graphics/undo.png');
$row->add($backLink, 12, 12, 12, 'text-left');
parseHtml(null, $row, array(), false, $tabindex, 'user');
parseHtml(null, new htmlDiv(null, $row, array('centeredTable')), array(), false, $tabindex, 'user');
?>
</form>