<link rel="stylesheet" type="text/css" href="../../assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="../../assets/dist/css/AdminLTE.css">
<style type="text/css">
.pull-right{
    margin-left: 130px;
}   
</style>
<page backtop="14mm" backbottom="14mm" backleft="10mm" backright="10mm" pagegroup="new">
<?php 
include('../../../admina/inc/config.php');
//echo $_GET['idpensiones'].' este es el id de pensiones';
$sql = "SELECT
colegio.idcolegio,
colegio.nombre,
colegio.identificacion,
colegio.direccion,
colegio.telefono,
colegio.logo,
pensiones.idpensiones,
pensiones.codigoalum,
pensiones.alumno,
pensiones.grado,
pensiones.grupo,
pensiones.acudiente,
pensiones.recibonum,
pensiones.fecha,
pensiones.fechavence,
pensiones.fehapago,
pensiones.subtotal,
pensiones.tipo_descuento,
pensiones.valor_desc,
pensiones.descuento,
pensiones.credito,
pensiones.nom_impuesto,
pensiones.impuesto,
pensiones.total,
pensiones.estado,
pensiones.metodo_pago,
pensiones.nota
FROM
colegio ,
pensiones
WHERE
pensiones.idpensiones = '".$_GET['idpensiones']."'";

$query = $db->fetch_custom($sql);
while ( $row = $query->fetch(PDO::FETCH_OBJ)) {
?>
<table>
    <tbody>
        <tr>
            <td>
                <div class="box box-primary">
                    <div class="box-header with-border"> 
                        <img class="img-responsive" src="<?=base_url();?>upload/institucion/<?=$row->logo?>" alt="logo" >
                    </div>
                    <div class="box-body">
                      <!-- Conversations are loaded here -->
                        <!-- Message. Default to the left -->
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">Recibo de Pago #:</span>
                            <span class="direct-chat-name pull-right"><strong style="color:red;"><?=$row->recibonum?></strong></span>
                          </div>
                        </div>
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">NIT: <strong><?=$row->identificacion?></strong></span>
                            <span class="direct-chat-name"> Teléfono:<strong> <?=$row->telefono?></strong></span>
                          </div>
                        </div>
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">Dirección: </span>
                            <span class="direct-chat-name "><?=$row->direccion?></span>
                            <hr>
                          </div>
                        </div>
                        <table class="table table-condensed">
                            <thead>
                              <tr>
                                <th>
                                  Fecha Emisión:
                                </th>
                                <th>
                                  <?=$row->fecha?>
                                </th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>Estudiante:</td>
                                <td><?=$row->alumno?></td>
                              </tr>
                              <tr>
                                <td>Acudiente:</td>
                                <td><?=$row->acudiente?></td>
                              </tr>
                              <tr>
                                <td>
                                    <span class="direct-chat-name pull-left">Código: <?=$row->codigoalum?></span>
                                </td>
                                <td>
                                    <span class="direct-chat-name pull-left">Grado: <?=$row->grado?> <?=$row->grupo?> <?=$row->nota?></span>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                          <hr>
                          <table>
                            <thead>
                              <tr>
                                <th>Descripción</th>
                                <th></th>
                                <th>Subtotal</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>Pensión</td>
                                <td></td>
                                <td>$<?=number_format($row->total)?></td>
                              </tr>
                              <tr>
                                  <th></th>
                                  <th>Total</th>
                                  <td>$<?=number_format($row->total)?></td>
                              </tr>
                            </tbody>                
                           </table>
                    </div>
                    <div class="box-footer">             
                        <strong>Paguese Hasta: <?=$row->fechavence?></strong>                        
                        <p>Bancolombia 1074896351</p>
                        <p align="center"><strong>BANCO</strong></p>
                    </div>
                </div>
            </td>
            <td width="10"></td>
            <td>
                <div class="box box-primary">
                    <div class="box-header with-border"> 
                        <img class="img-responsive" src="<?=base_url();?>upload/institucion/<?=$row->logo?>" alt="logo" >
                    </div>
                    <div class="box-body">
                      <!-- Conversations are loaded here -->
                        <!-- Message. Default to the left -->
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">Recibo de Pago #:</span>
                            <span class="direct-chat-name pull-right"><strong style="color:red;"><?=$row->recibonum?></strong></span>
                          </div>
                        </div>
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">NIT: <strong><?=$row->identificacion?></strong></span>
                            <span class="direct-chat-name"> Teléfono:<strong> <?=$row->telefono?></strong></span>
                          </div>
                        </div>
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">Dirección: </span>
                            <span class="direct-chat-name "><?=$row->direccion?></span>
                            <hr>
                          </div>
                        </div>
                        <table class="table table-condensed">
                            <thead>
                              <tr>
                                <th>
                                  Fecha Emisión:
                                </th>
                                <th>
                                  <?=$row->fecha?>
                                </th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>Estudiante:</td>
                                <td><?=$row->alumno?></td>
                              </tr>
                              <tr>
                                <td>Acudiente:</td>
                                <td><?=$row->acudiente?></td>
                              </tr>
                              <tr>
                                <td>
                                    <span class="direct-chat-name pull-left">Código: <?=$row->codigoalum?></span>
                                </td>
                                <td>
                                    <span class="direct-chat-name pull-left">Grado: <?=$row->grado?> <?=$row->grupo?> <?=$row->nota?></span>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                          <hr>
                          <table>
                            <thead>
                              <tr>
                                <th>Descripción</th>
                                <th></th>
                                <th>Subtotal</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>Pensión</td>
                                <td></td>
                                <td>$<?=number_format($row->total)?></td>
                              </tr>
                              <tr>
                                  <th></th>
                                  <th>Total</th>
                                  <td>$<?=number_format($row->total)?></td>
                              </tr>
                            </tbody>                
                           </table>
                    </div>
                    <div class="box-footer">             
                        <strong>Paguese Hasta: <?=$row->fechavence?></strong>                        
                        <p>Bancolombia 1074896351</p>
                        <p align="center"><strong>ESTUDIANTE</strong></p>
                    </div>
                </div>
            </td>
            <td width="10"></td>
            <td>
                <div class="box box-primary">
                    <div class="box-header with-border"> 
                        <img class="img-responsive" src="<?=base_url();?>upload/institucion/<?=$row->logo?>" alt="logo" >
                    </div>
                    <div class="box-body">
                      <!-- Conversations are loaded here -->
                        <!-- Message. Default to the left -->
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">Recibo de Pago #:</span>
                            <span class="direct-chat-name pull-right"><strong style="color:red;"><?=$row->recibonum?></strong></span>
                          </div>
                        </div>
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">NIT: <strong><?=$row->identificacion?></strong></span>
                            <span class="direct-chat-name"> Teléfono:<strong> <?=$row->telefono?></strong></span>
                          </div>
                        </div>
                        <div class="direct-chat-msg">
                          <div class="direct-chat-info clearfix">
                            <span class="direct-chat-name pull-left">Dirección: </span>
                            <span class="direct-chat-name "><?=$row->direccion?></span>
                            <hr>
                          </div>
                        </div>
                        <table class="table table-condensed">
                            <thead>
                              <tr>
                                <th>
                                  Fecha Emisión:
                                </th>
                                <th>
                                  <?=$row->fecha?>
                                </th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>Estudiante:</td>
                                <td><?=$row->alumno?></td>
                              </tr>
                              <tr>
                                <td>Acudiente:</td>
                                <td><?=$row->acudiente?></td>
                              </tr>
                              <tr>
                                <td>
                                    <span class="direct-chat-name pull-left">Código: <?=$row->codigoalum?></span>
                                </td>
                                <td>
                                    <span class="direct-chat-name pull-left">Grado: <?=$row->grado?> <?=$row->grupo?> <?=$row->nota?></span>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                          <hr>
                          <table>
                            <thead>
                              <tr>
                                <th>Descripción</th>
                                <th></th>
                                <th>Subtotal</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>Pensión</td>
                                <td></td>
                                <td>$<?=number_format($row->total)?></td>
                              </tr>
                              <tr>
                                  <th></th>
                                  <th>Total</th>
                                  <td>$<?=number_format($row->total)?></td>
                              </tr>
                            </tbody>                
                           </table>
                    </div>
                    <div class="box-footer">             
                        <strong>Paguese Hasta: <?=$row->fechavence?></strong>                        
                        <p>Bancolombia 1074896351</p>
                        <p align="center"><strong>COLEGIO</strong></p>
                    </div>
                </div>
            </td>
        </tr>
    </tbody>

</table>
<?php } ?>
</page>
