index 8139214dfb19efb0e0a962a14f7ed576f2568f2a..095bbfbd720b63935f8841f693f0c6026403df47 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);
}
// Skip entry if the pseudo filter does not fit
- if (isset($action['filter']) && preg_match('/^[a-z0-9_]+=[a-z0-9_]+$/i', $action['filter'])) {
+ 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 (preg_match('/^(.*)!$/', $fa, $m)){
+ $fa= $m[1];
+ 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;
+ }
+ } else {
+ 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;
+ }
}
}
// Load shortcut
$actions= &$this->xmlData['actionmenu']['action'];
$result= "<input type='hidden' name='act' id='actionmenu' value=''><div style='display:none'><input type='submit' name='exec_act' id='exec_act' value=''></div>".
- "<ul class='level1' id='root'><li><a href='#'>Aktionen <img ".
+ "<ul class='level1' id='root'><li><a href='#'>"._("Actions")." <img ".
"border=0 class='center' src='images/lists/sort-down.png'></a>";
// Build ul/li list
function recurseActions($actions)
{
+ global $class_mapping;
static $level= 2;
$result= "<ul class='level$level'>";
$separator= "";
continue;
}
+ // Skip entry if there're missing dependencies
+ if (isset($action['depends'])) {
+ $deps= is_array($action['depends'])?$action['depends']:array($action['depends']);
+ foreach($deps as $clazz) {
+ if (!isset($class_mapping[$clazz])){
+ continue 2;
+ }
+ }
+ }
+
// Fill image if set
$img= "";
if (isset($action['image'])){