


<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">المصروفات والايرادات</a></li>
            <li><a href="transferBtweenBankAccounts.php?do=show">ادارة البنوك</a></li>
            <li class="active">التحويل بين البنوك</li>
        </ol>


        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">اضافة تحويل بين البنوك</h3>
            </div>
            <div class="panel-body">



                <form id="myTranform" class="form-horizontal" role="form" action="transferBtweenBankAccounts.php?do=add" method="post" >
                    <!-- =================================================   -->

                    <div class="form-group">
                        <label for="ddlBank" class="col-lg-2 control-label">البنك من</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="ddlBankfrom" id="ddlBankfrom" onchange="loadAccount(this.value, 'accountNameFrom', 'accountidfrom', 'accountnumberFrom');">
                                <option value="-1">اختر بنك</option>
                                {foreach $bank as $b}
                                <option value="{$b->bankid}">{$b->bankname}</option>
                                {/foreach}
                            </select>
                            <div id="bankFromError" style="display:none;"></div>

                        </div>

                    </div>



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

                    <div class="form-group">
                        <label for="accountid" class="col-lg-2 control-label">اسم الحساب من</label>
                        <div class="col-lg-4">
                            <div id="accountNameFrom">
                                <select class="select2 wdt100" name="accountidfrom" id="accountidfrom">
                                    <option value="-1">اختر حساب</option>
                                </select>

                            </div>
                            <div id="accountFromError" style="display:none;"></div>

                        </div>
                    </div>
                    <div id="accountnumberFrom">
                        <!-- =================================================   -->

                        <div class="form-group">
                            <label for="accountnumberDis" class="col-lg-2 control-label">رقم الحساب</label>
                            <div class="col-lg-4">
                                <input type="text" id="accountnumberDis" name="accountnumberDis"   class="numberinput form-control" placeholder="رقم الحساب" readonly="readonly"/>
                                <input type="hidden" name="accountnumber" id="accountnumber"/>
                            </div>
                        </div>

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

                        <div class="form-group">
                            <label for="accountbeginingbalanceDis" class="col-lg-2 control-label">رصيد سابق</label>
                            <div class="col-lg-4">
                                <div class="input-group">
                                    <input type="text" name="accountbeginingbalanceDis" id="accountbeginingbalanceDis" class="form-control numberinput" readonly="readonly" placeholder="رصيد سابق"/>
                                    <span class="input-group-addon">{$currency}</span> </div>
                                <input type="hidden" name="accountbeginingbalance" id="accountbeginingbalance"/>
                            </div>
                        </div>

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

                    </div>

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

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

                    <div class="form-group">
                        <label for="ddlBank" class="col-lg-2 control-label">البنك الى</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="ddlBankto" id="ddlBankto" onchange="loadAccount(this.value, 'accountNameTo', 'accountidto', 'accountnumberTo');">
                                <option value="-1">اختر بنك</option>
                                {foreach $bank as $b}
                                <option value="{$b->bankid}">{$b->bankname}</option>
                                {/foreach}
                            </select>
                            <div id="bankToError" style="display:none;"></div>

                        </div>

                    </div>



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

                    <div class="form-group">
                        <label for="accountid" class="col-lg-2 control-label">اسم الحساب الى</label>
                        <div class="col-lg-4">
                            <div id="accountNameTo">
                                <select class="select2 wdt100" name="accountidto" id="accountidto">
                                    <option value="-1">اختر حساب</option>
                                </select>
                            </div>
                            <div id="accountToError" style="display:none;"></div>
                        </div>
                    </div>
                    <div id="accountnumberTo">
                        <!-- =================================================   -->

                        <div class="form-group">
                            <label for="accountnumberDis" class="col-lg-2 control-label">رقم الحساب</label>
                            <div class="col-lg-4">
                                <input type="text" id="accountnumberDis" name="accountnumberDis"   class="numberinput form-control" placeholder="رقم الحساب" readonly="readonly"/>
                                <input type="hidden" name="accountnumber" id="accountnumber"/>
                            </div>
                        </div>

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

                        <div class="form-group">
                            <label for="accountbeginingbalanceDis" class="col-lg-2 control-label">رصيد سابق</label>
                            <div class="col-lg-4">
                                <div class="input-group">
                                    <input type="text" name="accountbeginingbalanceDis" id="accountbeginingbalanceDis" class="form-control numberinput" readonly="readonly" placeholder="رصيد سابق"/>
                                    <span class="input-group-addon">{$currency}</span> </div>
                                <input type="hidden" name="accountbeginingbalance" id="accountbeginingbalance"/>
                            </div>
                        </div>

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

                    </div>


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



                    <div class="form-group">
                        <label for="transfervalue" class="col-lg-2 control-label">القيمة المحولة</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" name="transfervalue" id="transfervalue"  class="form-control positivefloat" value="0" /><!--onKeyUp="checksaveValue();"-->
                                <span class="input-group-addon">{$currency}</span>
                            </div>
                            <div id="valueError" style="display:none;"></div>

                        </div>
                    </div>

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


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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" id="saveTrnBtn" class="btn btn-primary pull-left">حفظ الامر</button>
                        </div>
                    </div>


                </form>
            </div>
        </div>




    </div>
</div>




