diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index b887a272b95b4c05e64079f06b2750d80ed3e0d6..9185810d38a65fcafb6770e4e95d4660bed26c5e 100644 (file)
$this->gotoLdapServerList[]= $server;
}
if(isset($this->attrs['gotoLdapServer'])){
- for($i = 0 ; $i < $this->attrs['gotoLdapServer']['count'];$i++){
- $this->gotoLdapServers[] = $this->attrs['gotoLdapServer'][$i];
+ unset($this->attrs['gotoLdapServer']['count']);
+ sort($this->attrs['gotoLdapServer']);
+ foreach($this->attrs['gotoLdapServer'] as $value){
+ $this->gotoLdapServers[] = preg_replace("/^[0-9]*:/","",$value);
}
}
if(!count($this->gotoLdapServers)){
"<input class='center' type='image' src='images/sort_up.png' name='sort_ldap_up_".$key."'> ".
"<input class='center' type='image' src='images/sort_down.png' name='sort_ldap_down_".$key."'> ".
"<input class='center' type='image' src='images/edittrash.png' name='gotoLdapRemove_".$key."'>",
- "attach" => "style='border-right:0px;'")));
+ "attach" => "style='text-align:right;width:40px;border-right:0px;'")));
}
if($this->gotoLdap_inherit){
/* Prepare list of ldap servers */
$this->attrs['gotoLdapServer'] = array();
if(!$this->gotoLdap_inherit){
+ $i = 0;
foreach($this->gotoLdapServers as $server){
- $this->attrs['gotoLdapServer'][] = $server;
+ $i ++;
+ $this->attrs['gotoLdapServer'][] = $i.":".$server;
}
}