本文整理匯總了PHP中print_percentage_bar函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_percentage_bar函數的具體用法?PHP print_percentage_bar怎麽用?PHP print_percentage_bar使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了print_percentage_bar函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showPercent
function showPercent($per)
{
$background = get_percentage_colours($per);
$right_background = $background['right'];
$left_background = $background['left'];
$res = print_percentage_bar(350, 20, $per, NULL, "ffffff", $left_background, $per . "%", "ffffff", $right_background);
return $res;
}
示例2: showPercent
function showPercent($per)
{
$background = get_percentage_colours($per);
$right_background = $background['right'];
$left_background = $background['left'];
$res = print_percentage_bar(350, 20, $per, null, 'ffffff', $left_background, $per . '%', 'ffffff', $right_background);
return $res;
}
示例3: unset
$graph_array['legend'] = 'no';
$link_array = $graph_array;
$link_array['page'] = 'graphs';
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link = generate_url($link_array);
$text_descr = $entity['entPhysicalName'] . ' - Fabric ' . $subindex;
$overlib_content = generate_overlib_content($graph_array, $device['hostname'] . ' - ' . $text_descr);
$graph_array['width'] = 80;
$graph_array['height'] = 20;
$graph_array['bg'] = 'ffffff00';
// the 00 at the end makes the area transparent.
$minigraph = generate_lazy_graph_tag($graph_array);
echo '<tr>
<td></td>
<td><strong>Fabric ' . $subindex . "</strong></td>\n <td><span style='font-weight: bold;' class=" . $fabric['mode_class'] . '>' . $fabric['cc6kxbarModuleChannelFabStatus'] . '</span></td>
<td>' . formatRates($fabric['cc6kxbarModuleChannelSpeed'] * 1000000) . '</td>
<td>' . overlib_link($link, $minigraph, $overlib_content) . '</td>
<td>' . print_percentage_bar(125, 20, $percent_in, 'Ingress', 'ffffff', $background['left'], $percent_in . '%', 'ffffff', $background['right']) . '</td>
<td>' . print_percentage_bar(125, 20, $percent_out, 'Egress', 'ffffff', $background['left'], $percent_out . '%', 'ffffff', $background['right']) . '</td>
</tr>';
}
//end if
}
//end foreach
}
//end foreach
echo ' </table>';
echo ' </div>';
echo ' </div>';
echo ' </div>';
echo '</div>';
示例4: generate_printersupplies_row
function generate_printersupplies_row($supply, $vars)
{
$graph_type = "printersupply_usage";
$table_cols = 5;
$total = $supply['supply_capacity'];
$perc = $supply['supply_value'];
$graph_array['type'] = $graph_type;
$graph_array['id'] = $supply['supply_id'];
$graph_array['from'] = $GLOBALS['config']['time']['day'];
$graph_array['to'] = $GLOBALS['config']['time']['now'];
$graph_array['height'] = "20";
$graph_array['width'] = "80";
if ($supply['supply_colour'] != '') {
$background = toner_to_colour($supply['supply_colour'], $perc);
} else {
$background = toner_to_colour($supply['supply_descr'], $perc);
}
/// FIXME - popup for printersupply entity.
$output .= '<tr class="' . $supply['html_row_class'] . '">';
$output .= '<td class="state-marker"></td>';
if ($vars['popup'] == TRUE) {
$output .= '<td style="width: 40px; text-align: center;"><i class="' . $GLOBALS['config']['entities']['printersupply']['icon'] . '"></i></td>';
} else {
$output .= '<td style="width: 1px;"></td>';
}
if ($vars['page'] != "device" && $vars['popup'] != TRUE) {
$output .= '<td class="entity">' . generate_device_link($supply) . '</td>';
$table_cols++;
}
$output .= '<td class="entity">' . generate_entity_link('printersupply', $supply) . '</td>';
if (!isset($vars['supply'])) {
$output .= '<td>' . nicecase($supply['supply_type']) . '</td>';
}
$output .= '<td style="width: 70px;">' . generate_graph_popup($graph_array) . '</td>';
$output .= '<td style="width: 200px;"><a href="' . $link . '">' . print_percentage_bar(400, 20, $perc, $perc . '%', 'ffffff', $background['right'], NULL, "ffffff", $background['left']) . '</a></td>';
$output .= '<td style="width: 50px; text-align: right;"><span class="label">' . $perc . '%</span></td>';
$output .= '</tr>';
if ($vars['view'] == "graphs") {
$output .= '<tr class="' . $supply['html_row_class'] . '">';
$output .= '<td class="state-marker"></td>';
$output .= '<td colspan=' . $table_cols . '>';
unset($graph_array['height'], $graph_array['width'], $graph_array['legend']);
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $supply['supply_id'];
$graph_array['type'] = $graph_type;
$output .= generate_graph_row($graph_array, TRUE);
$output .= "</td></tr>";
}
# endif graphs
return $output;
}
示例5: unset
$graph_array['legend'] = "no";
$link_array = $graph_array;
$link_array['page'] = "graphs";
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link = generate_url($link_array);
$overlib_content = generate_overlib_content($graph_array, $device['hostname'] . " - " . $text_descr);
$graph_array['width'] = 80;
$graph_array['height'] = 20;
$graph_array['bg'] = 'ffffff00';
# the 00 at the end makes the area transparent.
// $graph_array['style'][] = 'margin-top: -6px';
$minigraph = generate_graph_tag($graph_array);
echo '<tr class="device-overview">
<td style="max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><strong>' . overlib_link($link, $text_descr, $overlib_content) . '</strong></td>
<td style="width: 90px">' . overlib_link($link, $minigraph, $overlib_content) . '</td>
<td style="width: 200px">' . overlib_link($link, print_percentage_bar(200, 20, $percent, $used . "/" . $total . " (" . $percent . "%)", "ffffff", $background['left'], $free . " (" . (100 - $percent) . "%)", "ffffff", $background['right']), $overlib_content) . '</td>
</tr>';
/**
<tr class="small">
<td colspan=3>
<span class="pull-right">
<?php echo("<strong>Used</strong> <strong style='color:#".$background['left'].";'>$used ($percent%)</strong> / <strong>Free</strong> <strong style='color:#".$background['right'].";'>$free (".(100 - $percent) . "%)</strong> / <strong>Total</strong> <strong>$total</strong>"); ?>
</span>
</td>
</tr>
*/
}
echo "</table>";
echo "</div></div>";
}
// EOF
示例6: toner2colour
//$total = formatStorage($toner['toner_size']);
//$free = formatStorage($toner['toner_free']);
//$used = formatStorage($toner['toner_used']);
$background = toner2colour($toner['toner_descr'], $percent);
$graph_array = array();
$graph_array['height'] = "100";
$graph_array['width'] = "210";
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $toner['toner_id'];
$graph_array['type'] = $graph_type;
$graph_array['from'] = $config['time']['day'];
$graph_array['legend'] = "no";
$link_array = $graph_array;
$link_array['page'] = "graphs";
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link = generate_url($link_array);
$overlib_content = generate_overlib_content($graph_array, $device['hostname'] . " - " . $toner['toner_descr']);
$graph_array['width'] = 80;
$graph_array['height'] = 20;
$graph_array['bg'] = 'ffffff00';
# the 00 at the end makes the area transparent.
$graph_array['style'][] = 'margin-top: -6px';
$minigraph = generate_graph_tag($graph_array);
$percent_text = $percent < 0 ? "Unknown" : $percent . "%";
echo "<tr class=device-overview>\n <td class=strong>" . overlib_link($link, $toner['toner_descr'], $overlib_content) . "</td>\n <td style='width: 90px;'>" . overlib_link($link, $minigraph, $overlib_content) . "</td>\n <td style='width: 200px;'>" . overlib_link($link, print_percentage_bar(200, 20, $percent, NULL, "ffffff", $background['left'], $percent_text, "ffffff", $background['right']), $overlib_content) . "</td>\n </tr>";
}
echo "</table>";
echo "</div></div>";
}
unset($toner_rows);
// EOF
示例7: generate_url
case $percent >= 90:
$perc['BG'] = "danger";
break;
case $percent >= 75:
$perc['BG'] = "warning";
break;
case $percent >= 50:
$perc['BG'] = "success";
break;
default:
$perc['BG'] = "info";
}
$perc['width'] = $percent <= "100" ? $percent : "100";
$url = generate_url($vars, array('detail' => $history['bill_hist_id']));
$background = get_percentage_colours($percent);
echo "\n <tr>\n <td><i class=\"icon-calendar\"></i> <strong>" . strftime("%F", strtotime($datefrom)) . " to " . strftime("%F", strtotime($dateto)) . "</strong></td>\n <td><span class=\"label label-" . $label . "\">{$type}</span></td>\n <td><span class=\"badge badge-success\">{$allowed}</span></td>\n <td><span class=\"badge\">{$in}</span></td>\n <td><span class=\"badge\">{$out}</span></td>\n <td>{$total_data}</td>\n <td>{$rate_95th}</td>\n <td style=\"text-align: center;\">{$overuse}</td>\n <td width=\"225\">\n " . print_percentage_bar(400, 20, $percent, $percent . '%', "ffffff", $background['left'], 100 - $percent . "%", "ffffff", $background['right']) . "\n </td>\n <td>\n <div class=\"btn-toolbar\" style=\"margin: 0px auto 0px auto;\">\n <div class=\"btn-group\">\n <a class=\"btn btn-mini\" href=\"" . $url . "\"><img src=\"images/16/chart_curve.png\" alt=\"Show details\" title=\"Show details\" rel=\"tooltip\"/></a>";
// Don't show things people can't use!
//<a class=\"btn btn-mini\" disabled=\"disabled\" href=\"javascript:;\"><img src=\"images/16/page_white_acrobat.png\" alt=\"PDF Report\" title=\"PDF Report\" rel=\"tooltip\"/></a>
//<a href=\"pdf.php?type=billing&report=history&bill_id=".$bill_id."&history_id=".$history['bill_hist_id']."\"><img src=\"images/16/page_white_acrobat.png\" border=\"0\" align=\"absmiddle\" alt=\"PDF Report\" title=\"PDF Report\"/></a>
echo "\n </div>\n </div>\n </td>\n </tr>";
if ($vars['detail'] == $history['bill_hist_id'] || $vars['detail'] == "all") {
$img['bitrate'] = showDetails($bill_id, "bitrate", strtotime($datefrom), strtotime($dateto), $type);
$img['bw_day'] = showDetails($bill_id, "day", strtotime($datefrom), strtotime($dateto));
$img['bw_hour'] = showDetails($bill_id, "hour", strtotime($datefrom), strtotime($dateto));
echo "\n <tr>\n <td colspan=\"10\" style=\"text-align: center; background-color: #ffffff;\">\n <!-- <b>Accuate Graph</b><br /> //-->\n " . $img['bitrate'] . "<br />\n <!-- <b>Bandwidth Graph per day</b><br /> //-->\n " . $img['bw_day'] . "<br />\n <!-- <b>Bandwidth Graph per hour</b><br /> //-->\n " . $img['bw_hour'] . "\n </td>\n </tr>";
}
}
// PERMITTED
}
echo " </tobdy>";
echo " </table>";
示例8: round
$rate_95th = round($rate_95th, 2);
$percent = round($rate_95th / $cdr * 100, 2);
$type = '&95th=yes';
?>
<td>
<?php
echo format_si($rate_95th);
?>
of <?php
echo format_si($cdr) . 'bps (' . $percent . '%)';
?>
(95th%ile)
</td>
<td style="width: 210px;">
<?php
echo print_percentage_bar(200, 20, $percent, null, 'ffffff', $background['left'], $percent . '%', 'ffffff', $background['right']);
?>
</td>
<?php
}
}
//end if
?>
</tr>
</table>
</div>
</div>
</div>
<?php
示例9: overlib_link
continue;
}
}
$total = $toner['toner_capacity'];
$perc = $toner['toner_current'];
$graph_array['type'] = $graph_type;
$graph_array['id'] = $toner['toner_id'];
$graph_array['from'] = $config['time']['day'];
$graph_array['to'] = $config['time']['now'];
$graph_array['height'] = "20";
$graph_array['width'] = "80";
$graph_array_zoom = $graph_array;
$graph_array_zoom['height'] = "150";
$graph_array_zoom['width'] = "400";
$link = "graphs/id=" . $graph_array['id'] . "/type=" . $graph_array['type'] . "/from=" . $graph_array['from'] . "/to=" . $graph_array['to'] . "/";
$mini_graph = overlib_link($link, generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL);
$background = get_percentage_colours(100 - $perc);
echo "<tr class='health'><td>" . generate_device_link($toner) . "</td><td class=strong>" . $toner['toner_descr'] . "</td>\n <td>{$mini_graph}</td>\n <td>\n <a href='#' {$store_popup}>" . print_percentage_bar(400, 20, $perc, "{$perc}%", "ffffff", $background['left'], $free, "ffffff", $background['right']) . "</a>\n </td><td>{$perc}" . "%</td></tr>";
if ($vars['view'] == "graphs") {
echo "<tr></tr><tr class='health'><td colspan=5>";
unset($graph_array['height'], $graph_array['width'], $graph_array['legend']);
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $toner['toner_id'];
$graph_array['type'] = $graph_type;
include "includes/print-graphrow.inc.php";
echo "</td></tr>";
}
# endif graphs
}
}
echo "</table></div>";
示例10: generate_url
$link = generate_url(array("page" => "device", "device" => $proc['device_id'], "tab" => "health", "metric" => 'processor'));
$overlib_content = generate_overlib_content($graph_array, $proc['hostname'] . " - " . htmlentities($text_descr), NULL);
$graph_array['width'] = 80;
$graph_array['height'] = 20;
$graph_array['bg'] = 'ffffff00';
# the 00 at the end makes the area transparent.
$graph_array['from'] = $config['time']['day'];
$mini_graph = generate_graph_tag($graph_array);
$perc = round($proc['processor_usage']);
$background = get_percentage_colours($perc);
echo '<tr class="' . $proc['html_row_class'] . '">
<td class="entity">' . generate_device_link($proc) . '</td>
<td>' . overlib_link($link, htmlentities($text_descr), $overlib_content) . '</td>
<td>' . overlib_link($link_graph, $mini_graph, $overlib_content) . '</td>
<td><a href="' . $link_graph . '">
' . print_percentage_bar(400, 20, $perc, $perc . "%", "ffffff", $background['left'], 100 - $perc . "%", "ffffff", $background['right']) . '
</a>
</td>
</tr>
';
if ($vars['view'] == "graphs") {
echo "<tr><td colspan=4>";
unset($graph_array['height'], $graph_array['width'], $graph_array['legend']);
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $proc['processor_id'];
$graph_array['type'] = $graph_type;
print_graph_row($graph_array);
echo "</td></tr>";
}
# endif graphs
}
示例11: generate_graph_tag
$graph_array['width'] = 80;
$graph_array['height'] = 20;
$graph_array['bg'] = 'ffffff00';
# the 00 at the end makes the area transparent.
$graph_array['from'] = $config['time']['day'];
$mini_graph = generate_graph_tag($graph_array);
$total = formatStorage($mempool['mempool_total']);
$used = formatStorage($mempool['mempool_used']);
$free = formatStorage($mempool['mempool_free']);
$background = get_percentage_colours($mempool['mempool_perc']);
echo '<tr>
<td class="entity">' . generate_device_link($mempool) . '</td>
<td>' . overlib_link($link, $mempool['mempool_descr'], $overlib_content) . '</td>
<td>' . overlib_link($link_graph, $mini_graph, $overlib_content) . '</td>
<td><a href="' . $proc_url . '" ' . $proc_popup . '>
' . print_percentage_bar(400, 20, $mempool['mempool_perc'], $used . ' / ' . $total, "ffffff", $background['left'], $free, "ffffff", $background['right']) . '
</a>
</td>
<td>' . $mempool['mempool_perc'] . '%</td>
</tr>
';
if ($vars['view'] == "graphs") {
echo "<tr><td colspan=5>";
unset($graph_array['height'], $graph_array['width'], $graph_array['legend']);
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $mempool['mempool_id'];
$graph_array['type'] = $graph_type;
print_graph_row($graph_array);
echo "</td></tr>";
}
# endif graphs
示例12: formatStorage
$total = formatStorage($mempool['mempool_total']);
$used = formatStorage($mempool['mempool_used']);
$free = formatStorage($mempool['mempool_free']);
} else {
// If total == 100, than memory not have correct size and uses percents only
$total = $mempool['mempool_total'] . '%';
$used = $mempool['mempool_used'] . '%';
$free = $mempool['mempool_free'] . '%';
}
$background = get_percentage_colours($mempool['mempool_perc']);
echo '<tr class="' . $mempool['html_row_class'] . '">
<td class="entity">' . generate_device_link($mempool) . '</td>
<td>' . overlib_link($link, htmlentities($mempool['mempool_descr']), $overlib_content) . '</td>
<td>' . overlib_link($link_graph, $mini_graph, $overlib_content) . '</td>
<td><a href="' . $link_graph . '">
' . print_percentage_bar(400, 20, $mempool['mempool_perc'], $used . '/' . $total . ' (' . $mempool['mempool_perc'] . '%)', "ffffff", $background['left'], $free . ' (' . (100 - $mempool['mempool_perc']) . '%)', "ffffff", $background['right']) . '
</a>
</td>
<td>' . $mempool['mempool_perc'] . '%</td>
</tr>
';
if ($vars['view'] == "graphs") {
echo "<tr><td colspan=5>";
unset($graph_array['height'], $graph_array['width'], $graph_array['legend']);
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $mempool['mempool_id'];
$graph_array['type'] = $graph_type;
print_graph_row($graph_array);
echo "</td></tr>";
}
# endif graphs
示例13: generate_storage_row
function generate_storage_row($storage, $vars)
{
global $config;
$table_cols = 8;
if ($vars['page'] != "device" && $vars['popup'] != TRUE) {
$table_cols++;
}
// Add a column for device.
$graph_array = array();
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $storage['storage_id'];
$graph_array['type'] = 'storage_usage';
$graph_array['legend'] = "no";
$link_array = $graph_array;
$link_array['page'] = "graphs";
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link_graph = generate_url($link_array);
$link = generate_url(array("page" => "device", "device" => $storage['device_id'], "tab" => "health", "metric" => 'storage'));
$overlib_content = generate_overlib_content($graph_array, $storage['hostname'] . ' - ' . $storage['storage_descr']);
$graph_array['width'] = 80;
$graph_array['height'] = 20;
$graph_array['bg'] = 'ffffff00';
$graph_array['from'] = $config['time']['day'];
$mini_graph = generate_graph_tag($graph_array);
$total = formatStorage($storage['storage_size']);
$used = formatStorage($storage['storage_used']);
$free = formatStorage($storage['storage_free']);
$background = get_percentage_colours($storage['storage_perc']);
if ($storage['storage_ignore']) {
$storage['row_class'] = 'suppressed';
} else {
$storage['row_class'] = $background['class'];
}
$row .= '<tr class="ports ' . $storage['row_class'] . '">
<td class="state-marker"></td>';
if ($vars['page'] != "device" && $vars['popup'] != TRUE) {
$row .= '<td class="entity">' . generate_device_link($storage) . '</td>';
}
$row .= ' <td class="entity">' . generate_entity_link('storage', $storage) . '</td>
<td>' . $total . '</td>
<td>' . $used . '</td>
<td>' . $free . '</td>
<td>' . overlib_link($link_graph, $mini_graph, $overlib_content) . '</td>
<td><a href="' . $link_graph . '">
' . print_percentage_bar(400, 20, $storage['storage_perc'], $storage['storage_perc'] . '%', "ffffff", $background['left'], 100 - $storage['storage_perc'] . "%", "ffffff", $background['right']) . '
</a>
</td>
</tr>
';
if ($vars['view'] == "graphs") {
$vars['graph'] = "usage";
}
if ($vars['graph']) {
echo '<tr class="' . $storage['row_class'] . '">';
echo '<td class="state-marker"></td>';
echo '<td colspan="' . $table_cols . '">';
unset($graph_array['height'], $graph_array['width'], $graph_array['legend']);
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $storage['storage_id'];
$graph_array['type'] = 'storage_' . $vars['graph'];
print_graph_row($graph_array, TRUE);
$row .= '</td></tr>';
}
# endif graphs
return $row;
}
示例14: unset
$graph_array['to'] = $config['time']['now'];
$graph_array['id'] = $drive['storage_id'];
$graph_array['type'] = $graph_type;
$graph_array['from'] = $config['time']['day'];
$graph_array['legend'] = 'no';
$link_array = $graph_array;
$link_array['page'] = 'graphs';
unset($link_array['height'], $link_array['width'], $link_array['legend']);
$link = generate_url($link_array);
$overlib_content = generate_overlib_content($graph_array, $device['hostname'] . ' - ' . $drive['storage_descr']);
$graph_array['width'] = 80;
$graph_array['height'] = 20;
$graph_array['bg'] = 'ffffff00';
// the 00 at the end makes the area transparent.
$minigraph = generate_lazy_graph_tag($graph_array);
echo '<tr>
<td class="col-md-4">' . overlib_link($link, $drive['storage_descr'], $overlib_content) . '</td>
<td class="col-md-4">' . overlib_link($link, $minigraph, $overlib_content) . '</td>
<td class="col-md-4">' . overlib_link($link, print_percentage_bar(200, 20, $percent, null, 'ffffff', $background['left'], $percent . '%', 'ffffff', $background['right']), $overlib_content) . '
</a></td>
</tr>';
}
//end foreach
echo '</table>
</div>
</div>
</div>
</div>';
}
//end if
unset($drive_rows);
示例15: format_number
} else {
if ($type == 'Quota') {
$allowed = format_number($history['bill_allowed'], $config['billing']['base']);
$used = format_number($history['total_data'], $config['billing']['base']);
$in = format_number($history['traf_in'], $config['billing']['base']);
$out = format_number($history['traf_out'], $config['billing']['base']);
$overuse = $history['bill_overuse'] <= 0 ? '-' : '<span style="color: #' . $background['left'] . '; font-weight: bold;">' . format_number($history['bill_overuse'], $config['billing']['base']) . 'B</span>';
}
}
$total_data = $type == 'Quota' ? '<b>' . $total_data . '</b>' : $total_data;
$rate_95th = $type == 'CDR' ? '<b>' . $rate_95th . '</b>' : $rate_95th;
$url = generate_url($vars, array('detail' => $history['bill_hist_id']));
echo '
<tr>
<td></td>
<td><span style="font-weight: bold;" class="interface">' . strftime('%Y-%m-%d', strtotime($datefrom)) . ' to ' . strftime('%Y-%m-%d', strtotime($dateto)) . "</span></td>\n <td>{$type}</td>\n <td>{$allowed}</td>\n <td>{$in}</td>\n <td>{$out}</td>\n <td>{$total_data}</td>\n <td>{$rate_95th}</td>\n <td style=\"text-align: center;\">{$overuse}</td>\n <td width=\"250\">" . print_percentage_bar(250, 20, $percent, null, 'ffffff', $background['left'], $percent . '%', 'ffffff', $background['right']) . '</td>
<td>
<a href="' . $url . '"><img src="images/16/chart_curve.png" border="0" align="absmiddle" alt="Show details" title="Show details"/></a>
</td>
</tr>';
if ($vars['detail'] == $history['bill_hist_id'] || $vars['detail'] == 'all') {
$img['bitrate'] = showDetails($bill_id, 'bitrate', $history['bill_hist_id'], $type);
$img['bw_day'] = showDetails($bill_id, 'day', $history['bill_hist_id']);
$img['bw_hour'] = showDetails($bill_id, 'hour', $history['bill_hist_id']);
echo '
<tr style="background: #fff; border-top: 1px solid ' . $row_colour . '; border-bottom: 1px solid #ccc;">
<td colspan="11">
<!-- <b>Accuate Graph</b><br /> //-->
' . $img['bitrate'] . '<br />
<!-- <b>Bandwidth Graph per day</b><br /> //-->
' . $img['bw_day'] . '<br />