<style>
    .nodata{
        background-color: #72B4EC;
        color: white;
        border-radius: 13px;
        margin: 14px;
        font-size: 24px;
        text-align: center;
        padding: 5px;
    }
</style>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="governmentController.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[269]->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="governmentController.php" class="hidden-print"><input type="button" style="margin-left: 12px" id="submit"  class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
            <div class="panel-body">
                <div id="outputString" class="alert alert-block alert-success fade in hidden-print" 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}

            {/literal}

            {if $countResult > 0 }
            <table class="table table-black">
                <thead>
                    <tr>
                        <th>اسم  المحافظة</th>
                        <th class="hidden-print">تعديل</th>
                        <th class="hidden-print">حذف</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $governmentData as $government}
                    <tr>
                        <td>{$government->governmentname}</td>
                        <td class="hidden-print"> <a href="governmentController.php?do=edit&id={$government->governmetid}" type="button" class="btn btn-default btn-lg editicon"></a> </td>
                        <td class="hidden-print"> <a href="#" name="dd" type="button" class="btn btn-default btn-lg deleteicon conformdel1" data-position="governmentController.php?do=delete&id={$government->governmetid}" ></a> </td>
                    </tr>
                    {/foreach}

                </tbody>

            </table>

            {else}
            <div class="nodata">عفوا لا توجد نتائج</div>
            {/if}
            <div class="clearfix"></div>
            <hr />

            </form>
        </div>
        <div  class="hidden-print">
            <div class="col-lg-12">
                <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 class="clearfix"></div>
        </div>
        <!-- Modal -->
        <div class="modal fade hidden-print" 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>
                        <div class="modal-title color-black">تأكيد حذف  المحافظة</div>
                    </div>
                    <div class="modal-body"> هل تريد حذف هذه المحافظة؟ </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary savemodel1">نعم</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <!-- /.modal -->

    </div>
</div>
{literal}
<script type="text/javascript">
</script>
{/literal}