summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6e5825)
raw | patch | inline | side by side (parent: b6e5825)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Aug 2005 12:45:45 +0000 (12:45 +0000) | ||
committer | hickert <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 | patch | blob | history | |
plugins/personal/environment/class_logonManagementDialog.inc | [new file with mode: 0644] | patch | blob |
plugins/personal/environment/logonManagement.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 9751bede44350996afa6ef6e3c5af90e66b4f9f5..c3bfcd8362c44d921cc11363e749f9e58741d4aa 100644 (file)
* 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.
*/
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
--- /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
--- /dev/null
@@ -0,0 +1 @@
+TESTESSTEST