コード例 #1
0
function obtenerDatosDenuncia($ids)
{
    $todo = array();
    foreach ($ids as $key => $value) {
        $fila = dameDenunciasCorreo($value);
        $descripciones = dameMotivosCorreo($value);
        $archivos = dameArchivosDenuncia($value);
        //var_dump($descripciones); exit();
        array_push($todo, $fila);
    }
    return array($todo, $descripciones, $archivos);
}
コード例 #2
0
                  <th>Documentos Consignados</th>
                  <!--<th></th>-->
                </tr>
              </thead>
              <tbody>
                <?php 
$documentos = documentosConsignados($id_den);
if ($documentos != NULL) {
    foreach ($documentos as $indice => $registro) {
        echo "<tr>\n                    <td>" . $registro['DESCRIPCION'] . "</td>\n                  </tr>";
    }
}
?>

              <?php 
$archivos = dameArchivosDenuncia($id_den);
if ($archivos != null) {
    echo "<tr><th>" . count($archivos) . " Archivos adjuntos.</th></tr>";
    foreach ($archivos as $archivo) {
        echo "<tr>";
        echo "<td><a href='" . $base_url . "public_html/archivos/denuncias/" . $archivo['STR_NOMBRE_ARCHIVO'] . "' download=''>" . $archivo['STR_NOMBRE_ARCHIVO'] . "</a></td>";
        echo "</tr>";
    }
}
?>
            </tbody>
          </table>
          <!--INICIO DOCUMENTOS-->

        </div>
コード例 #3
0
              <tr>
                <td><textarea name="descripcion_estatus" maxlength="350" id="descripcion_estatus" form="editar" style="width:890px;" placeholder="Ingrese un máximo de 350 caracteres."></textarea>
                  <p style="color:red;display:none;font-weight: bolder;" id="mensaje_descripcion">Este campo es requerido</p>
                </td>
              </tr>
            </tbody>
          </table>
          <?php 
/*************************************************************************************/
?>
          <div class="archivos" style="margin-bottom:25px;">
            <h2 style="background:#3B5998;color:white;padding:7px;">Adjuntar archivos</h2>

            <?php 
$archivos = dameArchivosDenuncia($numden);
if (dameArchivosDenuncia($numden) != 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/denuncias/" . $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>