echo "</div>"; } exit; } // All the children account if ($go == 3) { if (sizeof($a_poste) == 0) { exit; } echo '<div class="content">'; if (!isset($_REQUEST['oper_detail'])) { $Poste = new Acc_Account_Ledger($cn, $_GET['poste_id']); echo Acc_Account_Ledger::HtmlTableHeader(); foreach ($a_poste as $poste_id) { $Poste = new Acc_Account_Ledger($cn, $poste_id['pcm_val']); $Poste->HtmlTable(null, $_GET['ople']); } echo Acc_Account_Ledger::HtmlTableHeader(); echo "</div>"; } else { //---------------------------------------------------------------------- // Detail //---------------------------------------------------------------------- echo Acc_Account_Ledger::HtmlTableHeader(); echo '<table style="width:100%;margin-left:0%">'; foreach ($a_poste as $poste_id) { $Poste = new Acc_Account_Ledger($cn, $poste_id['pcm_val']); $Poste->load(); $Poste->get_row_date($_GET['from_periode'], $_GET['to_periode'], $_GET['ople']); if (empty($Poste->row)) { continue;
$old = _("Autre exercice") . " " . $is->input(); } else { $old = '<form method="get" action="popup.php">'; $is = $exercice->select('ex', $default, 'onchange = "submit(this)"'); $old .= _("Autre exercice") . " " . $is->input(); $old .= HtmlInput::hidden('div', 'popup'); $old .= HtmlInput::hidden('act', $_GET['act']); $old .= HtmlInput::hidden('pcm_val', $_GET['pcm_val']); $old .= HtmlInput::hidden('ajax', $_GET['ajax']); $old .= dossier::hidden(); $old .= '</form>'; } } ob_start(); require_once NOALYSS_INCLUDE . '/template/history_top.php'; if ($poste->HtmlTable($array) == -1) { echo h2($poste->id . " " . $poste->name, ' class="title"'); echo h2(_("Aucune opération pour l'exercice courant"), 'class="error"'); } echo $old; $html = ob_get_contents(); ob_end_clean(); } } $xml = escape_xml($html); if (DEBUG && headers_sent()) { echo $html; return; } header('Content-type: text/xml; charset=UTF-8'); echo <<<EOF