<script type="text/javascript" charset="utf-8">


    $(document).ready(function () {
        $('#example').dataTable({
            "bPaginate": false,
            "bStateSave": true,
            "sDom": 'TCR<"clear">lfrtip',
            "oTableTools": {
                "aButtons": [
                    "copy",
                    "print",
                    {
                        "sExtends": "collection",
                        "sButtonText": "حفظ",
                        "aButtons": ["csv", "xls"]
                    }
                ]
            }
        });
    });

</script>

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#"> المناقصات</a></li>
            <li><a href="firstletter.php?do=show">خطاب ضمان ابتدائي</a></li>
            <li class="active">عرض</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;">عرض</h3>
                <a href="{$youtubes[47]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <a href="firstletter.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="اضافة جديد"/></a>
            </div>
            <div class="panel-body">
                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <p id="outputStringValue">{$outputString}</p>
                    <div class="clearfix"></div>
                </div>
            </div>
            <hr/>

            <!-- Table -->
            {literal}
            <form method="post" action="firstletter.php?do=show" onsubmit="if (Spry.Widget.Form.validate(this)) {
                        return true;
                    } else {
                        return false;
                    }">
                {/literal}
                <table class="display table-black" id="example">
                    <thead>
                        <tr>
                           <th>رقم الخطاب</th>
                            <th>المناقصة</th>
                            <th>الجهة</th>
                            <th>اسم العضو</th>
                            <th>تعليق</th>
                            <th class="hidden-print">حالة الخطاب</th>
                              <th>اسم المستخدم</th>
                            <th>تاريخ الاضافة/التعديل</th>
                            <th class="hidden-print">تعديل</th>
                            <th class="hidden-print">حذف</th>

                        </tr>
                    </thead>
                    <tbody>

                        {foreach $showData as $data}
                        <tr>
                            <td>{$data.fl_id}</td> 
                            <td>{$data.tender_name}</td>
                            <td>{$data.the_issuing_entity}</td>
                            <td>{$data.member_name}</td>
                            <td>{$data.fl_comment}</td>
                             <td>
                                {if $data.fl_status== 0}
                                    مقبول
                                {else if $data.fl_status == 1}
                                    مرفوض
                                {/if}
                            </td>
                            <td>{$data.employeename}</td>
                            <td>{$data.sys_date}</td>
                            <td class="hidden-print"> <a href="firstletter.php?do=edit&id={$data.fl_id}" class="btn btn-default btn-lg editicon"></a> </td>
                            <td class="hidden-print"><a href="firstletter.php?do=deleteFinaly&id={$data.fl_id}" type="button" class="btn btn-default btn-lg deleteicon"></a></td>
                        </tr>
                        {/foreach}

                    </tbody>

                </table>
                <div class="clearfix"></div>

            </form>
        </div>

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