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

        <ol class="breadcrumb">
            <li><a href="#">الجمعيات</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">


                {literal}
                <form class="form-horizontal" action="subventionPayController.php" id="charityformajax" method="post"
                    enctype="multipart/form-data" data-dosave="?do=savedata">
                    {/literal}
                    <div class="form-group">
                        <label class="col-lg-2 control-label">الجمعية </label>
                        <div class="col-lg-4">
                            <select name="charity_id" id="charityId" data-placeholder="اختر "
                                class="selectnew getSubvention" required data-table="subventionPay"
                                data-tablecol="charity_id">
                                <option value=""></option>
                                {foreach $allCharities as $single}
                                <option value="{$single.id}">{$single.charityname}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">شهر الصرف</label>
                        <div class="col-lg-4"> <span id="sprydate">
                                <input type="text" class="form-control awdatepicker getSubvention" autocomplete="off"
                                    data-table="subventionPay" data-date-format="yyyy-mm" placeholder="شهر الصرف"
                                    name="createdate" id="month">
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>
                    <hr />
                    <div id="subventionDiv"></div>
                    <hr />
                    <input type="button" class="btn btn-success printPayedSubvention" style="float: left;"
                        value="طباعة شيت القبض" />
                    <input type="button" class="btn btn-success paySelectedSubvention" style="float: center;"
                        value="قبض" />
                    <input type="button" class="btn btn-success printIDs" value="طباعة الكارنيهات" />
                </form>
                <div class="clearfix"></div>
                <div id="noElementsError" class="alert alert-danger fade in" style="display:none;">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">×</button>
                    <p>يجب اختيار العناصر أولاً</p>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="printDiv"></div>

<script type="text/javascript">
    $(document).ready(function () {
        selectedit();
    });
</script>