Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/04/2016, 15:15
JCCC6000
 
Fecha de Ingreso: abril-2016
Mensajes: 2
Antigüedad: 8 años
Puntos: 0
Respuesta

Ante todo gracias por responder "avilavalenz", definitivamente eso es lo que hice, pero la cabecera de la tabla no me aparece en la ventana modal, me aparece en la ventana prinicipal, justo debajo de otra tabla que ya tengo, lo unico que me aparece en la ventana modal es el titulo de modal-header y el titulo de la misma tabla.



<div class="modal fade" id="lista-contrato" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >

<input type="hidden" name="dni_contrato" class="form-control" id="dni_ctr" >


<div class="modal-dialog" style="width:85%;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4>CONTRATOS</h4>
</div>



<div class="modal-body">


<table class="table table-hover">
<thead>


<tr>
<th>N°</th>
<th>NOMBRES Y APELLIDOS</th>
<th>DNI</th>
<th>ASIGNACIÓN</th>
<th>FECHA_INICIAL</th>
<th>FECHA_TÉRMINO</th>
<th>OPC.1</th>
<th>OPC.2</th>
</tr>
</thead>
<tbody>
<?php
include("cone.php");
$dni=$_POST['dni_contrato'];
$sqlo=mysql_query("SELECT * FROM asignacion_personal where dni='$dni'") or die(mysql_error());
while($ff=mysql_fetch_array($sqlo))
{


$n_orden=$n_orden+1;
$id=$ff['id_personal'];
$nombre=$ff['nombres'];
$dni=$ff['dni'];
$apaterno=$ff['ap_paterno'];
$amaterno=$ff['ap_materno'];
$fi=$ff['fecha_inicio'];
$ffi=$ff['fecha_final'];
$asignacion=$ff['asignación'];

echo "<tr>
<td>$n_orden</td>
<td>$nombre $apaterno $amaterno</td>
<td>$dni</td>
<td>$asignacion</td>
<td>$fi</td>
<td>$ffi</td>
<td><button class=\"open-Modal btn btn-info btn-sm\"name=\"s\"value=\"\"data-toggle=\"modal\"data-target=\"#\"data-id=\"$id\"data-nombre=\"$nombre\"data-apaterno=\"$apaterno\"data-amaterno=\"$amaterno\"data-dni=\"$dni\"data-profesion=\"$profesion\"data-universidad=\"$universidad\"data-id_admin=\"$ID\">Modificar Contrato</button></td>
<td><button class=\"open-Modal btn btn-info btn-sm\"name=\"s\"value=\"\"data-toggle=\"modal\"data-target=\"#\"data-dni=\"$dni\">Imprimir</button></td>


</tr>";

}


?>
</tbody>
</table>

</div></div></div></div>