dnExists($dn)) { system_message(array( 'title'=>_('Entry does not exist'), 'body'=>sprintf('%s (%s/%s)',_('The entry does not exist and will be ignored'),$dn), 'type'=>'error')); continue; } $request['page'][$counter] = new MassRender($app['server']->getIndex(),'none'); $request['page'][$counter]->setDN($dn); $request['page'][$counter]->accept(true); $template = $request['page'][$counter]->getTemplate(); # Mark our attributes to edit as shown. foreach ($template->getAttributes(true) as $attribute) { if ($attribute->isInternal()) continue; if (in_array_ignore_case($attribute->getName(),$request['attrs']) || in_array('*',$request['attrs'])) { $attribute->show(); # Get a list of our columns (we are not interested in these attribute values) if (! isset($attrcols[$attribute->getName()])) $attrcols[$attribute->getName()] = $attribute; } } $counter++; } usort($attrcols,'sortAttrs'); if (! count($request['page'])) header('Location: index.php'); # We'll render this forms Title with the first DN's object. $request['page'][0]->drawTitle(_('Bulk edit the following DNs')); $request['page'][0]->drawSubTitle(sprintf('%s: %s',_('Server'),$app['server']->getName())); echo '
'; ?>