
<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="myform" class="form-horizontal" action="?do=add" method="post">

                    <div class="form-group">
                        <label class="col-lg-2 control-label">إسم العميل</label>
                        <div class="col-lg-4">
                            <select name="clientID" id="clientID" class="select2 wdt100">
                                <option value="-1">اختر عميل</option>
                                {foreach $allclientdata as $clientdata}
                                <option value="{$clientdata->clientid}">{$clientdata->clientname}</option>
                                {/foreach}
                            </select>
                            <div id="clientError" 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="recievingdate" 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 type="text" name="expiredate" id="expiredate" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd">
                            <div id="dateError" style="display:none;"></div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label class="col-lg-2 control-label">القيمة</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" name="value" id="valuetxt" class="form-control positivefloat">
                                <span class="input-group-addon">{$currency}</span>
                            </div>
                            <div id="valueError" style="display:none;"></div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label class="col-lg-2 control-label">تعليق</label>
                        <div class="col-lg-4">
                            <textarea name="clientcomment" id="clientcomment" 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="savebtn" class="btn btn-primary pull-left">حفظ</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{literal}
<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer");
</script>
{/literal}