本文整理汇总了PHP中notice::print_resume方法的典型用法代码示例。如果您正苦于以下问题:PHP notice::print_resume方法的具体用法?PHP notice::print_resume怎么用?PHP notice::print_resume使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类notice
的用法示例。
在下文中一共展示了notice::print_resume方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: notice
$resa_qty = $resa['resa_qty'];
$resa_loc_retrait = $resa['location_libelle'];
if ($resa_idnotice) {
// affiche la notice correspondant à la réservation
$requete = "SELECT * FROM notices WHERE notice_id='" . $resa_idnotice . "' ";
$res = @pmb_mysql_query($requete, $dbh);
$obj = pmb_mysql_fetch_object($res);
$notice = new notice($obj);
$titre = pmb_bidi($notice->print_resume(1, $css));
} else {
// c'est un bulletin donc j'affiche le nom de périodique et le nom du bulletin (date ou n°)
$requete = "SELECT bulletin_id, bulletin_numero, bulletin_notice, mention_date, date_date, date_format(date_date, '" . $msg["format_date_sql"] . "') as aff_date_date FROM bulletins WHERE bulletin_id='{$resa_idbulletin}'";
$res = pmb_mysql_query($requete, $dbh);
$obj = pmb_mysql_fetch_object($res);
$notice3 = new notice($obj->bulletin_notice);
$titre = pmb_bidi($notice3->print_resume(1, $css));
// affichage de la mention de date utile : mention_date si existe, sinon date_date
if ($obj->mention_date) {
$titre .= pmb_bidi("(" . $obj->mention_date . ")\n");
} elseif ($obj->date_date) {
$titre .= pmb_bidi("(" . $obj->aff_date_date . ")\n");
}
}
$txt_dates = $msg['resa_planning_date_debut'] . $resa_date_debut . '<br />';
$txt_dates .= $msg['resa_planning_date_fin'] . $resa_date_fin . '<br />';
if ($resa['resa_perimee']) {
$txt_dates .= $msg['resa_planning_overtime'];
} else {
$txt_dates .= $msg['resa_planning_attente_validation'];
}
$link_del = "<a href='empr.php?lvl=resa_planning&delete=1&id_resa=" . $id_resa . "'>" . $msg['resa_effacer_resa'] . "</a>";
示例2: notice
$notice3 = new notice($obj3->notice_id);
$typdocchapeau = $obj3->typdoc;
}
$notice3->fetch_visibilite();
if (!$icon) {
$icon = "icon_per.gif";
}
$icon = $icon_doc["b" . $typdocchapeau];
//carrousel pour la navigation
if ($opac_show_bulletin_nav) {
$res_print = do_carroussel($obj);
} else {
$res_print = "";
}
//$res_print .= "<h3><img src=./images/$icon /> ".$notice3->print_resume(1,$css)."."." <b>".$obj["bulletin_numero"]."</b>".($nb_docnum ? " <a href='#docnum'>".($nb_docnum > 1 ? "<img src='./images/globe_rouge.png' />" : "<img src='./images/globe_orange.png' />")."</a>" : "")."</h3>\n";
$res_print .= "<h3><img src=./images/{$icon} /> " . $notice3->print_resume(1, $css) . "." . " <b>" . $obj["bulletin_numero"] . "</b>";
if ($res_print_docnum) {
$res_print .= $res_print_docnum . "</h3>\n";
} else {
$res_print .= "</h3>\n";
}
$num_notice = $obj['num_notice'];
if ($obj['bulletin_titre']) {
$res_print .= htmlentities($obj['bulletin_titre'], ENT_QUOTES, $charset) . "<br />";
}
if ($obj['mention_date']) {
$res_print .= $msg['bull_mention_date'] . " " . $obj['mention_date'] . "\n";
}
if ($obj['date_date']) {
$res_print .= "<br />" . $msg['bull_date_date'] . " " . $obj['aff_date_date'] . " \n";
}
示例3: bulletin_affichage
function bulletin_affichage($id, $type = "")
{
global $dbh, $msg;
global $opac_show_exemplaires;
$display = "";
$requete = "SELECT bulletin_id, bulletin_numero, bulletin_notice, mention_date, date_date, bulletin_titre, bulletin_cb, date_format(date_date, '" . $msg["format_date_sql"] . "') as aff_date_date,num_notice FROM bulletins WHERE bulletin_id='{$id}'";
$res = @pmb_mysql_query($requete, $dbh);
while ($obj = pmb_mysql_fetch_array($res)) {
$requete3 = "SELECT notice_id FROM notices WHERE notice_id='" . $obj["bulletin_notice"] . "' ";
$res3 = @pmb_mysql_query($requete3, $dbh);
while ($obj3 = pmb_mysql_fetch_object($res3)) {
$notice3 = new notice($obj3->notice_id);
}
$notice3->fetch_visibilite();
//on vient poser l'ancre des docnums...
$req = "select explnum_id from explnum where explnum_bulletin = " . $obj["bulletin_id"];
$resultat = pmb_mysql_query($req, $dbh) or die($req . " " . pmb_mysql_error());
$nb_ex = pmb_mysql_num_rows($resultat);
$res_print = "<h3><img src=./images/icon_per.gif> " . $notice3->print_resume(1, $css) . "." . " <b>" . $obj["bulletin_numero"] . "</b>" . ($nb_ex ? " <a href='#docnum'>" . ($nb_ex > 1 ? "<img src='" . get_url_icon("globe_rouge.png") . "' />" : "<img src='" . get_url_icon("globe_orange.png") . "' />") . "</a>" : "") . "</h3>\n";
$num_notice = $obj['num_notice'];
if ($obj['bulletin_titre']) {
$res_print .= htmlentities($obj['bulletin_titre'], ENT_QUOTES, $charset) . "<br />";
}
if ($obj['mention_date']) {
$res_print .= $msg['bull_mention_date'] . " " . $obj['mention_date'] . "\n";
}
if ($obj['date_date']) {
$res_print .= "<br />" . $msg['bull_date_date'] . " " . $obj['aff_date_date'] . " \n";
}
if ($type != "visionneuse" && $nb_ex) {
$res_print .= "<br /><a href='#docnum'>" . ($nb_ex > 1 ? "<img src='" . get_url_icon("globe_rouge.png") . "' />" : "<img src='" . get_url_icon("globe_orange.png") . "' />") . "</a>";
}
if ($obj['bulletin_cb']) {
$res_print .= "<br />" . $msg["code_start"] . " " . htmlentities($obj['bulletin_cb'], ENT_QUOTES, $charset) . "\n";
$code_cb_bulletin = $obj['bulletin_cb'];
}
}
do_image($res_print, $code_cb_bulletin, 0);
if ($num_notice) {
// Il y a une notice de bulletin
$display .= $res_print;
$opac_notices_depliable = 0;
$seule = 1;
//$display .= pmb_bidi(aff_notice($num_notice,0,0)) ;
if ($type == "visionneuse") {
$display .= pmb_bidi(aff_notice($num_notice, 1, 1, 0, "", 0, 1));
} else {
$display .= pmb_bidi(aff_notice($num_notice, 0, 1, 0, "", 0));
}
} else {
// construction des dépouillements
$depouill = "<br /><h3>" . $msg['bull_dep'] . "</h3>";
$requete = "SELECT * FROM analysis, notices, notice_statut WHERE analysis_bulletin='{$id}' AND notice_id = analysis_notice AND statut = id_notice_statut and ((notice_visible_opac=1 and notice_visible_opac_abon=0)" . ($_SESSION["user_code"] ? " or (notice_visible_opac_abon=1 and notice_visible_opac=1)" : "") . ") ";
$res = @pmb_mysql_query($requete, $dbh);
if (pmb_mysql_num_rows($res)) {
if ($opac_notices_depliable) {
$depouill .= $begin_result_liste;
}
if ($opac_cart_allow) {
$depouill .= "<a href=\"cart_info.php?id=" . $id . "&lvl=analysis&header=" . rawurlencode(strip_tags($notice_header)) . "\" target=\"cart_info\" class=\"img_basket\" title='" . $msg["cart_add_result_in"] . "'>" . $msg["cart_add_result_in"] . "</a>";
}
$depouill .= "<blockquote>";
while ($obj = pmb_mysql_fetch_array($res)) {
$depouill .= pmb_bidi(aff_notice($obj["analysis_notice"]));
}
$depouill .= "</blockquote>";
} else {
$depouill = $msg["no_analysis"];
}
$display .= $res_print;
$display .= $depouill;
if ($notice3->visu_expl && (!$notice3->visu_expl_abon || $notice3->visu_expl_abon && $_SESSION["user_code"])) {
if (!$opac_resa_planning) {
$resa_check = check_statut(0, $id);
if ($resa_check) {
$requete_resa = "SELECT count(1) FROM resa WHERE resa_idbulletin='{$id}'";
$nb_resa_encours = pmb_mysql_result(pmb_mysql_query($requete_resa, $dbh), 0, 0);
if ($nb_resa_encours) {
$message_nbresa = str_replace("!!nbresa!!", $nb_resa_encours, $msg["resa_nb_deja_resa"]);
}
if ($_SESSION["user_code"] && $allow_book && $opac_resa && !$popup_resa) {
$ret_resa .= "<h3>" . $msg["bulletin_display_resa"] . "</h3>";
if ($opac_max_resa == 0 || $opac_max_resa > $nb_resa_encours) {
if ($opac_resa_popup) {
$ret_resa .= "<a href='#' onClick=\"if(confirm('" . $msg["confirm_resa"] . "')){w=window.open('./do_resa.php?lvl=resa&id_bulletin=" . $id . "&oresa=popup','doresa','scrollbars=yes,width=500,height=600,menubar=0,resizable=yes'); w.focus(); return false;}else return false;\" id=\"bt_resa\">" . $msg["bulletin_display_place_resa"] . "</a>";
} else {
$ret_resa .= "<a href='./do_resa.php?lvl=resa&id_bulletin=" . $id . "&oresa=popup' onClick=\"return confirm('" . $msg["confirm_resa"] . "')\" id=\"bt_resa\">" . $msg["bulletin_display_place_resa"] . "</a>";
}
$ret_resa .= $message_nbresa;
} else {
$ret_resa .= str_replace("!!nb_max_resa!!", $opac_max_resa, $msg["resa_nb_max_resa"]);
}
$ret_resa .= "<br />";
} elseif (!$_SESSION["user_code"] && $opac_resa && !$popup_resa) {
// utilisateur pas connecté
// préparation lien réservation sans être connecté
$ret_resa .= "<h3>" . $msg["bulletin_display_resa"] . "</h3>";
if ($opac_resa_popup) {
$ret_resa .= "<a href='#' onClick=\"if(confirm('" . $msg["confirm_resa"] . "')){w=window.open('./do_resa.php?lvl=resa&id_bulletin=" . $id . "&oresa=popup','doresa','scrollbars=yes,width=500,height=600,menubar=0,resizable=yes'); w.focus(); return false;}else return false;\" id=\"bt_resa\">" . $msg["bulletin_display_place_resa"] . "</a>";
} else {
//.........这里部分代码省略.........
示例4: htmlentities
}
$notice3->fetch_visibilite();
if (!$icon) {
$icon = "icon_per.gif";
}
$icon = $icon_doc["b" . $typdocchapeau];
$num_notice = $obj['num_notice'];
//carrousel pour la navigation
if ($opac_show_bulletin_nav) {
$res_print = do_carroussel($obj);
} else {
$res_print = "";
}
if ($opac_notices_format != AFF_ETA_NOTICES_TEMPLATE_DJANGO) {
//$res_print .= "<h3><img src=./images/$icon /> ".$notice3->print_resume(1,$css)."."." <b>".$obj["bulletin_numero"]."</b>".($nb_docnum ? " <a href='#docnum'>".($nb_docnum > 1 ? "<img src='./images/globe_rouge.png' />" : "<img src='./images/globe_orange.png' />")."</a>" : "")."</h3>\n";
$res_print .= "<h3><img src='" . get_url_icon($icon) . "' /> " . $notice3->print_resume(1, $css) . "." . " <b>" . $obj["bulletin_numero"] . "</b>";
if ($res_print_link) {
$res_print .= $res_print_link;
}
if ($res_print_docnum) {
$res_print .= $res_print_docnum . "</h3>\n";
} else {
$res_print .= "</h3>\n";
}
if ($obj['bulletin_titre']) {
$res_print .= htmlentities($obj['bulletin_titre'], ENT_QUOTES, $charset) . "<br />";
}
if ($obj['mention_date']) {
$res_print .= $msg['bull_mention_date'] . " " . $obj['mention_date'] . "\n";
}
if ($obj['date_date']) {
示例5: resa_planning
$result3 = @mysql_query($requete3, $dbh);
while ($resa = mysql_fetch_array($result3)) {
$message_null_resa = "";
$id_resa = $resa['id_resa'];
$resa_idempr = $resa['resa_idempr'];
$resa_idnotice = $resa['resa_idnotice'];
$resa_date = $resa['resa_date'];
$resa_date_debut = $resa['resa_date_debut'];
$resa_date_fin = $resa['resa_date_fin'];
if ($resa_idnotice) {
// affiche la notice correspondant à la réservation
$requete = "SELECT * FROM notices WHERE notice_id='" . $resa_idnotice . "' ";
$res = @mysql_query($requete, $dbh);
$obj = mysql_fetch_object($res);
$notice = new notice($obj);
print pmb_bidi($notice->print_resume(1, $css));
print pmb_bidi(" > <a href=empr.php?lvl=resa_planning&delete=1&id_resa=" . $id_resa . ">" . $msg['resa_effacer_resa'] . "</a><br />");
}
print "<blockquote><b>" . $msg['resa_date_debut'] . "</b> " . formatdate($resa_date_debut) . " <b>" . $msg['resa_date_fin'] . "</b> " . formatdate($resa_date_fin) . " ";
if ($resa['perimee']) {
print " " . $msg['resa_overtime'] . " ";
} else {
print " " . $msg['resa_attente_validation'] . " ";
}
print "</blockquote>";
}
print pmb_bidi($message_null_resa);
}
}
// fonction de pose de réservation en planning
function resa_planning($deb = TRUE)
示例6: get_bulletin_list_func
function get_bulletin_list_func($id)
{
global $charset, $dbh, $msg, $css;
global $opac_visionneuse_allow, $icon_doc, $opac_cart_allow, $opac_max_resa;
global $begin_result_liste, $notice_header, $opac_resa_planning;
global $opac_show_exemplaires, $fonction, $opac_resa_popup, $opac_resa, $popup_resa, $allow_book;
global $opac_perio_a2z_show_bulletin_notice;
$resultat_aff = "";
$libelle = $msg[270];
$largeur = 500;
$requete = "SELECT bulletin_id, bulletin_numero, bulletin_notice, mention_date, date_date, bulletin_titre, bulletin_cb, date_format(date_date, '" . $msg["format_date_sql"] . "') as aff_date_date,num_notice FROM bulletins WHERE bulletin_id='{$id}'";
$res = @pmb_mysql_query($requete, $dbh);
while ($obj = pmb_mysql_fetch_array($res)) {
//on cherches des documents numériques
$req = "select explnum_id from explnum where explnum_bulletin = " . $obj["bulletin_id"];
$resultat = pmb_mysql_query($req, $dbh) or die($req . " " . pmb_mysql_error());
$nb_ex = pmb_mysql_num_rows($resultat);
//on met le nécessaire pour la visionneuse
if ($opac_visionneuse_allow && $nb_ex) {
$resultat_aff .= "\n\t\t\t<script type='text/javascript'>\n\t\t\t\tfunction sendToVisionneuse(explnum_id){\n\t\t\t\t\tdocument.getElementById('visionneuseIframe').src = 'visionneuse.php?mode=perio_bulletin&idperio=" . $obj['bulletin_notice'] . "'+(typeof(explnum_id) != 'undefined' ? '&explnum_id='+explnum_id+\"\" : '\\'');\n\t\t\t\t}\n\t\t\t</script>";
}
$typdocchapeau = "a";
$icon = "";
$requete3 = "SELECT notice_id,typdoc FROM notices WHERE notice_id='" . $obj["bulletin_notice"] . "' ";
$res3 = @pmb_mysql_query($requete3, $dbh);
while ($obj3 = pmb_mysql_fetch_object($res3)) {
$notice3 = new notice($obj3->notice_id);
$typdocchapeau = $obj3->typdoc;
}
$notice3->fetch_visibilite();
if (!$icon) {
$icon = "icon_per.gif";
}
$icon = $icon_doc["b" . $typdocchapeau];
$res_print .= "<h3><img src='" . get_url_icon($icon) . "' /> " . $notice3->print_resume(1, $css) . "." . " <b>" . $obj["bulletin_numero"] . "</b></h3>\n";
$num_notice = $obj['num_notice'];
if ($obj['date_date']) {
$res_print .= $msg['bull_date_date'] . " " . $obj['aff_date_date'] . " \n";
}
if ($obj['bulletin_cb']) {
$res_print .= "<br />" . $msg["code_start"] . " " . htmlentities($obj['bulletin_cb'], ENT_QUOTES, $charset) . "\n";
$code_cb_bulletin = $obj['bulletin_cb'];
}
}
do_image($res_print, $code_cb_bulletin, 0);
if ($opac_perio_a2z_show_bulletin_notice && $num_notice) {
// Il y a une notice de bulletin
$resultat_aff .= $res_print;
global $opac_notices_depliable;
global $seule;
$memo_opac_notices_depliable = $opac_notices_depliable;
$memo_seule = $seule;
$opac_notices_depliable = 0;
$seule = 1;
$resultat_aff .= pmb_bidi(aff_notice($num_notice, 0, 0));
$opac_notices_depliable = $memo_opac_notices_depliable;
$seule = $memo_seule;
} else {
// construction des dépouillements
$requete = "SELECT * FROM analysis, notices, notice_statut WHERE analysis_bulletin='{$id}' AND notice_id = analysis_notice AND statut = id_notice_statut and ((notice_visible_opac=1 and notice_visible_opac_abon=0)" . ($_SESSION["user_code"] ? " or (notice_visible_opac_abon=1 and notice_visible_opac=1)" : "") . ") ";
$res = @pmb_mysql_query($requete, $dbh);
if (pmb_mysql_num_rows($res)) {
$depouill = "<h3>" . $msg['bull_dep'] . "</h3>";
if ($opac_notices_depliable) {
$depouill .= $begin_result_liste;
}
if ($opac_cart_allow) {
$depouill .= "<a href=\"cart_info.php?id=" . $id . "&lvl=analysis&header=" . rawurlencode(strip_tags($notice_header)) . "\" target=\"cart_info\" class=\"img_basket\" title='" . $msg["cart_add_result_in"] . "'>" . $msg["cart_add_result_in"] . "</a>";
}
$depouill .= "<blockquote>";
while ($obj = pmb_mysql_fetch_array($res)) {
$depouill .= pmb_bidi(aff_notice($obj["analysis_notice"]));
}
$depouill .= "</blockquote>";
}
$resultat_aff .= $res_print;
$resultat_aff .= $depouill;
if ($notice3->visu_expl && (!$notice3->visu_expl_abon || $notice3->visu_expl_abon && $_SESSION["user_code"])) {
if (!$opac_resa_planning) {
$resa_check = check_statut(0, $id);
if ($resa_check) {
$requete_resa = "SELECT count(1) FROM resa WHERE resa_idbulletin='{$id}'";
$nb_resa_encours = pmb_mysql_result(pmb_mysql_query($requete_resa, $dbh), 0, 0);
if ($nb_resa_encours) {
$message_nbresa = str_replace("!!nbresa!!", $nb_resa_encours, $msg["resa_nb_deja_resa"]);
}
if ($_SESSION["user_code"] && $allow_book && $opac_resa && !$popup_resa) {
$ret_resa .= "<h3>" . $msg["bulletin_display_resa"] . "</h3>";
if ($opac_max_resa == 0 || $opac_max_resa > $nb_resa_encours) {
if ($opac_resa_popup) {
$ret_resa .= "<a href='#' onClick=\"if(confirm('" . $msg["confirm_resa"] . "')){w=window.open('./do_resa.php?lvl=resa&id_bulletin=" . $id . "&oresa=popup','doresa','scrollbars=yes,width=500,height=600,menubar=0,resizable=yes'); w.focus(); return false;}else return false;\" id=\"bt_resa\">" . $msg["bulletin_display_place_resa"] . "</a>";
} else {
$ret_resa .= "<a href='./do_resa.php?lvl=resa&id_bulletin=" . $id . "&oresa=popup' onClick=\"return confirm('" . $msg["confirm_resa"] . "')\" id=\"bt_resa\">" . $msg["bulletin_display_place_resa"] . "</a>";
}
$ret_resa .= $message_nbresa;
} else {
$ret_resa .= str_replace("!!nb_max_resa!!", $opac_max_resa, $msg["resa_nb_max_resa"]);
}
$ret_resa .= "<br />";
} elseif (!$_SESSION["user_code"] && $opac_resa && !$popup_resa) {
//.........这里部分代码省略.........