index 3152261315bf622e870a439b4cde30fcc47ca6a5..c2c0207488580a2194fbda192ca38537f2ada145 100644 (file)
$result.= "</table></div>";
$smarty= get_smarty();
+ $smarty->assign("usePrototype", "true");
$smarty->assign("FILTER", $this->filter->render());
$smarty->assign("SIZELIMIT", print_sizelimit_warning());
$smarty->assign("LIST", $result);
foreach($actions as $action) {
// Skip the entry completely if there's no permission to execute it
if (!$this->hasActionPermission($action, $dn)) {
+ $result.= "<img src='images/empty.png' alt=' ' class='center' style='padding:1px'>";
continue;
}
+ // Skip entry if the pseudo filter does not fit
+ if (isset($action['filter']) && preg_match('/^[a-z0-9_]+=[a-z0-9_]+$/i', $action['filter'])) {
+ list($fa, $fv)= split('=', $action['filter']);
+ if (!isset($this->entries[$row][$fa]) && !$this->entries[$row][$fa][0] == $fv) {
+ $result.= "<img src='images/empty.png' alt=' ' class='center' style='padding:1px'>";
+ continue;
+ }
+ }
+
+
// If there's an objectclass definition and we don't have it
// add an empty picture here.
if (isset($action['objectclass'])){