<?php
    $this->placeholder('breadcrumb')->set('<a href="/warehouse.php">Warehouse</a> > DMS Delivery Info. Upload');
?>
<div class="panelHeader">
    <h3>DMS Delivery Status Upload</h3>
</div>

<div class="panelContent fullReport">
    <div class="panelSummary">
        <p>Copy and paste the file in the following box to upload information in the database. Each field must be separated by a <em>tab</em> and each line must be separated by a <em>return. </em></p>
        <p>The format for the file should be: <b>encoder_id 'tab' upc 'tab' DMS ID (customer_master_master_id) 'tab' date_delivered(yyyy-mm-dd) 'return'</b> &nbsp;</p>
    </div>
    <form name="dms_delivery_upload" action="/warehouse/processdmsdeliveryupload" method="post">
        <input type="hidden" name="a" value="text_upload">
        <table class="form full">
            <tr>
                <th valign="top">Copy text here:</th>
                <td><textarea name="upload" cols="60" rows="20" class="autoWidth" style="width:auto;" wrap="soft"><?php if (isset($upload)) { echo $upload; }?></textarea></td>
            </tr>
        </table>
        <div class="panelButtons">
            <input type="reset" name="Reset" value="Clear All" class="btn btn-default btn-sm">
            <input name="submit" type="submit" value="Upload" class="btn btn-primary btn-sm"/>
        </div>
    </form>
</div>

<div class="panelContent fullReport">
    <form name="dms_delivery_file_upload" action="/warehouse/processdmsdeliveryupload" method="post" enctype="multipart/form-data">
        <input type="hidden" name="a" value="file_upload">
        <table class="form wide">
            <tr>
                <th>Upload Text file:</th>
                <td><input type="file" name="userfile" class="textField small"></td>
            </tr>
        </table>
        <div class="panelButtons">
            <input type="reset" name="Reset" value="Clear All" class="btn btn-default btn-sm" >
            <input name="submit" type="submit" value="Upload" class="btn btn-primary btn-sm"/>
        </div>
    </form>
</div>
