<div class="row">

    <div class="container">


        <ol class="breadcrumb">
            <li><a href="#">التصنيع</a></li>
            <li><a href="#">معادلات الانتاج</a></li>
            <li class="active">اضافة جديد</li>
        </ol>

        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title"> عرض معادلات الانتاج</h3>
                <a href="{$youtubes[282]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>

            </div>

            <div class="panel-body">



                <!-- Table -->


                <table class="table table-black dataTableClass">
                    <thead>
                        <tr>
                            <th > اسم المعادلة</th>
                            <th> تعديل</th>
                            <th> تفاصيل</th>
                            <th class="noprint" > ايقاف / تفعيل</th>
                            <th class="noprint">  حذف نهائى</th>
                        </tr>
                    </thead>
                    <tbody>

                        {foreach $rows as $r}
                        {if $r->conditions == 1}<tr class="danger">
                            {else if $r->conditions == 0}<tr>
                            {/if}
                            <td>{$r->name}</td>

                            <!--//edit-->
                            <td class="noprint"><a href="productionEquationController.php?do=edit&id={$r->productionRateId}" type="button" class="btn btn-default btn-lg editicon"></a></td>
                            <!--//details-->
                            <td class="noprint"><a href="productionEquationController.php?do=details&id={$r->productionRateId}" type="button" class="btn btn-default btn-lg notesicon"></a></td>


                            <!--// stop/active -->
                            <td class="noprint"><a href="productionEquationController.php?do=stop&id={$r->productionRateId}" type="button" {if $r->conditions == 1} class="btn btn-default btn-lg correcticon"
                                    {else if $r->conditions == 0} class="btn btn-default btn-lg removeicon" {/if}></a>
                            </td>




                            <!--  //del-->
                            <td class="noprint"> <a  type="button" class="btn btn-default btn-lg deleteicon conformdel1" onclick="getValue({$r -> productionRateId});"></a></td>


                        </tr>
                        {/foreach}
                    </tbody>

                </table>



            </div> <!-- end of panel-body-->

        </div>  <!-- end of panel panel-default-->

    </div> <!-- end of container-->

</div>  <!-- end of row-->

{literal}
<script type="text/javascript">
    function getValue(idval)
    {
        var confirmDel = window.confirm("هل تريد حذف العنصر؟");
        //alert(confirmDel);

        if (confirmDel == true)
        {
            // x="You pressed OK!";
            window.location.href = "productionEquationController.php?do=delete&id=" + idval;
        }
        else
        {
            // x="You pressed Cancel!";
        }

    }

</script>
{/literal}