diff --git a/plugins/admin/systems/class_selectUserToPrinterDialog.inc b/plugins/admin/systems/class_selectUserToPrinterDialog.inc
index 25418c12fbe8244bbe1c5896e7b00a8d7d3768c7..6bde4054494bd7b64a31285b24328112480bd3e0 100644 (file)
switch($type){
case "AddUser" :
switch($type){
case "AddUser" :
- $this->searchObjects = "(objectClass=person)(objectClass=inetOrgPerson)";
+ $this->searchObjects = "(objectClass=person)(objectClass=inetOrgPerson)(!(uid=*$))";
$this->searchAttrs = array("cn","uid");
$this->searchAppend = "uid";
;break;
$this->searchAttrs = array("cn","uid");
$this->searchAppend = "uid";
;break;
$this->searchAppend = "cn";
;break;
case "AddAdminUser" :
$this->searchAppend = "cn";
;break;
case "AddAdminUser" :
- $this->searchObjects = "(objectClass=person)(objectClass=inetOrgPerson)";
+ $this->searchObjects = "(objectClass=person)(objectClass=inetOrgPerson)(!(uid=*$))";
$this->searchAttrs = array("cn","uid");
$this->searchAppend = "uid";
;break;
$this->searchAttrs = array("cn","uid");
$this->searchAppend = "uid";
;break;
{
/* Call parent execute */
plugin::execute();
{
/* Call parent execute */
plugin::execute();
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
$smarty->assign("search_image" , get_template_path('images/search.png'));
$smarty->assign("tree_image" , get_template_path('images/tree.png'));
$smarty->assign("infoimage" , get_template_path('images/info.png'));
$smarty->assign("search_image" , get_template_path('images/search.png'));
$smarty->assign("tree_image" , get_template_path('images/tree.png'));
$smarty->assign("infoimage" , get_template_path('images/info.png'));
- $smarty->assign("launchimage" , get_template_path('images/launch.png'));
+ $smarty->assign("launchimage" , get_template_path('images/small_filter.png'));
$smarty->assign("deplist" , $this->config->idepartments);
$display.= $smarty->fetch(get_template_path('selectUserToPrinterDialog.tpl', TRUE,dirname(__FILE__)));
$smarty->assign("deplist" , $this->config->idepartments);
$display.= $smarty->fetch(get_template_path('selectUserToPrinterDialog.tpl', TRUE,dirname(__FILE__)));