';
@@ -138,6 +138,6 @@ if ($action == 'widget.insert') {
$user_widget_id = $cn->get_value("insert into user_widget(use_login,dashboard_widget_id,uw_parameter,uw_order)
values ($1,$2,$3,1000) returning uw_id",[$g_user->getLogin(),$widget_id,$param]);
$widget=\Noalyss\Widget\Widget::build_user_widget($user_widget_id, $widget_code);
- $widget->input();
+ $widget->input(false);
return;
}
\ No newline at end of file
diff --git a/include/widget/bookmark/install.php b/include/widget/bookmark/install.php
index 463eb4cc5..05bc0254d 100644
--- a/include/widget/bookmark/install.php
+++ b/include/widget/bookmark/install.php
@@ -28,6 +28,6 @@ $cn->exec_sql("insert into widget_dashboard (wd_code,wd_description,wd_parameter
'bookmark'
,'Raccourcis vers vos menus préférés'
,0
- ,'Raccourcis'
+ ,'Favoris'
)
);
diff --git a/include/widget/event/event-display.php b/include/widget/event/event-display.php
index 27c7130da..e3e991188 100644
--- a/include/widget/event/event-display.php
+++ b/include/widget/event/event-display.php
@@ -21,7 +21,7 @@
* \file
* \brief display events for 10 days
*/
-echo h2('Actions','class="title"');
+echo h2(_("A faire"),'class="title"');
if ( empty ($array)) {
echo _("Aucun événement en retard ou prévu");
return;
diff --git a/include/widget/invoice/invoice.php b/include/widget/invoice/invoice.php
index 0289821f3..116615308 100644
--- a/include/widget/invoice/invoice.php
+++ b/include/widget/invoice/invoice.php
@@ -22,7 +22,10 @@
* \brief display the next invoice to to be paid or late for customer or supplier
*/
namespace Noalyss\Widget;
-
+/*!
+ * \class
+ * \brief display the next invoice to to be paid or late for customer or supplier
+ */
class Invoice extends Widget
{
function input_parameter()
diff --git a/include/widget/last_operation/install.php b/include/widget/last_operation/install.php
index bb64a0a98..9a9b7329a 100644
--- a/include/widget/last_operation/install.php
+++ b/include/widget/last_operation/install.php
@@ -25,6 +25,6 @@ global $cn;
$cn->exec_sql("
INSERT INTO widget_dashboard (wd_code,wd_description,wd_parameter,wd_name) VALUES
- ('last_operation','Affichage des dernières opérations comptables saisies',0,'Comptabilité');
+ ('last_operation','Affichage des dernières opérations comptables saisies',0,'Dernières opérations');
");
diff --git a/include/widget/todo_list/todo_list.php b/include/widget/todo_list/todo_list.php
index e572c0f22..2434a013b 100644
--- a/include/widget/todo_list/todo_list.php
+++ b/include/widget/todo_list/todo_list.php
@@ -39,7 +39,7 @@ class Todo_List extends Widget
function display()
{
global $cn;
- echo '
';
+ echo '
';
echo \HtmlInput::title_box(_('Pense-Bête'), "todo_listg_div", 'zoom', "zoom_todo()", 'n');
echo \Dossier::hidden();
$todo = new \Todo_List($cn);
diff --git a/include/widget/widget-development.md b/include/widget/widget-development.md
index aba462ce8..08a095d54 100644
--- a/include/widget/widget-development.md
+++ b/include/widget/widget-development.md
@@ -88,6 +88,8 @@ Exemple pour mini_report
Toujours commencer par un DIV (id=code_widget+uw_id), Widget::open_div et Widget::close_div
+Ce DIV doit avoir comme classe **box** et **widget-box** , le **widget-box** permet de numéroter les boites.
+
Exemple :
$this->open_div();
diff --git a/include/widget/widget.php b/include/widget/widget.php
index 3ccb38c34..c70da92d4 100644
--- a/include/widget/widget.php
+++ b/include/widget/widget.php
@@ -71,9 +71,10 @@ abstract class Widget
* of the widget if it exists
* @return mixed
*/
- function input()
+ function input($flnumber=true)
{
-
+ static $nb=0;
+ $nb++;
//read description from database
$row=$this->db->get_row("
select
@@ -86,8 +87,9 @@ abstract class Widget
where
wd_code=$1",
[$this->widget_code]);
-
- echo "