
<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">
                <h3 class="panel-title">بيع كمبيالة</h3>
            </div>
            <div class="panel-body">
                <form id="mySellForm" class="form-horizontal" action="?do=addsell" method="post">
                    <input name="id" type="hidden" id="id"  value="{$showData->id}" />
                    <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>

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

                    <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="{$showData->clientname}" 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->value}" 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="suppliercomment" id="suppliercomment" 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>
