
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="#">الموردين</a></li>
            <li class="active">تقرير لمورد معين</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">تقرير لمورد معين<br />
                {if $message != ""}
                {$message}
                {/if}</div>
            <div class="panel-body">
                <form class="form-inline  hidden-print" action="supplierPayedDeptController.php?do=oneSupplier" method="post">
                    <div class="form-group">
                        <label class="sr-only">اختر مورد</label>
                        <select data-placeholder="اختر مورد" class="select2 wdt100" name="supplierid" id="supplierid">
                            <option value="-1"></option>

                            {foreach $supplierData as $supplier}

                            <option value="{$supplier->supplierid}">{$supplier->suppliername}</option>

                            {/foreach}

                        </select>
                    </div>
                    <br />
                    <div class="form-group">
                        <label class="sr-only">من التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd"  name="from" id="datepicker_from" >
                    </div>
                    <div class="form-group">
                        <label class="sr-only">إلى التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd"  name="to" id="datepicker_to" >
                    </div>

                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
            </div>
            <hr/>

            <div id="resultDiv">
                <table class="table table-black">
                    <thead>
                        <tr>
                            <th><strong>م</strong></th>
                            <th><strong>التاريخ</strong></th>
                            <th><strong>الاسم</strong></th>
                            <th><strong>المبلغ  قبل </strong></th>
                            <th><strong>المبلغ</strong></th>
                            <th><strong>المبلغ بعد</strong></th>
                            <th><strong>العملية </strong></th>
                        </tr>
                    </thead>
                    <tbody>

                        {foreach $shownData as $data}
                        <tr {if $data->supplierdebtchangetype eq 0} class="danger" {else}   {/if}>
                            <td>{$data@index+1}</td>
                            <td >{$data->supplierdebtchangedate}</td>
                            <td >{$data->suppliername}</td>
                            <td >{$data->supplierdebtchangebefore}</td>
                            <td >{$data->supplierdebtchangeamount}</td>
                            <td >{$data->supplierdebtchangeafter}</td>
                            <td ><a class=" hidden-print" href="{$data->link}">{$data->processname}</a> <div class="visible-print">{$data->processname}</div></td>
                        </tr>
                        {/foreach}
                    </tbody>

                </table>
            </div>
            <div class="clearfix"></div>
            <hr />
            <div  class=" hidden-print">
                <div class="col-lg-12">
                    <div class="form-group">
                        <div class="col-lg-4">
                            <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>

    </div>
</div>
