<?php $this->placeholder('breadcrumb')->set('<a href="/warehouse.php">Warehouse</a> > Direct Delivery Count'); ?>
<div class="panelHeader">
    <h3>Direct Delivery Count</h3>
</div>

<div class="panelContent fullReport">
<script language="javascript">
    addCalendar('Cal1', 'Select Date', 'startdate', 'delivery_count');
    addCalendar('Cal2', 'Select Date', 'enddate', 'delivery_count');
    addCalendar('exp_date', 'Select Date', 'expiration_date', 'delivery_count');
</script>    
    <form action="/warehouse/generateddcountreport" method="post" name="delivery_count" id="delivery_count" onsubmit="return ValidateAndGetReportResult();">
        <table class="form half">
            <tr><th class="required"><span class="required">*</span> Encoder:</th>
                <td valign="top">
                    <select name="encoder_id" id="encoder_id" class="multiple small coolSelectMultiEncoder">
                    <option value=""></option>
                    <?php foreach ($this->encoders as $encoder) { ?>
                              <option value="<?=$encoder['encoder_id']?>"><?=$encoder['encoder']?></option>
                    <?php } ?>
                    </select>
                </td>
            </tr>
            <tr>
                <th>DMS:</th>
                <td>
                    <select name="dms_customer_master_ids[]" id="dms_customer_master_ids" multiple class="multiple small coolSelectMultiDMS">
                    <?php foreach ($this->dms as $dms) { ?>
                              <option value="<?=$dms['customer_master_master_id']?>"><?=$dms['customer_name']?></option>
                    <?php } ?>
                    </select>
                </td>
            </tr>
        </table>
        <table class="form half">
            <tr><th>Period: <input type="radio" name="period_type" id="period_type" onclick="PeriodChange('last_week');" value="last_week" checked="checked"></th>
                <td>Last Week</td>
            </tr>
            <tr><th><input type="radio" name="period_type" id="period_type" onclick="PeriodChange('date_range');" value="date_range"></th>
                <td nowrap="nowrap"><input type="text" name="startdate" id="startdate" size="10"  class="textFieldDate small" style="background-color:#CCCCCC; " disabled="true"> <a href="#" onclick="showCal('Cal1');"><img src="/images/icoCalendar.gif" border="0" alt="Calendar" align="absmiddle" /></a>
                - to -
                <input type="text" name="enddate" id="enddate" size="10" class="textFieldDate small" style="background-color:#CCCCCC; " disabled="true"> <a href="#" onclick="showCal('Cal2');"><img src="/images/icoCalendar.gif" border="0" alt="Calendar" align="absmiddle" /></a>
                </td>
            </tr>
        </table>
        <div class="panelButtons">
            <strong>Report Result Type:</strong>
            <select name="report_result_type" class="small">
                <option value="html">HTML</option>
                <option value="excel">Excel</option>
            </select>
            <input type="hidden" id="report_type" name="report_type" value="html">
            <input class="btn btn-primary btn-sm" type="button" name="srchSubmit" value="Go" onclick="ValidateAndGetReportResult()">
        </div>
    </form>
</div>
<div id="report"></div>
<div id="loader" style="display: none;" align="center">
    <img alt="" src="/images/loader.gif">
</div>
<script type="text/javascript" src="/scripts/jquery-1.11.0.min.js"></script>
<script src="/plugins/select2/select2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/scripts/ddcountreport.js"></script>