IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MkFramework Discussion :

Création de plusieurs enregistrements sur une vue


Sujet :

MkFramework

  1. #41
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Enlevez votre code et remplacez la partie qui nous interesse par le code que j'ai fourni

    Le problème vient de cette ajout en tableau d'une variable en session qui ne doit pas contenir un tableau à l'origine

    ou sinon remplacez:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
    if(!isset($_SESSION['oCandidats_langues'])){
     $_SESSION['oCandidats_langues']=array();
    }else if(!is_array($_SESSION['oCandidats_langues'])){
     $_SESSION['oCandidats_langues']=array($_SESSION['oCandidats_langues']);
    }
     
    $tabSession=$_SESSION['oCandidats_langues'];
    $tabSession[]=$tCandidats;
    $_SESSION['oCandidats_langues'][] = $tabSession;
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  2. #42
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    pour l'instant ça marche même si je ne comprend pas tout. je vais regarder encore en profondeur tout ce qu'on a fait aujourd'hui et imprimer la logique dans ma tête.
    Merci pour ton aide imikado.

  3. #43
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    pour l'instant ça marche même si je ne comprend pas tout.
    oups! Je crois que j'ai parlé un peu trop vite. A chaque fois que je vais sur cette page de multi enregistrement j'ai plusieurs lignes vu que j'ai plusieurs objets en session. Comment effacer les données contenues dans la session?

  4. #44
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    $_SESSION['oCandidats_langues']=null;
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  5. #45
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    Bonjour imikado,

    Voici de cela presque un mois que j'ai ouvert ce sujet. Je cherchais à apporter un plus à une technique que tu m'avais montré (le formulaire multi-step) mais force est de constater que je n'y suis toujours pas parvenue. Peut-être parce que je n'ai pas bien exprimé mon besoin ou que je ne t'ai pas fait voir correctement mon script!
    Y-a t-il un moyen de te contacter directement pour un support plus poussé? Ce serait comme une grande victoire d'arriver au bout de mon idée.

  6. #46
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    On va reprendre de zéro et je posterais un zip du module/model qui fera le job


    1. pouvons nous rappeler les tables (avec si possible le script sql de création)
    2. cahier des charges: formulaire, champs...

    on parle juste du CRUD multi ligne, pas toute l'application non plus
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  7. #47
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    Bonjour et merci d'être disponible pour cette nouvelle journée de MKF,

    On y vas.
    Ci joint la modélisation des tables dans phpmyadmin avec la table 'candidats' pour table centrale.
    Les classes modèles ont été générées par le builder et sont tout ce qu'il y a de plus classique.
    Je veux faire une inscription de candidat avec obligation de renseigner les tables filles de la table 'candidats'.
    J'ai donc été inspirée par ton formulaire multi-step en 3 étapes.
    Dans le module 'inscriptions' voici le main.
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
     
    <?php 
     
     
    class module_inscriptions extends abstract_module{
     
    	public function before(){
    		 //demarrage de la session
           _root::startSession();
     
    		$this->oLayout=new _layout('template2');
     
                 //assignez le menu a l'emplacement menu
                  $this->oLayout->addModule('menu','menuHorizontal::index');
     
    	}
     
    	/*LES INSCRIPTIONS EN ETAPES*/
     
    	/* LA PREMIERE ETAPE */
    	 public function _etape1(){
     
    		   $tMessage=$this->processEtape1();
     
    		if(isset($_SESSION['oCandidat'])){
    			$oCandidat=$_SESSION['oCandidat'];
    		}else{
    			$oCandidat=new row_candidats;
    		}
     
     
    			$oView1=new _view('comptes::connexion');
    		   $oView=new _view('inscriptions::etape1');
    		   $oView->oCandidat=$oCandidat;
     
    					$oView->tJoinmodel_pays=model_pays::getInstance()->getSelect();		$oView->tJoinmodel_domaines=model_domaines::getInstance()->getSelect();
     
    		   $oPluginXsrf=new plugin_xsrf();
    		   $oView->token=$oPluginXsrf->getToken();
    		   $oView->tMessage=$tMessage;
     
    		   $this->oLayout->add('main',$oView1);
    		   $this->oLayout->add('main',$oView);
    		   $this->oLayout->title = 'e-tmg - Inscription';
    	   }
     
    	private function processEtape1(){
           if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
               return null;
           }
     
           $oPluginXsrf=new plugin_xsrf();
           if(!$oPluginXsrf->checkToken( _root::getParam('token') ) ){ //on verifie que le token est valide
               return array('token'=>$oPluginXsrf->getMessage() );
           }
     
           $oCandidat=new row_candidats;	
     
    		$oCandidat->date_inscription = date("Y-m-d");
    		$oCandidat->date_mise_ajour = date("Y-m-d");
    		if(!isset($_POST['jour'])){
    				$_POST['jour'] = 1;
    		}
    		$oCandidat->date_naiss = $_POST['annee'].'-'.$_POST['mois'].'-'.$_POST['jour'].'';
    		if(_root::getParam('mot_de_passe')!=_root::getParam('conf_mot_de_passe')){
    			return array('conf_mot_de_passe'=>'Les deux mots de passe doivent &ecirc;tre identiques');
    		}
     
           $tColumn=array('email','mot_de_passe','nom','prenom','lieu_naiss','sexe','telephone','situation_matri','nb_enfant','cv_fichier_num','pays_id','domaine_id');
    		foreach($tColumn as $sColumn){
    			$oCandidat->$sColumn=_root::getParam($sColumn,null) ;
    		}
    		$oCandidat->nom = strtoupper($oCandidat->nom);
     
           if($oCandidat->isValid()){
               $_SESSION['oCandidat']=$oCandidat;
               //une fois enregistre on redirige (vers la page etape2)
               _root::redirect('inscriptions::etape2');
           }else{
               return $oCandidat->getListError();
           }
       }
     
       //LA DEUXIEME ETAPE
       public function _etape2(){
     
           $tMessage=$this->processEtape2();
     
          if(isset($_SESSION['oDiplome'])){
    			$oDiplome=$_SESSION['oDiplome'];
    		}else{
    			$oDiplome=new row_diplomes;
    		}
     
    		if(isset($_SESSION['oExperience'])){
    			$oExperience=$_SESSION['oExperience'];
    		}else{
    			$oExperience=new row_experiences;
    		}
     
           $oView=new _view('inscriptions::etape2');
           $oView->oDiplome=$oDiplome;
           $oView->oExperience=$oExperience;
     
     
    			$oView->tJoinmodel_type_diplomes=model_type_diplomes::getInstance()->getSelect();		$oView->tJoinmodel_candidats=model_candidats::getInstance()->getSelect();		$oView->tJoinmodel_pays=model_pays::getInstance()->getSelect();
     
           $oPluginXsrf=new plugin_xsrf();
           $oView->token=$oPluginXsrf->getToken();
           $oView->tMessage=$tMessage;
     
           $this->oLayout->add('main',$oView);
    	   $this->oLayout->title = 'e-tmg - Parcours';
       }
     
        private function processEtape2(){
           if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
               return null;
           }
     
           $oPluginXsrf=new plugin_xsrf();
           if(!$oPluginXsrf->checkToken( _root::getParam('token') ) ){ //on verifie que le token est valide
               return array('token'=>$oPluginXsrf->getMessage() );
           }
     
           $oDiplome=new row_diplomes;   
           $tColumn=array('universite','annee','specialite','type_diplome_id','pays_id');
    		foreach($tColumn as $sColumn){
    			$oDiplome->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
    		$oExperience=new row_experiences;   
           $tColumn=array('duree','poste','entreprise');
    		foreach($tColumn as $sColumn){
    			$oExperience->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
     
           if(($oDiplome->isValid()) and ($oExperience->isValid() )){
               $_SESSION['oDiplome']=$oDiplome;
    		   $_SESSION['oExperience']=$oExperience;
               //une fois enregistre on redirige (vers la page etape3)
               _root::redirect('inscriptions::etape3');
           }
    			else if(is_array($oDiplome->getListError()) and is_array($oExperience->getListError()) ){
    				return array_merge($oDiplome->getListError(),$oExperience->getListError()) ;
    			}
    				else if(is_array($oDiplome->getListError()) ){
    					return $oDiplome->getListError();
    				}
    					else if(is_array($oExperience->getListError()) ){
    						return $oExperience->getListError();
    					}
       }
     
     
       /* LA DERNIERE ETAPE */
        public function _etape3(){
     
           $tMessage=$this->processEtape3();
     
    	   if(isset($_SESSION['oCompetence'])){
    			$oCompetence=$_SESSION['oCompetence'];
    		}else{
    			$oCompetence=new row_competences;
    		}
     
    	   if(isset($_SESSION['oCandidats_langues'])){
    			$oCandidats_langues=$_SESSION['oCandidats_langues'];
    		}else{
    			$oCandidats_langues=new row_candidats_langues;
    		}
     
    	   $oCompetence=new row_competences;
     
    	   $oDivers=new row_divers;
     
           $oView=new _view('inscriptions::etape3');	
    	   $oView->oCompetences = $oCompetence;
    	   $oView->oCandidats_langues=$oCandidats_langues;		
    	   $oView->oDivers=$oDivers;
     
    			$oView->tJoinmodel_candidats=model_candidats::getInstance()->getSelect();		$oView->tJoinmodel_langues=model_langues::getInstance()->getSelect();
     
           $oPluginXsrf=new plugin_xsrf();
           $oView->token=$oPluginXsrf->getToken();		
           $oView->tMessage=$tMessage;		
     
           $this->oLayout->add('main',$oView);	
    	   $this->oLayout->title = 'e-tmg - Compétences';
       }
     
        private function processEtape3(){
           if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
               return null;
           }
     
           $oPluginXsrf=new plugin_xsrf();
           if(!$oPluginXsrf->checkToken( _root::getParam('token') ) ){ //on verifie que le token est valide
               return array('token'=>$oPluginXsrf->getMessage() );
           }
     
     
           $oCompetence=new row_competences;   
          $tColumn=array('intitule','description');
    		foreach($tColumn as $sColumn){
    			$oCompetence->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
     
    		$oCandidatLangue = new row_candidats_langues();
    		$tColumn=array('langue_id','niveau');
    		foreach($tColumn as $sColumn){
    			$oCandidatLangue->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
    		$oDivers=new row_divers;
    		$tColumn=array('titre','commentaire');
    		foreach($tColumn as $sColumn){
    			$oDivers->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
     
           if(($oCompetence->isValid()) and ($oCandidatLangue->isValid()) and ($oDivers->isValid())){
     
               // Tous les objets sont ok, on enregistre
               $oCandidat=$_SESSION['oCandidat'];
               $oCandidat->save();
     
               $oDiplome= $_SESSION['oDiplome'];
               $oDiplome->candidat_id=$oCandidat->id;
               $oDiplome->save();
     
    		   $oExperience= $_SESSION['oExperience'];
               $oExperience->candidat_id=$oCandidat->id;
               $oExperience->save();
     
               $oCompetence->candidat_id=$oCandidat->id;
               $oCompetence->save();
     
     
    		   $oCandidatLangue->candidat_id=$oCandidat->id;
               $oCandidatLangue->save();
     
    		   $oDivers->candidat_id=$oCandidat->id;
               $oDivers->save();
     
               //une fois enregistre on redirige 
               _root::redirect('inscriptions::succesInscription');
     
           }
    			else if(is_array($oCompetence->getListError()) and is_array($oCandidatLangue->getListError()) ){
    				return array_merge($oCompetence->getListError(),$oCandidatLangue->getListError()) ;
    			}
    				else if(is_array($oCompetence->getListError()) ){
    					return $oCompetence->getListError();
    				}
    					else if(is_array($oCandidatLangue->getListError()) ){
    						return $oCandidatLangue->getListError();
    					}
     
       }
     
       public function before_succesInscription(){
    	$_SESSION['oCandidat']=null;
    	$_SESSION['oDiplome']=null;
    	$_SESSION['oExperience']=null;
    	$_SESSION['oCompetence']=null;
    	$_SESSION['oCandidatLangue']=null;
    	$_SESSION['oDivers']=null;
       }
     
    	public function _succesInscription(){
    	    $oView=new _view('inscriptions::succesInscription');
     
    		$this->oLayout->add('main',$oView);
    		$this->oLayout->title = 'e-tmg - Succes';
    	}
     
     
    	public function after(){
    		$this->oLayout->show();
    	}
     
     
    }
    Les vues 'etape1','etape2','etape3' sont jointes.
    Le but de la manœuvre est de donner la possibilité au candidat qui s'inscrit, d'enregistrer deux compétences, deux langues, deux diplômes, etc... sur la même vue.

    Comment faire?
    Images attachées Images attachées  
    Fichiers attachés Fichiers attachés

  8. #48
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Voici la proposition pour langue et competences, je vous laisse faire de même pour divers

    La vue etape3:
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
     
    <?php 
    $oForm=new plugin_formMultiRow($this->oCompetences);
    $oForm->setMessage($this->tMessage);
    ?>
    <?php
     $oForm1=new plugin_formMultiRow($this->oCandidats_langues);
    $oForm1->setMessage($this->tMessage)
     ?>
    <?php 
    $oForm2=new plugin_form($this->oDivers);
    $oForm2->setMessage($this->tMessage);
    ?>
    <?php $oFormToken=new plugin_form();
    $oFormToken->setMessage($this->tMessage);?>
     
     
    <script>
    function ajouterCompetence(){
    	var a=getById('competence_new');
    	var b=getById('competence_div');
    	console.log('o');
    	if(a && b){ console.log('b');
    		b.innerHTML+=a.innerHTML;
    	}
    }
    function ajouterLangue(){
    	var a=getById('langue_new');
    	var b=getById('langue_div');
    	console.log('o');
    	if(a && b){ console.log('b');
    		b.innerHTML+=a.innerHTML;
    	}
    }
    </script>
     
    <div >
    <section>
     
    <div style="text-align:right; font-size:0.7em;"><a href="<?php echo _root::getLink('inscriptions::etape1')?>">Informations personnelles</a>   &gt;&gt; <a href="<?php echo _root::getLink('inscriptions::etape2')?>">Parcours</a> &gt;&gt; <span style="color:#e00031;">Compétences</span> </div><br />
    <center>
    <form action="" method="POST" >
     
     
    	<fieldset style="width:90%">
    	<legend>Vos compétences techniques </legend>
     
    		<div id="competence_new">
    		<table class="tb_new" >
    			<?php $oForm->add(null) ?>
    			<tr>
    				<th>Intitulé :</th>
    				<td><?php echo $oForm->getInputText('intitule')?></td>
    			</tr>
     
    			<tr>
    				<th>Description: </th>
    				<td>	<?php $tOption = array();
    					 echo $oForm->getInputTextarea('description',$tOption)?></td>
    			</tr>
    			<tr>
    				<td><?php echo $oForm->getInputHidden('idCompetence') ?></td>
    				<td><p></p></td>
    			</tr>
    		</table>
    		<hr/>
    		</div>
     
    		<div id="competence_div">
     
    		</div>
    		<input type="button" value="Ajouter" onclick="ajouterCompetence()"/>
     
    	</fieldset>	
     
    	<br /><br />
     
    	<fieldset style="width:80%">
    	<legend>Vos compétences linguistiques</legend>
     
    		<div id="langue_new">
    		<?php $oForm1->add(null) ?>
    		<table class="tb_new">
     
    			<tr>
    				<th style="text-align:center;">Langue</th>
    				<th style="text-align:center;">Niveau </th>
     
    			</tr>
     
     
    			<tr>
     
     
    					<td><?php echo $oForm1->getSelect('langue_id',$this->tJoinmodel_langues);?></td>
    					<td><?php
    					$tValue=array(
    									'Langue maternelle'=>'Langue maternelle',
    									'Maitrise courante'=>'Maitrise courante',
    									'Scolaire'=>'Scolaire',
    									'Bonne pratique'=>'Bonne pratique',
     
    								);
    					$tOption = array();
    					echo $oForm1->getSelect('niveau',$tValue,$tOption)?>
     
     
     
    					<?php echo $oForm->getInputHidden('idLangueCandidat') ?></td>
    			</tr>
     
    		</table>
    		<hr/>
    		</div>
     
    		<div id="langue_div">
     
    		</div>
    		<input type="button" value="Ajouter" onclick="ajouterLangue()"/>
     
     
     
     
     
    	</fieldset>
     
    <br /><br />
     
    	<fieldset style="width:75%">
    	<legend>Divers</legend>
    		<table class="tb_new">
     
    			<tr>
    				<th>Titre :</th>
    				<td><?php echo $oForm2->getInputText('titre')?></td>
    			</tr>
     
    			<tr>
    				<th>Commentaire :</th>
    				<td><?php echo $oForm2->getInputTextarea('commentaire')?></td>
    			</tr>
     
    			<tr>
    				<td></td>
    				<td><p></p></td>
    			</tr>
    		</table>
    	</fieldset>
    				<p>
    					<a href="<?php echo _root::getLink('inscriptions::etape2')?>">Retour</a>
    					<input type="submit" value="Terminer" /> 
    				</p>
    <?php echo $oFormToken->getToken('token',$this->token)?>
     
    </form>
    </center>
    </section>
    <aside>
    <div id="sous_aside">
    	<center><b><h3>Gestion de la carrière</h3></b>
    	</center>La politique de gestion des carrières au sein de la filiale consiste à piloter l’employabilité 
    		(connaissances, qualifications et comportement) des salariés de la filiale 
    		et/ou leur mobilité en veillant à concilier leurs compétences et leurs souhaits d’évolution avec la stratégie et les
    		besoins de Total Marketing Gabon <br />	<br />
     
     
    	<img  src="css/images/pub_deposer.png" alt="votre CV" style="width:100%;
    	  height:100%;
    	  display:block;" />
    </div><br />
    <div id="sous_aside">
    	<center><b><h3>Témoignages!</h3></b></center>
     
     
     
    	</div><br />
    <div id="sous_aside">
    	<center><b><h3>Nos conseils emploi</h3></b></center>
    	<ul>
    		<li><a href="" style="">Rédaction du CV</a></li>
    		<li><a href="">La lettre de motivation</a></li>
    		<li><a href="">L'entretient d'embauche</a></li>
    		<li><a href="">La vie en entreprise</a></li>
    		<li><a href="">La carrière</a></li>
    	</ul>
    	<br />
     
     
     
    </div>
     
    </aside>
    </div>

    Et le processSaveEtape3 modifié poru gerer le multi row
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
     
    private function processEtape3(){
           if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
               return null;
           }
     
           $oPluginXsrf=new plugin_xsrf();
           if(!$oPluginXsrf->checkToken( _root::getParam('token') ) ){ //on verifie que le token est valide
               return array('token'=>$oPluginXsrf->getMessage() );
           }
     
     
           $tPost=$_POST;
     
     
           //competences multi
           $bOkCompetence=true;
           $tCompetence=array();
     
           $tCompetenceId=_root::getParam('idCompetence');
           foreach(array_keys($tCompetenceId) as $key ){
     
    	       	$oCompetence=new row_competences;   
    	      	$tColumn=array('intitule','description');
    			foreach($tColumn as $sColumn){
    				$oCompetence->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCompetence->isValid()==false){
    				$bOkCompetence=false;
    			}else{
    				$tCompetence[]=$oCompetence;
    			}
     
    		}
     
     		//langues multi
     		$bOkCandidatLangue=true;
           $tCandidatLangue=array();
     
           $tIdLangueCandidat=_root::getParam('idLangueCandidat');
           foreach(array_keys($tIdLangueCandidat) as $key ){
    			$oCandidatLangue = new row_candidats_langues();
    			$tColumn=array('langue_id','niveau');
    			foreach($tColumn as $sColumn){
    				$oCandidatLangue->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCandidatLangue->isValid()==false){
    				$bOkCandidatLangue=false;
    			}else{
    				$tCandidatLangue[]=$oCandidatLangue;
    			}
     		}
     
     
    		$oDivers=new row_divers;
    		$tColumn=array('titre','commentaire');
    		foreach($tColumn as $sColumn){
    			$oDivers->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
     
           if($bOkCompetence and $bOkCandidatLangue and ($oDivers->isValid())){
     
               // Tous les objets sont ok, on enregistre
               $oCandidat=$_SESSION['oCandidat'];
               $oCandidat->save();
     
               $oDiplome= $_SESSION['oDiplome'];
               $oDiplome->candidat_id=$oCandidat->id;
               $oDiplome->save();
     
    		   $oExperience= $_SESSION['oExperience'];
               $oExperience->candidat_id=$oCandidat->id;
               $oExperience->save();
     
     			foreach($$tCompetence as $oCompetence){
    	           $oCompetence->candidat_id=$oCandidat->id;
    	           $oCompetence->save();
    	       }
     
     			foreach($$tCompetence as $oCompetence){
    			   $oCandidatLangue->candidat_id=$oCandidat->id;
    	           $oCandidatLangue->save();
    	       }
     
    		   $oDivers->candidat_id=$oCandidat->id;
               $oDivers->save();
     
               //une fois enregistre on redirige 
               _root::redirect('inscriptions::succesInscription');
     
           }
    			else if(is_array($oCompetence->getListError()) and is_array($oCandidatLangue->getListError()) ){
    				return array_merge($oCompetence->getListError(),$oCandidatLangue->getListError()) ;
    			}
    				else if(is_array($oCompetence->getListError()) ){
    					return $oCompetence->getListError();
    				}
    					else if(is_array($oCandidatLangue->getListError()) ){
    						return $oCandidatLangue->getListError();
    					}
     
       }
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  9. #49
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    Un pro tu l'es. Merci de t'être penché sur ce cas, j'ai essayé suivant tes instructions et moyennant quelques adaptations ça marche (du moins sur l'étape3).
    Je ne sais pas pourquoi le fichier de l'étape 2 n'a pas pu être joint. Quand j’essaye de faire la même chose à l'étape2 j'ai une erreur concernant le token et je ne comprend pas ce que celui ci peut avoir comme problème vu que je n'ai rien modifié de ce coté là.
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
     //LA DEUXIEME ETAPE
       public function _etape2(){
      
           $tMessage=$this->processEtape2(); //voici la ligne 86
    		
          if(isset($_SESSION['oDiplome'])){
    			$oDiplome=$_SESSION['oDiplome'];
    		}else{
    			$oDiplome=new row_diplomes;
    		}
    		
    		if(isset($_SESSION['oExperience'])){
    			$oExperience=$_SESSION['oExperience'];
    		}else{
    			$oExperience=new row_experiences;
    		}
    
           $oView=new _view('inscriptions::etape2');
           $oView->oDiplome=$oDiplome;
           $oView->oExperience=$oExperience;
    	   
    
    			$oView->tJoinmodel_type_diplomes=model_type_diplomes::getInstance()->getSelect();		$oView->tJoinmodel_candidats=model_candidats::getInstance()->getSelect();		$oView->tJoinmodel_pays=model_pays::getInstance()->getSelect();
    	
           $oPluginXsrf=new plugin_xsrf();
           $oView->token=$oPluginXsrf->getToken();
           $oView->tMessage=$tMessage;
                  
           $this->oLayout->add('main',$oView);
    	   $this->oLayout->title = 'e-tmg - Parcours';
       }
       
        private function processEtape2(){
           if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
               return null;
           }
          
           $oPluginXsrf=new plugin_xsrf();
           if(!$oPluginXsrf->checkToken( _root::getParam('token') ) ){ //on verifie que le token est valide//ceci est la ligne 121
               return array('token'=>$oPluginXsrf->getMessage() );
           }
          
    	  $tPost=$_POST;
     
     
           //diplomes multi
           $bOkDiplome=true;
           $tDiplome=array();
    	  
    	  
    	  $tDiplomeId=_root::getParam('idDiplome');
           foreach(array_keys($tDiplomeId) as $key ){
     
    	       	$oDiplome=new row_diplomes;   
    	      	$tColumn=array('universite','annee','specialite','type_diplome_id','pays_id');
    			foreach($tColumn as $sColumn){
    				$oDiplome->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oDiplome->isValid()==false){
    				$bOkDiplome=false;
    			}else{
    				$tDiplome[]=$oDiplome;
    			}
    		}
    	  
    	  
    	   //experiences multi
           $bOkExperience=true;
           $tExperience=array();
    	  
    	  
    	  $tExperienceId=_root::getParam('idExperience');
           foreach(array_keys($tExperienceId) as $key ){
     
    	       	$oExperience=new row_experiences;   
    	      	$tColumn=array('duree','poste','entreprise');
    			foreach($tColumn as $sColumn){
    				$oExperience->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oExperience->isValid()==false){
    				$bOkExperience=false;
    			}else{
    				$tExperience[]=$oExperience;
    			}
    		}
           
    		
           if($bOkDiplome and $bOkExperience){
               $_SESSION['tDiplome']=$tDiplome;
    		   $_SESSION['tExperience']=$tExperience;
               //une fois enregistre on redirige (vers la page etape3)
               _root::redirect('inscriptions::etape3');
           }
    			else if(is_array($oDiplome->getListError()) and is_array($oExperience->getListError()) ){
    				return array_merge($oDiplome->getListError(),$oExperience->getListError()) ;
    			}
    				else if(is_array($oDiplome->getListError()) ){
    					return $oDiplome->getListError();
    				}
    					else if(is_array($oExperience->getListError()) ){
    						return $oExperience->getListError();
    					}
       }
       
       
       /* LA DERNIERE ETAPE */
        public function _etape3(){
    
           $tMessage=$this->processEtape3();
    
    	   if(isset($_SESSION['oCompetence'])){
    			$oCompetence=$_SESSION['oCompetence'];
    		}else{
    			$oCompetence=new row_competences;
    		}
    	   
    	   if(isset($_SESSION['oCandidats_langues'])){
    			$oCandidats_langues=$_SESSION['oCandidats_langues'];
    		}else{
    			$oCandidats_langues=new row_candidats_langues;
    		}
    	   
    	   $oCompetence=new row_competences;
    	    
    	   $oDivers=new row_divers;
    
           $oView=new _view('inscriptions::etape3');	
    	   $oView->oCompetences = $oCompetence;
    	   $oView->oCandidats_langues=$oCandidats_langues;		
    	   $oView->oDivers=$oDivers;
    
    			$oView->tJoinmodel_candidats=model_candidats::getInstance()->getSelect();		$oView->tJoinmodel_langues=model_langues::getInstance()->getSelect();
    			
           $oPluginXsrf=new plugin_xsrf();
           $oView->token=$oPluginXsrf->getToken();		
           $oView->tMessage=$tMessage;		
                  
           $this->oLayout->add('main',$oView);	
    	   $this->oLayout->title = 'e-tmg - Compétences';
       }
       
       
       
       
       
        
    	private function processEtape3(){
           if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
               return null;
           }
     
           $oPluginXsrf=new plugin_xsrf();
           if(!$oPluginXsrf->checkToken( _root::getParam('token') ) ){ //on verifie que le token est valide
               return array('token'=>$oPluginXsrf->getMessage() );
           }
     
     
           $tPost=$_POST;
     
     
           //competences multi
           $bOkCompetence=true;
           $tCompetence=array();
     
           $tCompetenceId=_root::getParam('idCompetence');
           foreach(array_keys($tCompetenceId) as $key ){
     
    	       	$oCompetence=new row_competences;   
    	      	$tColumn=array('intitule','description');
    			foreach($tColumn as $sColumn){
    				$oCompetence->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCompetence->isValid()==false){
    				$bOkCompetence=false;
    			}else{
    				$tCompetence[]=$oCompetence;
    			}
     
    		}
     
     		//langues multi
     		$bOkCandidatLangue=true;
           $tCandidatLangue=array();
     
           $tIdLangueCandidat=_root::getParam('idLangueCandidat');
           foreach(array_keys($tIdLangueCandidat) as $key ){
    			$oCandidatLangue = new row_candidats_langues();
    			$tColumn=array('langue_id','niveau');
    			foreach($tColumn as $sColumn){
    				$oCandidatLangue->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCandidatLangue->isValid()==false){
    				$bOkCandidatLangue=false;
    			}else{
    				$tCandidatLangue[]=$oCandidatLangue;
    			}
     		}
     
     
    		$oDivers=new row_divers;
    		$tColumn=array('titre','commentaire');
    		foreach($tColumn as $sColumn){
    			$oDivers->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
     
           if($bOkCompetence and $bOkCandidatLangue and ($oDivers->isValid())){
     
               // Tous les objets sont ok, on enregistre
               $oCandidat=$_SESSION['oCandidat'];
               $oCandidat->save();
     
               $tDiplome= $_SESSION['tDiplome'];
    		   foreach($tDiplome as $oDiplome){
    	            $oDiplome->candidat_id=$oCandidat->id;
    				$oDiplome->save();
    	       }
               
    		   $tExperience= $_SESSION['tExperience'];
    		   foreach($tExperience as $oExperience){
    	            $oExperience->candidat_id=$oCandidat->id;
    				$oExperience->save();
    	       }
     
     			foreach($tCompetence as $oCompetence){
    	           $oCompetence->candidat_id=$oCandidat->id;
    	           $oCompetence->save();
    	       }
     
     			foreach($tCandidatLangue as $oCandidatLangue){
    			   $oCandidatLangue->candidat_id=$oCandidat->id;
    	           $oCandidatLangue->save();
    	       }
     
    		   $oDivers->candidat_id=$oCandidat->id;
               $oDivers->save();
     
               //une fois enregistre on redirige 
               _root::redirect('inscriptions::succesInscription');
     
           }
    			else if(is_array($oCompetence->getListError()) and is_array($oCandidatLangue->getListError()) ){
    				return array_merge($oCompetence->getListError(),$oCandidatLangue->getListError()) ;
    			}
    				else if((is_array($oCompetence->getListError()) ) OR ($bOkCompetence==false)){
    					return $oCompetence->getListError();
    				}
    					else if(is_array($oCandidatLangue->getListError()) ){
    						return $oCandidatLangue->getListError();
    					}
     
       }
    et quand je remplit l'étape2 pour passer à la dernière voici le message d'erreur:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    preg_split() expects parameter 2 to be string, array given
    #0 [internal function]: exception_error_handler(2, 'preg_split() ex...', 'C:\\xampp\\htdocs...', 114, Array)
    #1 C:\xampp\htdocs\MKF\data\genere\e-tmg\plugin\plugin_xsrf.php(114): preg_split('/####/', Array)
    #2 C:\xampp\htdocs\MKF\data\genere\e-tmg\module\inscriptions\main.php(121): plugin_xsrf->checkToken(Array)
    #3 C:\xampp\htdocs\MKF\data\genere\e-tmg\module\inscriptions\main.php(86): module_inscriptions->processEtape2()
    #4 C:\xampp\htdocs\MKF\lib\framework\class_root.php(263): module_inscriptions->_etape2()
    #5 C:\xampp\htdocs\MKF\data\genere\e-tmg\public\index.php(47): _root->run()
    #6 {main}
     
    Detail:
    #0 exception_error_handler( , 'preg_split() expects parameter 2 to be string, array given' , 'C:\xampp\htdocs\MKF\data\genere\e-tmg\plugin\plugin_xsrf.php' , , Array ( [sInputToken] => Array ( [0] => 1446734533####ed89d7d7edd6e5e4f29dfb5b191af5ea4f7b29d4 ) ) ) 
    #1 C:\xampp\htdocs\MKF\data\genere\e-tmg\plugin\plugin_xsrf.php (114) 
    preg_split( '/####/' , Array ( [0] => 1446734533####ed89d7d7edd6e5e4f29dfb5b191af5ea4f7b29d4 ) ) 
    #2 C:\xampp\htdocs\MKF\data\genere\e-tmg\module\inscriptions\main.php (121) 
    plugin_xsrf -> checkToken( Array ( [0] => 1446734533####ed89d7d7edd6e5e4f29dfb5b191af5ea4f7b29d4 ) ) 
    #3 C:\xampp\htdocs\MKF\data\genere\e-tmg\module\inscriptions\main.php (86) 
    module_inscriptions -> processEtape2( ) 
    #4 C:\xampp\htdocs\MKF\lib\framework\class_root.php (263) 
    module_inscriptions -> _etape2( ) 
    #5 C:\xampp\htdocs\MKF\data\genere\e-tmg\public\index.php (47) 
    _root -> run( ) 
    #6 {main}
    Fichier : C:\xampp\htdocs\MKF\data\genere\e-tmg\plugin\plugin_xsrf.php ligne 114
     
    Message : preg_split() expects parameter 2 to be string, array given
    peux-tu regarder encore pour moi s'il te plait?!

    PS: je crois que si je met des contraintes dans les model (getCheck()) rien ne marche. mais bon je regarderai ça plus en détail quand le problème actuel sera derrière.
    Fichiers attachés Fichiers attachés

  10. #50
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Pour le token, dans votre vue etape2.php il faut utiliser le plugin_form plutot que le plugin_formMultiRow pour le token
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    $oFormToken=new plugin_form();
    $oFormToken->setMessage($this->tMessage);
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  11. #51
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    Merci pour la correction.
    Vu que maintenant on peut avoir plusieurs compétences sur la vue etape3 si je vais en arrière et que je reviens, pourrais-je conserver sur la vue toutes les compétences déjà renseignées?

  12. #52
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Oui c'est possible, il va falloir gérer en session également
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  13. #53
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    Gérer en session un tableau:
    Vous remarquerez dans le main.php qu'à la deuxième étape j'ai essayé d'introduire la récupération du tableau $_SESSION['tDiplome'] pour afficher plusieurs diplômes dans la vue, mais... comment traiter cela dans 'etape2.php'?
    Merci
    Fichiers attachés Fichiers attachés

  14. #54
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Essayez ainsi:

    méthode

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
     
    public function _etape3(){
     
           $tMessage=$this->processEtape3();
     
    	   if(isset($_SESSION['tCompetence'])){
    			$oCompetence=$_SESSION['tCompetence'];
    		}else{
    			$oCompetence=new row_competences;
    		}
     
    	   if(isset($_SESSION['tCandidatLangue'])){
    			$oCandidats_langues=$_SESSION['tCandidatLangue'];
    		}else{
    			$oCandidats_langues=new row_candidats_langues;
    		}
     
    	   $oCompetence=new row_competences;
     
    	   $oDivers=new row_divers;
     
           $oView=new _view('inscriptions::etape3');	
    	   $oView->oCompetences = $oCompetence;
    	   $oView->oCandidats_langues=$oCandidats_langues;		
    	   $oView->oDivers=$oDivers;
     
    			$oView->tJoinmodel_candidats=model_candidats::getInstance()->getSelect();		$oView->tJoinmodel_langues=model_langues::getInstance()->getSelect();
     
           $oPluginXsrf=new plugin_xsrf();
           $oView->token=$oPluginXsrf->getToken();		
           $oView->tMessage=$tMessage;		
     
           $this->oLayout->add('main',$oView);	
    	   $this->oLayout->title = 'e-tmg - Compétences';
       }
     
        private function processEtape3(){
           if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
               return null;
           }
     
           $oPluginXsrf=new plugin_xsrf();
           if(!$oPluginXsrf->checkToken( _root::getParam('token') ) ){ //on verifie que le token est valide
               return array('token'=>$oPluginXsrf->getMessage() );
           }
     
     
           $tPost=$_POST;
     
     
           //competences multi
           $bOkCompetence=true;
           $tCompetence=array();
     
           $tCompetenceId=_root::getParam('idCompetence');
           foreach(array_keys($tCompetenceId) as $key ){
     
    	       	$oCompetence=new row_competences;   
    	      	$tColumn=array('intitule','description');
    			foreach($tColumn as $sColumn){
    				$oCompetence->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCompetence->isValid()==false){
    				$bOkCompetence=false;
    			}else{
    				$tCompetence[]=$oCompetence;
    			}
     
    		}
     
     		//langues multi
     		$bOkCandidatLangue=true;
           $tCandidatLangue=array();
     
           $tIdLangueCandidat=_root::getParam('idLangueCandidat');
           foreach(array_keys($tIdLangueCandidat) as $key ){
    			$oCandidatLangue = new row_candidats_langues();
    			$tColumn=array('langue_id','niveau');
    			foreach($tColumn as $sColumn){
    				$oCandidatLangue->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCandidatLangue->isValid()==false){
    				$bOkCandidatLangue=false;
    			}else{
    				$tCandidatLangue[]=$oCandidatLangue;
    			}
     		}
     
     
    		$oDivers=new row_divers;
    		$tColumn=array('titre','commentaire');
    		foreach($tColumn as $sColumn){
    			$oDivers->$sColumn=_root::getParam($sColumn,null) ;
    		}
     
     
     		//gestion retour
    		if(_root::getParam('bouton')=='Retour'){
    			$_SESSION['tCandidatLangue']=$tCandidatLangue;
    			$_SESSION['tCompetence']=$tCompetence;
    			$_SESSION['oDivers']=$oDivers;
     
    			_root::redirect('inscriptions::etape2');
    		}
     
     
           if($bOkCompetence and $bOkCandidatLangue and ($oDivers->isValid())){
     
               // Tous les objets sont ok, on enregistre
               $oCandidat=$_SESSION['oCandidat'];
               $oCandidat->save();
     
               $oDiplome= $_SESSION['oDiplome'];
               $oDiplome->candidat_id=$oCandidat->id;
               $oDiplome->save();
     
    		   $oExperience= $_SESSION['oExperience'];
               $oExperience->candidat_id=$oCandidat->id;
               $oExperience->save();
     
     			foreach($$tCompetence as $oCompetence){
    	           $oCompetence->candidat_id=$oCandidat->id;
    	           $oCompetence->save();
    	       }
     
     			foreach($$tCompetence as $oCompetence){
    			   $oCandidatLangue->candidat_id=$oCandidat->id;
    	           $oCandidatLangue->save();
    	       }
     
    		   $oDivers->candidat_id=$oCandidat->id;
               $oDivers->save();
     
               //une fois enregistre on redirige 
               _root::redirect('inscriptions::succesInscription');
     
           }
    			else if(is_array($oCompetence->getListError()) and is_array($oCandidatLangue->getListError()) ){
    				return array_merge($oCompetence->getListError(),$oCandidatLangue->getListError()) ;
    			}
    				else if(is_array($oCompetence->getListError()) ){
    					return $oCompetence->getListError();
    				}
    					else if(is_array($oCandidatLangue->getListError()) ){
    						return $oCandidatLangue->getListError();
    					}
     
       }
     
       public function before_succesInscription(){
    	$_SESSION['oCandidat']=null;
    	$_SESSION['oDiplome']=null;
    	$_SESSION['oExperience']=null;
    	$_SESSION['oCompetence']=null;
    	$_SESSION['oCandidatLangue']=null;
    	$_SESSION['oDivers']=null;
       }
    Fichier view/etape3.php
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
     
    <?php 
    $oForm=new plugin_formMultiRow($this->oCompetences);
    $oForm->setMessage($this->tMessage);
    ?>
    <?php
     $oForm1=new plugin_formMultiRow($this->oCandidats_langues);
    $oForm1->setMessage($this->tMessage)
     ?>
    <?php 
    $oForm2=new plugin_form($this->oDivers);
    $oForm2->setMessage($this->tMessage);
    ?>
    <?php $oFormToken=new plugin_form();
    $oFormToken->setMessage($this->tMessage);?>
     
     
    <script>
    function ajouterCompetence(){
    	var a=getById('competence_new');
    	var b=getById('competence_div');
    	console.log('o');
    	if(a && b){ console.log('b');
    		b.innerHTML+=a.innerHTML;
    	}
    }
    function ajouterLangue(){
    	var a=getById('langue_new');
    	var b=getById('langue_div');
    	console.log('o');
    	if(a && b){ console.log('b');
    		b.innerHTML+=a.innerHTML;
    	}
    }
    </script>
     
    <div >
    <section>
     
    <div style="text-align:right; font-size:0.7em;"><a href="<?php echo _root::getLink('inscriptions::etape1')?>">Informations personnelles</a>   &gt;&gt; <a href="<?php echo _root::getLink('inscriptions::etape2')?>">Parcours</a> &gt;&gt; <span style="color:#e00031;">Compétences</span> </div><br />
    <center>
    <form action="" method="POST" >
     
     
    	<fieldset style="width:90%">
    	<legend>Vos compétences techniques </legend>
     
    		<?php if(isset($_SESSION['tCompetence']) ):?>
    			<?php foreach($_SESSION['tCompetence'] as   $oCompetences):?>
     
    				<table class="tb_new" >
    					<?php $oForm->add($oCompetences) ?>
    					<tr>
    						<th>Intitulé :</th>
    						<td><?php echo $oForm->getInputText('intitule');?></td>
    					</tr>
     
    					<tr>
    						<th>Description: </th>
    						<td>	<?php $tOption = array();
    							 echo $oForm->getInputTextarea('description',$tOption)?></td>
    					</tr>
    					<tr>
    						<td><?php echo $oForm->getInputHidden('idCompetence') ?></td>
    						<td><p></p></td>
    					</tr>
    				</table>
     
    			<?php endforeach;?>
     
    		<?php endif;?>
     
     
    		<div id="competence_new">		
    		<table class="tb_new" >
    			<?php $oForm->add(null) ?>
    			<tr>
    				<th>Intitulé :</th>
    				<td><?php echo $oForm->getInputText('intitule')?></td>
    			</tr>
     
    			<tr>
    				<th>Description: </th>
    				<td>	<?php $tOption = array();
    					 echo $oForm->getInputTextarea('description',$tOption)?></td>
    			</tr>
    			<tr>
    				<td><?php echo $oForm->getInputHidden('idCompetence') ?></td>
    				<td><p></p></td>
    			</tr>
    		</table>
    		<hr/>
    		</div>
     
    		<div id="competence_div">
     
    		</div>
    		<input type="button" value="Ajouter" onclick="ajouterCompetence()"/>
     
    	</fieldset>	
     
    	<br /><br />
     
    	<fieldset style="width:80%">
    	<legend>Vos compétences linguistiques</legend>
     
     
    		<?php if(isset($_SESSION['tCandidatLangue']) ):?>
    			<?php foreach($_SESSION['tCandidatLangue'] as $key => $oCandidats_langues):?>
     
     
    				<?php $oForm1->add($oCandidats_langues) ?>
    				<table class="tb_new">
     
    					<tr>
    						<th style="text-align:center;">Langue</th>
    						<th style="text-align:center;">Niveau </th>
     
    					</tr>
     
     
    					<tr>
     
     
    							<td><?php echo $oForm1->getSelect('langue_id',$this->tJoinmodel_langues);?></td>
    							<td><?php
    							$tValue=array(
    											'Langue maternelle'=>'Langue maternelle',
    											'Maitrise courante'=>'Maitrise courante',
    											'Scolaire'=>'Scolaire',
    											'Bonne pratique'=>'Bonne pratique',
     
    										);
    							$tOption = array();
    							echo $oForm1->getSelect('niveau',$tValue,$tOption)?>
     
     
     
    							<?php echo $oForm->getInputHidden('idLangueCandidat') ?></td>
    					</tr>
     
    				</table>
    			<?php endforeach;?>
     
    		<?php endif;?>
     
     
    		<div id="langue_new">
    		<?php $oForm1->add(null) ?>
    		<table class="tb_new">
     
    			<tr>
    				<th style="text-align:center;">Langue</th>
    				<th style="text-align:center;">Niveau </th>
     
    			</tr>
     
     
    			<tr>
     
     
    					<td><?php echo $oForm1->getSelect('langue_id',$this->tJoinmodel_langues);?></td>
    					<td><?php
    					$tValue=array(
    									'Langue maternelle'=>'Langue maternelle',
    									'Maitrise courante'=>'Maitrise courante',
    									'Scolaire'=>'Scolaire',
    									'Bonne pratique'=>'Bonne pratique',
     
    								);
    					$tOption = array();
    					echo $oForm1->getSelect('niveau',$tValue,$tOption)?>
     
     
     
    					<?php echo $oForm->getInputHidden('idLangueCandidat') ?></td>
    			</tr>
     
    		</table>
    		<hr/>
    		</div>
     
    		<div id="langue_div">
     
    		</div>
    		<input type="button" value="Ajouter" onclick="ajouterLangue()"/>
     
     
     
     
     
    	</fieldset>
     
    <br /><br />
     
    	<fieldset style="width:75%">
    	<legend>Divers</legend>
    		<table class="tb_new">
     
    			<tr>
    				<th>Titre :</th>
    				<td><?php echo $oForm2->getInputText('titre')?></td>
    			</tr>
     
    			<tr>
    				<th>Commentaire :</th>
    				<td><?php echo $oForm2->getInputTextarea('commentaire')?></td>
    			</tr>
     
    			<tr>
    				<td></td>
    				<td><p></p></td>
    			</tr>
    		</table>
    	</fieldset>
    				<p>
     
     
    					<input type="submit" name="bouton" value="Retour"/>
     
    					<input type="submit" value="Terminer" /> 
    				</p>
    <?php echo $oFormToken->getToken('token',$this->token)?>
     
    </form>
    </center>
    </section>
    <aside>
    <div id="sous_aside">
    	<center><b><h3>Gestion de la carrière</h3></b>
    	</center>La politique de gestion des carrières au sein de la filiale consiste à piloter l’employabilité 
    		(connaissances, qualifications et comportement) des salariés de la filiale 
    		et/ou leur mobilité en veillant à concilier leurs compétences et leurs souhaits d’évolution avec la stratégie et les
    		besoins de Total Marketing Gabon <br />	<br />
     
     
    	<img  src="css/images/pub_deposer.png" alt="votre CV" style="width:100%;
    	  height:100%;
    	  display:block;" />
    </div><br />
    <div id="sous_aside">
    	<center><b><h3>Témoignages!</h3></b></center>
     
     
     
    	</div><br />
    <div id="sous_aside">
    	<center><b><h3>Nos conseils emploi</h3></b></center>
    	<ul>
    		<li><a href="" style="">Rédaction du CV</a></li>
    		<li><a href="">La lettre de motivation</a></li>
    		<li><a href="">L'entretient d'embauche</a></li>
    		<li><a href="">La vie en entreprise</a></li>
    		<li><a href="">La carrière</a></li>
    	</ul>
    	<br />
     
     
     
    </div>
     
    </aside>
    </div>
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  15. #55
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    D'accord, je vais implémenter cela sur l'étape 2 car je pense que c'est sur elle qu'il y a besoin qu'on se souvienne des données enregistrées. A l'étape 3 je suppose que si l'internaute a cliqué "retour" c'est qu'il ne souhaite pas encore valider ce qu'il a fait sur cette page.

  16. #56
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Oui mais à l'étape 2 vous n'avez pas ce formulaire de choix des langues et competences

    Ou sinon ajoutez une etape 4
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  17. #57
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    Salut,
    merci beaucoup pour la gestion des retours, ça marche bien.
    Maintenant je voulais ajouter une verification sur les langues dans etape3.C'est-à-dire empêcher d'insérer dans le tableau '$tCandidatLangue' un objet '$oCandidatLangue' dont la langue est déjà connue dans un précédent objet '$oCandidatLangue' dudit tableau. En somme éviter de renseigner 2 niveaux pour une même langue.
    J'ai décidé de le faire non pas dans la vue mais lors du traitement processEtape3(). Ici:
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    //langues multi
     		$bOkCandidatLangue=true;
           $tCandidatLangue=array();
    	   $bLangueTrouve = false;
     
           $tIdLangueCandidat=_root::getParam('idLangueCandidat');
           foreach(array_keys($tIdLangueCandidat) as $key ){
     
    			$oCandidatLangue = new row_candidats_langues();
    			$tColumn=array('langue_id','niveau');
    			foreach($tColumn as $sColumn){
    				$oCandidatLangue->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCandidatLangue->isValid()==false){
    				$bOkCandidatLangue=false;
    			}else{
    //ici je check dans $tCandidatLangue que la langue d'un objet n'est pas $oCandidatLangue->langue_id
    //si aucun objet ne contient $oCandidatLangue->langue_id alors j'insère
    				$tCandidatLangue[]=$oCandidatLangue;
    			}
     		}
    Voici ma question: existe t-il une fonction pour parcourir '$tCandidatLangue' en sorte de comparer les langues de chaque objet à $oCandidatLangue->langue_id ?
    J'ai essayé array_filter() mais je n'ai pas réussi à comprendre son fonctionnement avec les histoires de flag et fonctions utilisateur je me suis perdue.
    Merci encore.

  18. #58
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    A part faire un foreach, je ne vois pas trop, j'utilise peu les fonction array_.. (array_walk...)
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  19. #59
    Membre régulier
    Femme Profil pro
    Étudiant
    Inscrit en
    Septembre 2015
    Messages
    304
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Gabon

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Septembre 2015
    Messages : 304
    Points : 107
    Points
    107
    Par défaut
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    //langues multi
     	   $bOkCandidatLangue=true;
           $tCandidatLangue=array();
    	   $bLangueTrouve = false;
     
     
           $tIdLangueCandidat=_root::getParam('idLangueCandidat');
           foreach(array_keys($tIdLangueCandidat) as $key ){
     
    			$oCandidatLangue = new row_candidats_langues();
    			$tColumn=array('langue_id','niveau');
    			foreach($tColumn as $sColumn){
    				$oCandidatLangue->$sColumn=$tPost[$sColumn][$key] ;
    			}
     
    			if($oCandidatLangue->isValid()==false){
    				$bOkCandidatLangue=false;
    			}else{
    //ici le foreach
    				foreach($tCandidatLangue as $oLangueDejaStocke){
    					if($oLangueDejaStocke->langue_id!=$oCandidatLangue->langue_id){
    						$tCandidatLangue[]=$oCandidatLangue;
    					}
     
    				}
    			}
     		}
    Est-ce normal ainsi? je crois que dans ce cas il y aura plusieurs fois insertions du même objet! qu'en dites vous?

  20. #60
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Plutot:
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
     
    //langues multi
    	$bOkCandidatLangue=true;
    	$tCandidatLangue=array();
    	$bLangueTrouve = false;
     
    	$tIndexedLangue=array();
     
    	$tIdLangueCandidat=_root::getParam('idLangueCandidat');
    	foreach(array_keys($tIdLangueCandidat) as $key ){
     
    		$oCandidatLangue = new row_candidats_langues();
    		$tColumn=array('langue_id','niveau');
    		foreach($tColumn as $sColumn){
    			$oCandidatLangue->$sColumn=$tPost[$sColumn][$key] ;
    		}
     
    		if($oCandidatLangue->isValid()==false){
    			$bOkCandidatLangue=false;
    		}else{
     
    			if(isset($tIndexedLangue[$oCandidatLangue->langue_id])==false){
    				$tCandidatLangue[]=$oCandidatLangue;
    			}
     
    			$tIndexedLangue[$oCandidatLangue->langue_id]=1;
    		}
    	}
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [AC-2007] Plusieurs enregistrements sur une même page d'un formulaire
    Par Triton972 dans le forum IHM
    Réponses: 3
    Dernier message: 16/10/2011, 16h00
  2. Réponses: 3
    Dernier message: 06/01/2011, 22h17
  3. [AC-2000] obtenir plusieurs enregistrements sur une même ligne
    Par woant dans le forum Requêtes et SQL.
    Réponses: 1
    Dernier message: 14/05/2009, 17h31
  4. concaténer plusieurs enregistrements sur une colonne
    Par pierre22 dans le forum Requêtes et SQL.
    Réponses: 12
    Dernier message: 10/09/2007, 19h26
  5. Réponses: 3
    Dernier message: 20/05/2007, 23h41

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo