'; require_once NOALYSS_INCLUDE.'/class_own.php'; if (isset($_POST['record_company'])) { $m = new Own($cn); extract($_POST); $m->MY_NAME = $p_name; $m->MY_TVA = $p_tva; $m->MY_STREET = $p_street; $m->MY_NUMBER = $p_no; $m->MY_CP = $p_cp; $m->MY_COMMUNE = $p_Commune; $m->MY_TEL = $p_tel; $m->MY_FAX = $p_fax; $m->MY_PAYS = $p_pays; $m->MY_CHECK_PERIODE = $p_check_periode; $m->MY_DATE_SUGGEST = $p_date_suggest; $m->MY_ANALYTIC = $p_compta; $m->MY_STRICT = $p_strict; $m->MY_TVA_USE = $p_tva_use; $m->MY_PJ_SUGGEST = $p_pj; $m->MY_ALPHANUM = $p_alphanum; $m->MY_UPDLAB = $p_updlab; $m->MY_STOCK = $p_stock; $m->Update(); } $my = new Own($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->table = 1; $compta->selected = $my->MY_ANALYTIC; $strict = new ISelect(); $strict->table = 1; $strict->selected = $my->MY_STRICT; $tva_use = new ISelect(); $tva_use->table = 1; $tva_use->selected = $my->MY_TVA_USE; $pj_suggest = new ISelect(); $pj_suggest->table = 1; $pj_suggest->selected = $my->MY_PJ_SUGGEST; $date_suggest = new ISelect(); $date_suggest->table = 1; $date_suggest->selected = $my->MY_DATE_SUGGEST; $check_periode = new ISelect(); $check_periode->table = 1; $check_periode->selected = $my->MY_CHECK_PERIODE; $alpha_num = new ISelect(); $alpha_num->table = 1; $alpha_num->value = $alpha_num_array; $alpha_num->selected = $my->MY_ALPHANUM; $updlab = new ISelect(); $updlab->table = 1; $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; $stock->table = 1; // other parameters $all = new IText(); $all->table = 1; echo '
"; echo ''; return; ?>