{literal}
<style>
    .textcenter {
        text-align: center !important;
    }
    .modalcontentbg{
        background: #ECECEC;
    }
    .modalheaderbg{
        background: #6297EC;
        direction: rtl;
    }
    .modalheaderbg h4{
        color: #fff;
        font-size: 20px !important;
        font-weight: 600;
        padding: 0;
        margin-bottom: -12px;
        margin-top: -10px;
    }
    .modalclose{
        float: left;
    }
</style>
{/literal}
<meta charset="utf8"/>
<div class="modal-dialog">
    <div class="modal-content ">
        <div class="modal-header ">
            <button type="button" class="close modalclose" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title"> تعديل نوع الكشف </h4>
        </div>
        <div class="modal-body modtbl">

            <table class="table table-bordered table-hover table-striped">
                <thead>
                    <tr >
                        <th class="textcenter">الوظيفة</th>
                        <th class="textcenter">تعديل نوع الكشف</th>
                        <!--                        <th class="textcenter">تعديل قيمة الكشف</th>
                                                <th class="textcenter">حذف</th>-->
                    </tr>
                </thead>
                <tbody id="loaddetectionnew">
                    {assign var=i value=1}
                    {foreach $alldtforview as $row}
                    <tr class="textcenter" >
                        <td>
                            <!--<input type="text" id="itr"  value="{$i}"  />-->
                            <input class="wds100 textcenter" id="detectiontitle{$i}" name="editnameval" value="{$row->title}"/>

                        </td>
                        <td>

                            <input class="wds100 textcenter" id="detectionvalue{$i}" name="" value="{$row->detectionval}"/>
                        </td>
                        <td>
                            <a class="editdetectiontype" id="editdetectiontype" data-itr="{$i}"  data-dtname="{$row->title}"  data-id="{$row->id}" >حفظ  التعديل </a>
                        </td>
                        <td>
                            <a class="deleteelement" data-id="{$row->id}" data-link="visits" data-fun="deldetection"><i class="fa fa-close"></i></a>
                        </td>
                    </tr>
                    {capture assign=i}{$i+1}{/capture}
                    {/foreach}
                </tbody>
            </table>

        </div>
        <div class="modal-footer">
            <button type="button" class="btn default" data-dismiss="modal">إغلاق</button>
        </div>
    </div>
    <!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->