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

        <ol class="breadcrumb">
            <li><a href="#">المصروفات والايرادات</a></li>
            <li><a href="savecloseController.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[83]->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="savecloseController.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>




                <form class="form-inline hidden-print" action="savecloseController.php?do=show" method="post">





                    <div class="form-group">
                        <label class="sr-only">من التاريخ</label>

                        <input type="text" class="form-control awdatepicker" autocomplete="off"
                            data-date-format="yyyy-mm-dd" name="from">

                    </div>


                    <div class="form-group">
                        <label class="sr-only">إلى التاريخ</label>

                        <input type="text" class="form-control awdatepicker" autocomplete="off"
                            data-date-format="yyyy-mm-dd" name="to">

                    </div>




                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>



            </div>
            <hr />

            <!-- Table -->
            {literal}
            <form method="post" action="savecloseController.php?do=executeOperation" onsubmit="if (Spry.Widget.Form.validate(this)) {
                        return countChoosenProducts('savecloseController');
                    } else {
                        return false;
                    }">

                {/literal}

                <div class="panel panel-default panel-m">
                    <!-- Default panel contents -->
                    <div class="panel-heading">{$message}</div>
                    <div class="panel-body">
                        <hr />
                        <table class="table table-black">
                            <thead>
                                <tr>
                                    <th class="hidden-print"><input type="checkbox" name="checkAll" id="checkAll" />
                                    </th>

                                    <th>اسم الخزنة</th>
                                    <!-- <th>اسم الخزنة المحول إليها</th> -->
                                    <th>القيمة</th>
                                    <th>التاريخ</th>
                                    <th>التعليق</th>
                                    <th class="hidden-print">تفاصيل</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach $savecloseData as $saveclose}
                                {if {$saveclose->conditions} lt 2}
                                {if {$saveclose->conditions} eq 1}
                                <tr class="danger">
                                    {elseif {$saveclose->conditions} eq 0}
                                <tr>
                                    {/if}
                                    <td class="hidden-print">
                                        <input type="checkbox" name="choosedItem[]" id="checked{$i}" class="choosenItem"
                                            value="{$saveclose->savecloseid}" />
                                    </td>
                                    <td>{$saveclose->savefromname}</td>
                                    <td>{$saveclose->saveclosevalue}</td>
                                    <td>{$saveclose->saveclosedate}</td>
                                    <td>{$saveclose->comment}</td>
                                    <td>
                                        <a href="savecloseController.php?do=editprint&id={$saveclose->savecloseid}" type="button" class="btn btn-default btn-lg editicon"></a>
                                    </td>
                                    </tr>
                                {/if}
                                {/foreach}


                            </tbody>
                        </table>





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


                        <hr />

                        <div class="hidden-print">
                            <div class="col-lg-12">
                                <div class="clearfix">
                                    <div class="form-group">
                                        <div class="col-lg-4">
                                            <button type="button" onclick="print_Custom('mycustomheader');"
                                                class="btn btn-success pull-right">طباعة</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </div>


            </form>

        </div>











    </div>

</div>



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