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

"; print $sug->get_table(); print "
"; } else { $sug_map = new suggestions_map(); $sug_form = "

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

"; if ($opac_sugg_categ=='1') { $sug_form.= ""; } $sug_form .= ""; $sug_form.= ""; $q = suggestions::listSuggestionsByOrigine($id_empr, '1'); $res = pmb_mysql_query($q, $dbh); $nbr = pmb_mysql_num_rows($res); if($nbr){ $parity = 0; for($i=0;$i<$nbr;$i++) { $row=pmb_mysql_fetch_object($res); $lib_statut = $sug_map->getHtmlComment($row->statut); if ($parity++ % 2) $pair_impair = "even"; else $pair_impair = "odd"; if($row->statut == 1){ //Si la suggestion n'est pas validée on peut la modifier $modif_sugg = "onclick=\"document.location='".$base_path."/empr.php?lvl=make_sugg&id_sug=$row->id_suggestion'\" "; $pointer = "style='cursor:pointer'"; } else { $modif_sugg = "onclick=\"document.location='".$base_path."/empr.php?lvl=view_sugg&id_sug=$row->id_suggestion'\" ";; $pointer = "style='cursor:pointer'"; } $sug_form.= " "; $source = new suggestion_source($row->sugg_source); $sug_form.= ""; if ($opac_sugg_categ=='1') { $categ = new suggestions_categ($row->num_categ); $sug_form.= ""; } $sug = new suggestions($row->id_suggestion); if($sug->get_explnum('id')){ $sug_form .=""; } else { $sug_form .=""; } $sug_form.= " "; } $sug_form.= "
".htmlentities($msg['acquisition_sug_dat_cre'], ENT_QUOTES, $charset)." ".htmlentities($msg['acquisition_sug_tit'], ENT_QUOTES, $charset)." ".htmlentities($msg['acquisition_sug_edi'], ENT_QUOTES, $charset)." ".htmlentities($msg['acquisition_sug_aut'], ENT_QUOTES, $charset)." ".htmlentities($msg['acquisition_sug_etat'], ENT_QUOTES, $charset)." ".htmlentities($msg['empr_sugg_datepubli'], ENT_QUOTES, $charset)." ".htmlentities($msg['empr_sugg_src'], ENT_QUOTES, $charset)."".htmlentities($msg['acquisition_categ'], ENT_QUOTES, $charset)."".htmlentities($msg['empr_sugg_piece_jointe'], ENT_QUOTES, $charset)."
".formatdate($row->date_suggestion)." ".htmlentities($row->titre, ENT_QUOTES, $charset)." ".htmlentities($row->editeur, ENT_QUOTES, $charset)." ".htmlentities($row->auteur, ENT_QUOTES, $charset)." ".$lib_statut." ".htmlentities($row->date_publication, ENT_QUOTES, $charset)."".htmlentities($source->libelle_source, ENT_QUOTES, $charset)."".htmlentities($categ->libelle_categ, ENT_QUOTES, $charset)."".($sug->get_explnum('id') ? "get_explnum('id')."\" target=\"_blank\">" : '' )."
"; print $sug_form; } else { print "

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

".htmlentities($msg['empr_view_no_sugg'], ENT_QUOTES, $charset)."
"; } } ?>