print first the report in html and propose to print it in pdf file included by user_impress More...
Go to the source code of this file.
Functions | |
| ShowReportResult ($p_array) | |
Variables | |
| $aCal | |
| $aStep | |
| print</TR > | $date_from = new IDate('from_date') |
| $date_to = new IDate('to_date') | |
| $ex = new Exercice($cn) | |
| $exercice = (isset($_GET['exercice']))?$_GET['exercice']:$g_user->get_exercice() | |
| $filter_year = "'" | |
| global | $g_user |
| $hidden = new IHidden() | |
| $periode_end = $cn->make_array("select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end") | |
| $periode_end_select = new ISelect() | |
| $periode_start = $cn->make_array("select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end") | |
| $periode_start_select = new ISelect() | |
| $ret | |
| $w = new ISelect() | |
| $wex = $ex->select('exercice',$exercice,' onchange="submit(this)"') | |
| $w | id = 'type_periode' |
| if (isset($_GET['bt_html'])) | |
| $w | javascript = ' onchange=enable_type_periode();' |
| $w | table = 1 |
print first the report in html and propose to print it in pdf file included by user_impress
some variable are already defined ($cn, $g_user ...)
Definition in file impress_rapport.inc.php.
| ShowReportResult | ( | $ | p_array | ) |
Definition at line 270 of file impress_rapport.inc.php.
References $class, $op, and $p_array.
{
echo '<TABLE class="result">';
echo "<TR>".
"<TH> Description </TH>".
"<TH> montant </TH>".
"</TR>";
$i=0;
foreach ( $p_array as $op )
{
$i++;
$class= ( $i % 2 == 0 )?' class="odd"':' class="even"';
echo "<TR $class>".
"<TD>".h($op['desc'])."</TD>".
"<TD align=\"right\">".nbm($op['montant'])."</TD>".
"</TR>";
}
echo "</table>";
}
| $aCal |
array(
array('value'=>0,'label'=>_('Période comptable')),
array('value'=>1,'label'=>_('Calendrier'))
)
Definition at line 207 of file impress_rapport.inc.php.
| $aStep |
array(
array('value'=>0,'label'=>_('Pas d\'étape')),
array('value'=>1,'label'=>_('1 mois'))
)
Definition at line 246 of file impress_rapport.inc.php.
Definition at line 235 of file impress_rapport.inc.php.
| $date_to = new IDate('to_date') |
Definition at line 237 of file impress_rapport.inc.php.
Definition at line 185 of file impress_rapport.inc.php.
| $exercice = (isset($_GET['exercice']))?$_GET['exercice']:$g_user->get_exercice() |
Definition at line 177 of file impress_rapport.inc.php.
| $filter_year = "'" |
Definition at line 221 of file impress_rapport.inc.php.
| global $g_user |
Definition at line 26 of file impress_rapport.inc.php.
| $hidden = new IHidden() |
Definition at line 195 of file impress_rapport.inc.php.
Referenced by Anc_Print\display_form(), Anc_Operation\display_form_plan(), Acc_Ledger\display_ledger(), Acc_Ledger\input_new(), and Anc_Listing\show_button().
| $periode_end = $cn->make_array("select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end") |
Definition at line 230 of file impress_rapport.inc.php.
| $periode_end_select = new ISelect() |
Definition at line 224 of file impress_rapport.inc.php.
| $periode_start = $cn->make_array("select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end") |
Definition at line 226 of file impress_rapport.inc.php.
| $periode_start_select = new ISelect() |
Definition at line 222 of file impress_rapport.inc.php.
| $ret |
$cn->make_array("select fr_id,fr_label from formdef order by fr_label")
Definition at line 165 of file impress_rapport.inc.php.
| $w = new ISelect() |
Definition at line 201 of file impress_rapport.inc.php.
| $wex = $ex->select('exercice',$exercice,' onchange="submit(this)"') |
Definition at line 186 of file impress_rapport.inc.php.
| $w id = 'type_periode' |
Definition at line 213 of file impress_rapport.inc.php.
| if(sizeof($ret)==0) |
Definition at line 37 of file impress_rapport.inc.php.
| $w javascript = ' onchange=enable_type_periode();' |
Definition at line 212 of file impress_rapport.inc.php.
Definition at line 205 of file impress_rapport.inc.php.
| $periode_end_select table = 1 |
Definition at line 202 of file impress_rapport.inc.php.