


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

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

            <!-- Table -->
            {literal}
            <form method="post" action="bankController.php?do=executeOperation" onsubmit="if (Spry.Widget.Form.validate(this)) {
                     return countChoosenProducts('bankController');
                 } else {
                     return false;
                 }">
                {/literal}
                <table class="table table-black">
                    <thead>
                        <tr>
                            <th><input type="checkbox" name="checkAll" id="checkAll"/></th>
                            <th>اسم البنك</th>
                            <th>التاريخ</th>
                            <th>تعديل</th>
                            <th>ايقاف</th>
                            <th>حذف</th>

                        </tr>
                    </thead>
                    <tbody>



                        {foreach $bankData as $bank}
                        {if {$bank->conditions} eq 1}
                        <tr class="danger">
                            {elseif {$bank->conditions} eq 0}
                        <tr>
                            {/if}




                            <td>
                                <input type="checkbox" name="choosedItem[]" id="checked{$i}" class="choosenItem" value="{$bank->bankid}" />
                            </td>

                            <td>{$bank->bankname}</td>
                            <td>{$bank->bankdate}</td>




                            <td>
                                <a href="bankController.php?do=edit&bankid={$bank->bankid}" type="button" class="btn btn-default btn-lg editicon"></a>
                            </td>


                            <td>

                                {if {$bank->conditions} eq 1}
                                <a href="bankController.php?do=returndelete&bankid={$bank->bankid}" type="button" class="btn btn-default btn-lg correcticon"></a>

                                {elseif {$bank->conditions} eq 0}

                                <a href="bankController.php?do=deletetemp&bankid={$bank->bankid}" type="button" class="btn btn-default btn-lg removeicon"></a>

                                {/if}


                            </td>



                            <td>

                                <a href="#" name="dd" type="button" class="btn btn-default btn-lg deleteicon conformdel1" data-position="bankController.php?do=delete&bankid={$bank->bankid}" ></a>


                            </td>




                        </tr>
                        {/foreach}


                    </tbody>
                </table>





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


                <hr />

                <div  class="noprint">
                    <div class="col-lg-12">
                        <div class="well well-sm">

                            <div class="form-group">
                                <div class="col-lg-4">
                                    <label for="operation"></label>
                                    <span id="spryselect1">
                                        <select name="operation" id="operation"  data-placeholder="اختر العملية" class="select2 wdt100">
                                            <option value="-1">اختر عملية</option>
                                            <option value="1">ايقاف</option>
                                            <option value="2">تشغيل </option>
                                            <option value="3">حذف</option>
                                        </select>
                                        <span class="selectInvalidMsg">*</span></span></div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-4">
                                    <input name=""  class="noprint btn btn-primary" type="submit" value="تنفيذ"/>
                                </div>
                            </div>

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

                            <div id="noElementsError" class="alert alert-danger fade in" style="display:none;">
                                <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">×</button>
                                <p>يجب اختيار العناصر أولاً</p>
                                <div class="clearfix"></div>
                            </div>


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





            </form>

        </div>



        <!-- Modal -->
        <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">تأكيد حذف البنك</h4>
                    </div>
                    <div class="modal-body">
                        هل تريد حذف هذه البنك؟
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                        <button type="button" class="btn btn-primary savemodel1">نعم</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->







    </div>

</div>



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