Check();
$href=basename($_SERVER['PHP_SELF']);
if ($href=='compta.php')
{
//Show the top menu
include_once ("user_menu.php");
// Show Menu Left
$left_menu=ShowMenuAdvanced(5);
//echo '
';
exit();
}
// Show the possible years
$sql="select distinct (p_exercice) as exercice from parm_periode ";
$Res=$cn->exec_sql($sql);
$r="";
for ( $i = 0; $i < Database::num_row($Res);$i++)
{
$l=Database::fetch_array($Res,$i);
$url=sprintf("?p_action=stock&year=%d&".dossier::get(),
$l['exercice']);
$r.=HtmlInput::button_anchor($l['exercice'],$url);
}
// Check if User Can see the stock
// Show the current stock
echo '