</td> </tr> </tbody> </table> <?php } ?> <?php /*************************************************************************************/ ?> <div class="archivos" style="margin-bottom:25px;"> <h2 style="background:#3B5998;color:white;padding:7px;">Adjuntar archivos</h2> <?php $archivos = dameArchivosQueja($numden); if ($archivos != null) { echo "<table class='table table-hover'>\n <thead>\n <tr class='info'>\n <th>" . count($archivos) . " Archivos.</th>\n </tr> \n </thead>\n\n <tbody>"; foreach ($archivos as $archivo) { echo "<tr><td><a href='" . $base_url . "public_html/archivos/quejas/" . $archivo['STR_NOMBRE_ARCHIVO'] . "' download>" . $archivo['STR_NOMBRE_ARCHIVO'] . "</a></td></tr>"; } echo "</tbody></table>"; } ?> <div class="botones_archivos" style="overflow:hidden;margin-bottom:25px;"> <button id="menos_file" class="btn btn-danger" style="float:right;"><span class="glyphicon glyphicon-minus"></span></button> <button id="mas_file" class="btn btn-primary" style="float:right;"><span class="glyphicon glyphicon-plus"></span></button> </div>
</tr> <tbody> <?php $documentos = documentosConsignadosQuejas($id_den); if ($documentos != null) { foreach ($documentos as $indice => $registro) { echo "<tr>\n <td>" . $registro['DESCRIPCION'] . "</td>\n </tr>"; } } ?> </tbody> </table> <table class="table table-hover"> <?php $archivos = dameArchivosQueja($id_den); if ($archivos != null) { echo "<tr class='info'><th>" . count($archivos) . " Archivos adjuntos.</th></tr>"; foreach ($archivos as $archivo) { echo "<tr>"; echo "<td><a href='" . $base_url . "public_html/archivos/quejas/" . $archivo['STR_NOMBRE_ARCHIVO'] . "' download=''>" . $archivo['STR_NOMBRE_ARCHIVO'] . "</a></td>"; echo "</tr>"; } } ?> </table> </div> </article> <!-- Fin Datos Denuncia --> <!-- Inicio Datos Empresa --> <article>
function obtenerDatosQuejas($ids) { $todo = array(); foreach ($ids as $key => $value) { $fila = dameQuejas($value); $archivos = dameArchivosQueja($value); //var_dump($descripciones); exit(); array_push($todo, $fila); } return array($todo, $archivos); }