<?php /* Smarty version Smarty-3.1.11, created on 2024-04-05 03:56:08
         compiled from "../views/default/billsettingsview/add.html" */ ?>
<?php /*%%SmartyHeaderCode:1096022566660f5a38677602-91991487%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8ac03b1de1ceb2e5beb50da60017ac5adcb220d0' => 
    array (
      0 => '../views/default/billsettingsview/add.html',
      1 => 1693253992,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1096022566660f5a38677602-91991487',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'data' => 0,
    'allBillproperty' => 0,
    'myBillproperty' => 0,
    'j' => 0,
    'bankAccounts' => 0,
    'acc' => 0,
    'countallBillproperty' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_660f5a38859360_60053947',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_660f5a38859360_60053947')) {function content_660f5a38859360_60053947($_smarty_tpl) {?>
<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">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">إضافة فاتورة</h3>
            </div>
            <div class="panel-body">
                
                <form class="nameToBeChecked form-horizontal" action="billsettingsController.php?do=add" method="post" onsubmit="if (Spry.Widget.Form.validate(this)) {
                            checkName(event, 'billname', 'name');
                            return true;
                        } else {
                            return false;
                        }"><!--validate the form before checking name-->
                    
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم الفاتورة</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input type="text" name="name" id="name" class="form-control" placeholder="اسم الفاتورة" />
                                <span class="textfieldRequiredMsg">ادخل اسم الفاتورة</span></span>

                            <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">
                            <div class="radio-inline">
                                <label>
                                    <input name="billType" type="radio"  checked="checked" value="0" />مبيعات
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="billType" type="radio" value="1" />مشتريات
                                </label>
                            </div>
                        </div>
                    </div>



                    <div class="form-group">
                        <label class="col-lg-2 control-label">امر شراء او امر بيع <br />(لا توجد بها مردودات)</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="ordertype" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->ordertype;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?>  checked="checked" <?php }?> value="0" />لا
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="ordertype" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->ordertype;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1){?>  checked="checked" <?php }?> value="1" />نعم
                                </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اظهار منتجات وكميات فقط <br />(لا تنطبق الا على  امر الشراء)</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="productAndQuantityOnly" type="radio" checked="checked" value="0" />لا
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="productAndQuantityOnly" type="radio" value="1" />نعم
                                </label>
                            </div>
                        </div>
                    </div>


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



                    <div class="form-group">
                        <label class="col-lg-2 control-label" >يؤثر فى الخزنة<br />(لا تنطبق الا على  امر الشراء) </label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="saveeffect" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->saveeffect;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==0){?>  checked="checked" <?php }?> value="0" />نعم
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="saveeffect" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->saveeffect;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==1){?>  checked="checked" <?php }?> value="1" />لا
                                </label>
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label class="col-lg-2 control-label">نوع الفاتورة</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="billType2" type="radio"  checked="checked" value="0" />عادى
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="billType2" type="radio" value="1" />بصريات
                                </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label">الباركود المستخدم فى الفاتورة</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="parcodeType" type="radio"  checked="checked" value="0" />باركود
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="parcodeType" type="radio" value="1" />باركود مخصص
                                </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->

                    <?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable(1, null, 0);?>
                    <?php  $_smarty_tpl->tpl_vars['myBillproperty'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myBillproperty']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allBillproperty']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myBillproperty']->key => $_smarty_tpl->tpl_vars['myBillproperty']->value){
$_smarty_tpl->tpl_vars['myBillproperty']->_loop = true;
?>

                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5=='نوع السعر'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />جمله</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="2" />نصف جمله</label>
                        </div>

                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />تجزئة  </label>
                        </div>
                    </div>


                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6=='نوع الفاتوره'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />عادى</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />اذن صرف</label>
                        </div>

                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="2" />امر شراء  </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7=='نوع الخصم لكل منتج'){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />مباشر</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نسبة</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8=='المدفوع اكبر من قيمه الفاتوره'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نعم</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9=='البحث باسم التصنيف والمنتج فقط'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />نعم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />البحث باسم اللون والمقاس ايضا <span style="color: red">"ابطأ فى البحث"</span> </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp10=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp10=='تجميع المنتجات المتشابه مع بعضها'||$_tmp11=='ربط نوع السعر بالعميل'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نعم</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12=='نوع الخصم العام'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />مباشر</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نسبة</label>
                        </div>

                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="2" />الاثنان معا </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp13=ob_get_clean();?><?php if ($_tmp13=='طباعة بيانات'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />اعدادات البرنامج</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />الفرع</label>
                        </div>

                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="2" />اخفاء </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp14=="print_client_name"){?>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp15=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp15=="a4"||$_tmp16=="طباعة a5"){?>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17=='طباعة'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
 "فواتير البيع فقط"</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />نموذج 1</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نموذج 2</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="2" />نموذج 3 </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="3" />نموذج 4 </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="4" />نموذج 5 </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="5" />نموذج 6 </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="6" />نموذج 7 </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="7" />نموذج 8 </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="8" />نموذج 9 </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="9" />نموذج 10 </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18=="تفعيل ميزان الباركود"){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" class="parcodeSettingClass"/>اظهار</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" class="parcodeSettingClass"/>اخفاء</label>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields">
                        <label  class="col-lg-2 control-label">الكود المميز</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield2">
                                <input type="text" name="posFlag" id="posFlag" class="form-control positiveNo" value="">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields">
                        <label  class="col-lg-2 control-label">عدد ارقام كود المنتج</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield3">
                                <input type="text" name="posCode" id="posCode" class="form-control positiveNo" value="">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields">
                        <label  class="col-lg-2 control-label">الخانة التالية تعبر عن</label>
                        <div class="radio-inline">
                            <label>
                                <input name="posType" type="radio"  checked="checked" value="0" />وزن المنتج</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="posType" type="radio" value="1" />سعر المنتج</label>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields ">
                        <label  class="col-lg-2 control-label">عدد ارقام الخانة التالية</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield4">
                                <input type="text" name="posWeightPrice" id="posWeightPrice" class="form-control positiveNo" value="">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields">
                        <label  class="col-lg-2 control-label">تمييز اخر الباركود</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield5">
                                <input type="text" name="checkDigit" id="checkDigit" class="form-control positiveNo" value="">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                        <div class="col-lg-6">
                            <label class="control-label">
                                <span style="color:red">ملحوظة :</span> القيمة صفر تعنى اى قيمة
                            </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19=='زر حفظ يعود الى'){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />تفاصيل الفاتورة</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />فاتورة جديدة</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp20=ob_get_clean();?><?php if ($_tmp20=='البائع - المندوب إلزامى'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نعم</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21=="اقرار استلام بضاعه"){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label">اقرار استلام بضاعه</label>
                        <div class="col-lg-4">
                            <input type="text" name="goodsReceiptApproval" id="goodsReceiptApproval" class="form-control" value="">

                            <!-- fatma => should not be like that but it fix error -->
                            <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                            <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
"  type="hidden" value="0" />
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22=="الهامش"){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label">الهامش</label>
                        <div class="col-lg-4">
                            <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                            <span id="sprytextfieldmargin">
                                <input type="text" name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" class="form-control positiveNo" value="0">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp23=ob_get_clean();?><?php if ($_tmp23=="التعليق على العميل"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">التعليق على العميل </label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="commentClient" type="radio" checked="checked" value="0" />اظهار
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="commentClient" type="radio" value="1" />اخفاء
                                </label>
                            </div>
                        </div>
                    </div>


                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp24=="الشحن او التوصيل"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">الشحن او التوصيل </label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="delivery" type="radio" checked="checked" value="0" />اظهار
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="delivery" type="radio" value="1" />اخفاء
                                </label>
                            </div>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp25=ob_get_clean();?><?php if ($_tmp25=="الفواتير المحفوظة"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">الفواتير المحفوظة </label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="delivery" type="radio" checked="checked" value="1" />اظهار
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="delivery" type="radio" value="0" />اخفاء
                                </label>
                            </div>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp26=ob_get_clean();?><?php if ($_tmp26=="الطول و العرض"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">الطول و العرض </label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="delivery" type="radio" checked="checked" value="1" />اظهار
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="delivery" type="radio" value="0" />اخفاء
                                </label>
                            </div>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp27=='نوع السعر مع كل صف'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نعم</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28=="الدفع الالكترونى"){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" class="visaPaymentClass"/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" class="visaPaymentClass"/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group visaPaymentFields" style="display: none">
                        <label  class="col-lg-2 control-label">الحساب الافتراضى للدفع الالكترونى</label>
                        <div class="col-lg-4">
                            <span id="spryselect1">
                                <select class="select2 wds100" name="defVisaAccount" id="defVisaAccount">
                                    <option></option>
                                    <?php  $_smarty_tpl->tpl_vars['acc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['acc']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['bankAccounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['acc']->key => $_smarty_tpl->tpl_vars['acc']->value){
$_smarty_tpl->tpl_vars['acc']->_loop = true;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['acc']->value->accountid;?>
"><?php echo $_smarty_tpl->tpl_vars['acc']->value->accountname;?>
/<?php echo $_smarty_tpl->tpl_vars['acc']->value->bankname;?>
</option>
                                    <?php } ?>
                                </select>
                                <span class="selectRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group visaPaymentFields" style="display: none">
                        <label  class="col-lg-2 control-label">الحساب الافتراضى للدفع الالكترونى</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="defVisaAccountSelect" type="radio"  checked="checked" value="0"/>اخفاء</label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="defVisaAccountSelect" type="radio" value="1"/>اختيار من القائمة المنسدلة</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group visaPaymentFields">
                        <label  class="col-lg-2 control-label">خيار التحويل البنكى</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="isBankAccountTransfer" type="radio"  checked="checked" value="0"/>اخفاء</label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="isBankAccountTransfer" type="radio" value="1"/>اظهار</label>
                            </div>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29=="خزنة الفاتورة"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0"/>خزنة المستخدم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1"/>اختيار من متعدد</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp30=ob_get_clean();?><?php if ($_tmp30=='طباعة التصنيف بدل المنتجات'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نعم</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp31=ob_get_clean();?><?php if ($_tmp31=='فاتورة ضريبية'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نعم</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp32=ob_get_clean();?><?php if ($_tmp32=='تفعيل الحفظ التلقائى'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نعم</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp33=ob_get_clean();?><?php if ($_tmp33=='نوع العميل'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />اجل</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />نقدى</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp34=ob_get_clean();?><?php if ($_tmp34=="ضريبة خصم"){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" class="taxOfDiscountClass"/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" class="taxOfDiscountClass"/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group taxOfDiscountfields">
                        <label  class="col-lg-2 control-label">قيمة ضريبة الخصم</label>
                        <div class="col-lg-4">
                            <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                            <span id="sprytextfieldTaxOfDiscountVal">
                                <input type="text" name="taxOfDiscountVal" id="taxOfDiscountVal" class="form-control positivefloat" value="0">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group taxOfDiscountfields">
                        <label  class="col-lg-2 control-label">طباعة ضريبة الخصم</label>
                        <div class="radio-inline">
                            <label>
                                <input name="taxOfDiscountPrint" type="radio"  checked="checked" value="0" />نعم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="taxOfDiscountPrint" type="radio" value="1" />لا</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp35=ob_get_clean();?><?php if ($_tmp35=="خصم اضافى"){?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" class="extraDiscountClass"/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" class="extraDiscountClass"/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group extraDiscountfields">
                        <label  class="col-lg-2 control-label">تطبيق الخصم الاضافى</label>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountPlace" type="radio"  checked="checked" value="0" />بعد الخصم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountPlace" type="radio" value="1" />قبل الخصم</label>
                        </div>
                    </div>
                    <div class="form-group extraDiscountfields">
                        <label  class="col-lg-2 control-label">تثبيت النسبة</label>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountFixed" type="radio"  checked="checked" value="0" class="extraDiscountFixedClass"/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountFixed" type="radio" value="1" class="extraDiscountFixedClass"/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group extraDiscountFixedfield">
                        <label  class="col-lg-2 control-label">نسبة الخصم الاضافى</label>
                        <div class="col-lg-4">
                            <span id="sprytextfieldExtraDiscountPer">
                                <input type="text" name="extraDiscountPer" id="extraDiscountPer" class="form-control positivefloat" value="0">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp36=ob_get_clean();?><?php if ($_tmp36=='رد المنتجات لعميل'){?>


                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />كل المنتجات</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />المنتجات المباعة مسبقا فقط</label>
                        </div>
                    </div>
                    <?php }else{ ?>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio"  checked="checked" value="0" />اظهار</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" />اخفاء</label>
                        </div>
                    </div>
                    <?php }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}?>
                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'j', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['j']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                    <?php } ?>
                    <input name="countallBillproperty" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['countallBillproperty']->value;?>
" />

                    <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>

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

    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
    var sprytextfieldmargin = new Spry.Widget.ValidationTextField("sprytextfieldmargin");

    $(".parcodeSettingClass").live('change', function () {
        var val = $(this).val();
        if (val == 0) {
            $('.parcodeSettingFields').show();
            sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
            sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
            sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
            sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
        } else {
            $('.parcodeSettingFields').hide();
            sprytextfield2.destroy();
            sprytextfield3.destroy();
            sprytextfield4.destroy();
            sprytextfield5.destroy();
        }
    });

    var spryselect1 = '';//new Spry.Widget.ValidationSelect("spryselect1", {invalidValue: "-1"});
    $(".visaPaymentClass").live('change', function () {
        var val = $(".visaPaymentClass:checked").val();
        if (val == 0) {
            $('.visaPaymentFields').hide();
            try {
                spryselect1.destroy();
            } catch (e) {
            }
        } else {
            $('.visaPaymentFields').show();
            spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {invalidValue: "-1"});
        }
    });
    $(".visaPaymentClass").change();

    var sprytextfieldTaxOfDiscountVal = '';//new Spry.Widget.ValidationTextField("sprytextfieldTaxOfDiscountVal");
    $(".taxOfDiscountClass").live('change', function () {
        var val = $(".taxOfDiscountClass:checked").val();
        if (val == 0) {
            $('.taxOfDiscountfields').hide();
            $('#taxOfDiscountVal').val('0');
            try {
                sprytextfieldTaxOfDiscountVal.destroy();
            } catch (e) {
            }
        } else {
            $('.taxOfDiscountfields').show();
            sprytextfieldTaxOfDiscountVal = new Spry.Widget.ValidationTextField("sprytextfieldTaxOfDiscountVal");
        }
    });
    $(".taxOfDiscountClass").change();

    $(".extraDiscountClass").live('change', function () {
        var val = $(".extraDiscountClass:checked").val();
        if (val == 0) {
            $('.extraDiscountfields').hide();
            $("#extraDiscountFixed0").attr('checked', 'checked').change();
        } else {
            $('.extraDiscountfields').show();
        }
    });
    $(".extraDiscountClass").change();

    var sprytextfieldExtraDiscountPer = '';//new Spry.Widget.ValidationTextField("sprytextfieldExtraDiscountPer");
    $(".extraDiscountFixedClass").live('change', function () {
        var val = $(".extraDiscountFixedClass:checked").val();
        if (val == 0) {
            $('.extraDiscountFixedfield').hide();
            $('#extraDiscountPer').val('0');
            try {
                sprytextfieldExtraDiscountPer.destroy();
            } catch (e) {
            }
        } else {
            $('.extraDiscountFixedfield').show();
            sprytextfieldExtraDiscountPer = new Spry.Widget.ValidationTextField("sprytextfieldExtraDiscountPer");
        }
    });
    $(".extraDiscountFixedClass").change();

</script>
<?php }} ?>