<?php
+namespace compta\views\bilan;
require_once(dirname(__FILE__)."/../pages.php");
require_once(dirname(__FILE__)."/../api_pcmn.php");
+global $XmlComptaBudget;
$XmlComptaBudget = <<<XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xslt-param name='alias' value='/andre/'?>
* @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();
}
/**
_EOF;
$frag = "";
$_cfg = $this->_auth_cfg;
- $pcmn = new Pcmn( $this->getSession()
+ $pcmn = new \Pcmn( $this->getSession()
, $_cfg
, $this->getSession()->getDb());
$lst = $pcmn->getBilan(
}
}
-/* Main entry */
-$page = new PageBilan($XmlComptaBudget,true);
-
-/**
- * Should I make the checks here ? I wonder
- * if this is required
- */
-$page->show();
?>