76,18 → 76,17 |
$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 title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</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"; |
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 '. |
$query_fasc = 'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '. |
'FROM '.$GLOBALS['tbl']['fascicule'].' '. |
'WHERE B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '. |
'AND B_F_CACHER = 0 '. |
'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC'; |
94,14 → 93,16 |
//echo $query_fasc; |
$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc)); |
$aso_fasc_serie = array(); |
$aso_fasc = 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); |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $row_fasc->B_F_CRAISERIE; |
$aso_fasc['nbre_fasc'] = 1; |
$aso_fasc['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE; |
$aso_fasc['nom_fin_fasc'] = $row_fasc->B_F_TITRE; |
$aso_fasc['date_fin_fasc'] = date('d/m/Y', $row_fasc->B_F_MAJFICHE); |
} else { |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc']++; |
$aso_fasc['nbre_fasc']++; |
} |
} |
ksort($aso_fasc_serie, SORT_DESC); |
125,6 → 126,9 |
if ($suite_de != '') { |
$retour .= '<p><span class="bb_intitule">Fait suite à :</span> '.$suite_de.'</p>'; |
} |
if ($abreviation != '') { |
$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$abreviation.'</p>'; |
} |
if ($commentaires != '') { |
$retour .= '<p>'.$commentaires.'</p>'; |
} |
136,11 → 140,6 |
} |
$retour .= '</th>'; |
$retour .= '<td>'; |
if ($abreviation != '') { |
$retour .= $abreviation; |
} |
$retour .= '</td>'; |
$retour .= '<td>'; |
if ($date_debut != '') { |
$retour .= $date_debut; |
} |
151,6 → 150,9 |
} |
$retour .= '</td>'; |
$retour .= '<td>'; |
$retour .= $aso_fasc['nbre_fasc']; |
$retour .= '</td>'; |
$retour .= '<td>'; |
if ($periodicite != '') { |
$retour .= $periodicite; |
} |
165,13 → 167,9 |
} |
$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"; |
187,6 → 185,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log$ |
* Revision 1.3 2006/07/28 12:46:47 jp_milcent |
* Début modification de l'interface de l'appli revue. |
* |
* 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. |