';
$sattr = $app['server']->getSchemaAttribute($key);
if ($sattr && $_SESSION[APPCONFIG]->isCommandAvailable('script','schema') && $_SESSION[APPCONFIG]->getValue('appearance','show_schema_link')) {
$href = sprintf('cmd.php?cmd=schema&server_id=%s&view=attributes&viewvalue=%s',$app['server']->getIndex(),$sattr->getName());
printf('%s',
$href,_('Click to view the schema definition for attribute type'),$sattr->getName(false),$sattr->getName(false));
} else
{
echo $key;
}
echo ' |
';
echo ' | ';
echo '';
if (is_array($values))
{
foreach ($values as $value)
{
$oidtext = '';
print '';
if (preg_match('/^[0-9]+\.[0-9]+/', $value))
{
printf(' | ',
IMGDIR,$value,htmlspecialchars($value));
if ($oidtext = support_oid_to_text($value))
{
if (isset($oidtext['ref']))
{
printf('%s | ',$oidtext['ref'],$oidtext['title']); } else
{
printf('%s | ', $oidtext['title']);
}
} else
if (strlen($value) > 0)
{
printf('%s | ', $value);
}
} else
{
printf('%s | ',$value);
}
print ' ';
if (isset($oidtext['desc']) && trim($oidtext['desc']))
{
printf('%s | ', $oidtext['desc']);
} else
{
echo ' | ';
}
if ($oidtext)
{
echo ' | '; }
}
}
else
{
printf('%s | ', $values);
}
echo ' ';
echo ' |
';
}
echo '