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

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

"; if($opac_show_help) $sug_form .= "
$tooltip
"; if($id_sug){ $sugg = new suggestions($id_sug); } $sug_form.= "
"; if(!$_SESSION["id_empr_session"]) { $sug_form.= " "; } if ($opac_sugg_categ == '1' ) { if($id_sug){ $default_categ = $sugg->num_categ; } else { 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 = 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.= " "; } 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))){ if($id_sug){ $selected = ($sugg->sugg_src == $src->id_source ? 'selected' : ''); } $option .= ""; } $selecteur = ""; $sug_form .="" ; if($sugg){ if($sugg->get_explnum('nom')){ $file_field = ""; } else $file_field = ""; $sug_form.= " "; $btn_del = ""; } else { $sug_form.= " "; $btn_del = ""; } $sug_form.= "
".htmlentities($msg["empr_sugg_tit"], ENT_QUOTES, $charset)." titre, ENT_QUOTES, $charset)."\"/>
".htmlentities($msg["empr_sugg_aut"], ENT_QUOTES, $charset)." auteur, ENT_QUOTES, $charset)."\"/>
".htmlentities($msg["empr_sugg_edi"], ENT_QUOTES, $charset)." editeur, ENT_QUOTES, $charset)."\"/>
".htmlentities($msg["empr_sugg_code"], ENT_QUOTES, $charset)." code, ENT_QUOTES, $charset)."\"/>
".htmlentities($msg["empr_sugg_prix"], ENT_QUOTES, $charset)." prix, ENT_QUOTES, $charset)."\"/>
".htmlentities($msg["empr_sugg_url"], ENT_QUOTES, $charset)." url_suggestion, 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)."
".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)." $file_field
".htmlentities($msg["empr_sugg_piece_jointe"], ENT_QUOTES, $charset)."
$btn_del
"; print $sug_form;