".$msg["alerte_avis_tag"].$temp_aff."" ;
function alerte_tag () {
global $dbh ;
global $msg;
global $opac_allow_add_tag ;
if (!$opac_allow_add_tag) return "";
// comptage des tags à valider
$sql = " SELECT 1 FROM tags limit 1";
$req = mysql_query($sql) or die ($msg["err_sql"]."
".$sql."
".mysql_error());
$nb_limite = mysql_num_rows($req) ;
if (!$nb_limite) return "" ;
else return "
$msg[alerte_tag_a_valider]" ;
}
function alerte_avis () {
global $dbh ;
global $msg;
global $opac_avis_allow ;
if (!$opac_avis_allow) return "";
// comptage des avis à valider
$sql = " SELECT 1 FROM avis where valide=0 limit 1";
$req = mysql_query($sql) or die ($msg["err_sql"]."
".$sql."
".mysql_error());
$nb_depasse = mysql_num_rows($req) ;
if (!$nb_depasse) return "" ;
else return "$msg[alerte_avis_a_valider]" ;
}