summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50aca17)
raw | patch | inline | side by side (parent: 50aca17)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Aug 2005 12:31:12 +0000 (12:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Aug 2005 12:31:12 +0000 (12:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1265 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index a9a2bdbebc6735f9e49cd822e6e77d9317608f32..211cec67fd5b8e602d20e2d1d09d497023dc7a20 100644 (file)
class printgeneric extends plugin
{
/* CLI vars */
- var $cli_summary= "Manage terminal base objects";
- var $cli_description= "Some longer text\nfor help";
- var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+ var $cli_summary = "Manage terminal base objects";
+ var $cli_description = "Some longer text\nfor help";
+ var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
/* Generic terminal attributes */
- var $interfaces= array();
- var $ignore_account= FALSE;
+ var $interfaces = array();
+ var $ignore_account = FALSE;
/* Needed values and lists */
var $base = "";
var $AdminMember ="";
var $AdminMembers =array();
var $AdminMemberKeys =array();
-
- var $member =array();
+ var $member =array();
var $strings = "";
-
var $type = "";
var $dialog =NULL;
/* In case of gotoWorkstation this tab is calles from workstation plugin
+ * in case of gotoTerminal it is called from a terminal tab
+ * else it is a standalone printer
*/
if((in_array("gotoWorkstation",$this->attrs['objectClass']))){
$this->is_terminal = "true";
$this->orig_dn= $this->dn;
}
+ /* If it is no standalone printer
+ */
if($this->is_terminal){
// Reload plugin with new dn... (ou=printers instead of ou=terminals)
plugin::plugin ($this->config, $this->dn);
$userlist = array_merge($list['AddUser'],$list['AddGroup']);
$adminlist = array_merge($list['AddAdminUser'],$list['AddAdminGroup']);
+ asort($userlist);
+ asort($adminlist);
+
$smarty->assign("UserMember" ,$this->UserMember);
$smarty->assign("UserMembers" ,$userlist);
$smarty->assign("UserMemberKeys",array_flip($userlist));
$smarty->assign("AdminMemberKeys",array_flip($adminlist));
$smarty->assign("netconfig", dirname(__FILE__)."/network.tpl");
-
return($display.$smarty->fetch (get_template_path('printer.tpl', TRUE)));
}