diff --git a/plugins/gofon/macro/class_gofonMacroManagement.inc b/plugins/gofon/macro/class_gofonMacroManagement.inc
index 40f65bfc379e8935063a6a7604f0e99bc1f5fd66..233529168be988d9f6e3a1bec6c4484a632efd71 100755 (executable)
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Save data */
$macrofilter= get_global("macrofilter");
foreach( array("depselect", "regex") as $type){
$divlist->SetSummary(_("This table displays all phone macros, in the selected tree."));
- $divlist->SetEntriesPerPage(20);
+ $divlist->SetEntriesPerPage(0);
// Defining Links
$linkopen = "<a href='?plug=".$_GET['plug']."&act=dep_open&dep_id=%s'>%s</a>";
}
}
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='text-align:center;width:20px;'");
$field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
$field3 = array("string" => " ");
- $field4 = array("string" => " ", "attach" => "style='border:none'");
+ $field4 = array("string" => " ", "attach"=>"style='border:none;text-align:right;width:48px;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
$pic1 = $invisible;
}
- $field1 = array("string" => sprintf($macroimg,$val['dn']),"attach"=>"style='width:20px;align:middle;'");
+ $field1 = array("string" => sprintf($macroimg,$val['dn']),"attach"=>"style='width:20px;text-align:center;'");
$field2 = array("string" => sprintf($editlink,$key,$display),"attach"=>"title='".$val['dn']."'");
$field3 = array("string" => $pic1, "attach" => "style='width:20px;text-align:right;'");
- $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action),"attach" => "style='border:none;text-align:right;width:48px'");
+ $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action),"attach" => "style='border:none;text-align:right;width:48px;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
}
/* Generate macro list */
- $res= get_list($this->ui->subtreeACL, "(&(cn=$regex)(objectClass=goFonMacro))", FALSE, "ou=macros,ou=asterisk,ou=config,".$base, array("*"), TRUE);
+ $res= get_list($this->ui->subtreeACL, "(&(cn=$regex)(objectClass=goFonMacro))", FALSE, "ou=macros,ou=asterisk,ou=configs,ou=systems,".$base, array("*"), TRUE);
$this->macros= $res;
/* NEW LIST MANAGMENT