Subversion Repositories eFlore/Applications.bibliobota

Compare Revisions

Ignore whitespace Rev 8 → Rev 7

/trunk/applications/bb_revue/bb_revue.php
50,9 → 50,10
// Initialisation de la variable à retourner
$retour = '';
$retour .= '<!-- BiblioBota - Revue : DEBUT -->'."\n";
$retour .= '<div id="biblio_revue">';
// Titre de la page
$retour .= '<h1>'.'Liste des revues indexées dans la base de données du projet BiblioBota.'.'</h1>';
$retour .= '<h1>'.'Revues'.'</h1>';
// Petit descriptif
$retour .= '<p>'.'Liste des revues indexées dans la base de données du projet BiblioBota.'.'</p>'."\n";
 
$query_tot = 'SELECT COUNT(*) AS cpt '.
'FROM '.$GLOBALS['tbl']['collection'].' '.
73,38 → 74,8
$nb_results = mysql_num_rows($do_query);
$o = 1;
$retour .= '<table id="liste_biblio_revue" class="table_bordure" summary="Tableau résumant les informations sur les revues indexées dans la base de données du projet BiblioBota.">'."\n";
$retour .= '<thead><tr>'.
'<th>Collection</th>'.
'<th>Abreviation</th>'.
'<th>Date début</th>'.
'<th>Date fin</th>'.
'<th>Périodicité</th>'.
'<th>Contact</th>'.
'<th title="Nom du dernier fascicule dans la dernière série">Dernier fascicule</th>'.
'<th title="Nombre de fascicules dans la dernière série">Nombre fascicule</th>'.
'<th title="Date de mise à jour du dernier fascicule dans la dernière série">Date dernier fascicule</th>'.
'</tr></thead>'."\n";
$retour .= '<ul>'."\n";
while ($row = mysql_fetch_object($do_query)) {
$query_fasc = 'SELECT B_SER_SOUSTITRE, '.$GLOBALS['tbl']['fascicule'].'.* '.
'FROM '.$GLOBALS['tbl']['fascicule'].' INNER JOIN '.$GLOBALS['tbl']['serie'].' ON B_F_CRAISERIE = B_SER_IDSERIE AND B_F_CRAICOLL = B_SER_CRAICOLL '.
'WHERE B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
'AND B_F_CACHER = 0 '.
'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
//echo $query_fasc;
$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc));
$aso_fasc_serie = array();
while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc'] = 1;
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE;
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nom_fin_fasc'] = $row_fasc->B_F_TITRE;
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin_fasc'] = date('d/m/Y', $row_fasc->B_F_MAJFICHE);
} else {
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc']++;
}
}
ksort($aso_fasc_serie, SORT_DESC);
$id = $row->B_C_CRAI;
$idlink = $row->B_C_IDLINK;
$nom_complet = $row->B_C_NOMCOMPLET;
118,69 → 89,47
$logo = $row->B_C_IMAGE;
$commentaires = $row->B_C_COMMENT;
$date_maj = $row->B_C_MAJFICHE;
$retour .= '<tbody><tr>';
$retour .= '<th>';
$retour .= '<li>';
if ($nom_complet != '') {
$retour .= '<h5 class="bbre_titre">'.$nom_complet.'</h5>';
if ($suite_de != '') {
$retour .= '<p><span class="bb_intitule">Fait suite à :</span> '.$suite_de.'</p>';
}
if ($commentaires != '') {
$retour .= '<p>'.$commentaires.'</p>';
}
if ($logo != '') {
$retour .= '<img class="bbre_couverture" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$logo.'" alt="Couverture de la revue '.$nom_complet.'"/>';
$retour .= '<img class="bb_image_revue" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$logo.'" alt="Couverture de la revue '.$nom_complet.'"/>';
}
$retour .= '<p class="texte_inactif">Id. coll. : '.$id.' - Mise à jour : '.date('d/m/Y', $date_maj).'</p>';
}
$retour .= '</th>';
$retour .= '<td>';
$retour .= '<dl class="ajout_2point">'."\n";
if ($suite_de != '') {
$retour .= '<dt>Fait suite à </dt><dd>'.$suite_de.'</dd>';
}
if ($abreviation != '') {
$retour .= $abreviation;
$retour .= '<dt>Abreviation</dt><dd>'.$abreviation.'</dd>';
}
$retour .= '</td>';
$retour .= '<td>';
if ($date_debut != '') {
$retour .= $date_debut;
$retour .= '<dt>Date de début</dt><dd>'.$date_debut.'</dd>';
}
$retour .= '</td>';
$retour .= '<td>';
if ($date_fin != '') {
$retour .= $date_fin;
$retour .= '<dt>Date de fin</dt><dd>'.$date_fin.'</dd>';
}
$retour .= '</td>';
$retour .= '<td>';
if ($periodicite != '') {
$retour .= $periodicite;
$retour .= '<dt>Périodicité</dt><dd>'.$periodicite.'</dd>';
}
$retour .= '</td>';
$retour .= '<td>';
if ($contact_nom != '') {
if ($contact_mail != '') {
$retour .= '<a href="mailto:'.$contact_mail.'">'.$contact_nom.'</a>';
$retour .= '<dt>Contact</dt><dd><a href="mailto:'.$contact_mail.'">'.$contact_nom.'</a></dd>';
} else {
$retour .= $contact_nom;
$retour .= '<dt>Contact</dt><dd>'.$contact_nom.'</dd>';
}
}
$retour .= '</td>';
$retour .= '<td>';
$aso_fasc = current($aso_fasc_serie);
$retour .= $aso_fasc['nom_fin_fasc'];
$retour .= '</td>';
$retour .= '<td>';
$retour .= $aso_fasc['nbre_fasc'];
$retour .= '</td>';
$retour .= '<td>';
$retour .= $aso_fasc['date_fin_fasc'];
$retour .= '</td>';
$retour .= '</tr></tbody>'."\n";
$retour .= '</dl>'."\n";
$retour .= '<span class="texte_inactif">'.'Id. coll. : '.$id.' - Mise à jour : '.date('d/m/Y', $date_maj).'.</span>';
$o++;
}
$retour .= '</table>'."\n";
$retour .= '</ul>'."\n";
mysql_free_result($do_query);
}
$retour .= '</div>';
 
$retour .= '<!-- BiblioBota - Revue : FIN -->'."\n";
$sortie .= $retour;
 
187,10 → 136,6
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log$
* Revision 1.2 2006/05/29 14:19:07 jp_milcent
* Ajout d'une classe css à l'image de la couverture de la revue.
* Correction du chemin d'accés à l'image.
*
* Revision 1.1 2006/05/23 16:20:50 jp_milcent
* Ajout de l'application affichant la liste des revues disponibles dans la base de données de BiblioBota.
*