<?php /* Smarty version Smarty-3.1.11, created on 2025-02-20 00:11:29
         compiled from "../views/default/productview/add.html" */ ?>
<?php /*%%SmartyHeaderCode:16562931116799257f5b0477-52696658%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3977d5dc41f9d6ac12d829a15debeaa65acc04be' => 
    array (
      0 => '../views/default/productview/add.html',
      1 => 1740000156,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '16562931116799257f5b0477-52696658',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6799257f74b581_57757934',
  'variables' => 
  array (
    'lang_code' => 0,
    'treeHTML' => 0,
    'catDataReport' => 0,
    'data' => 0,
    'Programsettingdata' => 0,
    'today' => 0,
    'generatedParcode' => 0,
    'vehicletypes' => 0,
    'vehicle' => 0,
    'companyproduces' => 0,
    'company' => 0,
    'unitsData' => 0,
    'unit' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6799257f74b581_57757934')) {function content_6799257f74b581_57757934($_smarty_tpl) {?><style>
    .unsetBoldProp {
        font-weight: unset;
    }
</style>
<div class="row">
    <div class="container <?php if ($_smarty_tpl->tpl_vars['lang_code']->value=='en'){?> gt4-ltr<?php }?>">
        <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">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">إضافة منتج</h3>
            </div>
            <div class="panel-body">
                <div class="col-lg-5 ">
                    <div class="row">
                        <div class="container">
                            <div class="panel panel-default panel-m" style="padding-bottom: 30px;border:0!important">
                                <!--                                <div class="panel-heading">
                                                                    <div class="caption"><i class="icon-comments"></i>شجرة المنتجات</div>
                                                                    <div class="actions"> <a href="javascript:;" id="tree_product_collapse" class="btn btn-success"> إغلاق الكل</a> <a href="javascript:;" id="tree_product_expand" class="btn btn-warning"> فتح الكل</a> </div>
                                                                </div>
                                                                <div class="panel-body" style="overflow-x:auto;  overflow-y:auto; height:400px; width:104%;">
                                                                    <div class=" portlet-body fuelux">
                                                                        <ul class="tree" id="tree_product">
                                                                            <li> <a href="#" data-role="branch" class="tree-toggle" data-toggle="branch" data-value="التصنيفات"> التصنيفات </a>
                                                                                <ul class="branch in">
                                                                                    <?php echo $_smarty_tpl->tpl_vars['treeHTML']->value;?>

                                                                                </ul>
                                                                            </li>
                                                                        </ul>
                                                                    </div>
                                                                    -- portlet-body---
                                                                </div>
                                                                -- panel-body----->

                                <div>
                                    <label class="sr-only">تصنيف المنتج</label>
                                    <select class="select2 wdt300 productCatt" data-level="0" name="productCatId0"
                                        id="productCatId0">
                                        <option value="-1">اختر تصنيف</option>
                                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['catDataReport']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                        <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatId;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
</option>
                                        <?php } ?>
                                    </select>
                                    <input type="hidden" id="level" name="level" value="0">
                                </div>
                                <div id="manyParents"></div>
                                <input type="hidden" id="dontLoadProducts" name="dontLoadProducts" value="1" />
                            </div>



                        </div>
                        <!----panel----->


                    </div>
                    <!----container-->
                </div><!----row-->

                <div class="col-lg-12">
                    <input type="hidden" id="eunitInTax" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->eunitInTax;?>
">
                    <input type="hidden" id="ebillsetting" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill;?>
">
                    <input type="hidden" id="importproduct" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->importproduct;?>
">
                    <input type="hidden" id="showpriceall" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showpriceall;?>
">
                    <input type="hidden" id="showpricehalf" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showpricehalf;?>
">
                    <input type="hidden" id="showpriceunit" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showpriceunit;?>
">
                    <input type="hidden" id="showprice4" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice4;?>
">
                    <input type="hidden" id="showprice5" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice5;?>
">
                    <input type="hidden" id="showprice6" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice6;?>
">
                    <input type="hidden" id="showprice7" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice7;?>
">
                    <input type="hidden" id="showprice8" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice8;?>
">
                    <input name="today" type="hidden" id="today" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
" />
                    <input name="selectedId" id="selectedId" type="hidden" value="" />
                    <input name="selectedClass" id="selectedClass" type="hidden" value="" />
                    <input name="addParent" id="addParent" type="button" onclick="addParent();" style="display:none;"
                        class="btn btn-primary conformdel" value="إضافة تصنيف منتج" />&nbsp;&nbsp;
                    <input name="addProduct" id="addProduct" type="button" onclick="addProduct();" style="display:none;"
                        class="btn btn-primary" value="إضافة منتج" />

                    <!------------    Start  productCatformDiv  --------------------------->
                    <div id="productCatformDiv" style="display:none">

                    </div>
                    <!------------    End  productCatformDiv  --------------------------->


                    <div id="productEdit"></div>

                    <!------------    Start  productsformDiv  --------------------------->
                    <div id="productsformDiv" style="display:none">
                        
                        <form action="productController.php?do=add" method="post" class="nameToBeChecked"
                            id="myProductForm" name="myProductForm" enctype="multipart/form-data" autocomplete="off">
                            <!--validate the form before checking name-->
                            

                            <div style="">
                                <label>تصنيف المنتج الرئيسي</label>
                                <input name="productCatId" id="productCatId" type="hidden" />
                            </div>
                            <!------------    Start  productsDiv  --------------------------->
                            <div id="productsDiv">
                                <input name="addProducts" id="addProducts" type="button" class="btn btn-success"
                                    value="إضافة منتج" />
                                <input name="productItr" id="productItr" type="hidden" value="1" />
                                <input type="hidden" name="productindextype" id="productIndexType" value="0" />

                                <div class="clear"></div>
                                <div
                                    class="alert alert-warning alert-dismissible show <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->measuringunit;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?> hidden <?php }?>">
                                    <strong>تنبيه ! &nbsp;</strong> فى حالة عدم اضافة اسعار امام الوحدات سيتم اضافة
                                    اسعار المنتج الاساسية للوحدة
                                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                                </div>
                                <div class="clear"></div>

                                <div class="table-responsive">
                                    <a id="remove1" onclick="removeProduct(1);"
                                        class="removeProduct pull-left btn btn-danger">حذف المنتج</a>

                                    <input id="ebill" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill;?>
" />
                                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill==1){?>
                                    <a id="etaproduct1" onclick="etaproduct(1);"
                                        class="etaproduct pull-left btn btn-primary">الفاتوره الالكترونيه </a>
                                    <?php }?>
                                    <!-----remove-product---->

                                    <!-------- اضافه وحدة قياس------->
                                    <input
                                        class="addUnits btn btn-warning pull-left check_tr_mesurunit <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->measuringunit;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1){?> hidden <?php }?>"
                                        onClick="addUnits(1);" type="button" value="إضافة وحدة قياس" />
                                    <input name="unitsItr1" id="unitsItr1" type="hidden" value="1" />
                                    <input name="hide_precentage" id="hide_precentage" type="hidden"
                                        value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
" />
                                    <input name="hide_realprice" id="hide_realprice" type="hidden"
                                        value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->realprice;?>
" />
                                    <input name="hide_isCaf" id="hide_isCaf" type="hidden"
                                        value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->isCaf;?>
" />
                                    <input name="hide_isRestaurent" id="hide_isRestaurent" type="hidden"
                                        value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->isRestaurent;?>
" />

                                    <table id="productsTable" class="table table-black"
                                        style="background-color:#fff;color:#000!important">

                                        <tr>
                                            <td style="width:27px" class="p0">الإسم</td>
                                            <td style="width:27px" class="p0">سعر الشراء</td>
                                            <td style="width:27px; <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->realprice;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==1){?> display: none; <?php }?> "
                                                class="p0">سعر الشراء الفعلى </td>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showpriceall==1){?>
                                            <td style="width:15px" class="p0"><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==1){?> سعر الجملة<?php }else{ ?> نسبة ربح الجملة<?php }?> </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showpricehalf==1){?>
                                            <td style="width:15px" class="p0"><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==1){?> سعر نصف الجملة<?php }else{ ?> نسبة ربح نصف الجملة<?php }?> </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showpriceunit==1){?>
                                            <td style="width:15px" class="p0"><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6==1){?> سعر التجزئه<?php }else{ ?> نسبة ربح التجزئه<?php }?></td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice4==1){?>
                                            <td style="width:27px; " class="p0">سعر4 </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice5==1){?>
                                            <td style="width:27px;" class="p0">سعر5 </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice6==1){?>
                                            <td style="width:27px;" class="p0">سعر6 </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice7==1){?>
                                            <td style="width:27px;" class="p0">سعر7 </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice8==1){?>
                                            <td style="width:27px;" class="p0">سعر8 </td>
                                            <?php }?>
                                            <td style="width:15px" class="p0">الكمية</td>
                                            <td style="width:15px" class="p0">صورة</td>
                                            <td style="width:27px"
                                                class="p0 check_tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->parcode;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7==1){?> hidden <?php }?>">
                                                الباركود</td>
                                            <td style="width:27px"
                                                class="p0 check_tr_period <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->expiredate;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8==1){?> hidden <?php }?>">
                                                تاريخ الصلاحية</td>
                                            <td style="width:27px"
                                                class="p0 check_tr_date <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->date;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9==1){?> hidden <?php }?>">
                                                التاريخ</td>
                                            <td style="width:27px"
                                                class="p0 check_tr_limitamount <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->limitamount;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10==1){?> hidden <?php }?>">
                                                الحد الأدنى للمنتج</td>
                                            <td style="width:47px"
                                                class="p0 <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11!=1){?> hidden <?php }?>">نوع
                                                الباركود الضريبى</td>
                                            <td style="width:27px"
                                                class="p0 <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12!=1){?> hidden <?php }?>">الباركود
                                                الضريبى</td>
                                            <td style="width:27px"
                                                class="p0 <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->isCaf!=1&&$_smarty_tpl->tpl_vars['Programsettingdata']->value->isRestaurent!=1){?> hidden <?php }?>">
                                                فى المنيو</td>
                                            <td style="width:27px"
                                                class="p0 check_tr_production <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->production;?>
<?php $_tmp13=ob_get_clean();?><?php if ($_tmp13==1){?> hidden <?php }?>">
                                                التصنيع</td>
                                            <td style="width:30px!important"
                                                class="p0 check_tr_service <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->service;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp14==1){?> hidden <?php }?>">
                                                خدمة</td>
                                            <td style="width:100px!important"
                                                class="p0 check_tr_description <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->description;?>
<?php $_tmp15=ob_get_clean();?><?php if ($_tmp15==1){?> hidden <?php }?>">
                                                الوصف</td>

                                        </tr>
                                        <tr>
                                            <td class="p0" style="width:150px"><input name="productName1"
                                                    required="required" type="text" id="productName1" width="100%"
                                                    onChange="checkProductName(this.value, 1);"
                                                    class="form-control add_required_attr" data-itra="1" data-id="1" />
                                            </td>

                                            <td class="p0"><input name="productBuyPrice1" data-rowadded="0" type="text"
                                                    id="productBuyPrice1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic enteraction new_product numberinput positivefloat buy_price"
                                                    data-id="1" width="10" /></td>

                                            <td class="p0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->realprice;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp16==1){?> style="display:
                                                none; "<?php }?>>
                                                <input style="width: 50%;float: left;" name="productbuypricereal1"
                                                    type="text" id="buypricereal1" data-type="pricereal"
                                                    class="form-control prices  aw_m aw_mt aw_pp numberclic enteraction  numberinput positivefloat buy_pricereal1"
                                                    data-id="1" width="10" /></span>
                                                <input style="  width: 50%;" name="buypricereal_precentage1" type="text"
                                                    id="productBuyPrice1" data-type="pricereal" tabindex="-1" readonly
                                                    class="form-control precentages success  aw_m aw_mt aw_pp numberclic enteraction  numberinput positivefloat buypricereal_precentage1"
                                                    data-id="1" width="10" />
                                            </td>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showpriceall==1){?>
                                            <td class="p0">
                                                <input
                                                    style=" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17==1){?> width: 100%; <?php }else{ ?> width: 50%; <?php }?> float: left;"
                                                    name="productSellAllPrice1" type="text" id="productSellAllPrice1"
                                                    data-type="buytotal"
                                                    class="form-control prices aw_m aw_mt aw_pp numberclic positivefloat buy_total1 enteraction numberinput"
                                                    data-id="1" width="10" />
                                                <input
                                                    style=" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18==1){?> display: none; <?php }?>  width: 50%;"
                                                    name="buytotal_precentage1" type="text" id="productBuyPrice1"
                                                    data-type="buytotal" tabindex="-1" readonly
                                                    class="form-control  aw_m aw_mt aw_pp numberclic enteraction precentages success numberinput positivefloat buytotal_precentage1"
                                                    data-id="1" width="10" />
                                            </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showpricehalf==1){?>
                                            <td class="p0">
                                                <input
                                                    style="<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19==1){?> width: 100%; <?php }else{ ?> width: 50%; <?php }?> float: left;"
                                                    name="productSellHalfPrice1" type="text" data-type="buyhalf"
                                                    id="productSellHalfPrice1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic prices enteraction numberinput positivefloat buy_hafe1"
                                                    data-id="1" width="10" />
                                                <input
                                                    style="<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp20=ob_get_clean();?><?php if ($_tmp20==1){?> display: none; <?php }?>  width: 50%;"
                                                    name="buyhalf_precentage1" type="text" id="productBuyPrice1"
                                                    data-type="buyhalf" tabindex="-1" readonly
                                                    class="form-control  aw_m aw_mt aw_pp numberclic enteraction  precentages success numberinput positivefloat buyhafe_precentage1"
                                                    data-id="1" width="10" />
                                            </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showpriceunit==1){?>
                                            <td class="p0">
                                                <input
                                                    style="<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21==1){?> width: 100%; <?php }else{ ?> width: 50%; <?php }?>float: left;"
                                                    name="productSellUnitPrice1" type="text" data-type="buypart"
                                                    id="productSellUnitPrice1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic prices enteraction numberinput positivefloat buy_part1"
                                                    data-id="1" width="20" />
                                                <input
                                                    style=" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->precentages;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22==1){?> display: none; <?php }?> width: 50%;"
                                                    name="buypart_precentage1" type="text" id="productBuyPrice1"
                                                    data-type="buypart" tabindex="-1" readonly
                                                    class="form-control  aw_m aw_mt aw_pp numberclic enteraction precentages success numberinput positivefloat buypart_precentage1"
                                                    data-id="1" width="10" />
                                            </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice4==1){?>
                                            <td class="p0">
                                                <input style=" float: left;" name="price4_1" type="text"
                                                    data-type="price4" id="price4_1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic prices enteraction numberinput positivefloat price4_1"
                                                    data-id="1" width="20" />
                                            </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice5==1){?>
                                            <td class="p0">
                                                <input style=" float: left;" name="price5_1" type="text"
                                                    data-type="price5" id="price5_1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic prices enteraction numberinput positivefloat price5_1"
                                                    data-id="1" width="20" />
                                            </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice6==1){?>
                                            <td class="p0">
                                                <input style=" float: left;" name="price6_1" type="text"
                                                    data-type="price6" id="price6_1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic prices enteraction numberinput positivefloat price6_1"
                                                    data-id="1" width="20" />
                                            </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice7==1){?>
                                            <td class="p0">
                                                <input style=" float: left;" name="price7_1" type="text"
                                                    data-type="price7" id="price7_1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic prices enteraction numberinput positivefloat price7_1"
                                                    data-id="1" width="20" />
                                            </td>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->showprice8==1){?>
                                            <td class="p0">
                                                <input style=" float: left;" name="price8_1" type="text"
                                                    data-type="price8" id="price8_1"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic prices enteraction numberinput positivefloat price8_1"
                                                    data-id="1" width="20" />
                                            </td>
                                            <?php }?>

                                            <td class="p0"><input name="productquantity1" type="text"
                                                    id="productquantity1" value="0"
                                                    class="form-control aw_m aw_mt aw_pp numberclic enteraction numberinput"
                                                    size="20" data-id="1" /></td>
                                            <td class="p0"><input type="file" name="logo1" id="logo1"
                                                    class="form-control" placeholder="الشعار" accept="image/*"
                                                    data-id="1" /></td>
                                            <td
                                                class="p0  check_tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->parcode;?>
<?php $_tmp23=ob_get_clean();?><?php if ($_tmp23==1){?> hidden <?php }?>">
                                                <input name="parcode1" onblur="checkbarcode(this.value, 1);" type="text"
                                                    id="parcode1" size="9" class="form-control" value="" size="50"
                                                    data-id="1">
                                            </td><!--value="<?php echo $_smarty_tpl->tpl_vars['generatedParcode']->value;?>
"-->
                                            <td
                                                class="p0 check_tr_period <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->expiredate;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp24==1){?> hidden <?php }?>">
                                                <input name="expireDate1" type="text" id="expireDate1" size="9"
                                                    class="form-control" value="0" style="width: 81%;"><span
                                                    style="float: left;margin-top: -27px;color: white;font-size: 14px;font-weight: bold;padding-left: 2px;"
                                                    data-id="1">يوم</span>
                                            </td>

                                            <td
                                                class="p0 check_tr_date <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->date;?>
<?php $_tmp25=ob_get_clean();?><?php if ($_tmp25==1){?> hidden <?php }?>">
                                                <input name="productDate1" type="text" id="productDate1" size="9"
                                                    class="form-control awdatepicker" autocomplete="off"
                                                    data-date-format="yyyy-mm-dd" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
" width="27"
                                                    data-id="1" />
                                            </td>
                                            <td
                                                class="p0 check_tr_limitamount <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->limitamount;?>
<?php $_tmp26=ob_get_clean();?><?php if ($_tmp26==1){?> hidden <?php }?>">
                                                <input name="limitamount1" type="text" id="limitamount1" value="0"
                                                    class="form-control  aw_m aw_mt aw_pp numberclic enteraction numberinput"
                                                    data-id="1" />
                                            </td>
                                            <td class="p0  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp27!=1){?> hidden <?php }?>">
                                                <div class="form-group" style="font-size:13px">
                                                    <label class='color-black unsetBoldProp'>
                                                        <input value="GS1" class="radioR" name="TypeOfBarcodeInTax1"
                                                            checked="checked" type="radio" data-id="1" />
                                                        GS1 </label>

                                                    <label class='color-black unsetBoldProp'>
                                                        <input value="EGS" class="noradioR" name="TypeOfBarcodeInTax1"
                                                            type="radio" data-id="1" />
                                                        EGS </label>
                                                </div>
                                            </td>
                                            <td class="p0  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28!=1){?> hidden <?php }?>"><input
                                                    name="barcodeInTax1" type="text" id="barcodeInTax1" value=""
                                                    class="form-control" data-id="1" /></td>
                                            <td class="p0 <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->isCaf!=1&&$_smarty_tpl->tpl_vars['Programsettingdata']->value->isRestaurent!=1){?> hidden <?php }?>"
                                                style="width:60px">
                                                <div class="form-group" style="font-size:13px">
                                                    <label class='color-black'>
                                                        <input value="0" class="radioR" name="inMenu1" checked="checked"
                                                            type="radio" data-id="1" />
                                                        نعم </label>

                                                    <label class='color-black'>
                                                        <input value="1" class="noradioR" name="inMenu1" type="radio"
                                                            data-id="1" />
                                                        لا </label>
                                                </div>
                                            </td>
                                            <td class="p0 check_tr_production <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->production;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29==1){?> hidden <?php }?>"
                                                style="width:60px">
                                                <!--                                                <div class="form-group">
                                                                                                    <div class="col-md-9">
                                                <input type="checkbox" name="checkbox1">
                                                                                                      </div>
                                                                                                </div>-->
                                                <div class="form-group" style="font-size:13px">
                                                    <!--                                                    <input type="checkbox" checked data-toggle="toggle">-->

                                                    <label class='color-black'>
                                                        <input value="1" class="radioR" name="type1" type="radio"
                                                            data-id="1" />
                                                        نعم </label>

                                                    <label class='color-black'>
                                                        <input value="0" class="noradioR" name="type1" checked="checked"
                                                            type="radio" data-id="1" />
                                                        لا </label>

                                                </div>
                                            </td>

                                            <td class="p0 check_tr_service <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->service;?>
<?php $_tmp30=ob_get_clean();?><?php if ($_tmp30==1){?> hidden <?php }?>"
                                                style="width:60px">
                                                <div class="form-group" style="font-size:13px">

                                                    <label class='color-black'>
                                                        <input value="1" class="radioR isservice" name="isservice1"
                                                            type="radio" data-id="1" />
                                                        نعم </label>

                                                    <label class='color-black'>
                                                        <input value="0" class="noradioR isservice" name="isservice1"
                                                            checked="checked" type="radio" data-id="1" />
                                                        لا </label>

                                                </div>
                                            </td>
                                            <td class="p0 check_tr_description <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->description;?>
<?php $_tmp31=ob_get_clean();?><?php if ($_tmp31==1){?> hidden <?php }?>"
                                                style="width:130px"><textarea style="width:100%"
                                                    name="productDescription1" id="productDescription1"
                                                    class="form-control" data-id="1"></textarea></td>

                                        </tr>
                                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->importproduct==1){?>
                                    </table>
                                    <table>
                                        <tr>

                                            <td colspan="1">E الإسم</td>
                                            <td colspan="1">كود</td>
                                            <td colspan="1">رقم القطعة</td>
                                            <td colspan="1">نوع السياره</td>
                                            <td colspan="2">الشركه المنتجه للصنف </td>
                                            <td colspan="1">وزن</td>
                                            <td colspan="1">منشأ</td>
                                            <td colspan="1">رمز النظام المنسق</td>
                                            <td colspan="1">صلاحيه</td>
                                            <td colspan="1" class="power1">تاريخ الانتاج</td>
                                            <td colspan="1" class="power1">مدة الصلاحيه</td>


                                        </tr>
                                        <tr>

                                            <td colspan="1">
                                                <input name="productNameE1" type="text" id="productNameE1" width="100%"
                                                    class="form-control" data-itra="1" data-id="1" />
                                            </td>
                                            <td colspan="1">
                                                <input name="procode1" type="text" id="procode1" width="100%"
                                                    class="form-control" data-itra="1" data-id="1" />
                                            </td>
                                            <td colspan="1">
                                                <input name="partNumber1" type="text" id="partNumber1" width="100%"
                                                    class="form-control positivefloat" data-itra="1" data-id="1" />
                                            </td>
                                            <td colspan="1">
                                                <select name="vehicleType1" id="vehicleType1"
                                                    class="select2 wdt100 vehicleType">
                                                    <option value="-1">اختر</option>
                                                    <?php  $_smarty_tpl->tpl_vars['vehicle'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vehicle']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['vehicletypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vehicle']->key => $_smarty_tpl->tpl_vars['vehicle']->value){
$_smarty_tpl->tpl_vars['vehicle']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['vehicle']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['vehicle']->value->typename;?>
</option>
                                                    <?php } ?>
                                                </select>


                                            </td>
                                            <td colspan="2">
                                                <select name="company1" id="company1" class="select2 wdt100 vehicleType"
                                                    data-id="1" data-itra="1">
                                                    <option value="-1">اختر</option>
                                                    <?php  $_smarty_tpl->tpl_vars['company'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['company']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['companyproduces']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['company']->key => $_smarty_tpl->tpl_vars['company']->value){
$_smarty_tpl->tpl_vars['company']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['company']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['company']->value->companyname;?>
</option>
                                                    <?php } ?>
                                                </select>
                                            </td>
                                            <td colspan="1">
                                                <input name="weight1" type="text" id="weight1" width="100%"
                                                    class="form-control positivefloat" data-itra="1" data-id="1" />
                                            </td>
                                            <td colspan="1">
                                                <input name="origin1" type="text" id="origin1" width="100%"
                                                    class="form-control" data-itra="1" data-id="1" />
                                            </td>
                                            <td colspan="1">
                                                <input name="hscode1" type="text" id="hscode1" width="100%"
                                                    class="form-control positivefloat" data-itra="1" data-id="1" />
                                            </td>
                                            <td colspan="1">
                                                <div class="form-group" style="font-size:13px">
                                                    <label class='color-black'>
                                                        <input value="0" class="power" data-itra="1" name="power1"
                                                            checked="checked" type="radio" data-id="1" />
                                                        نعم </label>

                                                    <label class='color-black'>
                                                        <input value="1" class="power" data-itra="1" name="power1"
                                                            type="radio" data-id="1" />
                                                        لا </label>
                                                </div>
                                            </td>
                                            <td colspan="1" class="power1">
                                                <input name="ProductionDate1" required="required" type="text"
                                                    id="ProductionDate1" width="100%" class="form-control awdatepicker"
                                                    data-date-format="yyyy-mm-dd" data-itra="1" data-id="1" />
                                            </td>
                                            <td colspan="1" class="power1">
                                                <input name="expiry1" required="required" type="text" id="expiry1"
                                                    width="100%" class="form-control positivefloat" data-itra="1"
                                                    data-id="1" />
                                            </td>
                                        </tr>
                                        <?php }?>

                                    </table>

                                    <!------------------------ وحدة قياس---------------------->
                                    <div id="addUnitsDiv1 "
                                        class="check_tr_mesurunit <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->measuringunit;?>
<?php $_tmp32=ob_get_clean();?><?php if ($_tmp32==1){?> hidden <?php }?>"
                                        style=" ">
                                        <table id="unitsTable1" class="table" style="
                                               width: 98%;
                                               box-shadow: 0px 3px 5px #a59f9f, -3px 0px 5px #fff;
                                               background-color: #999;">
                                            <tr style="display: none">
                                                <td>
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">وحدة القياس</label>
                                                        <div class="col-lg-8">
                                                            <select name="productunit11" id="productunit11"
                                                                data-placeholder="اختر"
                                                                class="select2 wdt100 chosenproduct">
                                                                <option value="-1">اختر وحدة القياس</option>

                                                                <?php  $_smarty_tpl->tpl_vars['unit'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['unit']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['unitsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['unit']->key => $_smarty_tpl->tpl_vars['unit']->value){
$_smarty_tpl->tpl_vars['unit']->_loop = true;
?>

                                                                <option value="<?php echo $_smarty_tpl->tpl_vars['unit']->value->unitId;?>
"><?php echo $_smarty_tpl->tpl_vars['unit']->value->unitName;?>

                                                                </option>

                                                                <?php } ?>

                                                            </select>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td class="<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->ebill;?>
<?php $_tmp33=ob_get_clean();?><?php if ($_tmp33!=1){?> hidden <?php }?>">
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">وحدة القياس
                                                            الضريبية</label>
                                                        <div class="col-lg-8">
                                                            <input type="hidden" name="unitInTax11" id="unitInTax11"
                                                                data-id="1" />
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">عدد الوحدات</label>
                                                        <div class="col-lg-8">
                                                            <input name="productnumber11" id="productnumber11"
                                                                type="text" class="form-control numberinput" />
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">الباركود</label>
                                                        <div class="col-lg-8">
                                                            <input name="proUnitParcode1" id="proUnitParcode1"
                                                                type="text"
                                                                class="form-control numberinput positiveNo" />
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">سعر الشراء</label>
                                                        <div class="col-lg-8">
                                                            <input name="proUnitBuyPrice1" id="proUnitBuyPrice1"
                                                                type="text" class="form-control positivefloat" />
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">سعر الجملة</label>
                                                        <div class="col-lg-8">
                                                            <input name="proUnitSellAllPrice1" id="proUnitSellAllPrice1"
                                                                type="text" class="form-control positivefloat" />
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">سعر نص جملة</label>
                                                        <div class="col-lg-8">
                                                            <input name="proUnitSellHalfPrice1"
                                                                id="proUnitSellHalfPrice1" type="text"
                                                                class="form-control positivefloat" />
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="form-group">
                                                        <label class="col-lg-4 control-label">سعر قطاعى</label>
                                                        <div class="col-lg-8">
                                                            <input name="proUnitSellUnitPrice1"
                                                                id="proUnitSellUnitPrice1" type="text"
                                                                class="form-control positivefloat" />
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <a id="remove11" onClick="removeUnits(1, 1);"
                                                        class="removeUnits">X</a>
                                                </td>
                                            </tr>
                                        </table>
                                        <!--end unitsTable-->
                                    </div>
                                    <!--end productsTable -->

                                    <div id="catUnitsDiv" style="display:none;">

                                    </div>

                                </div>
                            </div>
                            <!------------    End  productsDiv  --------------------------->
                            <div class="form-group">
                                <div class="col-lg-12">
                                    <input type="submit" id="ss" name="ss" class="btn btn-primary pull-left"
                                        value="حفظ" />
                                </div>
                            </div>
                        </form>
                    </div>

                    <!------------    End  productsformDiv  --------------------------->
                    <div class="clearfix"></div>
                    <div id="productUnitsDiv" style="display:none;">
                        <option value="-1">اختر وحدة القياس</option>
                        <?php  $_smarty_tpl->tpl_vars['unit'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['unit']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['unitsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['unit']->key => $_smarty_tpl->tpl_vars['unit']->value){
$_smarty_tpl->tpl_vars['unit']->_loop = true;
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['unit']->value->unitId;?>
"><?php echo $_smarty_tpl->tpl_vars['unit']->value->unitName;?>
</option>
                        <?php } ?>
                    </div>

                </div><!----col-lg-8-->
                <div class="clearfix"></div>

                <!--------------------------------------   إضافة تصنيف    ----------------------------------------->

                <!-- Modal -->
                <div class="modal fade" id="catModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content bg-modal">
                            <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">
                                
                                <form class="nameToBeChecked2 form-horizontal" id="catForm" name="catForm"
                                    method="post">
                                    
                                    <!--validate the form before checking name-->


                                    <br />
                                    <input name="parent" id="parent" type="hidden" value="" />
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">اسم التصنيف</label>
                                        <div class="col-lg-4">
                                            <input type="text" name="productCatName" id="productCatName" value=""
                                                required class="form-control" placeholder="اسم التصنيف" />
                                            <div id="nameError" class="alert alert-block alert-danger fade in"
                                                style="display:none">
                                                <button type="button" class="close pull-left" data-dismiss="alert"
                                                    aria-hidden="true">&times;</button>
                                                <h4>رسالة خطأ</h4>
                                                <p>هذا الإسم مستخدم من قبل</p>
                                                <div class="clearfix"></div>
                                            </div>
                                        </div>
                                    </div>

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

                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">التعليق</label>
                                        <div class="col-lg-4">
                                            <textarea name="productCatDescription" id="productCatDescription"
                                                class="form-control" cols="45" rows="5"></textarea>
                                        </div>
                                    </div>

                                    <!--==============================-->
                                    <!--------------------------------  adding units   ----------------------------->

                                    <div id="cat_addUnitsDiv">
                                        <div class="table-responsive">
                                            <table id="cat_unitsTable" class="table table-black">
                                                <tr>
                                                    <td>
                                                        <div class="form-group">
                                                            <label class="col-lg-4 control-label">اسم وحدة
                                                                القياس</label>
                                                            <div class="col-lg-8">
                                                                <select name="productcatunit1" id="productcatunit1"
                                                                    data-placeholder="اختر"
                                                                    class="select2 wdt100 chosenproduct">
                                                                    <option value="-1">اختر وحدة القياس</option>

                                                                    <?php  $_smarty_tpl->tpl_vars['unit'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['unit']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['unitsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['unit']->key => $_smarty_tpl->tpl_vars['unit']->value){
$_smarty_tpl->tpl_vars['unit']->_loop = true;
?>

                                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['unit']->value->unitId;?>
"><?php echo $_smarty_tpl->tpl_vars['unit']->value->unitName;?>

                                                                    </option>

                                                                    <?php } ?>

                                                                </select>
                                                            </div>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div class="form-group">
                                                            <label class="col-lg-4 control-label">عدد الوحدات</label>
                                                            <div class="col-lg-8">
                                                                <input name="cat_productnumber1" id="cat_productnumber1"
                                                                    type="text" class="form-control numberinput" />
                                                            </div>
                                                        </div>
                                                    </td>
                                                    <td><a id="cat_remove1" onClick="cat_removeUnits(1);"
                                                            class="cat_removeUnits">X</a></td>
                                                </tr>
                                            </table>
                                        </div>
                                        <!--end cat_unitsTable-->
                                    </div>
                                    <input class="cat_addUnits btn btn-warning" onClick="cat_addUnits();" type="button"
                                        value="إضافة وحدة قياس" />
                                    <input name="cat_unitsItr" id="cat_unitsItr" type="hidden" value="1" />

                                    <!-------------------------------- end adding units   -------------------------->

                                    <div class="form-group">
                                        <div class="col-lg-offset-2 col-lg-4">
                                            
                                            <input type="button" id="submit" name="ww" class="btn btn-primary pull-left"
                                                value="إضافة" onclick="addCat()" />

                                            <!--<input type="button"  id="submit" name="ww" class="btn btn-primary pull-left" value="إضافة" onclick="if (Spry.Widget.Form.validate(this)) {checkCatName(event, 'productcat', 'productCatName');   return true;} else {return false;}"/>-->

                                            
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <!--              <button type="reset" class="btn btn-default" data-dismiss="modal">اغلاق</button>
                            --> <!--<button type="submit" class="btn btn-primary savemodel">حفظ</button>-->
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal-dialog -->
            </div><!-- /.modal -->
            <!--------=====================================================================---->

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


    <div class="modal fade" id="etaproductModal" tabindex="-1" role="dialog" aria-labelledby="etaproductModalLabel"
        aria-hidden="true">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLabel" style="text-align: center;">البحث عن المنتج</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <form id="etaproductform">
                        <div class="row">
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">code type</label>
                                <input type="text" class="form-control" id="etacodetype">
                            </div>
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">Code Lookup Value</label>
                                <input type="text" class="form-control" id="etaCodeLookupValue">
                            </div>
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">Parent Code Lookup Value</label>
                                <input type="text" class="form-control" id="etaParentCodeLookupValue">
                            </div>
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">Code ID</label>
                                <input type="text" class="form-control" id="etaCodeID">
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">Code Name</label>
                                <input type="text" class="form-control" id="etaCodeName">
                            </div>
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">Code Description</label>
                                <input type="text" class="form-control" id="etaCodeDescription">
                            </div>
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">Taxpayer RIN</label>
                                <input type="text" class="form-control" id="etaTaxpayerRIN">
                            </div>
                            <div class="col-lg-3">
                                <label for="recipient-name" class="col-form-label">Parent Code ID</label>
                                <input type="text" class="form-control" id="etaParentCodeID">
                            </div>
                        </div>
                        <div id="etaproductbody">
                        </div>

                        <input type="hidden" class="form-control" id="etaproductitr" value="">
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">اغلاق</button>
                    <button type="button" class="btn btn-primary " id="etaproductsearch"> بحث</button>
                </div>
            </div>
        </div>
    </div>
    <!--    <<<<<<< .mine
    </div></td>
    </tr>
    <tr>
        <td colspan="2">خدمة</td>
        <td colspan="3">الوصف</td>
    </tr>
    <tr>
        <td  colspan="2">
            <div class="form-group">
                ||||||| .r20806
            </div>
        </td>
        <td colspan="3"><textarea name="productDescription1" id="productDescription1" cols="1" rows="3" class="form-control"></textarea></td>
        =======
    </div>
    </td>
    <td colspan="3" class="check_tr_description <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->description;?>
<?php $_tmp34=ob_get_clean();?><?php if ($_tmp34==1){?> hidden <?php }?>"><textarea name="productDescription1" id="productDescription1" cols="1" rows="3" class="form-control"></textarea></td>
    <td  colspan="2">
        <div class="form-group">
        </div></td>
    </tr>
    <tr>
        <td colspan="2">خدمة</td>
        <td colspan="3">الوصف</td>
    </tr>
    <tr>
        <td  colspan="2">
            <div class="form-group">

            </div></td>
    </tr>
    <tr>
        <td colspan="2" class="check_tr_service <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->service;?>
<?php $_tmp35=ob_get_clean();?><?php if ($_tmp35==1){?> hidden <?php }?>">خدمة</td>
        <td colspan="3" class="check_tr_description <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->description;?>
<?php $_tmp36=ob_get_clean();?><?php if ($_tmp36==1){?> hidden <?php }?>">الوصف</td>
    </tr>
    <tr >
        <td  colspan="2" class="check_tr_service <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->service;?>
<?php $_tmp37=ob_get_clean();?><?php if ($_tmp37==1){?> hidden <?php }?>">
            <div class="form-group">
    -->
    <input type="hidden" name="productAddMultiCatLevel" id="productAddMultiCatLevel" value="1" />
    
    <script>
        $(window).bind('keydown', function (event) {
            //needs that form autocomplete="off"
            if (event.which === 33) {//page up
                event.preventDefault();
                var itr = Number(event.target.getAttribute('data-id')) - 1;
                $('#productName' + itr).focus();
            }
            //needs that form autocomplete="off"
            if (event.which === 34) {//page down
                event.preventDefault();
                var itr = Number(event.target.getAttribute('data-id')) + 1;
                $('#productName' + itr).focus();
            }
        });

    </script>
    <?php }} ?>