",$msg["empr_sugg_ko"]); $sug_form= "

".htmlentities($msg['empr_make_sugg'], ENT_QUOTES, $charset)."

"; if($opac_show_help) $sug_form .= "
$tooltip
"; if(!isset($form_action) || !$form_action) $form_action = 'do_resa.php'; $sug_form .= "
"; if(!$_SESSION["id_empr_session"]) { $sug_form.= " "; } if(isset($id_notice)) $id_notice += 0; else $id_notice = 0; 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 = pmb_mysql_query($requete); while($sug=pmb_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.= " "; } // Localisation de la suggestion if($_SESSION["id_empr_session"]) { $requete = "SELECT * FROM empr WHERE id_empr=".$_SESSION["id_empr_session"]; $res = pmb_mysql_query($requete); if($res) { $empr = pmb_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.= " "; } elseif ($opac_sugg_localises==2) { $sug_form.= "empr_location."\"/>"; } } } //Affichage du selecteur de source $req = "select * from suggestions_source order by libelle_source"; $res= pmb_mysql_query($req); $option = ""; while(($src=pmb_mysql_fetch_object($res))){ $option .= ""; } $selecteur = ""; $sug_form .="" ; $sug_form.= " "; if(!$_SESSION["id_empr_session"]) { $sug_form.= " "; } $sug_form.= "
".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"], ENT_QUOTES, $charset)."
".htmlentities($msg["empr_sugg_datepubli"], ENT_QUOTES, $charset)." date_publi != '0000-00-00' ? $sugg->date_publi : '')."\" size=\"50\" placeholder=\"".htmlentities($msg['format_date_input_text_placeholder'], ENT_QUOTES, $charset)."\">
".htmlentities($msg["empr_sugg_qte"], ENT_QUOTES, $charset)."
".htmlentities($msg["empr_sugg_mail"], ENT_QUOTES, $charset)."
".htmlentities($msg['acquisition_categ'], ENT_QUOTES, $charset)." $sel_categ
".htmlentities($msg['acquisition_location'], ENT_QUOTES, $charset)." $list_locs
".htmlentities($msg['empr_sugg_src'], ENT_QUOTES, $charset)." $selecteur
".htmlentities($msg["empr_sugg_piece_jointe"], ENT_QUOTES, $charset)."
 

".$msg['empr_sugg_verifcode']."

"; print $sug_form; ?>