Example #1
0
?>
" readonly/></td>
                                <td width="22">To</td>
                                <td width="150"><input type="text" style="width:150px" name="fechaFin" id="fechaFin" value="<?php 
echo $_POST['fechaFin'];
?>
" readonly/></td>
                                <td>
                                    <input type="submit" id="btnFind" value="Find" />
                                </td>
                            </tr>
                            </table>
                        </br></br>
                    <?php 
$itemObj = new Item();
$items = $itemObj->salesByItemReport($_POST['fechaIni'], $_POST['fechaFin']);
if (count($items) > 0) {
    $fechaIni = date("m/d/Y", strtotime($_POST['fechaIni'] . " -1 day"));
    ?>
                    <span  style=" padding-left: 160px; font-weight:  bold">From:</span><span> <?php 
    echo date_format(date_create($fechaIni), 'F j, Y');
    ?>
 at 10:00 a.m   </span><span><b>  To: </b><?php 
    echo date_format(date_create($_POST['fechaFin']), 'F j, Y');
    ?>
 at 9:59 a.m</span> 
                    </br></br>
                     <table border="0" style="border: 1px solid" align="center">
                        <thead>
                            <tr <?php 
    echo isset($_GET["tipoReporte"]) ? "" : "class='ui-widget-header'";