Code

Logon management added
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Aug 2005 12:45:45 +0000 (12:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Aug 2005 12:45:45 +0000 (12:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1219 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc
plugins/personal/environment/class_logonManagementDialog.inc [new file with mode: 0644]
plugins/personal/environment/logonManagement.tpl [new file with mode: 0644]

index 9751bede44350996afa6ef6e3c5af90e66b4f9f5..c3bfcd8362c44d921cc11363e749f9e58741d4aa 100644 (file)
@@ -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 (file)
index 0000000..819cee4
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+class logonManagementDialog 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();
+  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 (file)
index 0000000..2f204b9
--- /dev/null
@@ -0,0 +1 @@
+TESTESSTEST