noalyss Version-9
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
 
 $access_code =$http->request('ac')
 
 $aStep
 
 $date_from =new IDate('from_date')
 
 $date_to =new IDate('to_date')
 
 $ex =new Exercice($cn)
 
 $exercice =$http->get("exercice","number",$g_user->get_exercice())
 
 $filter_year =" where p_exercice='".sql_string($exercice)."'"
 
global $g_user
 
 $hidden =new IHidden()
 
global $http
 
 $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()
 
if(isset( $_GET['bt_html'])) $ret
 
 $w =new ISelect()
 
 $wex
 
$w id ='type_periode'
 
 if (sizeof( $ret)==0)
 
$w javascript =' onchange=enable_type_periode();'
 
 print
 
$w selected =$http->request("form_id","string",0)
 
$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()

ShowReportResult (   $p_array)

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

313{
314
315 echo '<TABLE class="result">';
316 echo "<TR>".
317 "<TH> Description </TH>".
318 "<TH> montant </TH>".
319 "</TR>";
320 $i=0;
321 foreach ( $p_array as $op )
322 {
323 $i++;
324 $class= ( $i % 2 == 0 )?' class="odd"':' class="even"';
325
326 echo "<TR $class>".
327 "<TD>".h($op['desc'])."</TD>".
328 "<TD align=\"right\">".nbm($op['montant'])."</TD>".
329 "</TR>";
330 }
331 echo "</table>";
332
333}
$op
Definition: ajax_admin.php:38
$class

References $class, $i, $op, and $p_array.

Variable Documentation

◆ $aCal

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

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

◆ $access_code

$access_code =$http->request('ac')

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

Referenced by Extension\find_extension_code().

◆ $aStep

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

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

◆ $date_from

$date_from =new IDate('from_date')

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

◆ $date_to

$date_to =new IDate('to_date')

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

◆ $ex

$ex =new Exercice($cn)

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

◆ $exercice

$exercice =$http->get("exercice","number",$g_user->get_exercice())

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

◆ $filter_year

$filter_year =" where p_exercice='".sql_string($exercice)."'"

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

◆ $g_user

global $g_user

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

◆ $hidden

$hidden =new IHidden()

◆ $http

global $http

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

◆ $periode_end

$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 272 of file impress_rapport.inc.php.

◆ $periode_end_select

$periode_end_select =new ISelect()

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

◆ $periode_start

$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 268 of file impress_rapport.inc.php.

◆ $periode_start_select

$periode_start_select =new ISelect()

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

◆ $ret

if (isset($_GET[ 'bt_html'])) $ret
Initial value:
=$cn->make_array("select fr_id,fr_label
from form_definition
order by fr_label")

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

◆ $w

$w =new ISelect()

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

◆ $wex

$wex
Initial value:
=$ex->select('exercice',$exercice,
sprintf(' onchange="updatePeriode(\'%s\',\'exercice\',\'from_periode\',\'to_periode\',1)"',Dossier::id(),$exercice))
static id()
return the 'gDossier' value after a check

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

◆ id

$w id ='type_periode'

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

◆ if

if(sizeof($ret)==0) ( sizeof( $ret)  = = 0)

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

◆ javascript

$w javascript =' onchange=enable_type_periode();'

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

◆ print

print

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

◆ selected

$w selected =$http->request("form_id","string",0)

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

◆ table

$periode_end_select table =1

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