if (is_dn_string($val) || $ldapserver->isDNAttr($attr)) { ?> <a title="<?php echo sprintf(_('Go to %s'), htmlspecialchars($val)); ?> " href="template_engine.php?server_id=<?php echo $ldapserver->server_id; ?> &dn=<?php echo rawurlencode($val); ?> "><img style="vertical-align: top" src="images/go.png" /></a> <?php } elseif (is_mail_string($val)) { ?> <a href="mailto:<?php echo htmlspecialchars($val); ?> "><img style="vertical-align: center" src="images/mail.png" /></a> <?php } elseif (is_url_string($val)) { ?> <a href="<?php echo htmlspecialchars($val); ?> " target="new"><img style="vertical-align: center" src="images/dc.png" /></a>
/** DRAW ICONS FOR ATTRIBUTES VALUES **/ protected function drawIconAttribute($attribute, $val) { if (DEBUGTMP) { printf('<font size=-2>%s</font><br />', __METHOD__); } if (is_dn_string($val) || $this->getServer()->isDNAttr($attribute->getName())) { $this->draw('DnValueIcon', $attribute, $val); } elseif (is_mail_string($val)) { $this->draw('MailValueIcon', $attribute, $val); } elseif (is_url_string($val)) { $this->draw('UrlValueIcon', $attribute, $val); } else { if ($icon = $attribute->getIcon()) { printf('<img src="%s" alt="Icon" style="float: right;" /> ', $icon); } } }