noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
Functions | Variables
impress_rapport.inc.php File Reference

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();'
 print
$w table = 1

Detailed Description

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.


Function Documentation

ShowReportResult ( p_array)

Definition at line 269 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>";

}

Variable Documentation

$aCal
Initial value:
array(
          array('value'=>0,'label'=>'P&eacute;riode comptable'),
          array('value'=>1,'label'=>'Calendrier')
      )

Definition at line 207 of file impress_rapport.inc.php.

$aStep
Initial value:
array(
           array('value'=>0,'label'=>'Pas d\'étape'),
           array('value'=>1,'label'=>'1 mois')
       )

Definition at line 246 of file impress_rapport.inc.php.

print</TR> $date_from = new IDate('from_date')

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.

$ex = new Exercice($cn)

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()
$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
Initial value:
$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.

 All Data Structures Namespaces Files Functions Variables Enumerations