Debug v14
This commit is contained in:
parent
46a06f8e95
commit
242f8b2544
@ -168,8 +168,9 @@ class box_graph_nb_ticket_last_x_days extends ModeleBoxes
|
|||||||
$totalnb += $value['data'];
|
$totalnb += $value['data'];
|
||||||
}
|
}
|
||||||
$px1->SetData($data);
|
$px1->SetData($data);
|
||||||
$px1->setShowLegend(2);
|
//$px1->setShowLegend(2);
|
||||||
$px1->SetType(array('bar'));
|
$px1->setShowLegend(0);
|
||||||
|
$px1->SetType(array('bars'));
|
||||||
$px1->SetLegend(array($langs->trans('BoxNumberOfTicketByDay')));
|
$px1->SetLegend(array($langs->trans('BoxNumberOfTicketByDay')));
|
||||||
$px1->SetMaxValue($px1->GetCeilMaxValue());
|
$px1->SetMaxValue($px1->GetCeilMaxValue());
|
||||||
$px1->SetHeight(192);
|
$px1->SetHeight(192);
|
||||||
|
|||||||
@ -149,7 +149,7 @@ class box_graph_new_vs_close_ticket extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
$stringtoprint .= '</div>';
|
$stringtoprint .= '</div>';
|
||||||
$this->info_box_contents[][]=array(
|
$this->info_box_contents[][]=array(
|
||||||
'td' => 'center',
|
'td' => 'class="center"',
|
||||||
'text' => $stringtoprint
|
'text' => $stringtoprint
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -30,7 +30,6 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
|
|||||||
*/
|
*/
|
||||||
class box_graph_ticket_by_severity extends ModeleBoxes
|
class box_graph_ticket_by_severity extends ModeleBoxes
|
||||||
{
|
{
|
||||||
|
|
||||||
public $boxcode = "box_ticket_by_severity";
|
public $boxcode = "box_ticket_by_severity";
|
||||||
public $boximg = "ticket";
|
public $boximg = "ticket";
|
||||||
public $boxlabel;
|
public $boxlabel;
|
||||||
@ -168,16 +167,18 @@ class box_graph_ticket_by_severity extends ModeleBoxes
|
|||||||
$mesg = $px1->isGraphKo();
|
$mesg = $px1->isGraphKo();
|
||||||
$totalnb = 0;
|
$totalnb = 0;
|
||||||
if (!$mesg) {
|
if (!$mesg) {
|
||||||
$px1->SetDataColor(array_values($colorseriesstat));
|
//$px1->SetDataColor(array_values($colorseriesstat));
|
||||||
$data = array();
|
$data = array();
|
||||||
$legend = array();
|
$legend = array();
|
||||||
foreach ($dataseries as $value) {
|
foreach ($dataseries as $value) {
|
||||||
$data[] = array($value['label'], $value['data']);
|
$data[] = array($value['label'], $value['data']);
|
||||||
$totalnb += $value['data'];
|
$totalnb += $value['data'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$px1->SetData($data);
|
$px1->SetData($data);
|
||||||
$px1->setShowLegend(2);
|
//$px1->setShowLegend(2);
|
||||||
$px1->SetType(array('pie'));
|
$px1->setShowLegend(0);
|
||||||
|
$px1->SetType(array('bars'));
|
||||||
$px1->SetLegend($legend);
|
$px1->SetLegend($legend);
|
||||||
$px1->SetMaxValue($px1->GetCeilMaxValue());
|
$px1->SetMaxValue($px1->GetCeilMaxValue());
|
||||||
//$px1->SetHeight($HEIGHT);
|
//$px1->SetHeight($HEIGHT);
|
||||||
|
|||||||
@ -304,7 +304,7 @@ BoxLastModifiedTicket=Latest modified tickets
|
|||||||
BoxLastModifiedTicketDescription=Latest %s modified tickets
|
BoxLastModifiedTicketDescription=Latest %s modified tickets
|
||||||
BoxLastModifiedTicketContent=
|
BoxLastModifiedTicketContent=
|
||||||
BoxLastModifiedTicketNoRecordedTickets=No recent modified tickets
|
BoxLastModifiedTicketNoRecordedTickets=No recent modified tickets
|
||||||
BoxTicketType=Number of open tickets by type
|
BoxTicketType=Distribution of open tickets by type
|
||||||
BoxTicketSeverity=Number of open tickets by severity
|
BoxTicketSeverity=Number of open tickets by severity
|
||||||
BoxNoTicketSeverity=No tickets opened
|
BoxNoTicketSeverity=No tickets opened
|
||||||
BoxTicketLastXDays=Number of new tickets by days the last %s days
|
BoxTicketLastXDays=Number of new tickets by days the last %s days
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user