
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">المصروفات والإيرادات</a></li>
            <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">
                <h3 class="panel-title">تظهير شيك</h3>
            </div>
            <div class="panel-body">
                <form id="mySellForm" class="form-horizontal" action="?do=addEndorse" method="post">
                    <input name="id" type="hidden" id="id"  value="{$showData->datedCheckedID}" />
                    {if $showData->addType == "0"}
                    <div class="form-group">
                        <label class="col-lg-2 control-label">إسم المورد</label>
                        <div class="col-lg-4">
                            <select  name="supplierID" id="supplierID" class="select2 wdt100">
                                <option value="-1">اختر مورد</option>
                                {foreach $allSupplierdata as $Supplierdata}
                                <option value="{$Supplierdata->supplierid}">{$Supplierdata->suppliername}</option>
                                {/foreach}
                            </select>
                            <div id="suppError" style="display:none;"></div>
                        </div>
                    </div>
                    {else}
                    <div class="form-group">
                        <label class="col-lg-2 control-label">إسم العميل</label>
                        <div class="col-lg-4">
                            <select  name="supplierID" id="supplierID" class="select2 wdt100">
                                <option value="-1">اختر عميل</option>
                                {foreach $allSupplierdata as $Supplierdata}
                                <option value="{$Supplierdata->supplierid}">{$Supplierdata->suppliername}</option>
                                {/foreach}
                            </select>
                            <div id="suppError" style="display:none;"></div>
                        </div>
                    </div>
                    {/if}

                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label">صاحب الشيك </label>
                        <div class="col-lg-4">
                            <input name="textfield4" type="text" id="textfield4" value="{if $showData->addType == '0'}{$showData->clientname}{else}{$showData->suppliername}{/if}" readonly="readonly"  class="form-control"/>
                        </div>
                    </div>

                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label">تاريخ اليوم</label>
                        <div class="col-lg-4">
                            <input name="date" type="text" id="textfield2" value="{$today}" readonly class="form-control">
                        </div>
                    </div>

                    <!--==============================-->

                    <!--div class="form-group">
                        <label class="col-lg-2 control-label">تاريخ الاستحقاق</label>
                        <div class="col-lg-4">
                            <input name="expiredate" type="text" id="expiredate" value="{$showData->expiredate}" readonly="readonly" class="form-control">
                        </div>
                    </div>

                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label">القيمة</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <div class="input-group">
                                    <input name="value" type="text" id="textfield3" value="{$showData->checkValue}" readonly="readonly" class="form-control">
                                    <span class="input-group-addon">{$currency}</span> </div>
                                <span class="textfieldRequiredMsg">ادخل المبلغ.</span><span class="textfieldInvalidFormatMsg">ادخل قيمه صحيحه.</span></span> </div>
                    </div>

                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label">تعليق</label>
                        <div class="col-lg-4">
                            <textarea name="endourseComment" id="endourseComment" cols="45" rows="5" class="form-control"></textarea>
                        </div>
                    </div>

                    <!--==============================-->

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button"  id="sellBtn" class="btn btn-primary pull-left">تظهير</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
