| Line 74... |
Line 74... |
| 74 |
|
74 |
|
| 75 |
$o = 1;
|
75 |
$o = 1;
|
| 76 |
$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";
|
76 |
$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";
|
| 77 |
$retour .= '<thead><tr>'.
|
77 |
$retour .= '<thead><tr>'.
|
| 78 |
'<th>Collection</th>'.
|
- |
|
| 79 |
'<th>Abreviation</th>'.
|
78 |
'<th>Collection</th>'.
|
| 80 |
'<th>Date début</th>'.
|
79 |
'<th>Date début</th>'.
|
| - |
|
80 |
'<th>Date fin</th>'.
|
| 81 |
'<th>Date fin</th>'.
|
81 |
'<th title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</th>'.
|
| 82 |
'<th>Périodicité</th>'.
|
82 |
'<th>Périodicité</th>'.
|
| 83 |
'<th>Contact</th>'.
|
83 |
'<th>Contact</th>'.
|
| 84 |
'<th title="Nom du dernier fascicule dans la dernière série">Dernier fascicule</th>'.
|
- |
|
| 85 |
'<th title="Nombre de fascicules dans la dernière série">Nombre fascicule</th>'.
|
84 |
'<th title="Nom du dernier fascicule dans la dernière série">Dernier fascicule</th>'.
|
| 86 |
'<th title="Date de mise à jour du dernier fascicule dans la dernière série">Date dernier fascicule</th>'.
|
85 |
'<th title="Date de mise à jour du dernier fascicule dans la dernière série">Date dernier fascicule</th>'.
|
| 87 |
'</tr></thead>'."\n";
|
86 |
'</tr></thead>'."\n";
|
| 88 |
while ($row = mysql_fetch_object($do_query)) {
|
87 |
while ($row = mysql_fetch_object($do_query)) {
|
| 89 |
$query_fasc = 'SELECT B_SER_SOUSTITRE, '.$GLOBALS['tbl']['fascicule'].'.* '.
|
88 |
$query_fasc = 'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '.
|
| 90 |
'FROM '.$GLOBALS['tbl']['fascicule'].' INNER JOIN '.$GLOBALS['tbl']['serie'].' ON B_F_CRAISERIE = B_SER_IDSERIE AND B_F_CRAICOLL = B_SER_CRAICOLL '.
|
89 |
'FROM '.$GLOBALS['tbl']['fascicule'].' '.
|
| 91 |
'WHERE B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
|
90 |
'WHERE B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
|
| 92 |
'AND B_F_CACHER = 0 '.
|
91 |
'AND B_F_CACHER = 0 '.
|
| 93 |
'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
|
92 |
'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
|
| 94 |
//echo $query_fasc;
|
93 |
//echo $query_fasc;
|
| 95 |
$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc));
|
94 |
$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc));
|
| - |
|
95 |
$aso_fasc_serie = array();
|
| 96 |
$aso_fasc_serie = array();
|
96 |
$aso_fasc = array();
|
| 97 |
while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
|
97 |
while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
|
| 98 |
if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
|
98 |
if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
|
| - |
|
99 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $row_fasc->B_F_CRAISERIE;
|
| 99 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc'] = 1;
|
100 |
$aso_fasc['nbre_fasc'] = 1;
|
| 100 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE;
|
101 |
$aso_fasc['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE;
|
| 101 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nom_fin_fasc'] = $row_fasc->B_F_TITRE;
|
102 |
$aso_fasc['nom_fin_fasc'] = $row_fasc->B_F_TITRE;
|
| 102 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin_fasc'] = date('d/m/Y', $row_fasc->B_F_MAJFICHE);
|
103 |
$aso_fasc['date_fin_fasc'] = date('d/m/Y', $row_fasc->B_F_MAJFICHE);
|
| 103 |
} else {
|
104 |
} else {
|
| 104 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc']++;
|
105 |
$aso_fasc['nbre_fasc']++;
|
| 105 |
}
|
106 |
}
|
| 106 |
}
|
107 |
}
|
| 107 |
ksort($aso_fasc_serie, SORT_DESC);
|
108 |
ksort($aso_fasc_serie, SORT_DESC);
|
| 108 |
$id = $row->B_C_CRAI;
|
109 |
$id = $row->B_C_CRAI;
|
| Line 121... |
Line 122... |
| 121 |
$retour .= '<tbody><tr>';
|
122 |
$retour .= '<tbody><tr>';
|
| 122 |
$retour .= '<th>';
|
123 |
$retour .= '<th>';
|
| 123 |
if ($nom_complet != '') {
|
124 |
if ($nom_complet != '') {
|
| 124 |
$retour .= '<h5 class="bbre_titre">'.$nom_complet.'</h5>';
|
125 |
$retour .= '<h5 class="bbre_titre">'.$nom_complet.'</h5>';
|
| 125 |
if ($suite_de != '') {
|
126 |
if ($suite_de != '') {
|
| 126 |
$retour .= '<p><span class="bb_intitule">Fait suite à :</span> '.$suite_de.'</p>';
|
127 |
$retour .= '<p><span class="bb_intitule">Fait suite à : </span>'.$suite_de.'</p>';
|
| - |
|
128 |
}
|
| - |
|
129 |
if ($abreviation != '') {
|
| - |
|
130 |
$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$abreviation.'</p>';
|
| 127 |
}
|
131 |
}
|
| 128 |
if ($commentaires != '') {
|
132 |
if ($commentaires != '') {
|
| 129 |
$retour .= '<p>'.$commentaires.'</p>';
|
133 |
$retour .= '<p>'.$commentaires.'</p>';
|
| 130 |
}
|
134 |
}
|
| 131 |
if ($logo != '') {
|
135 |
if ($logo != '') {
|
| Line 134... |
Line 138... |
| 134 |
$retour .= '<p class="texte_inactif">Id. coll. : '.$id.' - Mise à jour : '.date('d/m/Y', $date_maj).'</p>';
|
138 |
$retour .= '<p class="texte_inactif">Id. coll. : '.$id.' - Mise à jour : '.date('d/m/Y', $date_maj).'</p>';
|
| Line 135... |
Line 139... |
| 135 |
|
139 |
|
| 136 |
}
|
140 |
}
|
| 137 |
$retour .= '</th>';
|
141 |
$retour .= '</th>';
|
| 138 |
$retour .= '<td>';
|
- |
|
| 139 |
if ($abreviation != '') {
|
- |
|
| 140 |
$retour .= $abreviation;
|
- |
|
| 141 |
}
|
- |
|
| 142 |
$retour .= '</td>';
|
- |
|
| 143 |
$retour .= '<td>';
|
142 |
$retour .= '<td>';
|
| 144 |
if ($date_debut != '') {
|
143 |
if ($date_debut != '') {
|
| 145 |
$retour .= $date_debut;
|
144 |
$retour .= $date_debut;
|
| 146 |
}
|
145 |
}
|
| 147 |
$retour .= '</td>';
|
146 |
$retour .= '</td>';
|
| 148 |
$retour .= '<td>';
|
147 |
$retour .= '<td>';
|
| 149 |
if ($date_fin != '') {
|
148 |
if ($date_fin != '') {
|
| 150 |
$retour .= $date_fin;
|
149 |
$retour .= $date_fin;
|
| 151 |
}
|
150 |
}
|
| 152 |
$retour .= '</td>';
|
151 |
$retour .= '</td>';
|
| - |
|
152 |
$retour .= '<td>';
|
| - |
|
153 |
$retour .= $aso_fasc['nbre_fasc'];
|
| - |
|
154 |
$retour .= '</td>';
|
| 153 |
$retour .= '<td>';
|
155 |
$retour .= '<td>';
|
| 154 |
if ($periodicite != '') {
|
156 |
if ($periodicite != '') {
|
| 155 |
$retour .= $periodicite;
|
157 |
$retour .= $periodicite;
|
| 156 |
}
|
158 |
}
|
| 157 |
$retour .= '</td>';
|
159 |
$retour .= '</td>';
|
| Line 163... |
Line 165... |
| 163 |
$retour .= $contact_nom;
|
165 |
$retour .= $contact_nom;
|
| 164 |
}
|
166 |
}
|
| 165 |
}
|
167 |
}
|
| 166 |
$retour .= '</td>';
|
168 |
$retour .= '</td>';
|
| 167 |
$retour .= '<td>';
|
169 |
$retour .= '<td>';
|
| 168 |
$aso_fasc = current($aso_fasc_serie);
|
- |
|
| 169 |
$retour .= $aso_fasc['nom_fin_fasc'];
|
170 |
$retour .= $aso_fasc['nom_fin_fasc'];
|
| 170 |
$retour .= '</td>';
|
171 |
$retour .= '</td>';
|
| 171 |
$retour .= '<td>';
|
172 |
$retour .= '<td>';
|
| 172 |
$retour .= $aso_fasc['nbre_fasc'];
|
- |
|
| 173 |
$retour .= '</td>';
|
- |
|
| 174 |
$retour .= '<td>';
|
- |
|
| 175 |
$retour .= $aso_fasc['date_fin_fasc'];
|
173 |
$retour .= $aso_fasc['date_fin_fasc'];
|
| 176 |
$retour .= '</td>';
|
174 |
$retour .= '</td>';
|
| 177 |
$retour .= '</tr></tbody>'."\n";
|
175 |
$retour .= '</tr></tbody>'."\n";
|
| 178 |
$o++;
|
176 |
$o++;
|
| 179 |
}
|
177 |
}
|
| Line 185... |
Line 183... |
| 185 |
$sortie .= $retour;
|
183 |
$sortie .= $retour;
|
| Line 186... |
Line 184... |
| 186 |
|
184 |
|
| 187 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
185 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 188 |
*
|
186 |
*
|
| - |
|
187 |
* $Log$
|
| - |
|
188 |
* Revision 1.3 2006/07/28 12:46:47 jp_milcent
|
| - |
|
189 |
* Début modification de l'interface de l'appli revue.
|
| 189 |
* $Log$
|
190 |
*
|
| 190 |
* Revision 1.2 2006/05/29 14:19:07 jp_milcent
|
191 |
* Revision 1.2 2006/05/29 14:19:07 jp_milcent
|
| 191 |
* Ajout d'une classe css à l'image de la couverture de la revue.
|
192 |
* Ajout d'une classe css à l'image de la couverture de la revue.
|
| 192 |
* Correction du chemin d'accés à l'image.
|
193 |
* Correction du chemin d'accés à l'image.
|
| 193 |
*
|
194 |
*
|