<form class="form-horizontal col-lg-6" role="form" action="clientreceiptController.php?do=payed" id="paynetwork-form" method="post" >

    <div class="form-group">
        <label for="clientpayed" class="col-lg-4 control-label"> المبلغ المدفوع</label>
        <div class="col-lg-8">
            <div class="input-group">
                <input type="text" name="clientpayed" id="clientpayed"  class="form-control positiveNo" />
                <span class="input-group-addon">جنية</span>
            </div>
        </div>
    </div>


    <div class="form-group">
        <label for="payedtype" class="col-lg-4 control-label">  نوع الدفع</label>
        <div class="col-lg-8">
            <label><input type="radio" name="payedtype" id="payedtypecash" class="payedtypeck" value="0" checked /> نقدى</label>
            <label>
                <input type="radio" name="payedtype" id="payedtypeshapk" class="payedtypeck" value="1" /> شبكة</label>
            <label>
                <input type="radio" name="payedtype" id="payedtypeshapk" class="payedtypeck" value="2" /> بنك</label>

        </div>
    </div>
    <!-- =================================================   -->

    <div id="check-div" style="display:none;">
        <div class="form-group">
            <label for="paynetwork" class="col-lg-4 control-label"> الشبكة</label>
            <div class="col-lg-8">
                <select class="select2 wdt100" name="paynetwork" id="paynetwork">
                    <option value="-1">اختر الشبكة</option>
                    {foreach $paymentmethod as $data}
                    <option value="{$data->id}">{$data->name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
    </div>

    <div id="bank-div" style="display: none">
        <div class="form-group">
            <label class="col-lg-4 control-label">البنك</label>
            <div class="col-lg-8">
                <select class="select2 wdt100" name="bankid" id="bankid" required>
                    <option value=""></option>
                    {foreach $banks as $data}
                    <option value="{$data->bankid}">{$data->bankname}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="form-group mg-bt5">
            <label class="col-lg-4 control-label">الحساب</label>
            <div class="col-lg-8">
                <select class="select2 wdt100" name="bankaccountid" id="bankaccountid" required>
                    <option value=""></option>
                </select>
            </div>
        </div>
    </div>

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

    <input type="hidden" name="billid" id="billid"   />
    <input type="hidden" name="billtype" id="billtype"  />
    <input type="hidden" name="billclientid" id="billclientid"  />
    <input type="hidden" name="debtbefore" id="debtbefore"  />
    <input type="hidden" name="searchClientId" value="{$searchClientId}"/>
    <input type="hidden" name="searchDate" value="{$searchDate}"/>
    <input type="hidden" name="mypaymethod" value="{$paymethod}"/>
    <!-- =================================================   -->
    <div class="form-group noprint">
        <label for="payedtype" class="col-lg-4 control-label"></label>
        <div class="col-lg-8">
            <button type="button" id="submit_paynetwork" class="btn btn-primary">حفظ الامر</button>
        </div>
    </div>

</form>

{literal}
<script>
    $(document).ready(function () {
        $(".positiveNo").forcepositiveNum();
    });

</script>
{/literal}