".htmlentities($msg["empr_sugg_tit"], ENT_QUOTES, $charset)." |
|
".htmlentities($msg["empr_sugg_aut"], ENT_QUOTES, $charset)." |
|
".htmlentities($msg["empr_sugg_edi"], ENT_QUOTES, $charset)." |
|
".htmlentities($msg["empr_sugg_code"], ENT_QUOTES, $charset)." |
|
".htmlentities($msg["empr_sugg_prix"], ENT_QUOTES, $charset)." |
|
".htmlentities($msg["empr_sugg_url"], ENT_QUOTES, $charset)." |
|
".htmlentities($msg["empr_sugg_comment"], ENT_QUOTES, $charset)." ".htmlentities($msg["empr_sugg_comment_jt"], ENT_QUOTES, $charset)." |
|
".htmlentities($msg["empr_sugg_datepubli"], ENT_QUOTES, $charset)." |
|
";
if(!$_SESSION["id_empr_session"]) {
$sug_form.= "
".htmlentities($msg["empr_sugg_mail"], ENT_QUOTES, $charset)." |
|
";
}
if($id_notice){
$requete = "SELECT tit1 as titre, ed_name as editeur, CONCAT(author_name,' ',author_rejete) as auteur, prix, code
FROM notices LEFT JOIN responsability ON responsability_notice=notice_id
LEFT JOIN authors ON responsability_author=author_id LEFT JOIN publishers ON ed1_id=ed_id
WHERE notice_id=".$id_notice;
$result = mysql_query($requete,$dbh);
while($sug=mysql_fetch_object($result)){
if(!$sug->titre) $sug->titre='';
$sug_form = str_replace('!!titre_sugg!!',htmlentities($sug->titre,ENT_QUOTES,$charset),$sug_form);
if(!$sug->editeur) $sug->editeur='';
$sug_form = str_replace('!!editeur_sugg!!',htmlentities($sug->editeur,ENT_QUOTES,$charset),$sug_form);
if(!$sug->auteur) $sug->auteur='';
$sug_form = str_replace('!!auteur_sugg!!',htmlentities($sug->auteur,ENT_QUOTES,$charset),$sug_form);
if(!$sug->code) $sug->code='';
$sug_form = str_replace('!!code_sugg!!',htmlentities($sug->code,ENT_QUOTES,$charset),$sug_form);
if(!$sug->prix) $sug->prix='';
$sug_form = str_replace('!!prix_sugg!!',htmlentities($sug->prix,ENT_QUOTES,$charset),$sug_form);
$sug_form = str_replace('!!id_notice!!',$id_notice,$sug_form);
}
} else {
$sug_form = str_replace('!!titre_sugg!!','',$sug_form);
$sug_form = str_replace('!!editeur_sugg!!','',$sug_form);
$sug_form = str_replace('!!auteur_sugg!!','',$sug_form);
$sug_form = str_replace('!!code_sugg!!','',$sug_form);
$sug_form = str_replace('!!prix_sugg!!','',$sug_form);
$sug_form = str_replace('!!id_notice!!','',$sug_form);
}
if ($opac_sugg_categ == '1' ) {
if (suggestions_categ::exists($opac_sugg_categ_default) ){
$default_categ = $opac_sugg_categ_default;
} else {
$default_categ = '1';
}
//Selecteur de categories
if ($acquisition_sugg_categ != '1') {
$sel_categ="";
} else {
$tab_categ = suggestions_categ::getCategList();
$sel_categ = "";
}
$sug_form.= "
".htmlentities($msg['acquisition_categ'], ENT_QUOTES, $charset)." |
$sel_categ |
";
}
// Localisation de la suggestion
if($_SESSION["id_empr_session"]) {
$requete = "SELECT * FROM empr WHERE id_empr=".$_SESSION["id_empr_session"];
$res = mysql_query($requete);
if($res) {
$empr = mysql_fetch_object($res);
if (!$empr->empr_location) $empr->empr_location=0 ;
$list_locs='';
$locs=new docs_location();
$list_locs=$locs->gen_combo_box_sugg($empr->empr_location,1,"");
if ($opac_sugg_localises==1) {
$sug_form.= "
".htmlentities($msg['acquisition_location'], ENT_QUOTES, $charset)." |
$list_locs |
";
} elseif ($opac_sugg_localises==2) {
$sug_form.= "empr_location."\"/>";
}
}
}
//Affichage du selecteur de source
$req = "select * from suggestions_source order by libelle_source";
$res= mysql_query($req,$dbh);
$option = "";
while(($src=mysql_fetch_object($res))){
$option .= "";
}
$selecteur = "";
$sug_form .="
".htmlentities($msg['empr_sugg_src'], ENT_QUOTES, $charset)." |
$selecteur |
"
;
$sug_form.= "
".htmlentities($msg["empr_sugg_piece_jointe"], ENT_QUOTES, $charset)." |
|
";
$sug_form.= "
|