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

        <ol class="breadcrumb">
            <li><a href="#">نظام المطالبة</a></li>
            <li><a href="claimController.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">


                {literal}
                <form class="form-horizontal" action="claimController.php" id="claimformajax" method="post"
                    enctype="multipart/form-data" data-dosave="?do=savedata" data-direction="">
                    {/literal}
                    <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 changetypeclientid" id="from_date" autocomplete="off"
                                    data-table="claims" data-date-format="yyyy-mm-dd" placeholder=" "
                                    name="from_date" id="bn" required>
                                <span class="textfieldRequiredMsg">*</span></span>
                        </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 changetypeclientid" id="to_date" autocomplete="off"
                                    data-table="claims" data-date-format="yyyy-mm-dd" placeholder=" "
                                    name="to_date" id="bn" required>
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">الجهات المختصة </label>
                        <div class="col-lg-4">
                            <input id="typeclientids" type="text" multiple="" name="typeclientids" class="getselectmultiple changetypeclientid"  data-placeholder=" اختر     "   data-table="typeclient" data-tableid="typeId" 
                            data-join="  "  
                            data-filter=" and typeclient.conditions = 0 "
                            data-parent="" data-itr=""  data-search="typeName,'/',comments"/>  
                          
                        </div>
                    </div>

                    <div id="changetypeclientidhtml"></div>
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">رقم المطالبة  </label>
                        <div class="col-lg-4"> <span id="sprydate">
                                <input required="required" type="text" name="claim_number" digits="true"
                                class="form-control checkcolumn nummbers" placeholder=""
                                data-table="claims" data-tablecol="claim_number" data-tableid="" data-parentid=""
                                data-parentcol="" />
                                <span class="textfieldRequiredMsg">*</span></span>
                        </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 required="required" type="text" name="claim_value" 
                                class="form-control  nummbers" placeholder="" readonly 
                                data-table="claims" id="claim_value" data-tableid="" data-parentid=""
                                data-parentcol="" />
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>

                

                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">التعليق</label>
                        <div class="col-lg-4">
                            <textarea class="form-control" name="claim_comment" rows="2" placeholder=""></textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" class="btn btn-primary pull-left saveformajax" data-form="claimformajax" data-action="0">حفظ الامر</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        selectedit();
    });
</script>