<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">شئون قانونية</a></li>
            <li><a href="lawyersreport.php?do=report">تقرير محاميين</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="nameToBeChecked form-horizontal" role="form" action="lawyersreport.php?do=report"
                      method="post" enctype="multipart/form-data" id="spform">
                    {/literal}
                    <!-- =================================================   -->
                    <div class="form-group">
                        <label for="announcementName" class="col-lg-2 control-label">الاسم</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input type="text" readonly name="name" id="name" class="form-control" value="{$showData->name}" />
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="announcementName" class="col-lg-2 control-label">رقم التليفون</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input type="number" readonly name="phone" id="phone" class="form-control" value="{$showData->phone}" />
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="announcementName" class="col-lg-2 control-label">عنوان مراسلة</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input type="text" readonly name="address" id="address" class="form-control" value="{$showData->address}" />
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>
                    <!--==============================-->
                     <div class="form-group">
                        <label for="announcementName" class="col-lg-2 control-label"> رقم القيد (رقم الكارنيه)</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input type="number" readonly name="etihadnum" id="etihadnum" class="form-control" value="{$showData->card_num}" />
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>
                    <!--==============================-->
                     <div class="form-group">
                        <label for="announcementName" class="col-lg-2 control-label">الرقم القومي</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input type="number" readonly name="national" id="national" class="form-control" value="{$showData->id_num}" />
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label">درجة القيد</label>
                        <div class="col-lg-6" style="padding-top: 7px;">
                            <label style="font-weight: normal; margin-right: 15px;">
                                <input type="radio" disabled name="status" value="primary" {if $showData->request_status == primary}checked{/if}> ابتدائي
                            </label>
                            
                            <label style="font-weight: normal; margin-right: 15px;">
                                <input type="radio" disabled name="status" value="appeal" {if $showData->request_status == appeal}checked{/if}> استئناف
                            </label>
                            
                            <label style="font-weight: normal; margin-right: 15px;">
                                <input type="radio" disabled name="status" value="cassation" {if $showData->request_status == cassation}checked{/if}> نقض
                            </label>
                        </div>
                    </div>
                    <!--==============================-->
                      <div class="form-group">
                        <label class="col-lg-2 control-label">صورة الكارنيه</label>
                        <div class="col-lg-4">
                            {if $showData->card_image != "" && $showData->card_image !="." &&
                            $showData->card_image !="no image"}
                            <div style="margin-bottom: 10px;">
                            {assign var="imgs" value=","|explode:trim($showData->card_image)}
                            {foreach $imgs as $img}
                                <img src="../upload/lawyers/{trim($img)}" width="80" height="60" style="border:1px solid #ccc; margin-left:5px;" />
                                
                            {/foreach}
                            </div>
                            {/if}
                            
                            <input type="hidden" name="imageurl" id="imageurl" value="{$showData->card_image}" />
                        </div>
                    </div>
                <!--==============================-->
                   <div class="form-group">
                    <label class="col-lg-2 control-label">بطاقة الرقم القومي</label>
                    <div class="col-lg-4">
                        {if $showData->id_img != "" && $showData->id_img != "no image"}
                            <div style="margin-bottom: 10px;">
                                {assign var="ids" value=","|explode:$showData->id_img}
                                {foreach $ids as $id_file}
                                    {if $id_file|trim != ""}
                                        <img src="../upload/lawyers/{$id_file|trim}" width="80" height="60" style="border:1px solid #ccc; margin-left:5px;" />
                                    {/if}
                                {/foreach}
                            </div>
                        {/if}
                        
                        <input type="hidden" name="oldidimg" value="{$showData->id_img}" />
                    </div>
                    </div>
                    <!--==============================-->

                        <div class="form-group">
                            <label class="col-lg-2 control-label">صورة شخصية</label>
                            <div class="col-lg-4">
                                {if $showData->personal_photo != "" && $showData->personal_photo != "no image"}
                                    <img src="../upload/lawyers/{$showData->personal_photo}" width="80" height="80" style="display:block; margin-bottom:10px; border:1px solid #ccc;" />
                                {/if}
                                
                                <input type="hidden" name="old_personal_photo" value="{$showData->personal_photo}" />
                            </div>
                        </div>
                        <!--==============================-->

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

                    <!-- =================================================   -->
                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" class="btn btn-primary pull-left" id="spbutton">رجوع</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{literal}
<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    $('#spbutton').live('click', function (e) {
        if (!$('#spbutton').hasClass("processing")) {
            $('#spbutton').addClass("processing");
            $('#productCatName').trigger('blur');
            setTimeout(function () {
                var myForm = document.getElementById("spform");
                var SS = Spry.Widget.Form.validate(myForm);
                if (SS == true) {
                    myForm.submit();
                } else {
                    $('#spbutton').removeClass("processing");
                }
            }, 500);
        }
    });
</script>
{/literal}