Laurent Destailleur 4 роки тому
батько
коміт
82d5c7289d

+ 3 - 0
htdocs/adherents/index.php

@@ -195,6 +195,7 @@ if ($conf->use_javascript_ajax) {
 
 	$SommeA = 0;
 	$SommeB = 0;
+
 	$SommeC = 0;
 	$SommeD = 0;
 	$total = 0;
@@ -492,6 +493,8 @@ print '</tr>';
 print "</table>\n";
 print "</div>";
 
+print '<br>';
+
 print $resultboxes['boxlistb'];
 
 print '</div>'."\n";

+ 2 - 0
htdocs/core/boxes/box_graph_invoices_permonth.php

@@ -41,6 +41,8 @@ class box_graph_invoices_permonth extends ModeleBoxes
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
 
 	/**
 	 *  Constructor

+ 2 - 0
htdocs/core/boxes/box_graph_invoices_supplier_permonth.php

@@ -41,6 +41,8 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
 
 	/**
 	 *  Constructor

+ 3 - 5
htdocs/core/boxes/box_graph_nb_ticket_last_x_days.php

@@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
 /**
  * Class to manage the box
  */
-class box_nb_ticket_last_x_days extends ModeleBoxes
+class box_graph_nb_ticket_last_x_days extends ModeleBoxes
 {
 
 	public $boxcode = "box_nb_ticket_last_x_days";
@@ -36,14 +36,12 @@ class box_nb_ticket_last_x_days extends ModeleBoxes
 	public $boxlabel;
 	public $depends = array("ticket");
 
-	/**
-	 * @var DoliDB Database handler.
-	 */
-
 	public $param;
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
 	/**
 	 * Constructor
 	 *  @param  DoliDB  $db         Database handler

+ 4 - 5
htdocs/core/boxes/box_graph_nb_tickets_type.php

@@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
 /**
  * Class to manage the box
  */
-class box_nb_tickets_type extends ModeleBoxes
+class box_graph_nb_tickets_type extends ModeleBoxes
 {
 
 	public $boxcode = "box_nb_tickets_type";
@@ -36,14 +36,13 @@ class box_nb_tickets_type extends ModeleBoxes
 	public $boxlabel;
 	public $depends = array("ticket");
 
-	/**
-	 * @var DoliDB Database handler.
-	 */
-
 	public $param;
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
+
 	/**
 	 * Constructor
 	 *  @param  DoliDB  $db         Database handler

+ 4 - 5
htdocs/core/boxes/box_graph_new_vs_close_ticket.php

@@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
 /**
  * Class to manage the box
  */
-class box_new_vs_close_ticket extends ModeleBoxes
+class box_graph_new_vs_close_ticket extends ModeleBoxes
 {
 
 	public $boxcode = "box_nb_tickets_type";
@@ -36,14 +36,13 @@ class box_new_vs_close_ticket extends ModeleBoxes
 	public $boxlabel;
 	public $depends = array("ticket");
 
-	/**
-	 * @var DoliDB Database handler.
-	 */
-
 	public $param;
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
+
 	/**
 	 * Constructor
 	 *  @param  DoliDB  $db         Database handler

+ 2 - 0
htdocs/core/boxes/box_graph_orders_permonth.php

@@ -41,6 +41,8 @@ class box_graph_orders_permonth extends ModeleBoxes
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
 
 	/**
 	 *  Constructor

+ 2 - 0
htdocs/core/boxes/box_graph_orders_supplier_permonth.php

@@ -41,6 +41,8 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
 
 	/**
 	 *  Constructor

+ 2 - 0
htdocs/core/boxes/box_graph_product_distribution.php

@@ -44,6 +44,8 @@ class box_graph_product_distribution extends ModeleBoxes
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
 
 	/**
 	 *  Constructor

+ 2 - 0
htdocs/core/boxes/box_graph_propales_permonth.php

@@ -41,6 +41,8 @@ class box_graph_propales_permonth extends ModeleBoxes
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
 
 	/**
 	 *  Constructor

+ 4 - 1
htdocs/core/boxes/box_graph_ticket_by_severity.php

@@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
 /**
  * Class to manage the box
  */
-class box_ticket_by_severity extends ModeleBoxes
+class box_graph_ticket_by_severity extends ModeleBoxes
 {
 
 	public $boxcode = "box_ticket_by_severity";
@@ -45,6 +45,9 @@ class box_ticket_by_severity extends ModeleBoxes
 	public $info_box_head = array();
 	public $info_box_contents = array();
 
+	public $widgettype = 'graph';
+
+
 	/**
 	 * Constructor
 	 *  @param  DoliDB  $db         Database handler

+ 6 - 0
htdocs/core/boxes/modules_boxes.php

@@ -109,6 +109,12 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
 	 */
 	public $note;
 
+	/**
+	 * @var string 	Widget type ('graph' means the widget is a graph widget)
+	 */
+	public $widgettype = '';
+
+
 	/**
 	 * Constructor
 	 *

+ 6 - 0
htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php

@@ -77,6 +77,12 @@ class mymodulewidget1 extends ModeleBoxes
 	 */
 	public $info_box_contents = array();
 
+	/**
+	 * @var string 	Widget type ('graph' means the widget is a graph widget)
+	 */
+	public $widgettype = 'graph';
+
+
 	/**
 	 * Constructor
 	 *