<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title><?=$menu_label?></title>
    </head>

    <body style="width:auto; margin:auto">
        <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td height="40" colspan="10" class="s0"><?php echo $this->load->model('file/m_new_company')->get_company_name($this->session->userdata('company')); ?></td>
            </tr>

            <tr>
                <td colspan="10" class="s1">List <?=$menu_label?></td>
            </tr>

            <tr>
                <td width="30" class="s4">Branch</td>
                <td width="30" class="s4">Customer</td>
                <!--<td width="30" class="s4">Sales</td>-->
                <td width="20" class="s4">SOrd. Number</td>
                <td width="15" class="s4">SOrd. Date</td>
                <td width="20" class="s4">SQuo. Number</td>
                <td width="15" class="s4">SQuo. Date</td>
                <td width="20" class="s4">Cust. PO. Number</td>
                <td width="15" class="s4">Cust. PO. Date</td>
                <td width="35" class="s4">Description</td>
                <td width="20" class="s4">Status</td>
            </tr>

            <?php foreach($list as $row){ ?>
                <tr>
                    <td class="s5"><?php echo $row->BranchName; ?></td>
                    <td class="s5"><?php echo $row->CustomerName; ?></td>
                    <!--<td class="s5"><?php //echo $row->EmployeeName; ?></td>-->
                    <td class="s5"><?php echo $row->SOrdNumber; ?></td>
                    <td class="s5"><?php echo $row->SOrdDate; ?></td>
                    <td class="s5"><?php echo $row->SQuoNumber; ?></td>
                    <td class="s5"><?php echo $row->SQuoDate; ?></td>
                    <td class="s5"><?php echo $row->CustPONumber; ?></td>
                    <td class="s5"><?php echo $row->CustPODate; ?></td>
                    <td class="s5"><?php echo $row->SOrdDesc; ?></td>
                    <td class="s5"><?php echo $row->Status; ?></td>
                </tr>    
            <?php } ?>
        </table>
    </body>
</html>