diff --git a/html/do.php b/html/do.php index c8ea4947c..715dcf87f 100644 --- a/html/do.php +++ b/html/do.php @@ -356,7 +356,7 @@ else record_log($exc->getTraceAsString()); throw $exc; } - + } diff --git a/include/lib/icon_action.class.php b/include/lib/icon_action.class.php index a23ba44c9..070a2014b 100644 --- a/include/lib/icon_action.class.php +++ b/include/lib/icon_action.class.php @@ -243,10 +243,16 @@ class Icon_Action $p_javascript); return $r; } - - static function menu($p_id,$p_javascript) + /** + * When a mouse is over this or if you click on it , it will trigger the javascript + * @param domid $p_id + * @param string $p_javascript + * @return html string + */ + static function menu_click($p_id,$p_javascript) { - $r=sprintf('☰', + + $r=sprintf('', $p_id, $p_javascript); return $r; diff --git a/include/lib/select_box.class.php b/include/lib/select_box.class.php index 4ce7e28aa..9e07d6e74 100644 --- a/include/lib/select_box.class.php +++ b/include/lib/select_box.class.php @@ -78,7 +78,7 @@ class Select_Box }',$this->id,$this->id); // display the button - printf('', + printf('', $this->id, $this->value); printf('', $this->id, $this->id, $this->default_value); diff --git a/include/template/result_cat_card_summary.php b/include/template/result_cat_card_summary.php index 6fc97b438..3b1c4060a 100644 --- a/include/template/result_cat_card_summary.php +++ b/include/template/result_cat_card_summary.php @@ -27,9 +27,10 @@ $e=0; foreach ($array as $row ) : $e++; if ($e%2==0) - echo '
+
add_url("List","?id=5"); - $a->add_javascript("Hello","alert('hello')"); - $a->add_value("Value = 10",10); - $a->add_value("Value = 1",1); - $a->add_value("Value = 15",15); + $a->add_url("List (link)","?id=5&".Dossier::get()); + $a->add_javascript("Hello (Javascript)","alert('hello')"); + $a->add_value("Value = 10 (set value)",10); + $a->add_value("Value = 1 (set value)",1); + $a->add_value("Value = 15 (set value)",15); echo $a->input(); - ?> + ?>