

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

       <ol class="breadcrumb">
            <li><a href="#">نظام  المهام</a></li>
            <li><a href="taskstypes.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[198]->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="taskstypes.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
           
            <table class="table table-bordered border-primary" id="taskstypes">
                <thead>
                    <tr>
                        <th >رقم</th>
                        <th >نوع المهمه</th>
                        <th >تعديل</th>
                        <th >حذف</th>
                    </tr>
                </thead>
                <tbody>
                     {foreach $taskstypes as $tasktype}
                    <tr>
                        <td>
                           {$tasktype->id}
                        </td>
                        <td>{$tasktype->typename}</td>
                        <td>
                              <a href="taskstypes.php?do=edit&id={$tasktype->id}" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td >
                            <a href="taskstypes.php?do=del&id={$tasktype->id}" type="button" class="btn btn-default btn-lg deleteicon "></a>
                        </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>

        </div>
    </div>
</div>
{literal}
<script type="text/javascript">
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {invalidValue: "-1", isRequired: false});
    $(document).ready(function () {
        $('#taskstypes').DataTable({
            "lengthMenu"
                    : [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
        });
    });
</script>
{/literal}