Exemple #1
0
    ?>
                <tr class="<?php 
    echo $sEstilo;
    ?>
" >
                    <td><input type="checkbox" id="chkID[]" name="chkID[]" value="<?php 
    echo $arListaFacturas[$i]['IDN'];
    ?>
" /></td>
                    <td><?php 
    echo $arListaFacturas[$i]["IDN"];
    ?>
</td>
                    <td><?php 
    $oClienteUI = new CCliente($arListaFacturas[$i]["IDCLIENTE"], null, null, null, null, null, null, null, null, null, null, null, null);
    $oClienteUI->pAtributosDesdeIDN($oBD);
    echo $oClienteUI->getEmpresa();
    ?>
</td>
                    <td><?php 
    echo $arListaFacturas[$i]["FECHA"];
    ?>
</td>
                    <td style="text-align:right;"><?php 
    printf("%01.2f", $arListaFacturas[$i]["SUBTOTAL"]);
    ?>
&nbsp;&euro;</td>
                    <td style="text-align:right;"><?php 
    printf("%01.2f", $arListaFacturas[$i]["IVA"]);
    ?>
&nbsp;&euro;</td>
Exemple #2
0
require_once $_RUTARAIZ . 'modClientes/Clases/class.CCliente.php';
session_start();
$oUsuSesion = $_SESSION['oUsuSesion'];
if ($oUsuSesion == null || !$oUsuSesion->getSesion()) {
    $_SESSION['sWarning'] = "Debe iniciar sesión.";
    header('Location: ../../index.php');
    exit;
} else {
    $oBD = new CBaseDatos();
    $bEstado = $oBD->fBoolConectar();
    if (isset($_SESSION['arIDS'])) {
        $arIDS = $_SESSION['arIDS'];
        $arOCliente = array();
        for ($i = 0; $i < count($arIDS); $i++) {
            $oCTmp = new CCliente($arIDS[$i], null, null, null, null, null, null, null, null, null, null, null, null);
            $oCTmp->pAtributosDesdeIDN($oBD);
            array_push($arOCliente, $oCTmp);
        }
    } else {
        if (isset($_SESSION['oCliente'])) {
            $oCliente = $_SESSION['oCliente'];
            $oCliente->pAtributosDesdeIDN($oBD);
        }
    }
    $sWarning = $_SESSION['sWarning'];
}
/*$oCliente=new CCliente(null, null, null, null, null, null, null,
  null, null, null, null, null, null);*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">