From: hickert Date: Mon, 25 Jan 2010 12:45:20 +0000 (+0000) Subject: Removed unused class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=877e6dca1b0d24d3bae67243e73295b39704273a;p=gosa.git Removed unused class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15278 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_divListSystemService.inc b/gosa-plugins/systems/admin/systems/class_divListSystemService.inc deleted file mode 100644 index 140e728e0..000000000 --- a/gosa-plugins/systems/admin/systems/class_divListSystemService.inc +++ /dev/null @@ -1,171 +0,0 @@ -AddCheckBox */ - var $parent ; - var $ui ; - - function divListSystemService ($config,$parent) - { - MultiSelectWindow::MultiSelectWindow($config,"SystemService", "server"); - - $this->parent = $parent; - $this->ui = get_userinfo(); - $this->EnableJSLeaveMsg(TRUE); - - /* Set list strings */ - $this->SetTitle(_("Installed services")); - $this->SetSummary(_("Installed services")); - - /* Result page will look like a headpage */ - $this->SetInformation(_("Add, remove and configure the properties of system services here.")); - - /* Disable buttonsm */ - $this->EnableCloseButton(false); - $this->EnableSaveButton (false); - - /* set Page header */ - $this->AddHeader(array("string"=>" ","attach"=>"style='width:20px;'")); - $this->AddHeader(array("string"=>_("Name"))); - $this->AddHeader(array("string"=>_("Actions"),"attach"=>"style='width:100px;border-right:0px;'")); - $this->HideFilterPart(); - } - - function GenHeader() - { - /* Prepare departments, - which are shown in the listbox on top of the listbox - */ - $listhead = "
". - "  ". - "  ". - "  ". - "  ". - "  ". - "
"; - $this->SetListHeader($listhead); - } - - function execute() - { - $this->ClearElementsList(); - $this->GenHeader(); - } - - function setEntries($list) - { - $tmp = array(); - foreach($list as $name => $entry){ - $tmp[$name] = $entry['Message']; - } - - natcasesort($tmp); - $tmp2 = array(); - foreach($tmp as $name => $value){ - $tmp2[$name] = $list[$name]; - } - - $ui = get_userinfo(); - - foreach($tmp2 as $name => $entry){ - - switch($entry['Status']){ - case '' : $str =" ";break; - case SERVICE_STOPPED : $str =""; break; - case SERVICE_STARTED : $str =""; break; - case SERVICE_RESTARTED : $str ="R"; break; - default: $str= "".$entry["; - } - - $WasAccount = $this->parent->plugins[$name] -> initially_was_account; - - $plug = $_GET['plug']; - - if($entry['AllowEdit']){ - $link = "".$entry['Message'].""; - }else{ - $link = $entry['Message']; - } - - $field1 = array("string" => $str ,"attach" => "style='width:20px;'"); - $field2 = array("string" => $link); - - $actions =""; - if($entry['AllowStart'] && $WasAccount){ - $actions .= " "; - }else{ - $actions .= " "; - } - if($entry['AllowStop'] && $WasAccount){ - $actions .= " "; - }else{ - $actions .= " "; - } - if($entry['AllowRestart'] && $WasAccount){ - $actions .= " "; - }else{ - $actions .= " "; - } - - /* Check if edit is enabled and allowed for current service */ - if($entry['AllowEdit']){ - $actions .= " "; - }else{ - $actions .= " "; - } - - /* Check if remove is enabled and allowed for current service */ - if($entry['AllowRemove']){ - $actions .= " "; - }else{ - $actions .= " "; - } - - $field3 = array("string" => $actions ,"attach" => "style='width:100px;border-right:0px;'"); - $this->AddElement(array($field1,$field2,$field3)); - } - } - - function Save() - { - MultiSelectWindow :: Save(); - } - - function save_object() - { - /* Save automatic created POSTs like regex, checkboxes */ - MultiSelectWindow :: save_object(); - } -} -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -?>