bgps_view.php File Reference

Go to the source code of this file.

Functions

 get_process ()
 print_mem_bar ($title, $max, $used, $cache=0, $width=320)
 (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com (c) 2007-2008 Mandriva, http://www.mandriva.com

Variables

 $arr = get_process()


Function Documentation

get_process (  ) 

Definition at line 57 of file bgps_view.php.

References xmlCall().

00057                        {
00058     return xmlCall("base.listProcess",null);
00059 }
00060 
00061 $arr = get_process();
00062 
00063 if (count($arr) == 0) { //if no job in background
00064     print '<div style="text-align: center;">'._("No job.").'</div>';
00065     return;
00066 }
00067 
00068 foreach ($arr as $ps) {
00069     echo $ps[0]."<br/>";
00070     echo $ps[2]."<br/>";
00071     if ($ps[1] != "-1") {
00072         print_mem_bar("progress",100,$ps[1]);
00073     }
00074 }

Here is the call graph for this function:

print_mem_bar ( title,
max,
used,
cache = 0,
width = 320 
)

(c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com (c) 2007-2008 Mandriva, http://www.mandriva.com

Id
bgps_view.php 1219 2008-03-03 15:13:24Z cedric

This file is part of Mandriva Management Console (MMC).

MMC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

MMC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with MMC; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 34 of file bgps_view.php.

References $title.

Referenced by print_disk_info(), and print_health().

00034                                                                       {
00035     $wused = ($used / $max) * $width;
00036 
00037     if ($title != "") {
00038         echo $title." :";
00039     }
00040     
00041     echo "<div class=\"membarfree\" style=\"width: ".$width."px\">";
00042     
00043     if ($cache > 0) {
00044         printf("<div class=\"membarcache\" style=\"width: %.0fpx\">", $wused);
00045         $wused = (($used - $cache) / $max) * $width;
00046     }
00047     
00048     printf("<div class=\"membarused\" style=\"width: %.0fpx\"></div>", $wused);
00049 
00050     if ($cache > 0) {
00051         echo "</div>";
00052     }
00053     
00054     echo "</div>\n";
00055 }


Variable Documentation

$arr = get_process()

Definition at line 61 of file bgps_view.php.

Referenced by ActionItem::buildUrlChunk(), changeMaildrop(), and insert_without_delete().


Generated on Tue May 4 11:47:35 2010 for MMC web interface by  doxygen 1.5.8