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

        <ol class="breadcrumb">
            <li><a href="#">العيادات</a></li>
            <li><a href="rb_kashf.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>
            <!-- =================================================   -->





            <form class="nameToBeChecked form-horizontal" enctype="multipart/form-data" id="rb_kashfForm" role="form" action="rb_kashf.php?do=update" method="post" >



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

                <input type="hidden" name="kashfid" value="{$editkasf->id}"/>



                <div class="form-group">
                    <div class="col-lg-4">

                        <label class="sr-only">اسم العميل</label>
                        <select class="select2 wdt100" id="custSelect" disabled="none" name="custselect" >


                            <option value="-1">اختر عميل</option>


                            {foreach $allcust as $allcustomer}
                            {if $editkasf->customerid === $allcustomer->clientid}

                            <option value="{$allcustomer->clientid}" selected>{$allcustomer->clientname}</option>


                            {else}

                            <option value="{$allcustomer->clientid}" >{$allcustomer->clientname}</option>

                            {/if}
                            {/foreach}
                        </select>
                        <input type="hidden" value="{$editkasf->customerid}" name="oldCustomer"/>

                    </div>  </div>

                <div class="form-group">
                    <span style="   font-size: 17px; color: red;text-align: center;margin-right: 16px;">  {if !empty($client)}{$client}{/if}</span>
                </div>
                <!-- =================================================   -->

                <!-- =================================================   -->
                <div class="form-group">
                    <div class="col-lg-4">



                        <label class="sr-only">اسم الطبيب</label>
                        <select class="select2 wdt100" id="docSelect"  disabled="none"  name="docselect" >


                            <option value="-1">اختر طبيب</option>

                            {foreach $alldoc as $alldoctors}
                            {if  $editkasf->doctorid === $alldoctors->userid}

                            <option value="{$alldoctors->userid}" selected>{$alldoctors->username}</option>


                            {else}

                            <option value="{$alldoctors->userid}" >{$alldoctors->username}</option>



                            {/if}
                            {/foreach}
                        </select>
                    </div>  </div>

                <div class="form-group">
                    <span style="   font-size: 17px; color: red;text-align: center;margin-right: 16px;">  {if !empty($doc)}{$doc}{/if}</span>
                </div>
                <!-- =================================================   -->


                <div class="form-group">
                    <label class="col-lg-2 control-label">سعر الكشف</label><br><br><br>
                    <div class="col-lg-4">
                        <span id="sprytextfield1">

                            <input  style="margin-top: -23px;" type="text"  disabled="none"   name="kashf_value" value="{$editkasf->kashfvalue}"  id="clinic_description"   placeholder=" الكشف " class="form-control positivefloat"  />
                            <span class="kashf_valueError" style="color: red; display: none;">ادخل الرقم *</span></span>


                    </div>
                </div>

                <div class="form-group">
                    <span style="   font-size: 17px; color: red;text-align: center;margin-right: 16px;">  {if !empty($value)}{$value}{/if}</span>
                </div>
                <!-- =================================================   -->



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

                <!--div class="form-group">
                    <label style="   margin-top: 10px;margin-bottom: 10px;"  class="col-lg-2 control-label">دفع الكشف</label>
                    <div style="margin-right: -64px;    margin-top: 10px;margin-bottom: 10px;" class="col-lg-4">
                        <div class="radio-inline">
                            <label>
                                <input name="paytype"  type="radio" id="paytype1" value="0" {if $editkasf->paystatus == 0}   checked="checked" {else}  disabled="none"  {/if} />
                                دفع الان </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="paytype" type="radio"  id="paytype2"  value="1" {if $editkasf->paystatus == 1 || $editkasf->paystatus == 2}   checked="checked" {else}  disabled="none"  {/if}    />
                                دفع مع فاتورة </label>
                        </div>
                    </div>
                </div-->

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

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


                <div class="form-group">
                    <label class="col-lg-2 control-label">نوع الكشف</label><br><br><br>
                    <div  class="col-lg-4">
                        <input style="margin-top: -23px;"  disabled="none"   name="kasf_type"  value="{$editkasf->kashftype}"  id="clinic_description"   placeholder=" نوع الكشف " class="form-control" />

                    </div>
                </div>

                <div class="form-group">
                    <span style="    font-size: 17px; color: red;text-align: center;margin-right: 16px;">  {if !empty($katype)}{$katype}{/if}</span>
                </div>

                <div class="form-group">
                    <label class="col-lg-2 control-label">تاريخ الكشف</label>
                    <div class="col-lg-4">
                        <input  disabled="none"  data-date="datetoday"  style="    margin-top: 30px;margin-right: -196px;" name="kashfdate"  type="text" class=" form-control awdatepicker" autocomplete="off"  data-date-format="yyyy-mm-dd" id="datentoday" value="{$editkasf->kashfdate}" placeholder="تاريخ الكشف"/>
                    </div>
                </div>


                <div class="form-group">
                    <span style="    font-size: 17px; color: red;text-align: center;margin-right: 16px;">  {if !empty($date)}{$date}{/if}</span>
                </div>
                <!-- =================================================   -->
                <!--
                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-4">
                                        <button style="    margin-left: 195px; margin-top: 15px;" type="button" id="btnKashf" class="btnedit btn btn-primary pull-left">تعديل </button>
                                    </div>
                                </div>-->


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




</div>


{literal}
<script type="text/javascript">
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {isRequired: false, invalidValue: "-1"});

    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {isRequired: false, invalidValue: "-1"});

    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "real");

</script>
{/literal}





