'; if (isset($_POST['record_company'])) { $m=new Noalyss_Parameter_Folder($cn); $m->MY_NAME=$http->post("p_name"); $m->MY_TVA=$http->post("p_tva"); $m->MY_STREET=$http->post("p_street"); $m->MY_NUMBER=$http->post("p_no"); $m->MY_POSTCODE=$http->post("p_cp"); $m->MY_CITY=$http->post("p_commune"); $m->MY_PHONE=$http->post("p_tel"); $m->MY_FAX=$http->post("p_fax"); $m->MY_COUNTRY=$http->post("p_pays"); $m->MY_COUNTRY_CODE=$http->post("p_country_code"); $m->MY_CHECK_PERIODE=$http->post("p_check_periode"); $m->MY_DATE_SUGGEST=$http->post("p_date_suggest"); $m->MY_ANALYTIC=$http->post("p_compta"); $m->MY_STRICT=$http->post("p_strict"); $m->MY_TVA_USE=$http->post("p_tva_use"); $m->MY_PJ_SUGGEST=$http->post("p_pj"); $m->MY_ALPHANUM=$http->post("p_alphanum"); $m->MY_UPDLAB=$http->post("p_updlab"); $m->MY_STOCK=$http->post("p_stock"); //$m->MY_CURRENCY=$http->post("p_currency"); $m->MY_DEFAULT_ROUND_ERROR_DEB=$http->post("p_round_error_deb"); $m->MY_DEFAULT_ROUND_ERROR_CRED=$http->post("p_round_error_cred"); $m->MY_ANC_FILTER=$http->post("p_anc_filter"); $m->MY_REPORT=$http->post("p_report"); $m->MY_INVOICE_FORMAT=$http->post("invoice_format"); try { $m->update(); } catch (Exception $e) { alert($e->getMessage()); } } $my=new Noalyss_Parameter_Folder($cn); ///// Compta analytic $array=array( array("value"=>"ob", 'label'=>_("obligatoire")), array("value"=>"op", 'label'=>_("optionnel")), array("value"=>"nu", 'label'=>_("non utilisé")) ); $strict_array=array( array('value'=>'N', 'label'=>_('Non')), array('value'=>'Y', 'label'=>_('Oui')) ); $alpha_num_array[0]=array('value'=>'N', 'label'=>_('Non')); $alpha_num_array[1]=array('value'=>'Y', 'label'=>_('Oui')); $updlab_array[0]=array('value'=>'N', 'label'=>_('Non')); $updlab_array[1]=array('value'=>'Y', 'label'=>_('Oui')); $compta=new ISelect(); $compta->selected=$my->MY_ANALYTIC; $strict=new ISelect(); $strict->selected=$my->MY_STRICT; $tva_use=new ISelect(); $tva_use->selected=$my->MY_TVA_USE; $pj_suggest=new ISelect(); $pj_suggest->selected=$my->MY_PJ_SUGGEST; $date_suggest=new ISelect(); $date_suggest->selected=$my->MY_DATE_SUGGEST; $check_periode=new ISelect(); $check_periode->selected=$my->MY_CHECK_PERIODE; $alpha_num=new ISelect(); $alpha_num->value=$alpha_num_array; $alpha_num->selected=$my->MY_ALPHANUM; $updlab=new ISelect(); $updlab->value=$updlab_array; $updlab->selected=$my->MY_UPDLAB; $stock=new ISelect('p_stock'); $stock->value=array( array('value'=>'N', 'label'=>_('Non')), array('value'=>'Y', 'label'=>_('Oui')) ); $stock->selected=$my->MY_STOCK; $anc_filter=new IText("p_anc_filter", $my->MY_ANC_FILTER); $anc_filter->placeholder='6,7'; $anc_filter->title=_("Uniquement des chiffres séparés par des virgules"); $default_error_deb=new IPoste("p_round_error_deb", $my->MY_DEFAULT_ROUND_ERROR_DEB); $default_error_deb->name='p_round_error_deb'; $default_error_deb->set_attribute('gDossier', Dossier::id()); $default_error_deb->set_attribute('jrn', 0); $default_error_deb->set_attribute('account', 'p_round_error_deb'); $default_error_cred=new IPoste("p_round_error_cred", $my->MY_DEFAULT_ROUND_ERROR_CRED); $default_error_cred->name='p_round_error_cred'; $default_error_cred->set_attribute('gDossier', Dossier::id()); $default_error_cred->set_attribute('jrn', 0); $default_error_cred->set_attribute('account', 'p_round_error_cred'); $report=new ISelect('p_report'); $report->value = array( array('value'=>'N', 'label'=>_('Non')), array('value'=>'Y', 'label'=>_('Oui')) ); $report->selected=$my->MY_REPORT; // invoice format $select_format_invoice=$my->input_select_format(); // other parameters $all=new IText(); $all->table=1; $all->style=' class="input_text"'; ?>

Société

table=1; $all->style=' class="input_text"'; ?> input("p_name", $my->MY_NAME) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_tel", $my->MY_PHONE) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_fax", $my->MY_FAX) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_street", $my->MY_STREET) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_no", $my->MY_NUMBER) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_cp", $my->MY_POSTCODE) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_commune", $my->MY_CITY) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_pays", $my->MY_COUNTRY) ?>
get_array("select cc_code,format('%s %s',cc_code,cc_name) str_name from country_code_ref order by 2,1"); $code= array_column($x, "str_name","cc_code"); $country_code->transform($code); $country_code->selected=$my->MY_COUNTRY_CODE; $all->table=1; $all->style=' class="input_text"'; ?> input("p_country_code" ) ?>
table=1; $all->style=' class="input_text"'; ?> input("p_tva", $my->MY_TVA) ?>

Paramètre supplémentaire

create_js_script(); $object->display_table(); ?>

Fonctionnement

input() ?>
input("p_compta", $array) ?>
input(); echo Icon_Action::tips($anc_filter->title); ?>
input() ?>
input("p_strict", $strict_array) ?>
input("p_tva_use", $strict_array) ?>
"Suggérer","value"=>"Y"],["label"=>"Automatique","value"=>"A"],["label"=>"Manuel","value"=>"N"]); ?> input("p_pj", $receipt_array) ?>
input("p_date_suggest", $strict_array) ?>
input('p_check_periode', $strict_array) ?>
input('p_alphanum') ?>
input('p_updlab') ?>
input() ?>
input() ?>
input() ?>