Example #1
0
function sortable_header($sortable_column_value, $type, $column_text)
{
    return '<th class="column_heading">' . sortable_link($sortable_column_value, $type, $column_text) . '</th>';
}
?>
">Academic Year</a></th>
            <th><a href="<?php 
echo sortable_link("term");
?>
">Term</a></th>
            <th><a href="<?php 
echo sortable_link("level_code");
?>
">Level Code</a></th>
            <th><a href="<?php 
echo sortable_link("degree");
?>
">Degree</a></th>
            <th><a href="<?php 
echo sortable_link("major");
?>
">Major</a></th>
            <th></th>
          </thead>
          <tbody> 
            <?php 
while ($graduate = $query->fetch_assoc()) {
    ?>
            <tr>
              <td><?php 
    echo $graduate["first_name"];
    ?>
</td> 
              <td><?php 
    echo $graduate["last_name"];
?>
</th>
    <th><?php 
echo sortable_link('customer_net_freight', 'numeric', 'Customer Net Frt');
?>
</th>
    <th><?php 
echo sortable_link('customer_net_freight_without_shortage', 'numeric', 'customer net frt w/o shortage');
?>
</th>
    <th><?php 
echo sortable_link('service_charges', 'numeric', 'Service Charges');
?>
</th>
    <th><?php 
echo sortable_link('billed', 'numeric', 'billed');
?>
</th>
</tr>
</thead>
<tbody>
<?php 
$grand_total_freight_for_company = 0;
$grand_total_net_freight_for_company = 0;
$total_shortage_amount = 0;
$total_wht = 0;
$total_company_commission_amount = 0;
$total_contractor_freight_amount = 0;
$grand_total_contractor_freight_without_shortage = 0;
$total_contractor_net_freight_amount = 0;
$total_contractor_commission = 0;