summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 921f0dc)
raw | patch | inline | side by side (parent: 921f0dc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Aug 2007 08:09:27 +0000 (08:09 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Aug 2007 08:09:27 +0000 (08:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6995 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc
index 76961f236de0fd39a3ed48fccd777cf2add92bc5..b74df1b2668cc4c8fcbc6564f591c83c7c447e7b 100755 (executable)
$field3 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:80px;border-right:0px;text-align:right;'");
$this->AddElement(array($field1,$field2,$field3));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_apps = count($list);
+ $str = $num_apps." ";
+ $num_apps != 1 ? $str.=_("Applications").", " : $str .= _("Application").", ";
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
}
function Save()
diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc
index 077e14df42faa0073080f0af3f013fae0c8dcfcb..ea209b428d5ebb6eb29af66e5eee8f4d93237597 100755 (executable)
$this->AddElement( array($field0,$field1,$field2));
}
- }
+ /* Create summary string for list footer */
+ $num_deps=count($list);
+ $str = $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
+
+ }
function Save()
{
MultiSelectWindow::Save();
index fb87be8539407fa16aba7efde2d730da5db476c4..78c3cf05c4265e41a64b448a2cd76fa403240e24 100644 (file)
Attach objects
********************/
+ $cnts = array();
+ foreach($objects as $key => $data){
+ $cnts[$key] = 0;
+ }
+
foreach($list as $key => $value){
$info = "";
$img = "";
$type = $value['type'];
$abort =false;
+ $cnts[$type] ++;
+
if(isset($objects[$type])){
$img = "<img class='center' src='".$objects[$type]['IMG']."' title='".$objects[$type]['NAME']."' alt='".$objects[$type]['KZL']."'>";
$info = $objects[$type]['NAME'];
$field4 = array("string" => preg_replace("/%KEY%/",$key,$acti) , "attach" => "style='width:80px;border-right:0px;text-align:right;'");
$this->AddElement(array($field1,$field2,$field3,$field4));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+
+ /* Profile */
+ $str = $cnts['FAIprofile']." ";
+ $cnts['FAIprofile'] != 1 ? $str.=_("Profiles").", " : $str .= _("Profile").", ";
+
+ /* Scripts */
+ $str.= $cnts['FAIpartitionTable']." ";
+ $cnts['FAIpartitionTable'] != 1 ? $str.=_("Partitions").", " : $str .= _("Partition").", ";
+
+ /* Scripts */
+ $str.= $cnts['FAIscript']." ";
+ $cnts['FAIscript'] != 1 ? $str.=_("Scripts").", " : $str .= _("Script").", ";
+
+ /* Hooks */
+ $str.= $cnts['FAIhook']." ";
+ $cnts['FAIhook'] != 1 ? $str.=_("Hooks").", " : $str .= _("Hook").", ";
+
+ /* Variables */
+ $str.= $cnts['FAIvariable']." ";
+ $cnts['FAIvariable'] != 1 ? $str.=_("Variables").", " : $str .= _("Variable").", ";
+
+ /* Templates */
+ $str.= $cnts['FAItemplate']." ";
+ $cnts['FAItemplate'] != 1 ? $str.=_("Templates").", " : $str .= _("Template").", ";
+
+ /* Packages */
+ $str.= $cnts['FAIpackageList']." ";
+ $cnts['FAIpackageList'] != 1 ? $str.=_("Package lists").", ": $str .= _("Package list").", ";
+
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
+
}
function Save()
diff --git a/plugins/admin/groups/class_divListGroup.inc b/plugins/admin/groups/class_divListGroup.inc
index 4bc375b4343836928cfc5cafabf4809aa736665d..a9a26948053aefe411515f8b246acc9074e520fc 100644 (file)
$this->AddElement(array($field1,$field2,$field3,$field4));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_groups = count($groups);
+ $str = $num_groups." ";
+ $num_groups != 1 ? $str.=_("Groups").", " : $str .= _("Group").", ";
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
}
function Save()
diff --git a/plugins/admin/mimetypes/class_divListMimeTypes.inc b/plugins/admin/mimetypes/class_divListMimeTypes.inc
index 8686f42015108731546c71238f03897a1a605032..949343ef5ded8ea89de348a393b7db2ef8919524 100755 (executable)
$field3 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:".$action_col_size."px;border-right:0px;text-align:right;'");
$this->AddElement(array($field1,$field2,$field3));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_objs = count($list);
+ $str = $num_objs." ";
+ $num_objs != 1 ? $str.=_("Mimetypes").", " : $str .= _("Mimetype").", ";
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
}
function Save()
diff --git a/plugins/admin/ogroups/class_divListOGroup.inc b/plugins/admin/ogroups/class_divListOGroup.inc
index da2021de3aceaf034b39333348a8d12e96939e81..d19804b91d4b9bd92724f31cf9c5619932b1dd51 100755 (executable)
$this->AddElement(array($field1,$field2,$field3,$field4));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_objs = count($list);
+ $str = $num_objs." ";
+ $num_objs != 1 ? $str.=_("Object groups").", " : $str .= _("Object group").", ";
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
}
function Save()
diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index 7e46fa959cb39dabf776a551ad0dab03797348cc..33be96ad13c0e4f3749c292ac567e156f6b13a23 100644 (file)
// User and Template Images
$editlink = "<a href='?plug=".$_GET['plug']."&id=%s&act=edit_entry'>%s</a>";
+ $cnts = array("component" => 0 , "terminal" => 0 , "workstation" => 0 ,
+ "printer" => 0 , "phone" => 0 , "server" => 0,
+ "NewDevice" => 0, "winstation"=> 0);
+
// Test Every Entry and generate divlist Array
foreach($terminals as $key => $val){
$action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."' name='user_del_%KEY%' title='"._("Delete system")."'>";
}
+ $type = $this->parent->get_system_type($val['objectClass']);
+ $cnts[$type] ++;
/* Generate picture list, which is currently disabled */
if(in_array("goCupsServer" ,$val['objectClass'])) $cups = $img1; else $cups =$empty;
}
$img = $this->parent->convert_list($val);
+
$field1 = array("string" => sprintf($img['img'],$val['dn']), "attach" => "style='text-align:center;width:20px;'");
$field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".preg_replace('/ /', ' ', @LDAP::fix($val['dn']))."'");
$field3 = array("string" => preg_replace("/%KEY%/", "$key", $action2.$action), "attach" => "style='width:70px;border-right:0px;text-align:right;'");
$this->AddElement( array($field1,$field2,$field3));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+
+ $str ="";
+
+ /* Servers */
+ $str.= $cnts['server']." ";
+ $cnts['server'] != 1 ? $str.=_("Servers").", " : $str .= _("Server").", ";
+
+ /* Workstations */
+ $str.= $cnts['workstation']." ";
+ $cnts['workstation'] != 1 ? $str.=_("Workstations").", ": $str .= _("Workstation").", ";
+
+ /* Terminals */
+ $str.= $cnts['terminal']." ";
+ $cnts['terminal'] != 1 ? $str.=_("Terminals").", " : $str .= _("Terminal").", ";
+
+ /* Phones */
+ $str.= $cnts['phone']." ";
+ $cnts['phone'] != 1 ? $str.=_("Phones").", " : $str .= _("Phone").", ";
+
+ /* Printer */
+ $str.= $cnts['printer']." ";
+ $cnts['printer'] != 1 ? $str.=_("Printers").", " : $str .= _("Printer").", ";
+
+ /* Components */
+ $str.= $cnts['component']." ";
+ $cnts['component'] != 1 ? $str.=_("Components").", " : $str .= _("Component").", ";
+
+ /* New devices */
+ $str.= $cnts['NewDevice']." ";
+ $cnts['NewDevice'] != 1 ? $str.=_("New devices").", " : $str .= _("New device").", ";
+
+ /* Windows workstations */
+ $str.= $cnts['winstation']." ";
+ $cnts['winstation'] != 1 ? $str.=_("Windows workstations").", " : $str .= _("Windows workstation").", ";
+
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
+
}
function Save()
diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc
index 245db51ed532930a6da0df679c141a9844e7df6f..0a250af9bf8170f91725fd2b4191b73544a98856 100644 (file)
}
/* Create summary string for list footer */
- $str = $num_users." ";
- if($num_users != 1){
- $str .= _("Users").", ";
- }else{
- $str .= _("User").", ";
- }
-
- $str.= $num_templates." ";
- if($num_templates != 1){
- $str .= _("Templates").", ";
- }else{
- $str .= _("Template").", ";
- }
-
$num_deps=0;
if(!$this->SubSearch){
$num_deps = count($this->Added_Departments);
}
-
+ $str = $num_users." ";
+ $num_users != 1 ? $str.=_("Users").", " : $str .= _("User").", ";
+ $str.= $num_templates." ";
+ $num_templates != 1 ? $str.=_("Templates").", " : $str .= _("Template").", ";
$str.= $num_deps." ";
- if($num_deps != 1){
- $str .= _("Departments");
- }else{
- $str .= _("Department");
- }
-
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
$this->set_List_Bottom_Info($str);
}
diff --git a/plugins/gofax/blocklists/class_divListBlocklists.inc b/plugins/gofax/blocklists/class_divListBlocklists.inc
index 870e3ceb1a9ad3fe653c795122f3c6f53842b3c0..431f2fbe83cbff738486108362ea7194ad5d0662 100755 (executable)
$field3 = array("string" => preg_replace("/%KEY%/", "$key", $action), "attach" => "style='width:60px;border-right:0px;text-align:right;'");
$this->AddElement( array($field1,$field2,$field3));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_lists = count($list);
+ $str = $num_lists." ";
+ $num_lists != 1 ? $str.=_("Blocklists").", " : $str .= _("Blocklist").", ";
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
}
function Save()
diff --git a/plugins/gofon/conference/class_divListConferences.inc b/plugins/gofon/conference/class_divListConferences.inc
index c5804e62ee759788ce659a93b9cef0090cd35d27..f7fa107ee2771202feb557b9182be80b9b5a0302 100755 (executable)
$this->AddElement(array($a_field1,$a_field2,$a_field3,$a_field4,$a_field5));
}
-
-
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_lists = count($list);
+ $str = $num_lists." ";
+ $num_lists != 1 ? $str.=_("Conferences").", " : $str .= _("Conference").", ";
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
}
function Save()
diff --git a/plugins/gofon/macro/class_divListMacros.inc b/plugins/gofon/macro/class_divListMacros.inc
index 19c29af473e13b4a5707433e9125ff69788a64f5..c2d50f6c47db72488cd15d022ddc76fb89acb279 100755 (executable)
$this->AddElement(array($field1,$field2,$field3,$field4));
}
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_lists = count($list);
+ $str = $num_lists." ";
+ $num_lists != 1 ? $str.=_("Macros").", " : $str .= _("Macro").", ";
+ $str.= $num_deps." ";
+ $num_deps != 1 ? $str.=_("Departments") : $str .= _("Department");
+ $this->set_List_Bottom_Info($str);
+
}
function Save()