Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

impress_rapport.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

 $Form = new rapport($cn,$_POST['form_id'])
 $submit = new widget()
 $hid = new widget("hidden")
 $t = ($_POST['from_periode']==$_POST['to_periode'])?"":" -> ".getPeriodeName($cn,$_POST['to_periode'],'p_end')
 exit
 $ret
$w table = 1
$w label = "Choississez le rapport"
 print
 $filter_year = " where p_exercice='".$User->getExercice()."'"
 $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
 $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
print</TR > $aStep


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, $User ...)

Definition in file impress_rapport.php.


Function Documentation

ShowReportResult p_array  ) 
 

Definition at line 167 of file impress_rapport.php.

References $i.

00167                                      {
00168    
00169    echo '<TABLE class="result">';
00170    echo "<TR>".
00171      "<TH> Description </TH>".
00172      "<TH> montant </TH>".
00173      "</TR>";
00174    $i=0;
00175    foreach ( $p_array as $op ) { 
00176      $i++;
00177      $class= ( $i % 2 == 0 )?' class="odd"':"";
00178    
00179      echo "<TR $class>".
00180        "<TD>".$op['desc']."</TD>".
00181        "<TD align=\"right\">".sprintf("% 8.2f",$op['montant'])."</TD>".
00182        "</TR>";
00183    }
00184    echo "</table>";
00185 
00186  }


Variable Documentation

print</TR> $aStep
 

Initial value:

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

Definition at line 151 of file impress_rapport.php.

$filter_year = " where p_exercice='".$User->getExercice()."'"
 

Definition at line 142 of file impress_rapport.php.

$Form = new rapport($cn,$_POST['form_id'])
 

Definition at line 36 of file impress_rapport.php.

$hid = new widget("hidden")
 

Definition at line 60 of file impress_rapport.php.

$periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
 

Definition at line 148 of file impress_rapport.php.

$periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
 

Definition at line 144 of file impress_rapport.php.

$ret
 

Initial value:

make_array($cn,"select fr_id,fr_label
                 from formdef
                 order by fr_label")

Definition at line 122 of file impress_rapport.php.

$submit = new widget()
 

Definition at line 59 of file impress_rapport.php.

$t = ($_POST['from_periode']==$_POST['to_periode'])?"":" -> ".getPeriodeName($cn,$_POST['to_periode'],'p_end')
 

Definition at line 62 of file impress_rapport.php.

Referenced by Cpdf::ARC4(), Cpdf::ARC4_init(), Cezpdf::ezTable(), Document_modele::form(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), fiche_def_ref::Input(), RecordInvoice(), SortAttributeById(), and Customer::VatListing().

exit
 

Definition at line 114 of file impress_rapport.php.

$w label = "Choississez le rapport"
 

Definition at line 137 of file impress_rapport.php.

print
 

Definition at line 139 of file impress_rapport.php.

$w table = 1
 

Definition at line 136 of file impress_rapport.php.