Subversion Repositories eFlore/Applications.cel

Rev

Rev 3500 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3500 Rev 3509
Line 553... Line 553...
553
	    $correspondance = array("nom_sel" => "user_sci_name",
553
	    $correspondance = array("nom_sel" => "user_sci_name",
554
	        "nom_sel_nn" => "user_sci_name_id",
554
	        "nom_sel_nn" => "user_sci_name_id",
555
	        "nom_ret" => "accepted_sci_name",
555
	        "nom_ret" => "accepted_sci_name",
556
	        "nom_ret_nn" => "accepted_sci_name_id",
556
	        "nom_ret_nn" => "accepted_sci_name_id",
557
	        "famille" => "family",
557
	        "famille" => "family",
-
 
558
	        "certitude" => "certainty",
558
	        "valide" => "is_identiplante_validated",
559
	        "valide" => "is_identiplante_validated",
559
	        "transmission" => "is_public");
560
	        "transmission" => "is_public");
560
		// Nullifiage ...
561
		// Nullifiage ...
561
		// TODO: code dupliqué, en faire une fonction à mettre à la place appropriée
562
		// TODO: code dupliqué, en faire une fonction à mettre à la place appropriée
562
		$champs = array();
563
		$champs = array();
Line 566... Line 567...
566
			    $champs[] = $correspondance[$cle].' = '.$valeur;
567
			    $champs[] = $correspondance[$cle].' = '.$valeur;
567
			}
568
			}
568
		}
569
		}
569
		if (!isset($parametres['transmission'])) {
570
		if (!isset($parametres['transmission'])) {
570
		    $champs[] = "is_identiplante_validated = 1";
571
		    $champs[] = "is_identiplante_validated = 1";
-
 
572
		    $champs[] = "certainty = 'certain'";
571
		}
573
		}
572
		return $champs;
574
		return $champs;
573
	}
575
	}
Line 574... Line 576...
574
 
576