<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">المقايسات</a></li>
            <li><a href="Assays.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="Assays.php?do=report"
                      method="post" enctype="multipart/form-data" id="spform">
                    {/literal}
                    <!-- =================================================   -->
                   <div class="form-group">
                        <label class="col-lg-2 control-label">العملية</label>
                        <div class="col-lg-9">
                            <select name="request" disabled id="request" class="select2" required>
                                {foreach $relatedInfo as $info}
                                    <option value="{$info.auth_id}" {if $showData->autho_id == $info.auth_id}selected{/if}>
                                    العضو: {$info.member_name} |
                                    العملية: {$info.tender_name} |
                                    الجهة: {$info.the_issuing_entity} |
                                    تاريخ الجلسة : {$info.session_date} 
                                    
                                    </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="comment" class="col-lg-2 control-label">تعليق</label>
                        <div class="col-lg-9">
                            <textarea name="comment" readonly id="comment" class="form-control" rows="3">{$showData->comment}</textarea>
                        </div>
                    </div>
                    
                    <!--==============================-->
                      <div class="form-group">
                        <label class="col-lg-2 control-label">عرض السعر</label>
                        <div class="col-lg-4">
                            {if $showData->price_image != "" && $showData->price_image !="." &&
                            $showData->price_image !="no image"}
                            <div style="margin-bottom: 10px;">
                            {assign var="imgs" value=","|explode:trim($showData->price_image)}
                            {foreach $imgs as $img}
                                <img src="../upload/Assays/{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->price_image}" />
                        </div>
                    </div>
                <!--==============================-->
                 <div class="form-group">
                    <label class="col-lg-2 control-label">المظروف الفني</label>
                    <div class="col-lg-4">
                        {if $showData->tech_image != "" && $showData->tech_image != "no image"}
                            <div style="margin-bottom: 10px;">
                                {assign var="etihads" value=","|explode:$showData->tech_image}
                                {foreach $etihads as $e}
                                    {if $e|trim != ""}
                                        <img src="../upload/Assays/{$e|trim}" width="80" height="60" style="border:1px solid #ccc; margin-left:5px;" />
                                    {/if}
                                {/foreach}
                            </div>
                        {/if}
                        
                        <input type="hidden" name="oldetihadimg" value="{$showData->tech_image}" />
                    </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}