<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$this->load->helper('url');
$this->load->helper('form');
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Add New Customer</title>
    </head>
    <body>
        <?php
        echo form_open("Customer_Controller/addCustomer");
        ?>
        <table border="1">
            <tbody>
                <tr>
                    <td>Customer Name</td>
                    <td>:</td>
                    <td><input type="text" name="add_cus_name" value="" /></td>
                </tr>
                <tr>
                    <td>Office Address</td>
                    <td>:</td>
                    <td><input type="text" name="add_cus_office_address" value="" /></td>
                </tr>
                <tr>
                    <td>Office Contact Number</td>
                    <td>:</td>
                    <td><input type="text" name="add_cus_office_contact" value="" /></td>
                </tr>
                <tr>
                    <td>Factory Address</td>
                    <td>:</td>
                    <td><input type="text" name="add_cus_factory_address" value="" /></td>
                </tr>
                <tr>
                    <td>Factory Contact Number</td>
                    <td>:</td>
                    <td><input type="text" name="add_cus_factoy_contact" value="" /></td>
                </tr>
                <tr>
                    <td>Contact Person 1</td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Name</td>
                    <td>:</td>
                    <td><input type="text" name="cnp1_name" value="" /></td>
                </tr>
                <tr>
                    <td>Contact No</td>
                    <td>:</td>
                    <td><input type="text" name="cnp1_contact_no" value="" /></td>
                </tr>
                <tr>
                    <td>E-Mail</td>
                    <td>:</td>
                    <td><input type="text" name="cnp1_email" value="" /></td>
                </tr>
                <tr>
                    <td>Contact Person 2</td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Name</td>
                    <td>:</td>
                    <td><input type="text" name="cnp2_name" value="" /></td>
                </tr>
                <tr>
                    <td>Contact No</td>
                    <td>:</td>
                    <td><input type="text" name="cnp2_contact_no" value="" /></td>
                </tr>
                <tr>
                    <td>E-Mail</td>
                    <td>:</td>
                    <td><input type="text" name="cnp2_email" value="" /></td>
                </tr>
                <tr>
                    <td>VAT Type</td>
                    <td>:</td>
                    <td>
                        <select name="vat_type">
                            <option>VAT</option>
                            <option>NON VAT</option>
                            <option>SVAT</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Current Outstanding</td>
                    <td>:</td>
                    <td><input type="text" name="current_outstanding" value="" /></td>
                </tr>
                <tr>
                    <td>Payment Type</td>
                    <td>:</td>
                    <td>
                        <select name="payment_type">
                            <option>Cash</option>
                            <option>Credit</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Credit Limit</td>
                    <td>:</td>
                    <td><input type="text" name="credit_limit" value="" /></td>
                </tr>
                <tr>
                    <td>Credit Period</td>
                    <td>:</td>
                    <td>
                        <select name="credit_period">
                            <option>0</option>
                            <option>30</option>
                            <option>45</option>
                            <option>90</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td align="right"><input type="submit" value="Submit" /></td>
                </tr>
            </tbody>
        </table>

        <?php
        echo form_close();
        ?>

    </body>
</html>
