From: hickert Date: Thu, 25 Aug 2005 12:45:45 +0000 (+0000) Subject: Logon management added X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3dc266bc44504a323033bb962c6077453e5a3e65;p=gosa.git Logon management added git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1219 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 9751bede4..c3bfcd836 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -250,7 +250,8 @@ class environment extends plugin * In this case we create a new Logon Script. */ if(isset($_POST['gotoLogonScriptNew'])){ - print "Adding ".$is_entry; + $this->is_dialog = true; + $this->dialog = new logonManagementDialog($this->config,$this->dn); } /* If we receive a Delete request and there is a Script selected in the selectbox, delete this one. @@ -266,7 +267,8 @@ class environment extends plugin */ if((isset($_POST['gotoLogonScriptEdit']))&&(isset($_POST['gotoLogonScript']))){ $is_entry = $this->gotoLogonScripts[$_POST['gotoLogonScript']]; - print "Editing ".$is_entry; + $this->is_dialog = true; + $this->dialog = new logonManagementDialog($this->config,$this->dn,$is_entry); } } diff --git a/plugins/personal/environment/class_logonManagementDialog.inc b/plugins/personal/environment/class_logonManagementDialog.inc new file mode 100644 index 000000000..819cee44a --- /dev/null +++ b/plugins/personal/environment/class_logonManagementDialog.inc @@ -0,0 +1,34 @@ + "Eins ist toll", "zwei" => "Zwei ist noch besser"); + + /* attribute list for save action */ + var $ignore_account = TRUE; + var $attributes = array(); + var $objectclasses = array("whatever"); + var $use_existing = false; + + var $baseDir = "../kioskProfiles/"; + var $filePrefix = ".kioskProfile"; + + function logonManagementDialog ($config, $dn= NULL,$use_existing=false ) + { + $this->use_existing = $use_existing; + plugin::plugin ($config, $dn); + } + + function execute() + { + $smarty= get_smarty(); + $display= ""; + $display.= $smarty->fetch(get_template_path('logonManagement.tpl', TRUE,dirname(__FILE__))); + return($display); + } + +} +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> diff --git a/plugins/personal/environment/logonManagement.tpl b/plugins/personal/environment/logonManagement.tpl new file mode 100644 index 000000000..2f204b947 --- /dev/null +++ b/plugins/personal/environment/logonManagement.tpl @@ -0,0 +1 @@ +TESTESSTEST