Ejemplo n.º 1
0
    </div>
    <div class="col-xs-3">
        <span>This Year</span><strong><?php 
echo $TotalYear;
?>
</strong>
    </div>
    <div class="col-xs-3">
        <span>All Time</span><strong><?php 
echo $TotalAlltime;
?>
</strong>
    </div>
</div>
<?php 
$Table = new ifx_Table2($TableData);
$DateCol = new ifx_TColumn('createddate', 'Date', $Table);
$DateCol->formatter(function ($Row, $Date) {
    return date('d-m-y', mysql_to_unix($Date));
})->defaultSort('DESC');
$OrderID = new ifx_TColumn('nice_id', 'Order ID', $Table);
$Customer = new ifx_TColumn(null, 'Customer', $Table);
$Customer->formatter(function ($Row) {
    return $Row->firstname . ' ' . $Row->lastname;
})->sortable(true, 'concat(firstname, lastname)');
$Email = new ifx_TColumn('email', 'E-Mail Address', $Table);
$Total = new ifx_TColumn(null, 'Total', $Table);
$Total->formatter(function ($Row) {
    return '£' . number_format($Row->total + $Row->postage, 2);
})->sortable(true, 'total+postage');
$Status = new ifx_TColumn(null, 'Status', $Table);
Ejemplo n.º 2
0
 function appendTo(ifx_Table2 $Table)
 {
     $Table->addColumn($this);
     return $this;
 }