From: www-data Date: Sun, 2 Jan 2022 21:27:32 +0000 (+0100) Subject: Fixe bilan views index page create and display X-Git-Url: https://git.ebersold.fr/?a=commitdiff_plain;h=f45d8ae5c322e3093b647c4098881dc512e31c11;p=www%2Fsyndic.git Fixe bilan views index page create and display --- diff --git a/app/compta/views/bilan_index.php b/app/compta/views/bilan_index.php index ce215c4..5ca86ff 100644 --- a/app/compta/views/bilan_index.php +++ b/app/compta/views/bilan_index.php @@ -1,7 +1,9 @@ @@ -61,11 +63,20 @@ XML; * @brief Update GUI with the list of * documents available. All decomptes */ -class PageBilan extends PageCompta { +class Index extends \PageCompta + implements \IActionResult +{ - function __construct($s,$b) + function __construct() { - parent::__construct($s,$b); + //$page = new PageBilan($XmlComptaBudget,true); + global $XmlComptaBudget; + parent::__construct($XmlComptaBudget,true); + } + + public function render() + { + $this->show(); } /** @@ -122,7 +133,7 @@ _EOF; _EOF; $frag = ""; $_cfg = $this->_auth_cfg; - $pcmn = new Pcmn( $this->getSession() + $pcmn = new \Pcmn( $this->getSession() , $_cfg , $this->getSession()->getDb()); $lst = $pcmn->getBilan( @@ -141,13 +152,5 @@ $frag = ""; } } -/* Main entry */ -$page = new PageBilan($XmlComptaBudget,true); - -/** - * Should I make the checks here ? I wonder - * if this is required - */ -$page->show(); ?>