PHP8.2 deprecated: dynamic properties + cosmetic menu

This commit is contained in:
sparkyx 2025-11-17 11:41:43 +01:00
parent 5bfffcce97
commit 3d2c9c53cf
4 changed files with 17 additions and 10 deletions

View file

@ -41,12 +41,9 @@ if ( ! $m )
} }
$dossier_id=Dossier::id(); $dossier_id=Dossier::id();
$see=$http->request("see","string","0");
$new=$http->request("new","string","0");
echo ' $selected=($see==0)?"new":"see";
<div class="menu2">
';
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// show the menu // show the menu
//---------------------------------------------------------------------- //----------------------------------------------------------------------
@ -55,13 +52,17 @@ echo show_menu_extension(array(
"?".http_build_query(["ac"=>$http->request("ac"),"new"=>1,"gDossier"=>$dossier_id]), "?".http_build_query(["ac"=>$http->request("ac"),"new"=>1,"gDossier"=>$dossier_id]),
_("Nouveau"), _("Nouveau"),
_("Nouvelle opération") _("Nouvelle opération")
,"new"
), ),
array ( array (
"?".http_build_query(["ac"=>$http->request("ac"),"see"=>1,"gDossier"=>$dossier_id]), "?".http_build_query(["ac"=>$http->request("ac"),"see"=>1,"gDossier"=>$dossier_id]),
_("Liste"), _("Liste"),
_("Liste opérations") _("Liste opérations"),
"see"
) )
)); )
,$selected
);
//---------------------------------------------------------------------- //----------------------------------------------------------------------

View file

@ -38,7 +38,9 @@ class Anc_Balance_Double extends Anc_Print
* *
* \return string * \return string
*/ */
public $from_poste2;
public $to_poste2;
public $pa_id2;
function display_html () function display_html ()
{ {
if ($this->pa_id == $this->pa_id2) throw new Exception(_("Pas de croisement avec un seul plan"),1000); if ($this->pa_id == $this->pa_id2) throw new Exception(_("Pas de croisement avec un seul plan"),1000);

View file

@ -31,6 +31,10 @@
class Anc_Table extends Anc_Acc_Link class Anc_Table extends Anc_Acc_Link
{ {
public $card_poste;
private $aheader;
private $sql;
private $arow;
function __construct($p_cn) function __construct($p_cn)
{ {
parent::__construct($p_cn); parent::__construct($p_cn);

View file

@ -584,7 +584,7 @@ EOF;
/** /**
* @brief Display each row for the global * @brief Display each row for the global
* @param $obj Parm_Periode_SQL * @param $obj Parm_Periode_SQL
* @param $p_nb not used so far * @param $p_nb used to highlight odd rows
* @param $p_js javascript variable * @param $p_js javascript variable
*/ */
static function display_row_global(Parm_Periode_SQL $obj, $p_nb, $p_js) static function display_row_global(Parm_Periode_SQL $obj, $p_nb, $p_js)