diff --git a/gosa-plugins/goto/personal/environment/class_selectPrinterDialog.inc b/gosa-plugins/goto/personal/environment/class_selectPrinterDialog.inc
index b1ebc49602c8e82bfab3c3041e95d12a5dc7fb95..b2a9b22c783ed13d48707612aed3c262ac0422d6 100644 (file)
class selectPrinterDialog extends plugin
{
- /* CLI vars */
- var $cli_summary = "Manage server basic objects";
- var $cli_description = "Some longer text\nfor help";
- var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
/* attribute list for save action */
var $ignore_account = TRUE;
var $attributes = array();
$this->regex=preg_replace("/\*\*/","*",$this->regex);
}
+ $printer_list = $this->getPrinter();
+
$smarty->assign("regexPrinter" ,$this->regex);
$smarty->assign("deplistPrinter" ,$this->deplist);
$smarty->assign("depselectPrinter",$this->depselect);
- $smarty->assign("gotoPrinters",$this->getPrinter());
- $smarty->assign("gotoPrinterKeys",array_flip($this->getPrinter()));
+ $smarty->assign("gotoPrinters",$printer_list);
+ $smarty->assign("gotoPrinterKeys",array_flip($printer_list));
$smarty->assign("apply", apply_filter());
$smarty->assign("alphabet", generate_alphabet());
$smarty->assign("subtrees", $this->subtreesearch?"checked":"");
- $smarty->assign("search_image", get_template_path('images/search.png'));
- $smarty->assign("tree_image", get_template_path('images/tree.png'));
+ $smarty->assign("search_image", get_template_path('images/lists/search.png'));
+ $smarty->assign("tree_image", get_template_path('images/lists/search-subtree.png'));
$smarty->assign("infoimage", get_template_path('images/info.png'));
- $smarty->assign("launchimage", get_template_path('images/small_filter.png'));
+ $smarty->assign("launchimage", get_template_path('images/lists/action.png'));
$smarty->assign("deplist", $this->config->idepartments);
$display.= $smarty->fetch(get_template_path('selectPrinterDialog.tpl', TRUE,dirname(__FILE__)));
$message= plugin::check();
if(empty($_POST['gotoPrinter'])){
- $message[] = _("Please select a printer or press cancel.");
+ $message[] = _("Please select a printer!");
}
return $message;
}
$res = get_list($filter,$module,$base,$attrs, GL_SIZELIMIT | GL_SUBSEARCH);
} else {
$base= get_ou('printerou').$base;
- $res = get_list($filter,$module,$base,$attrs, GL_SIZELIMIT);
+ $res = get_list($filter,$module,$base,$attrs, GL_SIZELIMIT );
}
foreach($res as $printer) {