Révision d485029b htdocs/front/helpdesk.abuledu_details.php
htdocs/front/helpdesk.abuledu_details.php | ||
---|---|---|
136 | 136 |
|
137 | 137 |
print "</table>"; |
138 | 138 |
|
139 |
print "<h2>Votre contrat de maintenance</h2>
|
|
139 |
print "<h2>Votre cahier de recette</h2>";
|
|
140 | 140 |
|
141 |
<p>Informations en cours de traitement.</p>"; |
|
141 |
$query = "SELECT glpi_docs.FK_entities, glpi_docs.recursive, |
|
142 |
glpi_docs.name AS name, |
|
143 |
glpi_docs.filename AS filename, |
|
144 |
glpi_docs.mime AS mimetype, |
|
145 |
glpi_docs.ID AS ID, |
|
146 |
glpi_docs.comments AS comments |
|
147 |
FROM glpi_docs |
|
148 |
LEFT JOIN glpi_entities ON (glpi_docs.FK_entities = glpi_entities.ID) |
|
149 |
LEFT JOIN glpi_dropdown_rubdocs ON (glpi_docs.rubrique = glpi_dropdown_rubdocs.ID) |
|
150 |
WHERE |
|
151 |
glpi_docs.filename LIKE '%recette%' AND |
|
152 |
glpi_docs.deleted='0' AND ( glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ") OR ( glpi_docs.recursive='1' AND glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ")) ) ORDER BY glpi_docs.name"; |
|
153 |
|
|
154 |
$result = $DB->query($query) or die($DB->error()); |
|
155 |
//print $query; |
|
156 |
|
|
157 |
if($DB->numrows($result) == 0) { |
|
158 |
print "<p>Aucune information disponible ...</p>"; |
|
159 |
} |
|
160 |
else { |
|
161 |
for($i = 0; $i < $DB->numrows($result); $i++) { |
|
162 |
$data=$DB->fetch_array($result); |
|
163 |
print "<p>Vous pouvez télécharger votre cahier de recette: <a href='document.abuledu_view.php?file=" . $data['filename'] . "'>" . $data['filename'] . "</a></p>\n"; |
|
164 |
} |
|
165 |
} |
|
166 |
|
|
167 |
print "<h2>Votre contrat de maintenance</h2>"; |
|
142 | 168 |
|
169 |
$query = "SELECT glpi_docs.FK_entities, glpi_docs.recursive, |
|
170 |
glpi_docs.name AS name, |
|
171 |
glpi_docs.filename AS filename, |
|
172 |
glpi_docs.mime AS mimetype, |
|
173 |
glpi_docs.ID AS ID, |
|
174 |
glpi_docs.comments AS comments |
|
175 |
FROM glpi_docs |
|
176 |
LEFT JOIN glpi_entities ON (glpi_docs.FK_entities = glpi_entities.ID) |
|
177 |
LEFT JOIN glpi_dropdown_rubdocs ON (glpi_docs.rubrique = glpi_dropdown_rubdocs.ID) |
|
178 |
WHERE |
|
179 |
glpi_docs.filename LIKE '%contrat%' AND |
|
180 |
glpi_docs.deleted='0' AND ( glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ") OR ( glpi_docs.recursive='1' AND glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ")) ) ORDER BY glpi_docs.name"; |
|
181 |
|
|
182 |
$result = $DB->query($query) or die($DB->error()); |
|
183 |
//print $query; |
|
184 |
|
|
185 |
if($DB->numrows($result) == 0) { |
|
186 |
print "<p>Aucune information disponible ...</p>"; |
|
187 |
} |
|
188 |
else { |
|
189 |
for($i = 0; $i < $DB->numrows($result); $i++) { |
|
190 |
$data=$DB->fetch_array($result); |
|
191 |
print "<p>Vous pouvez télécharger votre contrat de maintenance: <a href='document.abuledu_view.php?file=" . $data['filename'] . "'>" . $data['filename'] . "</a></p>\n"; |
|
192 |
} |
|
193 |
} |
|
143 | 194 |
|
144 | 195 |
helpFooter(); |
145 | 196 |
|
Formats disponibles : Unified diff