Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1613 Rev 1614
Line 1059... Line 1059...
1059
	}
1059
	}
1060
}
1060
}
Line 1061... Line 1061...
1061
 
1061
 
1062
function afficherObs() {
1062
function afficherObs() {
-
 
1063
	var numNomSel = ($('#taxon-liste').val() == '?') ? $('#taxon').data('numNomSel') : $('#taxon-liste').val(),
1063
	var numNomSel = ($('#taxon-liste').val() == '?') ? $('#taxon').data('numNomSel') : $('#taxon-liste').val(),
1064
		nomSpecial = $('#taxon-liste option:selected').hasClass('nom-special'),
1064
		taxon = ($('#taxon-liste').val() == '?') ? $('#taxon').val() : $('#taxon-liste option:selected').data('nom-a-sauver'),
1065
		taxon = ($('#taxon-liste').val() == '?') ? $('#taxon').val() : $('#taxon-liste option:selected').data('nom-a-sauver'),
1065
		referentiel = (numNomSel == undefined) ? '' : '['+NOM_SCI_PROJET+']',
1066
		referentiel = (numNomSel == undefined) ? '' : '['+NOM_SCI_PROJET+']',
1066
		commune = $('#commune-nom').text(),
1067
		commune = $('#commune-nom').text(),
1067
		codeInsee = $('#commune-code-insee').text(),
1068
		codeInsee = $('#commune-code-insee').text(),
Line 1071... Line 1072...
1071
		site = $('#station').val(),
1072
		site = $('#station').val(),
1072
		revetement = $('#revetement-sol').val(),
1073
		revetement = $('#revetement-sol').val(),
1073
		intensiteGestion = $('#intensite-gestion').val(),
1074
		intensiteGestion = $('#intensite-gestion').val(),
1074
		resistance = $('#resistance-traitement-phyto').val(),
1075
		resistance = $('#resistance-traitement-phyto').val(),
1075
		milieux = getMilieux(),
1076
		milieux = getMilieux(),
1076
		notes = $('#notes').val();
1077
		notes = (nomSpecial ? taxons[numNomSel]['nom_fr'] + ".<br />" : '') + $('#notes').val();
Line 1077... Line 1078...
1077
	
1078
	
1078
	$('#liste-obs').prepend(
1079
	$('#liste-obs').prepend(
1079
		'<div id="obs'+obsNbre+'" class="row-fluid obs obs'+obsNbre+'">'+
1080
		'<div id="obs'+obsNbre+'" class="row-fluid obs obs'+obsNbre+'">'+
1080
			'<div class="span12">'+
1081
			'<div class="span12">'+
Line 1107... Line 1108...
1107
									'<span>Intensité de gestion :</span> ' + intensiteGestion + ' ' + ' ; ' +
1108
									'<span>Intensité de gestion :</span> ' + intensiteGestion + ' ' + ' ; ' +
1108
									'<span>Milieu :</span> ' + milieux + ' ' + ' ; ' +
1109
									'<span>Milieu :</span> ' + milieux + ' ' + ' ; ' +
1109
									'<span>Résistance/Résilience :</span> ' + resistance + ' ' +
1110
									'<span>Résistance/Résilience :</span> ' + resistance + ' ' +
1110
								'</li>' +
1111
								'</li>' +
1111
								'<li>' +
1112
								'<li>' +
1112
									'Commentaires : <span class="discretion">' + notes + '</span>'+
1113
									'Commentaires : ' + notes + 
1113
								'</li>'+
1114
								'</li>'+
1114
							'</ul>'+
1115
							'</ul>'+
1115
						'</div>'+
1116
						'</div>'+
1116
					'</div>'+
1117
					'</div>'+
1117
				'</div>'+
1118
				'</div>'+
Line 1267... Line 1268...
1267
	return noms;
1268
	return noms;
1268
}
1269
}
Line 1269... Line 1270...
1269
 
1270
 
1270
function stockerObsData() {
1271
function stockerObsData() {
-
 
1272
	var nomHorsListe = $('#taxon-liste').val() == '?' ? true : false;
1271
	var nomHorsListe = $('#taxon-liste').val() == '?' ? true : false;
1273
		nomSpecial = $('#taxon-liste option:selected').hasClass('nom-special'),
1272
		numNomSel = nomHorsListe ? $('#taxon').data('numNomSel') : $('#taxon-liste').val(),
1274
		numNomSel = nomHorsListe ? $('#taxon').data('numNomSel') : $('#taxon-liste').val(),
1273
		nomSel = nomHorsListe ? $('#taxon').val() : $('#taxon-liste option:selected').data('nom-a-sauver'),
1275
		nomSel = nomHorsListe ? $('#taxon').val() : $('#taxon-liste option:selected').data('nom-a-sauver'),
1274
		nomRet = nomHorsListe ? $('#taxon').data('nomRet') : taxons[numNomSel]['nom_ret'],
1276
		nomRet = nomHorsListe ? $('#taxon').data('nomRet') : taxons[numNomSel]['nom_ret'],
1275
		numNomRet = nomHorsListe ? $('#taxon').data('numNomRet') : taxons[numNomSel]['num_nom_ret'],
1277
		numNomRet = nomHorsListe ? $('#taxon').data('numNomRet') : taxons[numNomSel]['num_nom_ret'],
1276
		numTaxon = nomHorsListe ? $('#taxon').data('nt') : taxons[numNomSel]['num_taxon'],
1278
		numTaxon = nomHorsListe ? $('#taxon').data('nt') : taxons[numNomSel]['num_taxon'],
1277
		famille = nomHorsListe ? $('#taxon').data('famille') : taxons[numNomSel]['famille'],
1279
		famille = nomHorsListe ? $('#taxon').data('famille') : taxons[numNomSel]['famille'],
-
 
1280
		referentiel = (numNomSel == undefined) ? '' : NOM_SCI_REFERENTIEL,
Line 1278... Line 1281...
1278
		referentiel = (numNomSel == undefined) ? '' : NOM_SCI_REFERENTIEL;
1281
		notes = (nomSpecial ? taxons[numNomSel]['nom_fr'] + '. ' : '') + $('#notes').val();
1279
	
1282
	
1280
	$('#liste-obs').data('obsId'+obsNbre, {
1283
	$('#liste-obs').data('obsId'+obsNbre, {
Line 1281... Line 1284...
1281
		'date': $('#date').val(), 
1284
		'date': $('#date').val(), 
1282
		'notes': $('#notes').val(),
1285
		'notes': notes,
1283
		
1286
		
1284
		'station': $('#station').val(),
1287
		'station': $('#station').val(),