summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a52daf)
raw | patch | inline | side by side (parent: 7a52daf)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jul 2007 13:10:12 +0000 (13:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jul 2007 13:10:12 +0000 (13:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6835 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationService.inc | patch | blob | history | |
plugins/admin/systems/workstationService.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc
index 54af9393d7f4567a411d4a39d24d587c35b5c3a4..84c3b42c7df79addf3f6d9ec5df98515da27660d 100644 (file)
var $XKbLayouts =array();
var $XKbVariants =array();
+ var $member_of_ogroup = FALSE;
+
function workservice ($config, $dn= NULL, $parent= NULL)
{
plugin::plugin ($config, $dn, $parent);
+
+ $ldap = $this->config->get_ldap_link();
+ $ldap->cd ($this->config->current['BASE']);
+ $ldap->search("(&(objectClass=gosaGroupOfNames)(member=".$this->dn."))",array("cn"));
+ $this->member_of_ogroup = $ldap->count() >= 1;
+
$this->XResolutions= array(
"640x480" => "640x480",
"800x600" => "800x600",
$smarty->assign("hiddenState","");
}
+ $smarty->assign("member_of_ogroup",$this->member_of_ogroup);
+
/* Show main page */
return($smarty->fetch (get_template_path('workstationService.tpl',TRUE,dirname(__FILE__))));
}
{
plugin::save_object();
+ if(isset($_POST["inheritAll"])){
+ $this->set_everything_to_inherited();
+ }
+
if(isset($_POST['gotoXDriver']) && chkacl($this->acl,"AutoSync") == ""){
if(isset($_POST['AutoSync'])){
$this->AutoSync = true;
$this->handle_post_events("modify");
}
+
+ function set_everything_to_inherited()
+ {
+ $this->gotoXKbLayout = "default";
+ $this->gotoXKbModel = "default";
+ $this->gotoXKbVariant = "default";
+
+ $this->gotoXDriver ="default";
+ $this->gotoXResolution ="default";
+ $this->gotoXColordepth ="default";
+ $this->gotoXMouseType ="default";
+ $this->gotoXMouseport ="default";
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
diff --git a/plugins/admin/systems/workstationService.tpl b/plugins/admin/systems/workstationService.tpl
index 3cc0357c35fcdbc221d1a772b5a583c9a5939694..fe10a2efe7efabe8318a98035fa005d007088000 100644 (file)
+{if $member_of_ogroup}
+<input type='submit' name='inheritAll' value='{t}Inherit all{/t}'>
+{/if}
<table style="width:100%;" summary="">
<tr>
<td style="width:33%; vertical-align:top;">