<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-users"></i>Drug Use  Report
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="drugUsereport" value="1"/>
                        <input type="hidden" id="tdate" value="{$today}">
                        <input type="hidden" id="controllName" value="financialreport"/>
                        <!--Begin Semen-->

                        <div class="row">
                            <div class="row clinick posre">
                                <div class="col-md-2 wds12 ">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker txtc drugSearch" id="findate" value="{$today}"/>
                                        <label for="form_control_1">Date From </label>
                                    </div>
                                </div>

                                <div class="col-md-2 wds12">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker txtc drugSearch" id="tofindate" value="{$today}"/>
                                        <label for="form_control_1">Date To </label>
                                    </div>
                                </div>

                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="control-label ls2">Drug Group</label>
                                        <select class="form-control dcatReport" id="drugCatId">
                                            <option value="">Choose Category</option>
                                            {foreach $allDrugcats as $cat}
                                            <option value="{$cat['drugcat']}">{$cat['drugcat']}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>


                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="control-label ls2">Drug Name</label>

                                        <select class="form-control drugSearch " id="drugId">
                                            <option value="">Choose Drug</option>
                                            {foreach $drugs as $drug}
                                            <option value="{$drug['id']}">{$drug['drugname']} </option>
                                            {/foreach}
                                        </select>

                                    </div>
                                </div>

                                <!--div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label ls2">Drug Form</label>

                                        <select class="form-control drugSearch" id="husband">
                                            <option value="">Choose Form</option>
                                            {foreach $allDrugTypes as $type}
                                            <option value="{$type['drugtype']}">{$type['drugtype']}</option>
                                            {/foreach}
                                        </select>

                                    </div>
                                </div-->

                                <!--div class="col-md-2">
                                   <div class="form-group">
                                       <label class="control-label ls2">Drug Use</label>
                                       <select class="form-control drugSearch" id="patientName">
                                           <option value="">choose dose </option>
                                           {foreach $allDrugDoses as $dos}
                                           <option value="{$dos['drugdos']}">{$dos['drugdos']}</option>
                                           {/foreach}
                                       </select>
                                   </div>
                               </div-->



                            </div>
                            <div class="clearfix"></div>
                            <div class="portlet box white">
                                <div class="portlet-title">
                                    <div class="actions">
                                        <a class="btn btn-primary btn-sm" id="drugSearch" >
                                            <i class="fa fa-search"></i> Search </a>
                                       
                                       
                                        <a class="btn btn-default btn-sm" id="printDrug" >
                                            <i class="fa fa-print"></i> Print </a>
                                    </div>
                                </div>
                                <div class="portlet-body form" id="DrugsDiv">  </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="drugPrint"></div>
