titre, ENT_QUOTES, $charset)."\"
" . $suggestion_search_notice_doublon_script . " />
|
auteur, ENT_QUOTES, $charset)."\"/>
|
editeur, ENT_QUOTES, $charset)."\"/>
|
code, ENT_QUOTES, $charset)."\"
" . $suggestion_search_notice_doublon_script . " />
|
prix, ENT_QUOTES, $charset)."\"/>
|
url_suggestion, ENT_QUOTES, $charset)."\"/>
|
|
date_publi : '')."' size='50' placeholder='".htmlentities($msg['format_date_input_text_placeholder'], ENT_QUOTES, $charset)."'>
|
|
";
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.= "
$sel_categ |
";
}
// 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.= "
$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= pmb_mysql_query($req,$dbh);
$option = "";
while(($src=pmb_mysql_fetch_object($res))){
if($id_sug){
$selected = ($sugg->sugg_src == $src->id_source ? 'selected' : '');
} else {
$selected = "";
}
$option .= "";
}
$selecteur = "";
$sug_form .="
$selecteur |
"
;
if($sugg){
if($sugg->get_explnum('nom')){
$file_field = "";
} else $file_field = "";
$sug_form.= "
$file_field
|
";
$btn_del = "";
} else {
$sug_form.= "
|
";
$btn_del = "";
}
$sug_form.= "
|
$btn_del
|