本文整理汇总了PHP中aff_notice函数的典型用法代码示例。如果您正苦于以下问题:PHP aff_notice函数的具体用法?PHP aff_notice怎么用?PHP aff_notice使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了aff_notice函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add_linked_record
protected function add_linked_record($notice_id, $bulletin_id, $comment = '')
{
if ($notice_id) {
$display = aff_notice($notice_id, 0, 1, 0, AFF_ETA_NOTICES_REDUIT);
} else {
$display = bulletin_header($bulletin_id);
}
$this->linked_records[] = array('notice_id' => $notice_id, 'bulletin_id' => $bulletin_id, 'display' => $display, 'comment' => $comment);
}
示例2: affiche_notice_navigopac
function affiche_notice_navigopac($requete)
{
global $page, $nbr_lignes, $id, $location, $dcote, $lcote, $nc, $main, $ssub, $plettreaut;
global $opac_nb_aut_rec_per_page, $opac_section_notices_order, $msg, $dbh, $opac_notices_depliable, $begin_result_liste, $add_cart_link_spe, $base_path;
global $back_surloc, $back_loc, $back_section_see;
global $opac_perio_a2z_abc_search, $opac_perio_a2z_max_per_onglet;
if (!$page) {
$page = 1;
}
$debut = ($page - 1) * $opac_nb_aut_rec_per_page;
//On controle paramètre de tri
if (!trim($opac_section_notices_order)) {
$opac_section_notices_order = "index_serie, tnvol, index_sew";
}
if ($plettreaut && $plettreaut != "vide") {
$opac_section_notices_order = "index_author, " . $opac_section_notices_order;
}
$requete .= " ORDER BY " . $opac_section_notices_order . " LIMIT {$debut},{$opac_nb_aut_rec_per_page}";
$res = @mysql_query($requete, $dbh);
print $nbr_lignes . " " . $msg["results"] . "<br />";
if ($opac_notices_depliable) {
print $begin_result_liste;
}
if ($add_cart_link_spe) {
print pmb_bidi(str_replace("!!spe!!", "&location={$location}&dcote={$dcote}&lcote={$lcote}&ssub={$ssub}&nc={$nc}&plettreaut={$plettreaut}", $add_cart_link_spe));
}
//affinage
//enregistrement de l'endroit actuel dans la session
$_SESSION["last_module_search"]["search_mod"] = "section_see";
$_SESSION["last_module_search"]["search_id"] = $id;
$_SESSION["last_module_search"]["search_location"] = $location;
$_SESSION["last_module_search"]["search_page"] = $page;
//affinage
if ($dcote == "" && $plettreaut == "" && $nc == "") {
print " <a href='{$base_path}/index.php?search_type_asked=extended_search&mode_aff=aff_module'>" . $msg["affiner_recherche"] . "</a>";
}
//fin affinage
print "<blockquote>";
print aff_notice(-1);
while ($obj = mysql_fetch_object($res)) {
print pmb_bidi(aff_notice($obj->notice_id));
}
print aff_notice(-2);
print "</blockquote>";
mysql_free_result($res);
// constitution des liens
$nbepages = ceil($nbr_lignes / $opac_nb_aut_rec_per_page);
print '<div id="navbar"><hr /><center>' . printnavbar($page, $nbepages, './index.php?lvl=section_see&id=' . $id . '&location=' . $location . ($back_surloc ? '&back_surloc=' . urlencode($back_surloc) : '') . ($back_loc ? '&back_loc=' . urlencode($back_loc) : '') . ($back_section_see ? '&back_section_see=' . urlencode($back_section_see) : '') . '&page=!!page!!&nbr_lignes=' . $nbr_lignes . '&dcote=' . $dcote . '&lcote=' . $lcote . '&nc=' . $nc . '&main=' . $main . '&ssub=' . $ssub . '&plettreaut=' . $plettreaut) . '</center></div>';
}
示例3: get_notices_indexed_with_concept
//.........这里部分代码省略.........
public static function get_notices_indexed_with_concept($concept)
{
global $page;
global $opac_nb_aut_rec_per_page, $opac_notices_depliable, $opac_allow_bannette_priv, $opac_nb_max_tri;
global $allow_dsi_priv;
global $begin_result_liste, $affich_tris_result_liste, $add_cart_link;
global $include_path, $class_path, $base_path, $msg;
global $opac_visionneuse_allow, $nbexplnum_to_photo, $link_to_visionneuse;
global $opac_show_suggest, $opac_resa_popup;
global $opac_allow_external_search;
global $from;
$indexed_notices = $concept->get_indexed_notices();
if (!$page) {
$page = 1;
}
$debut = ($page - 1) * $opac_nb_aut_rec_per_page;
if ($nbr_lignes = count($indexed_notices)) {
// pour la DSI
if ($nbr_lignes && $opac_allow_bannette_priv && $allow_dsi_priv && ($_SESSION['abon_cree_bannette_priv'] == 1 || $opac_allow_bannette_priv == 2)) {
print "<input type='button' class='bouton' name='dsi_priv' value=\"{$msg['dsi_bt_bannette_priv']}\" onClick=\"document.mc_values.action='./empr.php?lvl=bannette_creer'; document.mc_values.submit();\"><span class=\"espaceResultSearch\"> </span>";
}
if ($opac_notices_depliable) {
$content .= $begin_result_liste;
}
//gestion du tri
if (isset($_GET["sort"])) {
$_SESSION["last_sortnotices"] = $_GET["sort"];
}
if ($nbr_lignes > $opac_nb_max_tri) {
$_SESSION["last_sortnotices"] = "";
$content .= "<span class=\"espaceResultSearch\"> </span>";
} else {
$pos = strpos($_SERVER['REQUEST_URI'], "?");
$pos1 = strpos($_SERVER['REQUEST_URI'], "get");
if ($pos1 == 0) {
$pos1 = strlen($_SERVER['REQUEST_URI']);
} else {
$pos1 = $pos1 - 3;
}
$para = urlencode(substr($_SERVER['REQUEST_URI'], $pos + 1, $pos1 - $pos + 1));
$para1 = substr($_SERVER['REQUEST_URI'], $pos + 1, $pos1 - $pos + 1);
$affich_tris_result_liste = str_replace("!!page_en_cours!!", $para, $affich_tris_result_liste);
$affich_tris_result_liste = str_replace("!!page_en_cours1!!", $para1, $affich_tris_result_liste);
$content .= $affich_tris_result_liste;
if ($_SESSION["last_sortnotices"] != "") {
require_once $class_path . "/sort.class.php";
$sort = new sort('notices', 'session');
$content .= "<span class='sort'>" . $msg['tri_par'] . " " . $sort->descriptionTriParId($_SESSION["last_sortnotices"]) . "<span class=\"espaceResultSearch\"> </span></span>";
}
}
//fin gestion du tri
$content .= $add_cart_link;
if ($opac_visionneuse_allow && $nbexplnum_to_photo) {
$content .= "<span class=\"espaceResultSearch\"> </span>" . $link_to_visionneuse;
$sendToVisionneuseByGet = str_replace("!!mode!!", "concept_see", $sendToVisionneuseByGet);
$sendToVisionneuseByGet = str_replace("!!idautorite!!", $concept->get_id(), $sendToVisionneuseByGet);
$content .= $sendToVisionneuseByGet;
}
if ($opac_show_suggest) {
$bt_sugg = "<span class=\"espaceResultSearch\"> </span><span class=\"search_bt_sugg\"><a href=# ";
if ($opac_resa_popup) {
$bt_sugg .= " onClick=\"w=window.open('./do_resa.php?lvl=make_sugg&oresa=popup','doresa','scrollbars=yes,width=600,height=600,menubar=0,resizable=yes'); w.focus(); return false;\"";
} else {
$bt_sugg .= "onClick=\"document.location='./do_resa.php?lvl=make_sugg&oresa=popup' \" ";
}
$bt_sugg .= " title='" . $msg["empr_bt_make_sugg"] . "' >" . $msg['empr_bt_make_sugg'] . "</a></span>";
$content .= $bt_sugg;
}
rec_last_authorities();
//affinage
if ($main) {
// Gestion des alertes à partir de la recherche simple
include_once $include_path . "/alert_see.inc.php";
$content .= $alert_see_mc_values;
//affichage
$content .= "<span class=\"espaceResultSearch\"> </span><span class=\"affiner_recherche\"><a href='" . $base_path . "/index.php?search_type_asked=extended_search&mode_aff=aff_module' title='" . $msg["affiner_recherche"] . "'>" . $msg["affiner_recherche"] . "</a></span>";
//Etendre
if ($opac_allow_external_search) {
$content .= "<span class=\"espaceResultSearch\"> </span><span class=\"search_bt_external\"><a href='" . $base_path . "/index.php?search_type_asked=external_search&mode_aff=aff_module&external_type=simple' title='" . $msg["connecteurs_external_search_sources"] . "'>" . $msg["connecteurs_external_search_sources"] . "</a></span>";
}
//fin etendre
} else {
// Gestion des alertes à partir de la recherche simple
include_once $include_path . "/alert_see.inc.php";
$content .= $alert_see_mc_values;
//affichage
$content .= "<span class=\"espaceResultSearch\"> </span><span class=\"affiner_recherche\"><a href='{$base_path}/index.php?search_type_asked=extended_search&mode_aff=aff_" . ($from == "search" ? "simple_search" : "module") . "' title='" . $msg["affiner_recherche"] . "'>" . $msg["affiner_recherche"] . "</a></span>";
//Etendre
if ($opac_allow_external_search) {
$content .= "<span class=\"espaceResultSearch\"> </span><span class=\"search_bt_external\"><a href='{$base_path}/index.php?search_type_asked=external_search&mode_aff=aff_simple_search' title='" . $msg["connecteurs_external_search_sources"] . "'>" . $msg["connecteurs_external_search_sources"] . "</a></span>";
}
//fin etendre
}
//fin affinage
foreach ($indexed_notices as $notice_id) {
$content .= aff_notice($notice_id, 0, 1, 0, "", "", 0, 0, $recherche_ajax_mode);
}
}
return $content;
}
示例4: array
print "<strong>" . $msg['tous'] . $libelle . "</strong> " . $nb_result . " " . $msg['results'] . " ";
print "<a href=\"javascript:document.forms['search_tous'].submit()\"> " . $msg['suite'] . " <img src=./images/search.gif border='0' align='absmiddle'/></a><br />";
}
if ($opac_show_results_first_page) {
print "<div id='res_first_page'>\n";
if ($opac_notices_depliable) {
print $begin_result_liste;
}
$nb = 0;
$recherche_ajax_mode = 0;
$notices = array();
$notices = $search_all_fields->get_sorted_result("default", 0, $opac_nb_results_first_page);
for ($i = 0; $i < $opac_nb_results_first_page; $i++) {
if ($i > 4) {
$recherche_ajax_mode = 1;
}
if ($i == count($notices)) {
break;
}
print pmb_bidi(aff_notice($notices[$i], 0, 1, 0, "", "", 0, 0, $recherche_ajax_mode));
}
print '</div>';
}
$form = "<div style=search_result>{$form}</div>";
print $form;
}
}
if ($nb_result) {
$_SESSION["level1"]["tous"]["form"] = $form;
$_SESSION["level1"]["tous"]["count"] = $nb_result;
}
示例5: die
<?php
// +-------------------------------------------------+
// � 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: notice.inc.php,v 1.3 2015-04-13 13:56:32 vtouchard Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
die("no access");
}
require_once "{$include_path}/notice_affichage.inc.php";
if ($id) {
//droits d'acces utilisateur/notice (lecture)
$display = '';
$requete = "SELECT * FROM notices WHERE notice_id={$id} LIMIT 1";
$resultat = pmb_mysql_query($requete, $dbh);
if ($resultat) {
if (pmb_mysql_num_rows($resultat)) {
$notice = pmb_mysql_fetch_object($resultat);
//Affichage d'une notice
$opac_notices_depliable = 0;
if ($popup_map) {
$display .= aff_notice($id, 1, 1, 0, 2, "", 0, 1, 0, $show_map);
} else {
$display .= aff_notice($id, 1, 1, 0, 0, 0);
}
}
}
ajax_http_send_response($display);
}
示例6: set_vedette_element_from_database
public function set_vedette_element_from_database()
{
$this->isbd = aff_notice($this->id, 0, 1, 0, AFF_ETA_NOTICES_REDUIT);
}
示例7: resa_planning
function resa_planning($deb = TRUE)
{
global $dbh, $msg, $charset;
global $id_notice, $id_bulletin;
global $liens_opac;
global $form_resa_dates, $form_resa_ok;
global $popup_resa, $opac_max_resa;
global $resa_deb, $resa_fin;
print "<h3><span>" . $msg['resa_resa_titre_add'] . "</span></h3>";
if ($deb) {
// test au cas où tentative de passer une résa hors URL de résa autorisée...
$requete_resa = "SELECT count(1) FROM resa_planning WHERE resa_idnotice='{$id_notice}' and resa_idbulletin='{$id_bulletin}'";
$result_resa = pmb_mysql_query($requete_resa, $dbh);
if ($result_resa) {
$nb_resa_encours = pmb_mysql_result($result_resa, 0, 0);
} else {
$nb_resa_encours = 0;
}
if ($opac_max_resa && $nb_resa_encours >= $opac_max_resa) {
$id_notice = 0;
$id_bulletin = 0;
}
}
if (!$id_notice && !$id_bulletin) {
return $msg['resa_planning_unknown_record'];
}
$tab_loc_retrait = resa_planning::get_available_locations($_SESSION['id_empr_session'], $id_notice, $id_bulletin);
if (count($tab_loc_retrait) >= 1) {
$form_loc_retrait = '<table ><tbody><tr><th>' . $msg['resa_planning_loc_retrait'] . '</th><th>' . $msg['resa_planning_qty_requested'] . '</th></tr>';
foreach ($tab_loc_retrait as $k => $v) {
$form_loc_retrait .= '<tr><td width="50%">' . htmlentities($v['location_libelle'], ENT_QUOTES, $charset) . '</td>';
$form_loc_retrait .= '<td><select name="location[' . $v['location_id'] . ']">';
for ($i = 0; $i < $v['location_nb'] * 1 + 1; $i++) {
$form_loc_retrait .= '<option value=' . $i . '>' . $i . '</option>';
}
$form_loc_retrait .= '</select></td>';
$form_loc_retrait .= '</tr>';
}
$form_loc_retrait .= '</tbody></table>';
} else {
return $msg['resa_planning_no_item_available'];
}
$form_resa_dates = str_replace('!!resa_loc_retrait!!', $form_loc_retrait, $form_resa_dates);
print $form_resa_dates;
if ($id_notice) {
$opac_notices_depliable = 0;
$liens_opac = array();
$ouvrage_resa = aff_notice($id_notice, 1);
} else {
$ouvrage_resa = bulletin_affichage_reduit($id_bulletin, 1);
}
if (!$deb) {
$form_resa_ok = str_replace('!!date_deb!!', formatdate($resa_deb), $form_resa_ok);
$form_resa_ok = str_replace('!!date_fin!!', formatdate($resa_fin), $form_resa_ok);
print $form_resa_ok;
}
print $ouvrage_resa;
//Affichage des previsions sur le document courant par le lecteur courant
$q3 = "SELECT id_resa, resa_idnotice, resa_idbulletin, resa_date_debut, resa_date_fin, ";
$q3 .= "if(resa_date_fin < sysdate() or resa_date_fin='0000-00-00',1,0) as resa_perimee, resa_validee, resa_confirmee, ";
$q3 .= "resa_qty, resa_loc_retrait, location_libelle ";
$q3 .= "FROM resa_planning left join docs_location on resa_loc_retrait=idlocation ";
$q3 .= "WHERE id_resa not in (select resa_planning_id_resa from resa where resa_idempr=" . $_SESSION['id_empr_session'] . ") ";
$q3 .= "and resa_idempr='" . $_SESSION['id_empr_session'] . "' and resa_idnotice={$id_notice} and resa_idbulletin={$id_bulletin} ";
$q3 .= "ORDER by resa_date_debut asc, resa_date_fin asc";
$r3 = @pmb_mysql_query($q3, $dbh);
if (pmb_mysql_num_rows($r3)) {
$tableau_resa = '<h3>' . $msg['resa_planning_current'] . '</h3>';
$tableau_resa .= '<table class="tab_resa_planning">';
$tableau_resa .= '<tr><th>' . $msg['resa_planning_dates'] . '</th>
<th>' . $msg['resa_planning_qty'] . '</th><th>' . $msg['resa_planning_loc_retrait'] . '</th></tr>';
while ($resa = pmb_mysql_fetch_array($r3)) {
$id_resa = $resa['id_resa'];
$resa_idnotice = $resa['resa_idnotice'];
$resa_idbulletin = $resa['resa_idbulletin'];
$resa_date_debut = formatdate($resa['resa_date_debut']);
$resa_date_fin = formatdate($resa['resa_date_fin']);
$resa_qty = $resa['resa_qty'];
$resa_loc_retrait = $resa['location_libelle'];
$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'];
}
if ($parity++ % 2) {
$pair_impair = "even";
} else {
$pair_impair = "odd";
}
$tableau_resa .= "<tr class='{$pair_impair}'>\n\t\t\t\t<td>{$txt_dates}</td><td>{$resa_qty}</td>\n\t\t\t\t<td>" . htmlentities($resa_loc_retrait, ENT_QUOTES, $charset) . "</td>\n\t\t\t\t</tr>";
}
$tableau_resa .= "</table>";
print $tableau_resa;
}
}
示例8: count
$tmpHtml .= "</select><br /><br /><input type='submit' value='" . $msg["reservation_bt_choisir_localisation"] . "'></form>";
echo $tmpHtml;
} else {
// test au cas où tentative de passer une résa hors URL de résa autorisée...
$requete_resa = "SELECT count(1) FROM resa WHERE resa_idnotice='{$id_notice}' and resa_idbulletin='{$id_bulletin}'";
$nb_resa_encours = pmb_mysql_result(pmb_mysql_query($requete_resa, $dbh), 0, 0);
if ($opac_max_resa && $nb_resa_encours >= $opac_max_resa) {
$id_notice = 0;
$id_bulletin = 0;
}
if ($id_notice || $id_bulletin) {
// c'est une pose de résa
if ($id_notice) {
$opac_notices_depliable = 0;
$liens_opac = array();
$ouvrage_resa = aff_notice($id_notice, 1);
} else {
$ouvrage_resa = bulletin_affichage_reduit($id_bulletin, 1);
}
$message_resa = "";
$resa_check = check_statut($id_notice, $id_bulletin);
$already = allready_loaned($id_notice, $id_bulletin, $_SESSION["id_empr_session"]);
if ($resa_check == 1 && !$already) {
// document sélectionné -> création de la réservation
$res_resa_OK = check_quota_resa($_SESSION["id_empr_session"], $id_notice, $id_bulletin);
if ($res_resa_OK['ERROR']) {
$message_resa = $msg["resa_failed"] . " : " . $res_resa_OK['MESSAGE'];
} else {
$id_resa_ajoutee = 0;
$requete2 = "SELECT COUNT(1) FROM resa WHERE resa_idempr=" . $_SESSION["id_empr_session"] . " AND resa_idnotice='" . $id_notice . "' and resa_idbulletin='" . $id_bulletin . "' ";
$result2 = @pmb_mysql_query($requete2, $dbh);
示例9: consulter_liste
/**
* Consultation d'une liste statique
*/
function consulter_liste()
{
global $liste_lecture_consultation, $dbh, $charset, $msg, $opac_search_results_per_page, $page;
$rqt = "select id_liste, nom_liste, description, read_only, empr_nom, empr_prenom, notices_associees, public, if(abo.num_empr is null,0,1) as abo \n\t\t\tfrom opac_liste_lecture op\n\t\t\tleft join empr e on op.num_empr=e.id_empr \n left join abo_liste_lecture abo on (num_liste=id_liste and abo.num_empr='" . $this->num_empr . "')\n\t\t \twhere id_liste='" . $this->id_liste . "'\n\t\t \t";
$res = pmb_mysql_query($rqt, $dbh);
$liste_noti = array();
while ($liste = pmb_mysql_fetch_object($res)) {
$liste_lecture_consultation = str_replace('!!nom_liste!!', sprintf($msg['list_lecture_view'], htmlentities($liste->nom_liste, ENT_QUOTES, $charset)), $liste_lecture_consultation);
$liste_lecture_consultation = str_replace('!!liste_comment!!', htmlentities($liste->description, ENT_QUOTES, $charset), $liste_lecture_consultation);
$liste_lecture_consultation = str_replace('!!id_liste!!', $this->id_liste, $liste_lecture_consultation);
$proprio = "(" . sprintf($msg[list_lecture_owner], $liste->empr_prenom . " " . $liste->empr_nom) . ")";
$liste_lecture_consultation = str_replace('!!proprio!!', $proprio, $liste_lecture_consultation);
if ($liste->notices_associees) {
$liste_noti = explode(',', $liste->notices_associees);
}
$abo_btn = "<input type='submit' class='bouton' name='abo' onclick='this.form.act.value=\"get_acces\";this.form.action=\"empr.php?tab=lecture&lvl=public_list\";' value=\"" . $msg['list_lecture_abo'] . "\" />";
$desabo_btn = "<input type='submit' class='bouton' name='desabo' onclick='this.form.act.value=\"suppr_acces\";this.form.action=\"empr.php?tab=lecture&lvl=public_list\";' value=\"" . $msg['list_lecture_desabo'] . "\" />";
if (!$liste->read_only) {
$add_noti_btn = "<input type='submit' class='bouton' name='list_in' onclick='this.form.act.value=\"list_in\";' value='" . $msg['list_lecture_list_in'] . "' />";
} else {
$add_noti_btn = '';
}
if ($liste->abo) {
$liste_lecture_consultation = str_replace('!!abo_btn!!', $desabo_btn, $liste_lecture_consultation);
$liste_lecture_consultation = str_replace('!!add_noti_btn!!', $add_noti_btn, $liste_lecture_consultation);
} else {
$liste_lecture_consultation = str_replace('!!abo_btn!!', $abo_btn, $liste_lecture_consultation);
$liste_lecture_consultation = str_replace('!!add_noti_btn!!', '', $liste_lecture_consultation);
}
//Gestion de la liste des notices et de la pagination
if ($page == "") {
$page = 1;
}
$affich .= "<span><b>" . sprintf($msg["show_cart_n_notices"], count($liste_noti)) . "</b></span>";
$affich .= "<blockquote>";
// case à cocher de suppression transférée dans la classe notice_affichage
$affich .= "<form action='./index.php?lvl=show_list&sub=view&id_liste={$this->id_liste}&page={$page}' method='post' name='list_form'>\n";
for ($i = ($page - 1) * $opac_search_results_per_page; $i < count($liste_noti) && $i < $page * $opac_search_results_per_page; $i++) {
if (substr($liste_noti[$i], 0, 2) != "es") {
$affich .= aff_notice($liste_noti[$i], 1);
} else {
$affich .= aff_notice_unimarc(substr($liste_noti[$i], 2), 1);
}
}
$affich .= "</form>";
$affich .= "</blockquote>";
$affich .= $this->aff_navigation_notices($liste_noti, $this->id_liste, 'consultation');
}
$liste_lecture_consultation = str_replace('!!notice_filtre!!', htmlentities(implode(',', $liste_noti), ENT_QUOTES, $charset), $liste_lecture_consultation);
$liste_lecture_consultation = str_replace('!!liste_notice!!', $affich, $liste_lecture_consultation);
print $liste_lecture_consultation;
}
示例10: pmb_bidi
print pmb_bidi(aff_notice($num_notice, 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)" : "") . ") order by analysis_notice";
$res = @mysql_query($requete, $dbh);
if (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\">" . $msg["cart_add_result_in"] . "</a>";
}
$depouill .= "<blockquote>";
while ($obj = mysql_fetch_array($res)) {
$depouill .= pmb_bidi(aff_notice($obj["analysis_notice"]));
}
$depouill .= "</blockquote>";
} else {
$depouill = $msg["no_analysis"];
}
mysql_free_result($res);
print $res_print;
print $depouill;
if ($expl_visible) {
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 = mysql_result(mysql_query($requete_resa, $dbh), 0, 0);
if ($nb_resa_encours) {
示例11: get_html_subscription_action
function get_html_subscription_action($others_informations)
{
global $opac_websubscribe_show;
global $msg;
$html = "";
if ($opac_websubscribe_show == 2) {
switch ($others_informations['lvl']) {
case "resa":
$html = "\n\t\t\t\t<div>\n\t\t\t\t\t<h3>" . $msg['websubscribe_resa_action'] . "</h3>\n\t\t\t\t\t<div class='row'> </div> \n\t\t\t\t\t" . aff_notice($others_informations['id_notice'], 1, 1, 0, "", 0, 0, 1) . "\n\t\t\t\t</div>";
break;
case "bannette_gerer":
$id_bannette = 0;
foreach ($others_informations['bannette_abon'] as $id => $v) {
$id_bannette = $id;
}
$html = "\n\t\t\t\t<div>\n\t\t\t\t\t<h3>" . $msg['websubscribe_bannette_action'] . "</h3>\n\t\t\t\t<div class='row'> </div>\n\t\t\t\t" . affiche_public_bannette($id_bannette) . "\n\t\t\t\t</div>";
break;
}
}
return $html;
}
示例12: 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) {
//.........这里部分代码省略.........
示例13: ceil
$count1 = $count;
}
$nbepages = ceil($count1 / $opac_bull_results_per_page);
$url_page = "javascript:if (document.getElementById(\"onglet_isbd{$id}\")) if (document.getElementById(\"onglet_isbd{$id}\").className==\"isbd_public_active\") document.form_values.premier.value=\"ISBD\"; else document.form_values.premier.value=\"PUBLIC\"; document.form_values.page.value=!!page!!; document.form_values.submit()";
$action = "javascript:if (document.getElementById(\"onglet_isbd{$id}\")) if (document.getElementById(\"onglet_isbd{$id}\").className==\"isbd_public_active\") document.form_values.premier.value=\"ISBD\"; else document.form_values.premier.value=\"PUBLIC\"; document.form_values.page.value=document.form.page.value; document.form_values.submit()";
if ($count) {
$form = "<div class='row'></div><div id='navbar'><br />\n<center>" . printnavbar($page, $nbepages, $url_page, $action) . "</center></div>";
}
break;
case "a":
print pmb_bidi(aff_notice($id));
break;
case "m":
default:
//$l_typdoc=$obj->typdoc;
print pmb_bidi("<br />" . aff_notice($id));
break;
}
}
}
if (!($id && $acces_v)) {
print "<h3>" . htmlentities($msg['no_result'], ENT_QUOTES, $charset) . '</h3>';
}
/**
* Récupère les infos de la notice
*/
function recup_notice_infos($id_notice)
{
global $infos_notice, $infos_expl;
$rqt = "select notice_id, typdoc, niveau_biblio, index_l, libelle_categorie, name_pclass, indexint_name\n\t\tfrom notices n\n\t\tleft join notices_categories nc on nc.notcateg_notice=n.notice_id\n\t\tleft join categories c on nc.num_noeud=c.num_noeud\n\t\tleft join indexint i on n.indexint=i.indexint_id\n\t\tleft join pclassement pc on i.num_pclass=pc.id_pclass\n\t\twhere notice_id='" . $id_notice . "'";
$res_noti = pmb_mysql_query($rqt);
示例14: str_replace
}
$templates = str_replace("!!styles!!", $stylescsscodehtml, $templates);
//Enrichissement OPAC
if ($opac_notice_enrichment) {
require_once $base_path . "/classes/enrichment.class.php";
$enrichment = new enrichment();
$templates = str_replace("!!scripts!!", "<script type='text/javascript' src='includes/javascript/http_request.js'></script>" . $enrichment->getHeaders(), $templates);
} else {
$templates = str_replace("!!scripts!!", "", $templates);
}
$id = $_GET["id"];
if ($opac_parse_html || $cms_active) {
ob_start();
}
//Affichage d'une notice
$notice = aff_notice($id, 1);
print str_replace("#FILES", $notice, $templates);
if ($opac_parse_html || $cms_active) {
if ($opac_parse_html) {
$htmltoparse = parseHTML(ob_get_contents());
} else {
$htmltoparse = ob_get_contents();
}
ob_end_clean();
if ($cms_active) {
require_once $base_path . "/classes/cms/cms_build.class.php";
$cms = new cms_build();
$htmltoparse = $cms->transform_html($htmltoparse);
}
print $htmltoparse;
}
示例15: str_replace
if ($opac_notices_depliable) {
print $begin_result_liste;
}
if (count($cart_) <= $pmb_nb_max_tri) {
print str_replace("!!page_en_cours!!", "lvl=show_cart", $affich_tris_result_liste);
}
if ($_SESSION["last_sortnotices"] != "") {
print " " . $msg['tri_par'] . " " . $sort->descriptionTriParId($_SESSION["last_sortnotices"]) . "<span class=\"espaceCartAction\"> </span>";
}
print "<blockquote>";
// case à cocher de suppression transférée dans la classe notice_affichage
$cart_aff_case_traitement = 1;
print "<form action='./index.php?lvl=show_cart&action=del&page={$page}' method='post' name='cart_form'>\n";
for ($i = ($page - 1) * $opac_search_results_per_page; $i < count($cart_) && $i < $page * $opac_search_results_per_page; $i++) {
if (substr($cart_[$i], 0, 2) != "es") {
print pmb_bidi(aff_notice($cart_[$i], 1));
} else {
print pmb_bidi(aff_notice_unimarc(substr($cart_[$i], 2), 1));
}
}
print "</form>";
print "</blockquote>";
print "</div>";
$nbepages = ceil(count($cart_) / $opac_search_results_per_page);
$suivante = $page + 1;
$precedente = $page - 1;
// affichage du lien précédent si nécéssaire
print "<hr /><table border='0' summary='navigation bar' align='center'><tr>";
// affichage du lien pour retour au début
if ($precedente > 1) {
print "<td width=\"14\" align=\"center\"><a href=\"index.php?lvl=show_cart&page=1\"><img src=\"./images/first.gif\"";