| Line 63... |
Line 63... |
| 63 |
mysql_free_result($do_query_tot);
|
63 |
mysql_free_result($do_query_tot);
|
| Line 64... |
Line 64... |
| 64 |
|
64 |
|
| 65 |
if ($nb_total == 0) {
|
65 |
if ($nb_total == 0) {
|
| 66 |
$retour .= '<p>'.'Pas encore de revues indexées...'.'</p>'."\n";
|
66 |
$retour .= '<p>'.'Pas encore de revues indexées...'.'</p>'."\n";
|
| - |
|
67 |
} else {
|
| 67 |
} else {
|
68 |
$aso_revues = array();
|
| 68 |
$query = 'SELECT '.$GLOBALS['tbl']['collection'].'.* '.
|
69 |
$query = 'SELECT '.$GLOBALS['tbl']['collection'].'.* '.
|
| 69 |
'FROM '.$GLOBALS['tbl']['collection'].' '.
|
70 |
'FROM '.$GLOBALS['tbl']['collection'].' '.
|
| 70 |
'WHERE B_C_CACHER = 0 '.
|
71 |
'WHERE B_C_CACHER = 0 '.
|
| 71 |
'ORDER BY B_C_NOMCOMPLET ';
|
72 |
'ORDER BY B_C_NOMCOMPLET ';
|
| 72 |
$do_query = mysql_query($query) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query));
|
73 |
$do_query = mysql_query($query) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query));
|
| 73 |
$nb_results = mysql_num_rows($do_query);
|
- |
|
| 74 |
|
- |
|
| 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";
|
- |
|
| 77 |
$retour .= '<thead><tr>'.
|
- |
|
| 78 |
'<th>Collection</th>'.
|
- |
|
| 79 |
'<th>Date début</th>'.
|
- |
|
| 80 |
'<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>'.
|
- |
|
| 83 |
'<th>Contact</th>'.
|
- |
|
| 84 |
'<th title="Nom du dernier fascicule dans la dernière série">Dernier fascicule</th>'.
|
- |
|
| 85 |
'<th title="Date de mise à jour du dernier fascicule dans la dernière série">Date dernier fascicule</th>'.
|
- |
|
| 86 |
'</tr></thead>'."\n";
|
74 |
$nb_results = mysql_num_rows($do_query);
|
| - |
|
75 |
while ($row = mysql_fetch_object($do_query)) {
|
| - |
|
76 |
$aso_revue = array();
|
| - |
|
77 |
$aso_revue['id'] = $row->B_C_CRAI;
|
| - |
|
78 |
$aso_revue['idlink'] = $row->B_C_IDLINK;
|
| - |
|
79 |
$aso_revue['nom_complet'] = $row->B_C_NOMCOMPLET;
|
| - |
|
80 |
$aso_revue['abreviation'] = $row->B_C_ABREGE;
|
| - |
|
81 |
$aso_revue['date_debut'] = $row->B_C_DATECREATION;
|
| - |
|
82 |
$aso_revue['suite_de'] = $row->B_C_FAISUITE;
|
| - |
|
83 |
$aso_revue['date_fin'] = $row->B_C_DATEFIN;
|
| - |
|
84 |
$aso_revue['periodicite'] = $row->B_C_PERIODICITE;
|
| - |
|
85 |
$aso_revue['contact_nom'] = $row->B_C_CONTACTNOM;
|
| - |
|
86 |
$aso_revue['contact_mail'] = $row->B_C_CONTACTMAIL;
|
| - |
|
87 |
$aso_revue['logo'] = $row->B_C_IMAGE;
|
| - |
|
88 |
$aso_revue['commentaires'] = $row->B_C_COMMENT;
|
| - |
|
89 |
$aso_revue['date_maj'] = $row->B_C_MAJFICHE;
|
| - |
|
90 |
|
| - |
|
91 |
$aso_fasc_serie = array();
|
| 87 |
while ($row = mysql_fetch_object($do_query)) {
|
92 |
$aso_fasc = array();
|
| 88 |
$query_fasc = 'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '.
|
93 |
$query_fasc = 'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '.
|
| 89 |
'FROM '.$GLOBALS['tbl']['fascicule'].' '.
|
94 |
'FROM '.$GLOBALS['tbl']['fascicule'].' '.
|
| 90 |
'WHERE B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
|
95 |
'WHERE B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
|
| 91 |
'AND B_F_CACHER = 0 '.
|
96 |
'AND B_F_CACHER = 0 '.
|
| 92 |
'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
|
- |
|
| 93 |
//echo $query_fasc;
|
97 |
'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
|
| 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 = array();
|
98 |
$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc));
|
| 97 |
while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
|
99 |
while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
|
| 98 |
if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
|
100 |
if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
|
| 99 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $row_fasc->B_F_CRAISERIE;
|
101 |
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $row_fasc->B_F_CRAISERIE;
|
| 100 |
$aso_fasc['nbre_fasc'] = 1;
|
102 |
$aso_fasc['nbre_fasc'] = 1;
|
| Line 103... |
Line 105... |
| 103 |
$aso_fasc['date_fin_fasc'] = date('d/m/Y', $row_fasc->B_F_MAJFICHE);
|
105 |
$aso_fasc['date_fin_fasc'] = date('d/m/Y', $row_fasc->B_F_MAJFICHE);
|
| 104 |
} else {
|
106 |
} else {
|
| 105 |
$aso_fasc['nbre_fasc']++;
|
107 |
$aso_fasc['nbre_fasc']++;
|
| 106 |
}
|
108 |
}
|
| 107 |
}
|
109 |
}
|
| - |
|
110 |
mysql_free_result($do_query_fasc);
|
| 108 |
ksort($aso_fasc_serie, SORT_DESC);
|
111 |
ksort($aso_fasc_serie, SORT_DESC);
|
| 109 |
$id = $row->B_C_CRAI;
|
112 |
$aso_revue['aso_fasc_serie'] = $aso_fasc_serie;
|
| 110 |
$idlink = $row->B_C_IDLINK;
|
113 |
$aso_revue['aso_fasc'] = $aso_fasc;
|
| - |
|
114 |
|
| - |
|
115 |
$query_art = 'SELECT COUNT('.$GLOBALS['tbl']['article'].'.B_A_IDART) AS nbre_article '.
|
| 111 |
$nom_complet = $row->B_C_NOMCOMPLET;
|
116 |
'FROM '.$GLOBALS['tbl']['article'].' '.
|
| 112 |
$abreviation = $row->B_C_ABREGE;
|
117 |
'WHERE B_A_CRAICOLL = "'.$row->B_C_CRAI.'" '.
|
| 113 |
$date_debut = $row->B_C_DATECREATION;
|
118 |
'GROUP BY B_A_CRAICOLL';
|
| 114 |
$suite_de = $row->B_C_FAISUITE;
|
119 |
//echo $query_art.'<br/>';
|
| - |
|
120 |
$resultat_art = mysql_query($query_art) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_art));
|
| 115 |
$date_fin = $row->B_C_DATEFIN;
|
121 |
$ligne_article = mysql_fetch_assoc($resultat_art);
|
| 116 |
$periodicite = $row->B_C_PERIODICITE;
|
122 |
//echo '<pre>'.print_r($ligne_article, true).'</pre>';
|
| 117 |
$contact_nom = $row->B_C_CONTACTNOM;
|
123 |
$aso_revue['nbre_article'] = $ligne_article['nbre_article'];
|
| 118 |
$contact_mail = $row->B_C_CONTACTMAIL;
|
124 |
$aso_revues[] = $aso_revue;
|
| - |
|
125 |
}
|
| 119 |
$logo = $row->B_C_IMAGE;
|
126 |
mysql_free_result($do_query);
|
| - |
|
127 |
if ($GLOBALS['_GEN_commun']['info_application']->affichage_type == 'tableau') {
|
| - |
|
128 |
$o = 1;
|
| - |
|
129 |
$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";
|
| 120 |
$commentaires = $row->B_C_COMMENT;
|
130 |
$retour .= '<thead><tr>'.
|
| - |
|
131 |
'<th>Collection</th>'.
|
| 121 |
$date_maj = $row->B_C_MAJFICHE;
|
132 |
'<th>Date début</th>'.
|
| - |
|
133 |
'<th>Date fin</th>'.
|
| - |
|
134 |
'<th title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</th>'.
|
| - |
|
135 |
'<th title="Nombre d\'articles pour la collection, toutes séries et fascicules confondues">Nombre d\'articles</th>'.
|
| - |
|
136 |
'<th>Périodicité</th>'.
|
| - |
|
137 |
'<th>Contact</th>'.
|
| - |
|
138 |
'<th title="Nom du dernier fascicule dans la dernière série">Dernier fascicule</th>'.
|
| - |
|
139 |
'<th title="Date de mise à jour du dernier fascicule dans la dernière série">Date dernier fascicule</th>'.
|
| - |
|
140 |
'</tr></thead>'."\n";
|
| 122 |
$retour .= '<tbody><tr>';
|
141 |
$retour .= '<tbody>';
|
| - |
|
142 |
foreach ($aso_revues as $revue) {
|
| - |
|
143 |
$retour .= '<tr>';
|
| 123 |
$retour .= '<th>';
|
144 |
$retour .= '<th>';
|
| 124 |
if ($nom_complet != '') {
|
145 |
if ($revue['nom_complet'] != '') {
|
| 125 |
$retour .= '<h5 class="bbre_titre">'.$nom_complet.'</h5>';
|
146 |
$retour .= '<h5 class="bbre_titre">'.$revue['nom_complet'].'</h5>';
|
| 126 |
if ($suite_de != '') {
|
147 |
if ($revue['suite_de'] != '') {
|
| 127 |
$retour .= '<p><span class="bb_intitule">Fait suite à : </span>'.$suite_de.'</p>';
|
148 |
$retour .= '<p><span class="bb_intitule">Fait suite à : </span>'.$revue['suite_de'].'</p>';
|
| 128 |
}
|
149 |
}
|
| 129 |
if ($abreviation != '') {
|
150 |
if ($revue['abreviation'] != '') {
|
| 130 |
$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$abreviation.'</p>';
|
151 |
$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$revue['abreviation'].'</p>';
|
| 131 |
}
|
152 |
}
|
| 132 |
if ($commentaires != '') {
|
153 |
if ($revue['commentaires'] != '') {
|
| 133 |
$retour .= '<p>'.$commentaires.'</p>';
|
154 |
$retour .= '<p>'.$revue['commentaires'].'</p>';
|
| 134 |
}
|
155 |
}
|
| 135 |
if ($logo != '') {
|
156 |
if ($revue['logo'] != '') {
|
| 136 |
$retour .= '<img class="bbre_couverture" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$logo.'" alt="Couverture de la revue '.$nom_complet.'"/>';
|
157 |
$retour .= '<img class="bbre_couverture" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$revue['logo'].'" alt="Couverture de la revue '.$revue['nom_complet'].'"/>';
|
| 137 |
}
|
158 |
}
|
| 138 |
$retour .= '<p class="texte_inactif">Id. coll. : '.$id.' - Mise à jour : '.date('d/m/Y', $date_maj).'</p>';
|
159 |
$retour .= '<p class="texte_inactif">Id. coll. : '.$revue['id'].' - Mise à jour : '.date('d/m/Y', $revue['date_maj']).'</p>';
|
| 139 |
|
- |
|
| 140 |
}
|
160 |
}
|
| 141 |
$retour .= '</th>';
|
161 |
$retour .= '</th>';
|
| 142 |
$retour .= '<td>';
|
162 |
$retour .= '<td>';
|
| 143 |
if ($date_debut != '') {
|
163 |
if ($revue['date_debut'] != '') {
|
| 144 |
$retour .= $date_debut;
|
164 |
$retour .= $revue['date_debut'];
|
| 145 |
}
|
165 |
}
|
| 146 |
$retour .= '</td>';
|
166 |
$retour .= '</td>';
|
| 147 |
$retour .= '<td>';
|
167 |
$retour .= '<td>';
|
| 148 |
if ($date_fin != '') {
|
168 |
if ($revue['date_fin'] != '') {
|
| 149 |
$retour .= $date_fin;
|
169 |
$retour .= $revue['date_fin'];
|
| 150 |
}
|
170 |
}
|
| 151 |
$retour .= '</td>';
|
171 |
$retour .= '</td>';
|
| 152 |
$retour .= '<td>';
|
172 |
$retour .= '<td>';
|
| - |
|
173 |
if ($revue['aso_fasc']['nbre_fasc'] != '') {
|
| 153 |
$retour .= $aso_fasc['nbre_fasc'];
|
174 |
$retour .= $revue['aso_fasc']['nbre_fasc'];
|
| - |
|
175 |
} else {
|
| - |
|
176 |
$retour .= 0;
|
| - |
|
177 |
}
|
| - |
|
178 |
$retour .= '</td>';
|
| - |
|
179 |
$retour .= '<td>';
|
| - |
|
180 |
if ($revue['nbre_article'] != '') {
|
| - |
|
181 |
$retour .= $revue['nbre_article'];
|
| - |
|
182 |
} else {
|
| - |
|
183 |
$retour .= 0;
|
| - |
|
184 |
}
|
| 154 |
$retour .= '</td>';
|
185 |
$retour .= '</td>';
|
| 155 |
$retour .= '<td>';
|
186 |
$retour .= '<td>';
|
| 156 |
if ($periodicite != '') {
|
187 |
if ($revue['periodicite'] != '') {
|
| 157 |
$retour .= $periodicite;
|
188 |
$retour .= $revue['periodicite'];
|
| - |
|
189 |
}
|
| - |
|
190 |
$retour .= '</td>';
|
| - |
|
191 |
$retour .= '<td>';
|
| - |
|
192 |
if ($revue['contact_nom'] != '') {
|
| - |
|
193 |
if ($contact_mail != '') {
|
| - |
|
194 |
$retour .= '<a href="mailto:'.$revue['contact_mail'].'">'.$revue['contact_nom'].'</a>';
|
| - |
|
195 |
} else {
|
| - |
|
196 |
$retour .= $revue['contact_nom'];
|
| - |
|
197 |
}
|
| - |
|
198 |
}
|
| - |
|
199 |
$retour .= '</td>';
|
| - |
|
200 |
$retour .= '<td>';
|
| - |
|
201 |
$retour .= $revue['aso_fasc']['nom_fin_fasc'];
|
| - |
|
202 |
$retour .= '</td>';
|
| - |
|
203 |
$retour .= '<td>';
|
| - |
|
204 |
$retour .= $revue['aso_fasc']['date_fin_fasc'];
|
| - |
|
205 |
$retour .= '</td>';
|
| - |
|
206 |
$retour .= '</tr>'."\n";
|
| - |
|
207 |
$o++;
|
| 158 |
}
|
208 |
}
|
| 159 |
$retour .= '</td>';
|
209 |
$retour .= '</tbody>'."\n";
|
| - |
|
210 |
$retour .= '</table>'."\n";
|
| - |
|
211 |
} else {
|
| - |
|
212 |
$o = 1;
|
| - |
|
213 |
$retour .= '<ul id="liste_biblio_revue">'."\n";
|
| - |
|
214 |
foreach ($aso_revues as $revue) {
|
| 160 |
$retour .= '<td>';
|
215 |
$retour .= '<li>';
|
| 161 |
if ($contact_nom != '') {
|
216 |
if ($revue['nom_complet'] != '') {
|
| - |
|
217 |
$retour .= '<h5 class="bbre_titre">'.$revue['nom_complet'].'.</h5>';
|
| - |
|
218 |
}
|
| 162 |
if ($contact_mail != '') {
|
219 |
if ($revue['periodicite'] != '') {
|
| 163 |
$retour .= '<a href="mailto:'.$contact_mail.'">'.$contact_nom.'</a>';
|
220 |
$retour .= ' '.$revue['periodicite'].'.';
|
| 164 |
} else {
|
221 |
} else {
|
| 165 |
$retour .= $contact_nom;
|
222 |
$retour .= ' Périodicité inconnue';
|
| 166 |
}
|
223 |
}
|
| - |
|
224 |
$retour .= ' De ';
|
| - |
|
225 |
if ($revue['date_debut'] != '') {
|
| - |
|
226 |
$retour .= $revue['date_debut'];
|
| - |
|
227 |
} else {
|
| - |
|
228 |
$retour .= '?';
|
| - |
|
229 |
}
|
| - |
|
230 |
$retour .= ' à ';
|
| - |
|
231 |
if ($revue['date_fin'] != '') {
|
| - |
|
232 |
$retour .= $revue['date_fin'].'. ';
|
| - |
|
233 |
} else {
|
| - |
|
234 |
$retour .= '?. ';
|
| - |
|
235 |
}
|
| - |
|
236 |
if ($revue['aso_fasc']['nbre_fasc'] != '') {
|
| - |
|
237 |
$retour .= $revue['aso_fasc']['nbre_fasc'];
|
| - |
|
238 |
} else {
|
| - |
|
239 |
$retour .= 0;
|
| - |
|
240 |
}
|
| - |
|
241 |
$retour .= ' fascicules et ';
|
| - |
|
242 |
if ($revue['nbre_article'] != '') {
|
| - |
|
243 |
$retour .= $revue['nbre_article'];
|
| - |
|
244 |
} else {
|
| - |
|
245 |
$retour .= 0;
|
| - |
|
246 |
}
|
| - |
|
247 |
$retour .= ' articles indexés.';
|
| - |
|
248 |
$o++;
|
| - |
|
249 |
$retour .= '</li>'."\n";
|
| 167 |
}
|
250 |
}
|
| 168 |
$retour .= '</td>';
|
- |
|
| 169 |
$retour .= '<td>';
|
- |
|
| 170 |
$retour .= $aso_fasc['nom_fin_fasc'];
|
- |
|
| 171 |
$retour .= '</td>';
|
251 |
$retour .= '</ul>'."\n";
|
| 172 |
$retour .= '<td>';
|
- |
|
| 173 |
$retour .= $aso_fasc['date_fin_fasc'];
|
- |
|
| 174 |
$retour .= '</td>';
|
- |
|
| 175 |
$retour .= '</tr></tbody>'."\n";
|
- |
|
| 176 |
$o++;
|
- |
|
| 177 |
}
|
252 |
}
|
| 178 |
$retour .= '</table>'."\n";
|
- |
|
| 179 |
mysql_free_result($do_query);
|
- |
|
| 180 |
}
|
253 |
}
|
| 181 |
$retour .= '</div>';
|
254 |
$retour .= '</div>';
|
| 182 |
$retour .= '<!-- BiblioBota - Revue : FIN -->'."\n";
|
255 |
$retour .= '<!-- BiblioBota - Revue : FIN -->'."\n";
|
| 183 |
$sortie .= $retour;
|
256 |
$sortie .= $retour;
|
| Line 184... |
Line 257... |
| 184 |
|
257 |
|
| 185 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
258 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 186 |
*
|
259 |
*
|
| - |
|
260 |
* $Log$
|
| - |
|
261 |
* Revision 1.4 2006/09/12 16:13:05 jp_milcent
|
| - |
|
262 |
* Ajout de nouvelles informations à la liste des revues.
|
| 187 |
* $Log$
|
263 |
*
|
| 188 |
* Revision 1.3 2006/07/28 12:46:47 jp_milcent
|
264 |
* Revision 1.3 2006/07/28 12:46:47 jp_milcent
|
| 189 |
* Début modification de l'interface de l'appli revue.
|
265 |
* Début modification de l'interface de l'appli revue.
|
| 190 |
*
|
266 |
*
|
| 191 |
* Revision 1.2 2006/05/29 14:19:07 jp_milcent
|
267 |
* Revision 1.2 2006/05/29 14:19:07 jp_milcent
|