noalyss Version-9
Variables
periode.inc.php File Reference

add, modify, close or delete a period More...

Go to the source code of this file.

Variables

 $cn =Dossier::connect()
 
 $gDossier =dossier::id()
 
 $http =new HttpInput()
 
 $js_close_selected ="jsper.close_selected()"
 
 $ledger =new Acc_Ledger($cn, $p_ledger_id)
 
 $max_exercice =$cn->get_value("select max(p_exercice) from parm_periode")
 
 $p_exercice =$http->request("p_exercice_sel","string",$max_exercice)
 
 $p_ledger_id =$http->request("jrn_def_id", "number", 0)
 
 $periode_ledger =new Periode_Ledger_Table(0)
 
 $ret =$periode_ledger->get_resource_periode_ledger($p_ledger_id)
 
 $sel_jrn
 
 $sel_jrn [] =array('value'=>0, 'label'=>_('Global : periode pour tous les journaux'))
 
 $wSel =new ISelect()
 
if($p_ledger_id==0) else
 
if(isset( $_POST[ 'mod_exercice_label_bt'])) if (isset( $_POST[ 'add_exercice']))
 
$wSel name ='jrn_def_id'
 
$wSel selected =$p_ledger_id
 
$wSel value =$sel_jrn
 

Detailed Description

add, modify, close or delete a period

Definition in file periode.inc.php.

Variable Documentation

◆ $cn

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

◆ $gDossier

$gDossier =dossier::id()

Definition at line 25 of file periode.inc.php.

◆ $http

$http =new HttpInput()

Definition at line 31 of file periode.inc.php.

◆ $js_close_selected

$js_close_selected ="jsper.close_selected()"

Definition at line 133 of file periode.inc.php.

◆ $ledger

$ledger =new Acc_Ledger($cn, $p_ledger_id)

Definition at line 178 of file periode.inc.php.

◆ $max_exercice

$max_exercice =$cn->get_value("select max(p_exercice) from parm_periode")

Definition at line 130 of file periode.inc.php.

◆ $p_exercice

$p_exercice =$http->request("p_exercice_sel","string",$max_exercice)

◆ $p_ledger_id

$p_ledger_id =$http->request("jrn_def_id", "number", 0)

◆ $periode_ledger

$periode_ledger =new Periode_Ledger_Table(0)

Definition at line 181 of file periode.inc.php.

◆ $ret

$ret =$periode_ledger->get_resource_periode_ledger($p_ledger_id)

Definition at line 182 of file periode.inc.php.

◆ $sel_jrn [1/2]

$sel_jrn
Initial value:
=$cn->make_array("select jrn_def_id, jrn_def_name from ".
" jrn_def order by jrn_def_name")
$cn
Definition: periode.inc.php:27

Definition at line 119 of file periode.inc.php.

◆ $sel_jrn [2/2]

$sel_jrn[] =array('value'=>0, 'label'=>_('Global : periode pour tous les journaux'))

Definition at line 121 of file periode.inc.php.

◆ $wSel

$wSel =new ISelect()

Definition at line 122 of file periode.inc.php.

◆ else

if ( $p_ledger_id==0) else
Initial value:
{
echo '<p class="info">'._("Pour ajouter, effacer ou modifier une période, il faut choisir global").'</p>'

Definition at line 175 of file periode.inc.php.

◆ if

if(isset($_POST['mod_exercice_label_bt'])) if(isset($_POST['add_exercice'])) ( isset( $_POST[ 'add_exercice'])  )

Definition at line 93 of file periode.inc.php.

◆ name

$wSel name ='jrn_def_id'

Definition at line 124 of file periode.inc.php.

◆ selected

$wSel selected =$p_ledger_id

Definition at line 125 of file periode.inc.php.

◆ value

$wSel value =$sel_jrn

Definition at line 123 of file periode.inc.php.