include("./inc/lib.php"); $accent='ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËéèêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ'; $noaccent='AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn'; //************************************************************************************************ //selection des infos concernant le contact (contact, type, user, organisme) $sqlcontact = "select * from contacts, user where PKuser=".$_POST['pk_user']." AND PKuser=FKuser"; $dbcontact = new class_db($sqlcontact); if ($dbcontact->next_record()) { $PK_Contact = $dbcontact->Record[PKcontact]; $FKSC = $dbcontact->Record[FKsecurite]; $FKtypeC = $dbcontact->Record[FKtypeContact]; $FKuser = $dbcontact->Record[FKuser]; $titreC = $dbcontact->Record[titreContact]; $desC = $dbcontact->Record[desContact]; $categC = $dbcontact->Record[categContact]; $adrC = $dbcontact->Record[adrContact]; $cpC = $dbcontact->Record[CPContact]; $villeC = $dbcontact->Record[villeContact]; $paysC = $dbcontact->Record[paysContact]; $melC = $dbcontact->Record[melContact]; $tel1C = $dbcontact->Record[tel1Contact]; $tel2C = $dbcontact->Record[tel2Contact]; $faxC = $dbcontact->Record[faxContact]; $sitewebC = $dbcontact->Record[sitewebContact]; $anneesortieC = $dbcontact->Record[anneesortieContact]; $nationaliteC = $dbcontact->Record[nationaliteContact]; $nationaliteAffichC = $dbcontact->Record[nationaliteAffich]; $adrAffichC = $dbcontact->Record[adrContactAffich]; $orgAffichC = $dbcontact->Record[orgAffich]; $tel1AffichC = $dbcontact->Record[tel1Affich]; $tel2AffichC = $dbcontact->Record[tel2Affich]; $faxAffichC = $dbcontact->Record[faxAffich]; $melAffichC = $dbcontact->Record[melAffich]; $sitewebAffichC = $dbcontact->Record[sitewebAffich]; $commentaireAudioC = $dbcontact->Record[commentaireAudioContact]; $commentaireAudioAffichC = $dbcontact->Record[commentaireAudioAffich]; $autreOeuvreC = $dbcontact->Record[autreOeuvreContact]; $autreOeuvreAffichC = $dbcontact->Record[autreOeuvreAffich]; $titreMemC = $dbcontact->Record[titreMemContact]; $titreMemAffichC = $dbcontact->Record[titreMemAffich]; $sqluser = "select * from user where PKuser = ".$_POST['pk_user']; $dbuser = new class_db($sqluser); if ($dbuser->next_record()) { $modif = 1; $FKSU = $dbuser->Record[Fksecurite]; $nomU = $dbuser->Record[nom]; $prenomU = $dbuser->Record[prenom]; $civiliteU = $dbuser->Record[civilite]; $loginU = $dbuser->Record[login]; $pswU = $dbuser->Record[psw]; $dateNaissanceU = $dbuser->Record[dateNaissance]; $dateNAffichU = $dbuser->Record[dateNAffich]; $civiliteAffichU = $dbuser->Record[civiliteAffich]; $sqlorg = "select organisme.PKorganisme, organisme.FKsecurite, organisme.raisonSOrg, organisme.desOrg, organisme.adrOrg, organisme.CPOrg, organisme.villeOrg, organisme.paysOrg, organisme.melOrg, organisme.tel1Org, organisme.tel2Org, organisme.faxOrg, organisme.sitewebOrg, organisme.securiteOrg, appartenance.adrAffich, appartenance.tel1Affich, appartenance.tel2Affich, appartenance.faxAffich, appartenance.melAffich from organisme, appartenance "; $sqlorg .= "where appartenance.FKcontact = ".$PK_Contact." and appartenance.FKorganisme = organisme.PKorganisme"; // and appartenance.isonlineApp = 1 and organisme.isonlineOrg = 1 and securiteApp <= ".$secure_id." and organisme.securiteOrg <= ".$secure_id; $dborg = new class_db($sqlorg); if ($dborg->next_record()) { $PKorganisme = $dborg->Record[PKorganisme]; $FKSO = $dborg->Record[FKsecurite]; $raisonSO = $dborg->Record[raisonSOrg]; $desO = $dborg->Record[desOrg]; $adrO = $dborg->Record[adrOrg]; $cpO = $dborg->Record[CPOrg]; $villeO = $dborg->Record[villeOrg]; $paysO = $dborg->Record[paysOrg]; $melO = $dborg->Record[melOrg]; $tel1O = $dborg->Record[tel1Org]; $tel2O = $dborg->Record[tel2Org]; $faxO = $dborg->Record[faxOrg]; $sitewebO = $dborg->Record[sitewebOrg]; $securiteO = $dborg->Record[securiteOrg]; $adrAffichO = $dborg->Record[adrAffich]; $tel1AffichO = $dborg->Record[tel1Affich]; $tel2AffichO = $dborg->Record[tel2Affich]; $faxAffichO = $dborg->Record[faxAffich]; $melAffichO = $dborg->Record[melAffich]; $IsCreaOrg = 0; } else { $sqlapp = "select PKorganisme from organisme, appartenance where appartenance.FKcontact = ".$PK_Contact." and appartenance.FKorganisme = organisme.PKorganisme"; $dbapp = new class_db($sqlapp); if ($dbapp->next_record()) { $IsCreaOrg = 0; }else{ $IsCreaOrg = 1; } } } else { $NonTrouve = 1; } } else { $NonTrouve = 1; } ?>