

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

        <ol class="breadcrumb">
            <li><a href="#">المنتجات</a></li>
            <li><a href="productController.php?do=show">عرض المنتجات</a></li>
            <li class="active">طباعه السريال</li>
        </ol>


        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title"> طباعه السريال</h3>
            </div>
            <div class="panel-body">

                <div id="productdiv" style="display:none">
                    {foreach $allproduct as $myallproduct}
                    <option value="{$myallproduct->productId}">{$myallproduct->productName}</option>
                    {/foreach}
                </div>
                {literal}
                <form class="nameToBeChecked form-horizontal" role="form" action="printserail.php" method="post" >

                    {/literal}



                    <input name="itr" id="itr" type="hidden" value="1">


                    <div class="table-responsive">
                        <table class="table table-black" id="producttabel">
                            <tr>
                                <td colspan="1">   <button type="button"  class="btn" onClick="addproduct();">اضافه منتج</button></td>
                                <td colspan="3"> طباعه السعر <input name="pricOption" type="checkbox" value="1" />  </td>
                            </tr>
                            <tr>
                                <th>المنتج</th>

                                <th>الباركود</th>

                                <th>عدد مرات الطباعه</th>
                                <th>حذف</th>

                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">اختر المنتج</label>
                                        <div class="col-lg-4">
                                            <select class="form-control" name="productId1" onChange="getbarcode(this.value, 1)">
                                                <option value="-1"></option>
                                                {foreach $allproduct as $myallproduct}
                                                <option value="{$myallproduct->productId}">{$myallproduct->productName}</option>
                                                {/foreach}

                                            </select>
                                        </div>
                                    </div>

                                    <div id="divname1" style="display:none">
                                        <input name="productname1"id="productname1" type="text">
                                        <input name="price1"  id="price1" type="text">
                                    </div>
                                </td>

                                <td><input name="productbarcode1"  id="productbarcode1" type="text">
                                    <div id="updatebarcod1">
                                    </div>
                                </td>
                                <td><input name="productnum1"  readonly value="1"  type="text">
                                    <div id="seraildiv1" style="display:none"></div></td>


                                <td><a onClick="javascript:removebarcodProduct(1)" type="button" class="btn btn-default btn-lg removeicon"></a></td>

                            </tr>
                        </table>


                    </div>

                    <!-- =================================================   -->






                    <div class="modal fade" id="myModa_barcode" 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 class="input-group">
                                        <input type="text" class="form-control" id="newbarcod">

                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">اغلاق</button>
                                    <button type="button" class="btn btn-primary savemodel_barcode">حفظ البيانات</button>
                                </div>
                            </div><!-- /.modal-content -->
                        </div><!-- /.modal-dialog -->
                    </div>


                    <!-- =================================================   -->

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="submit"  class="btn btn-primary pull-left">طباعه </button>
                        </div>
                    </div>


                </form>
            </div>
        </div>




    </div>
</div>



{literal}
<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
</script>
{/literal}
