示例#1
0
        <link href="../css/jquery-ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="../js/jquery/jquery.js"></script>
   
    
    </head>
              <form method="post" name="form" id="form" action="">
                  <span> <b>Name List:  </b> </span> <?php 
echo $_GET["listName"];
?>
<br/><br/>
                    <table id="tablePrices" align="center" border="1" cellpadding="2" cellspacing="0" >
                        <thead>
                            <?php 
include_once "../model/PriceList.php";
$priceListObj = new PriceList();
$listPrices = $priceListObj->getPriceListItems($_GET["idPriceList"], "");
?>
                            <tr class='ui-widget-header' align="center">
                                <th>Name</th>
                                <th>Price</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
foreach ($listPrices as $item) {
    ?>
                                <tr>
                                    <td style="vertical-align: top;" align="left">
                                        <?php 
    echo $item["name"];
    ?>
示例#2
0
    <page_footer>
        <div style="text-align: center; font-size:10px; ">Prices subject to change due to availability and weather conditions</div>
    </page_footer>
    <?php 
$n = 53;
$i = 1;
$fila = 1;
$col = 1;
?>
    
    <table align="left" border="0" cellpadding="2" cellspacing="20" style="width: 700px;">
        <tr>
            <td>
                <table border="0" cellpadding="2" cellspacing="0" style="width: 300px;">
                    <?php 
$items = $priceListObj->getPriceListItems($_GET["idPriceList"]);
foreach ($items as $item) {
    ?>
                        <tr>
                            <td style="width: 70%"><?php 
    echo $item["name"];
    ?>
</td>
                            <td style="width: 30%;text-align: right"><?php 
    echo $item["price"] == 0 ? "" : $item["price"];
    ?>
</td>
                        </tr>
                    <?php 
    if (strlen($item["name"]) > 30) {
        $fila++;
示例#3
0
if ($priceListObj->isCategoryList($_GET["idPriceList"])) {
    header('Location: categoryPriceListReport.php?tipoReporte=pdf&idPriceList=' . $_GET["idPriceList"] . '&listName=' . $_GET["listName"] . "&all=" . $_GET["all"]);
}
?>
<link href="../css/styles.css" rel="stylesheet" type="text/css" media="screen" />
<link href="../css/jquery-ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
<style>
    .tittle{
        color:#C62;
        font-weight: bold;
        font-size:22px;
        text-align:center;
        padding-top: 40px;
    }   
</style>

<?php 
$content = ob_get_clean();
require_once '../includes/fpdf/pdf.php';
$pdf = new PDF();
$title = htmlentities($_GET["listName"]);
$pdf->SetTitle($title);
$pdf->AddPage();
$i;
global $i;
$items = $priceListObj->getPriceListItems($_GET["idPriceList"], isset($_GET["all"]) ? $_GET["all"] : "");
$tam = count($items);
for ($i = 0; $i < $tam; $i++) {
    $pdf->escribir(utf8_decode($items[$i]['name']), $items[$i]['price'], 'I');
}
$pdf->Output();