diff --git a/include/class/document_modele.class.php b/include/class/document_modele.class.php index fca320743..1186266cc 100644 --- a/include/class/document_modele.class.php +++ b/include/class/document_modele.class.php @@ -93,8 +93,7 @@ class Document_Modele $c->name="dm_remove_".$row['md_id']; $r.=$c->input(); $r.=""; - $r.=td(HtmlInput::detail_modele_document($row['md_id'],_('Modifier'))); - + $r.=td(\Icon_Action::modify(uniqid(),sprintf("modifyModeleDocument('%s','%s')",$row['md_id'],$dosid) )); $r.=""; } $r.=""; diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php index 07af3736a..43ce482e2 100755 --- a/include/lib/html_input.class.php +++ b/include/lib/html_input.class.php @@ -307,8 +307,9 @@ class HtmlInput /** * @brief return a string containing the html code for calling the modifyModeleDocument + * @deprecated since 9.3.0.6 */ - static function detail_modele_document($p_id, $p_mesg) + static function detail_modele_document_deprecated($p_id, $p_mesg) { return sprintf('%s', $p_id, dossier::id(), $p_mesg); diff --git a/include/stock_cfg.inc.php b/include/stock_cfg.inc.php index 08e736395..d69db0580 100644 --- a/include/stock_cfg.inc.php +++ b/include/stock_cfg.inc.php @@ -69,8 +69,7 @@ $tb->add(_("Téléphone"), $p_url, " order by r_phone asc", "order by r_phone de $sql="select * from stock_repository "; -$ord=(isset($_GET['ord']))?$_GET['ord']:"ona"; - +$ord=$http->get("ord","string","ona"); $order=$tb->get_sql_order($ord); $array=$cn->get_array($sql." ".$order); @@ -114,52 +113,44 @@ $array=$cn->get_array($sql." ".$order); -
+