cn; $forecast = new Forecast_SQL($cn, $this->get_forecast_id()); $forecast->load(); $str_name = $forecast->getp('f_name'); $str_start = $forecast->getp('f_start_date'); $str_end = $forecast->getp('f_end_date'); $aPeriode = $cn->make_array("select p_id,to_char(p_start,'MM.YYYY') as label from parm_periode where p_start >= (select p_start from parm_periode where p_id=$str_start) and p_end <= (select p_end from parm_periode where p_id=$str_end) order by p_start"); $aPeriode[] = array('value' => 0, 'label' => 'Mensuel'); $category = new ISelect("fc_id"); $category->value = $cn->make_array("select fc_id,fc_desc from forecast_category where f_id=$1 order by 2", 0, [$this->get_forecast_id()]); $category->selected = $object->getp("fc_id"); $amount = new INum("fi_amount"); $amount->value = $object->getp("fi_amount"); $amount->value=($amount->value=="")?0:$amount->value; $forecast_text = new IText("fi_text"); $forecast_text->value = $object->getp("fi_text"); /* Accounting*/ $account = new ITextarea('fi_account'); $account->value=$object->getp("fi_account"); $account->id=uniqid("fi_account"); $account->nb_row=3; $account->extra=' style = "margin-left:0px;width:100%;" class="input_text"'; $account->size="80rem"; $isPeriode = new ISelect('fi_pid'); $isPeriode->value = $aPeriode; $isPeriode->selected = $object->getp("fi_pid"); $amount_initial= new INum("fi_amount_initial"); $amount_initial->value=$object->getp("fi_amount_initial"); $amount_initial->value=($amount_initial->value=='')?0:$amount_initial->value; ?>
input(); ?>
input() ?>
show_error("fi_text")?> input(); ?>
show_error("fi_account")?> ( Aide ) input() ?> id)) ?>
input(); ?>
input()?>