mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
CDR: Database class integration.
This commit is contained in:
@@ -247,13 +247,15 @@
|
||||
},
|
||||
yaxis: { min: 0 },
|
||||
<?php
|
||||
if ($hours <= 48) {
|
||||
echo "xaxis: {mode: \"time\",timeformat: \"%d:%H\",minTickSize: [1, \"hour\"]}";
|
||||
} else if ($hours > 48 && $hours < 168) {
|
||||
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"day\"]}";
|
||||
} else {
|
||||
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"month\"]}";
|
||||
}
|
||||
if ($hours <= 48) {
|
||||
echo "xaxis: {mode: \"time\",timeformat: \"%d:%H\",minTickSize: [1, \"hour\"]}";
|
||||
}
|
||||
else if ($hours > 48 && $hours < 168) {
|
||||
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"day\"]}";
|
||||
}
|
||||
else {
|
||||
echo "xaxis: {mode: \"time\",timeformat: \"%m:%d\",minTickSize: [1, \"month\"]}";
|
||||
}
|
||||
?>
|
||||
});
|
||||
}
|
||||
@@ -283,7 +285,7 @@
|
||||
if ($i <= $hours) {
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".($i+1)."</td>\n";
|
||||
}
|
||||
elseif ($i == $hours+1) {
|
||||
else if ($i == $hours+1) {
|
||||
echo " <br /><br />\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -322,7 +324,7 @@
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".(round(escape($row['asr']),2))." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".(round(escape($row['aloc']),2))." </td>\n";
|
||||
echo "</tr >\n";
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
$c = $c ? 0 : 1;
|
||||
$i++;
|
||||
}
|
||||
echo "</table>\n";
|
||||
@@ -331,4 +333,4 @@
|
||||
//show the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user