<script type="text/javascript" charset="utf-8"></script>
<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[53]->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">

                <!---------- start outputString alert ----------->
                <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>
                <!---------  end outputString alert ------------>
                <form class="form-inline hidden-print" action="productController.php?do=repeat" method="post">
                    <!--div class="form-group">
                    <!--label class="sr-only">اكتب العدد</label>
<input name="productnumber"  type="text" />
                    <!--span id="sprytextfield1">
                        <input name="productnumber"  type="text" />
                        <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">ادخل رقم صحيح.</span>
                    </span>
                </div>
                <button type="submit" class="btn btn-primary">بحث</button-->

                    <br/>
                    <div class="form-group">
                        <label class="sr-only" style="">  الباركود </label>
                        <select id="product_repeat" name="product_repeat" class="select2">
                            <option value="-1">اختر </option>
                            <!--option value="-1">كل المنتجات</option-->
                            {foreach $allproductdata as $product}
                            <option value="{$product->parcode}"> {$product->parcode}</option>
                            {/foreach}
                        </select>
                        <!--input name="productName"  type="text" />
                                                <span id="sprytextfield1">
                                                    <input name="productName"  type="text" />
                                                    <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">ادخل رقم صحيح.</span></span-->
                    </div>

                    <!--div class="form-group">
                        <label class="sr-only">  الباركود </label>
                        <input name="parcode_repeat"  id="parcode_repeat" type="text" />
                    <!--span id="sprytextfield1">
                        <input name="parcode"  type="text" />
                        <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">ادخل رقم صحيح.</span></span>
                </div-->



                </form>
            </div>
            <div class="panel panel-default panel-m">
                <!-- Default panel contents -->
                <div class="panel-heading">{$message}</div>
                <div class="panel-body">

                    <hr />

                    <div class="table-responsive" id="tableWrap">

                        <table class="display table-black" id="">
                            <tfoot>

                            </tfoot>
                            <thead>
                                <tr>


                                    <th>الباركود</th>
                                    <th>اسم المنتج</th>


                                    <th class="hidden-print">التعديل</th>
                                </tr>
                            </thead>
                            <tbody>

                                {foreach $productsData as $data}
                                {if {$data->conditions} eq 1}

                                <tr  style="background:#C99">
                                    {else}
                                <tr>
                                    {/if}
                                    <td> {$data->parcode} </td>
                                    <td> {$data->productName} </td>

                                    <td  class="hidden-print"><a href="productController.php?do=edit&id={$data->productId}" type="button" class="btn btn-default btn-lg editicon"></a></td>
                                </tr>
                                {/foreach}


                            </tbody>

                        </table>


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



                    <div  class="hidden-print">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <div class="col-lg-4">


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

                    <script type="text/javascript">
                        var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer");
                    </script>
