diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 339d982c..bff7da4c 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -578,6 +578,8 @@ class htmlSelect extends htmlElement { private $hasDescriptiveElements = false; /** sorting enabled */ private $sortElements = true; + /** right to left text direction */ + private $rightToLeftTextDirection = false; /** * Constructor. @@ -616,7 +618,11 @@ class htmlSelect extends htmlElement { } $name = ' name="' . $this->name . '"'; $size = ' size="' . $this->size . '"'; - echo '\n"; + $class = ''; + if ($this->rightToLeftTextDirection) { + $class = ' class="rightToLeftText"'; + } + echo '\n"; $tabindex++; // sorting if ($this->sortElements) { @@ -684,6 +690,15 @@ class htmlSelect extends htmlElement { $this->sortElements = $sortElements; } + /** + * Specifies if the text direction should be set to right to left. + * + * @param boolean $rightToLeftTextDirection if true use right to left direction + */ + public function setRightToLeftTextDirection($rightToLeftTextDirection) { + $this->rightToLeftTextDirection = $rightToLeftTextDirection; + } + } /** diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index 590155ce..28defa76 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -652,7 +652,7 @@ class lamList { protected function listShowOUSelection() { if (sizeof($this->possibleSuffixes) > 1) { echo ("" . _("Suffix") . ": "); - echo ("type . " rightToLeftText\" size=1 name=\"suffix\" onchange=\"listOUchanged('" . $this->type . "', this)\">\n"); for ($i = 0; $i < sizeof($this->possibleSuffixes); $i++) { if ($this->suffix == $this->possibleSuffixes[$i]) { echo ("\n"); diff --git a/lam/lib/modules/asteriskExtension.inc b/lam/lib/modules/asteriskExtension.inc index 949dd808..b8094af5 100644 --- a/lam/lib/modules/asteriskExtension.inc +++ b/lam/lib/modules/asteriskExtension.inc @@ -303,6 +303,9 @@ class asteriskExtension extends baseModule { array('kind' => 'input', 'name' => 'form_subpage_' . get_class($this) . '_user_changeFilter' ,'type' => 'submit', 'value' => _('Refresh') ), ) ))); + + // !!! setRightToLeftText -> true for select + $return[] = array( array('kind' => 'fieldset', 'legend' => _("Extension owners"), 'value' => array( array( diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index abba8351..7020f710 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -959,6 +959,7 @@ class inetOrgPerson extends baseModule implements passwordService { } $managerElement = new htmlTableExtendedSelect('manager', $options, $optionsSelected, _('Manager'), 'manager'); $managerElement->setHasDescriptiveElements(true); + $managerElement->setRightToLeftTextDirection(true); $fieldContainer->addElement($managerElement, true); } // photo diff --git a/lam/style/500_layout.css b/lam/style/500_layout.css index 3321cef8..7419af42 100644 --- a/lam/style/500_layout.css +++ b/lam/style/500_layout.css @@ -95,6 +95,10 @@ tr.highlight { border-width: 1px 0px 1px 0px; } +.rightToLeftText { + text-align: right; +} + table.settingsTab { border-width:0px; border-style:solid; diff --git a/lam/templates/ou_edit.php b/lam/templates/ou_edit.php index 45656a72..cb2b26b2 100644 --- a/lam/templates/ou_edit.php +++ b/lam/templates/ou_edit.php @@ -164,7 +164,7 @@ function display_main($message, $error) { echo ("\n"); echo ("" . _("New organizational unit") . "\n"); echo (" \n"); - echo (""); echo $options; echo ("\n"); echo ("\n"); @@ -180,7 +180,7 @@ function display_main($message, $error) { echo ("\n"); echo ("" . _("Delete organizational unit") . "\n"); echo (" \n"); - echo (""); echo $options; echo ("\n"); echo (" \n"); diff --git a/lam/templates/profedit/profilepage.php b/lam/templates/profedit/profilepage.php index 2022bebb..abb09c7e 100644 --- a/lam/templates/profedit/profilepage.php +++ b/lam/templates/profedit/profilepage.php @@ -179,7 +179,7 @@ echo "\"logo"; - echo ""; for ($i = 0; $i < sizeof($suffixes); $i++) { if (isset($old_options['ldap_suffix']) && ($old_options['ldap_suffix'][0] == $suffixes[$i])) { echo "\n";