<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 16:45:32
         compiled from "..\views\default\programsettingsview\add.html" */ ?>
<?php /*%%SmartyHeaderCode:59006695360c88f797-09152200%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dbaf0a722aeea591c593dcbe90b508fe9642fa25' => 
    array (
      0 => '..\\views\\default\\programsettingsview\\add.html',
      1 => 1720388636,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '59006695360c88f797-09152200',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'path' => 0,
    'youtubes' => 0,
    'userID' => 0,
    'programsettingsdata' => 0,
    'allStores' => 0,
    'data' => 0,
    'userGroups' => 0,
    'group' => 0,
    'eBillSetting' => 0,
    'transfersell' => 0,
    'today' => 0,
    'copytype' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6695360d7a1234_04867091',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6695360d7a1234_04867091')) {function content_6695360d7a1234_04867091($_smarty_tpl) {?><script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="programsettingsController.php">اعدادات البرنامج</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>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[11]->url;?>
" target="_blank" class="hidden-print"><img
                        src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube"
                        style="width: 2%;"></a>
            </div>
            <div class="panel-body">
                <form class="form-horizontal" action="programsettingsController.php?do=update" method="post"
                      enctype="multipart/form-data">

                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#info" data-toggle="tab">اعدادات البرنامج</a></li>
                        <li><a href="#props" data-toggle="tab">خصائص عامه</a></li>
                        <li><a href="#print" data-toggle="tab">الطباعه </a></li>
                        <li><a href="#bill" data-toggle="tab">الفواتير </a></li>
                        <li><a href="#optics" data-toggle="tab">البصريات </a></li>
                        <li><a href="#restur" data-toggle="tab">المطاعم </a></li>
                        <li><a href="#product" data-toggle="tab">المنتجات </a></li>
                        <li><a href="#store" data-toggle="tab">المخازن </a></li>
                        <li><a href="#parcodePrint" data-toggle="tab">طباعة الباركود </a></li>
                        <li><a href="#objyRoyal" data-toggle="tab">البرنامج الطبى </a></li>

                        <?php if ($_smarty_tpl->tpl_vars['userID']->value==-1){?>
                        <li><a href="#EBill" data-toggle="tab">الفاتورة الالكترونيه</a></li>
                        <?php }?>
                        <li><a href="#transfersell" data-toggle="tab"> نقل الفواتير</a></li>
                        <li><a href="#specialProjects" data-toggle="tab">المشروعات الخاصه</a></li>
                        <li><a href="#names" data-toggle="tab">المسميات</a></li>

                    </ul>

                    <div class="tab-content">

                        <div class="tab-pane active" id="info"><!-- start the 1st tab -->
                            <div class="form-group">
                                <label for="companyname" class="col-lg-2 control-label">اسم الشركة</label>
                                <div class="col-lg-4"> <span id="name">
                                        <input type="text" name="companyname" id="companyname" class="form-control"
                                               placeholder="اسم الشركة" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->companyname;?>
" />
                                        <span class="textfieldRequiredMsg">*</span></span></div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="specializtion" class="col-lg-2 control-label">التوقيت"Time zone"</label>
                                <div class="col-lg-4">
                                    <select class="select2" name="timezone" id="timezone">
                                        <option value="Africa/Cairo" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Africa/Cairo"){?>selected="selected"<?php }?>>مصر
                                        </option>
                                        <option value="Asia/Riyadh" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Riyadh"){?>selected="selected"<?php }?>>المملكة العربية السعودية
                                        </option>
                                        <option value="Africa/El_Aaiun" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Africa/El_Aaiun"){?>selected="selected"<?php }?>>العيون - المغرب
                                        </option>
                                        <option value="Africa/Casablanca" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Africa/Casablanca"){?>selected="selected"<?php }?>>الدار البيضاء -المغرب
                                        </option>
                                        <option value="Africa/Ceuta" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Africa/Ceuta"){?>selected="selected"<?php }?>>سبته-المغرب
                                        </option>
                                        <option value="Africa/Juba" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Africa/Juba"){?>selected="selected"<?php }?>>جنوب السودان
                                        </option>
                                        <option value="Africa/Tunis" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Africa/Tunis"){?>selected="selected"<?php }?>>تونس
                                        </option>
                                        <option value="Africa/Algiers" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Africa/Algiers"){?>selected="selected"<?php }?>>الجزائر
                                        </option>
                                        <option value="Asia/Aden" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Aden"){?>selected="selected"<?php }?>>اليمن
                                        </option>
                                        <option value="Asia/Baghdad" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Baghdad"){?>selected="selected"<?php }?>>العراق
                                        </option>
                                        <option value="Asia/Muscat" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Muscat"){?>selected="selected"<?php }?>>سلطنة عمان
                                        </option>
                                        <option value="Asia/Bahrain" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Bahrain"){?>selected="selected"<?php }?>>البحرين
                                        </option>
                                        <option value="Asia/Beirut" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Beirut"){?>selected="selected"<?php }?>>لبنان
                                        </option>
                                        <option value="Asia/Gaza" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Gaza"){?>selected="selected"<?php }?>>غزة-فلسطين
                                        </option>
                                        <option value="Asia/Jerusalem" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Jerusalem"){?>selected="selected"<?php }?>>القدس-فلسطين
                                        </option>
                                        <option value="Asia/Qatar" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Qatar"){?>selected="selected"<?php }?>>قطر
                                        </option>
                                        <option value="Asia/Amman" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Amman"){?>selected="selected"<?php }?>>الأردن
                                        </option>
                                        <option value="Asia/Dubai" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Dubai"){?>selected="selected"<?php }?>>الإمارات العربية المتحدة
                                        </option>
                                        <option value="Asia/Damascus" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Damascus"){?>selected="selected"<?php }?>>سوريا
                                        </option>
                                        <option value="Asia/Kuwait" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->timezone=="Asia/Kuwait"){?>selected="selected"<?php }?>>الكويت
                                        </option>

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

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

                            <div class="form-group">
                                <label for="specializtion" class="col-lg-2 control-label">التخصص</label>
                                <div class="col-lg-4">
                                    <input type="text" name="specializtion" id="specializtion" class="form-control"
                                           placeholder="التخصص" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->specializtion;?>
" />
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="address" class="col-lg-2 control-label">العنوان</label>
                                <div class="col-lg-4">
                                    <input type="text" name="address" id="address" class="form-control"
                                           placeholder="العنوان" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->address;?>
" />
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="phone" class="col-lg-2 control-label">رقم التليفون</label>
                                <div class="col-lg-4">
                                    <span>
                                        <input type="text" name="phone" id="phone" class="form-control"
                                               placeholder="رقم التليفون" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->phone;?>
" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="faxnumber" class="col-lg-2 control-label"> رقم الفاكس</label>
                                <div class="col-lg-4">
                                    <span>
                                        <input type="text" name="faxnumber" id="faxnumber" class="form-control"
                                               placeholder="رقم الفاكس" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->faxnumber;?>
" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">الايميل</label>
                                <div class="col-lg-4">
                                    <input type="text" name="email" id="email" class="form-control"
                                           placeholder="الايميل" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->email;?>
" />
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="website" class="col-lg-2 control-label">الموقع الالكترونى</label>
                                <div class="col-lg-4">
                                    <input type="text" name="website" id="website" class="form-control"
                                           placeholder="الايميل" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->website;?>
" />
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">الشعار</label>
                                <div class="col-lg-4"><img
                                        src="../views/default/images/upload/<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->logo;?>
" alt=""
                                        width="122" height="75" />
                                    <input type="file" name="logo" id="logo" class="form-control"
                                           placeholder="الشعار" />
                                    <input type="hidden" name="oldlogo" id="oldlogo"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->logo;?>
" />
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">بطاقة ضريبية</label>
                                <div class="col-lg-4">
                                    <input type="text" name="taxcard" id="taxcard" class="form-control"
                                           placeholder="بطاقة ضريبية" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->taxcard;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">سجل تجارى</label>
                                <div class="col-lg-4">
                                    <input type="text" name="commercialregistration" id="commercialregistration"
                                           class="form-control" placeholder="سجل تجارى"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->commercialregistration;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">رقم الترخيص</label>
                                <div class="col-lg-4">
                                    <input type="text" name="licenseNo" id="licenseNo" class="form-control"
                                           placeholder="رقم الترخيص" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->licenseNo;?>
" />
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="props"><!-- start the 2nd tab -->
                            <div class="form-group">
                                <label for="qrcodesh" class="col-lg-2 control-label">تغير المنتج فى الطاوله </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeOrderproduct" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeOrderproduct;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeOrderproduct" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeOrderproduct;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="qrcodesh" class="col-lg-2 control-label">اظهار المورد فى المصروفات </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="expensesupplier" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->expensesupplier;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="expensesupplier" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->expensesupplier;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="qrcodesh" class="col-lg-2 control-label">نظام العقارات والوحدات </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="realestateunits" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->realestateunits;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="realestateunits" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->realestateunits;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="qrcodesh" class="col-lg-2 control-label">اظهار العميل و الفاتوره فى المصروف
                                </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientsell" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientsell;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientsell" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientsell;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="preorderperiod" class="col-lg-2 control-label">مدة اعادة الطلب</label>
                                <div class="col-lg-4"><span id="preorderperiod">
                                        <input name="preorderperiod" id="preorderperiod" type="text"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->preorderperiod;?>
"
                                               class="form-control positiveNo" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="qrerp" class="col-lg-2 control-label">تفعيل QR </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="qrerp" value="3" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->qrerp;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9==3){?> checked <?php }?>>
                                            qre </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="qrerp" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->qrerp;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10==2){?> checked <?php }?>>
                                            qrs </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="qrerp" value="4" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->qrerp;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11==4){?> checked <?php }?>>
                                            qrs & qre</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="qrerp" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->qrerp;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12==1){?> checked <?php }?>>
                                            غير مفعل </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="qrcodesh" class="col-lg-2 control-label">اظهار كود qr </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="qrcodesh" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->qrcodesh;?>
<?php $_tmp13=ob_get_clean();?><?php if ($_tmp13==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="qrcodesh" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->qrcodesh;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp14==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">مصروفات خاصه</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="specialexpenses" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->specialexpenses;?>
<?php $_tmp15=ob_get_clean();?><?php if ($_tmp15==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="specialexpenses" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->specialexpenses;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp16==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="vatvalueqr" class="col-lg-2 control-label">نسبة القيمة المضافة في الاسعار
                                </label>
                                <div class="col-lg-4">
                                    <input name="vatvalueqr" type="text" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->vatvalueqr;?>
" />
                                </div>
                            </div>



                            <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">تفعيل خاصية تقريب
                                    الأرقام</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="roundnumbers" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->roundnumbers;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="roundnumbers" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->roundnumbers;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group" id="noOfDecimalPlaces_div" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->roundnumbers;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19!=1){?>style="display:none"<?php }?>>
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">عدد الخانات
                                    العشرية</label>
                                <div class="col-lg-4"><span id="noOfDecimalPlacesSpary">
                                        <input name="noOfDecimalPlaces" id="noOfDecimalPlaces" type="text"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->noOfDecimalPlaces;?>
"
                                               class="form-control positiveNo" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">عدد حروف البحث</label>
                                <div class="col-lg-4"><span id="sprytextfield1">
                                        <input name="searchvalue" type="text"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->searchvalue;?>
"
                                               class="form-control positiveNo" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">عدد حروف البحث في العملاء</label>
                                <div class="col-lg-4"><span id="sprytextfield2">
                                        <input name="clientsearchvalue" type="text"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientsearchvalue;?>
"
                                               class="form-control positiveNo" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">عدد نتائج البحث</label>
                                <div class="col-lg-4"><span id="sprytextfield9">
                                        <input name="searchlimit" type="text"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->searchlimit;?>
"
                                               class="form-control positiveNo" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>
                            <!--==============================-->


                            <div class="form-group">
                                <label for="partition" class="col-lg-2 control-label">بارتيشن</label>
                                <div class="col-lg-4">
                                    <input type="text" name="partition" id="partition" class="form-control"
                                           placeholder="ادخل مكان البارتيشن" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->partition;?>
" />
                                </div>
                                <div class="col-lg-6">
                                    <label class="control-label">
                                        <span style="color:red">ملحوظة :</span> فى حالة اللنكس ضع 0 فى الحقل
                                    </label>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> تقيم البضاعة باخر سعر شراء </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="lastprice" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->lastprice;?>
<?php $_tmp20=ob_get_clean();?><?php if ($_tmp20==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="lastprice" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->lastprice;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>


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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> مراكز التكلفه </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="costcenter" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->costcenter;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="costcenter" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->costcenter;?>
<?php $_tmp23=ob_get_clean();?><?php if ($_tmp23==1){?> checked <?php }?> >
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> تفاصيل العميل </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientdetail" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientdetail;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp24==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientdetail" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientdetail;?>
<?php $_tmp25=ob_get_clean();?><?php if ($_tmp25==1){?> checked <?php }?> >
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> اظهار العميل فى الايردات </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="incomeclient" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->incomeclient;?>
<?php $_tmp26=ob_get_clean();?><?php if ($_tmp26==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="incomeclient" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->incomeclient;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp27==1){?> checked <?php }?> >
                                            لا </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">تقيم المخزون بالسريال </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="inventoryvaluation" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->inventoryvaluation;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="inventoryvaluation" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->inventoryvaluation;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29==1){?> checked <?php }?> >
                                            لا </label>
                                    </div>
                                </div>
                            </div>

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


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


                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اضافه مصروف للمنتج </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="expensesproduct" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->expensesproduct;?>
<?php $_tmp30=ob_get_clean();?><?php if ($_tmp30==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="expensesproduct" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->expensesproduct;?>
<?php $_tmp31=ob_get_clean();?><?php if ($_tmp31==1){?> checked <?php }?> >
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">السماح بتعديل التاريخ</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="allowdateedit" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->allowdateedit;?>
<?php $_tmp32=ob_get_clean();?><?php if ($_tmp32==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="allowdateedit" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->allowdateedit;?>
<?php $_tmp33=ob_get_clean();?><?php if ($_tmp33==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">يوجد عيادات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clinic" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clinic;?>
<?php $_tmp34=ob_get_clean();?><?php if ($_tmp34==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clinic" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clinic;?>
<?php $_tmp35=ob_get_clean();?><?php if ($_tmp35==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">يوجد ورش</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="workshop" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->workshop;?>
<?php $_tmp36=ob_get_clean();?><?php if ($_tmp36==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="workshop" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->workshop;?>
<?php $_tmp37=ob_get_clean();?><?php if ($_tmp37==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">يوجد نقل</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="transport" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->transport;?>
<?php $_tmp38=ob_get_clean();?><?php if ($_tmp38==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="transport" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->transport;?>
<?php $_tmp39=ob_get_clean();?><?php if ($_tmp39==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">يوجد تصنيع</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="manufacturing" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->manufacturing;?>
<?php $_tmp40=ob_get_clean();?><?php if ($_tmp40==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="manufacturing" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->manufacturing;?>
<?php $_tmp41=ob_get_clean();?><?php if ($_tmp41==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="tamweenBakery" class="col-lg-2 control-label">يوجد فرن عيش</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="tamweenBakery" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->tamweenBakery;?>
<?php $_tmp42=ob_get_clean();?><?php if ($_tmp42==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="tamweenBakery" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->tamweenBakery;?>
<?php $_tmp43=ob_get_clean();?><?php if ($_tmp43==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label">الدفع الالكترونى</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="visaPay" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->visaPay;?>
<?php $_tmp44=ob_get_clean();?><?php if ($_tmp44==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="visaPay" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->visaPay;?>
<?php $_tmp45=ob_get_clean();?><?php if ($_tmp45==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label"> الفاتورة الالكترونيه</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ebill" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->ebill;?>
<?php $_tmp46=ob_get_clean();?><?php if ($_tmp46==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ebill" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->ebill;?>
<?php $_tmp47=ob_get_clean();?><?php if ($_tmp47==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label"> الفاتورة الالكترونيه
                                    للعميل</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ebillclient" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->ebillclient;?>
<?php $_tmp48=ob_get_clean();?><?php if ($_tmp48==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ebillclient" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->ebillclient;?>
<?php $_tmp49=ob_get_clean();?><?php if ($_tmp49==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                </div>
                            </div>


                            <!--==============================-->
                            <div class="form-group">
                                <label for="tamweenBakery" class="col-lg-2 control-label">نسب تحصيل المناديب</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="mandobCollectionRatio" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->mandobCollectionRatio;?>
<?php $_tmp50=ob_get_clean();?><?php if ($_tmp50==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="mandobCollectionRatio" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->mandobCollectionRatio;?>
<?php $_tmp51=ob_get_clean();?><?php if ($_tmp51==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">النسخة</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="masterCopy" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->masterCopy;?>
<?php $_tmp52=ob_get_clean();?><?php if ($_tmp52==0){?> checked <?php }?>>
                                            فرعى </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="masterCopy" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->masterCopy;?>
<?php $_tmp53=ob_get_clean();?><?php if ($_tmp53==1){?> checked <?php }?>>
                                            رئيسى </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">يوجد عامل توصيل للنقل بين
                                    المخازن</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="workerbetweenstores" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->workerbetweenstores;?>
<?php $_tmp54=ob_get_clean();?><?php if ($_tmp54==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="workerbetweenstores" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->workerbetweenstores;?>
<?php $_tmp55=ob_get_clean();?><?php if ($_tmp55==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="workshoptimeout" class="col-lg-2 control-label">مدة انجاز الورشة
                                    بالساعة</label>
                                <div class="col-lg-4">
                                    <span id="sprytextfield4">
                                        <input type="text" name="workshoptimeout" id="workshoptimeout"
                                               class="form-control positiveNo" placeholder="مدة انجاز الورشة بالساعة"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->workshoptimeout;?>
" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="drivertimeout" class="col-lg-2 control-label">مدة انجاز السائق
                                    بالساعة</label>
                                <div class="col-lg-4">
                                    <span id="sprytextfield5">
                                        <input type="text" name="drivertimeout" id="drivertimeout"
                                               class="form-control positiveNo" placeholder="مدة انجاز السائق بالساعة"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->drivertimeout;?>
" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="currancy" class="col-lg-2 control-label">العملة الرئيسية</label>
                                <div class="col-lg-4">
                                    <span id="sprytextfield6">
                                        <input type="text" name="currancy" id="currancy" class="form-control"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->currancy;?>
" />
                                        <span class="textfieldRequiredMsg">***.</span></span>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="currancy" class="col-lg-2 control-label">اظهار العملات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showCurrency" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showCurrency;?>
<?php $_tmp56=ob_get_clean();?><?php if ($_tmp56==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showCurrency" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showCurrency;?>
<?php $_tmp57=ob_get_clean();?><?php if ($_tmp57==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>


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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">كود العميل</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientcode" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientcode;?>
<?php $_tmp58=ob_get_clean();?><?php if ($_tmp58==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientcode" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientcode;?>
<?php $_tmp59=ob_get_clean();?><?php if ($_tmp59==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>

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

                            <!--                    <div class="form-group">
                                                  <label for="email" class="col-lg-2 control-label"> اللون </label>
                                                  <div class="col-lg-offset-2 col-lg-4">
                                                    <div class="radio-inline">
                                                        <div class="white-theme" data-style="0">
                                                            <label id="white" class="dark-color">ابيض</label>
                                                        </div>

                                                    </div>
                                                  </div>
                                                </div>-->


                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اللون</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="colortype" class="colortype" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->colortype;?>
<?php $_tmp60=ob_get_clean();?><?php if ($_tmp60==0){?> checked <?php }?>>
                                            ابيض </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="colortype" class="colortype" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->colortype;?>
<?php $_tmp61=ob_get_clean();?><?php if ($_tmp61==1){?> checked <?php }?>>
                                            اسود </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="colortype" class="colortype" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->colortype;?>
<?php $_tmp62=ob_get_clean();?><?php if ($_tmp62==2){?> checked <?php }?>>
                                            سماوى </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <!--label for="email" class="col-lg-2 control-label">رقم التسلسلي للعميل</label-->
                                <label for="email" class="col-lg-2 control-label">رقم الايصال بالمخازن </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="storeserial" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->storeserial;?>
<?php $_tmp63=ob_get_clean();?><?php if ($_tmp63==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="storeserial" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->storeserial;?>
<?php $_tmp64=ob_get_clean();?><?php if ($_tmp64==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <!--==============================-->
                            <div class="form-group">
                                <label for="currancy" class="col-lg-2 control-label">اسم الوحده الاخرى </label>
                                <div class="col-lg-4">

                                    <input type="text" name="scunitname" id="scunitname" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->scunitname;?>
" />

                                </div>
                            </div>


                            <!--==============================-->
                            <div class="form-group">
                                <!--label for="email" class="col-lg-2 control-label">رقم التسلسلي للعميل</label-->
                                <label for="email" class="col-lg-2 control-label">ملئ جميع بيانات العميل </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientfieldrequired" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientfieldrequired;?>
<?php $_tmp65=ob_get_clean();?><?php if ($_tmp65==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientfieldrequired" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientfieldrequired;?>
<?php $_tmp66=ob_get_clean();?><?php if ($_tmp66==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>



                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> نوع الكشف للعميل نقدى </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="nakdyKashf" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->nakdyKashf;?>
<?php $_tmp67=ob_get_clean();?><?php if ($_tmp67==1){?> checked <?php }?>>
                                            نقدى بكشف </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="nakdyKashf" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->nakdyKashf;?>
<?php $_tmp68=ob_get_clean();?><?php if ($_tmp68==0){?> checked <?php }?>>
                                            نقدى بدون كشف </label>
                                    </div>
                                </div>
                            </div>





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

                            <div class="form-group">
                                <label for="vatValue" class="col-lg-2 control-label">نسبة القيمة المضافة</label>
                                <div class="col-lg-4">
                                    <input type="text" name="vatValue" id="vatValue" class="form-control positivefloat"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->vatValue;?>
" />
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار زر مزامنة قاعدة البيانات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="syncstructure" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->syncstructure;?>
<?php $_tmp69=ob_get_clean();?><?php if ($_tmp69==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="syncstructure" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->syncstructure;?>
<?php $_tmp70=ob_get_clean();?><?php if ($_tmp70==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>


                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">عدد الساعات المضافة للتقارير</label>
                                <div class="col-lg-4">
                                    <input type="text" name="reportsPlusHours" id="reportsPlusHours"
                                           class="form-control positiveNo"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->reportsPlusHours;?>
" />
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار المخزون فى الصفحة الرئيسية
                                </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showM5zon" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showM5zon;?>
<?php $_tmp71=ob_get_clean();?><?php if ($_tmp71==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showM5zon" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showM5zon;?>
<?php $_tmp72=ob_get_clean();?><?php if ($_tmp72==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <!--==============================-->
                            <div class="form-group">
                                <label for="sumSameProductForStore" class="col-lg-2 control-label">تجميع المنتجات
                                    المتشابه مع
                                    بعضها للمخازن</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sumSameProductForStore" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sumSameProductForStore;?>
<?php $_tmp73=ob_get_clean();?><?php if ($_tmp73==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sumSameProductForStore" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sumSameProductForStore;?>
<?php $_tmp74=ob_get_clean();?><?php if ($_tmp74==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <!--end new fatma==============================-->

                            <div class="form-group">
                                <label for="clientDefaultDebtLimit" class="col-lg-2 control-label">قيمة حد الدين
                                    الافتراضى
                                    للعميل</label>
                                <div class="col-lg-4">
                                    <input type="text" name="clientDefaultDebtLimit" id="clientDefaultDebtLimit"
                                           class="form-control positivefloat" placeholder=""
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientDefaultDebtLimit;?>
" />
                                </div>
                                <div class="col-lg-6">
                                    <label class="control-label">
                                        <button id="affectAllClientDebtLimit" type="button"
                                                class="btn btn-primary pull-left">
                                            تنفيذ قيمة حد الدين الافتراضى على جميع العملاء
                                        </button>
                                        <input type="hidden" name="affectAllClientDebtLimit_h"
                                               id="affectAllClientDebtLimit_h" value="0" />
                                    </label>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="clientDefaultDebtLimitControl" class="col-lg-2 control-label">حد الدين
                                    الافتراضى
                                    للعميل</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientDefaultDebtLimitControl" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientDefaultDebtLimitControl;?>
<?php $_tmp75=ob_get_clean();?><?php if ($_tmp75==0){?> checked
                                            <?php }?>>
                                            تعطيل </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientDefaultDebtLimitControl" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientDefaultDebtLimitControl;?>
<?php $_tmp76=ob_get_clean();?><?php if ($_tmp76==1){?> checked
                                            <?php }?>>
                                            تفعيل </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">صورة البحث عن المنتج بالباركود</label>
                                <div class="col-lg-4"><img
                                        src="../views/default/images/upload/productbycodeimage/<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->productbycodeimage;?>
"
                                        alt="" width="122" height="75" />
                                    <input type="file" name="productbycodeimage" id="productbycodeimage"
                                           class="form-control" placeholder="الشعار" />
                                    <input type="hidden" name="oldproductbycodeimage" id="oldproductbycodeimage"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->productbycodeimage;?>
" />
                                </div>
                            </div>
                            <!--==============================-->

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

                            <div class="form-group">
                                <label class="col-lg-2 control-label">سعر التاثير فى القيود (تكلفة البيع و المخزون)
                                </label>
                                <div class="col-lg-offset col-lg-9">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="first" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp77=ob_get_clean();?><?php if ($_tmp77=="first"||empty($_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice)){?> checked <?php }?>>
                                            سعر الشراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="last" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp78=ob_get_clean();?><?php if ($_tmp78=="last"){?> checked <?php }?>>
                                            اخر سعر شراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="last_discount" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp79=ob_get_clean();?><?php if ($_tmp79=="last_discount"){?> checked
                                            <?php }?>>
                                            اخر سعر شراء بعد الخصم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="mean" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp80=ob_get_clean();?><?php if ($_tmp80=="mean"){?> checked <?php }?>>
                                            متوسط سعر الشراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="mean_discount" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp81=ob_get_clean();?><?php if ($_tmp81=="mean_discount"){?> checked
                                            <?php }?>>
                                            متوسط سعر الشراء بعد الخصم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="tax" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp82=ob_get_clean();?><?php if ($_tmp82=="tax"){?> checked <?php }?>>
                                            اخر سعر شراء شامل القيمة المضافة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="mean_tax" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp83=ob_get_clean();?><?php if ($_tmp83=="mean_tax"){?> checked
                                            <?php }?>>
                                            متوسط سعر الشراء شامل القيمة المضافة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="generalPrice" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp84=ob_get_clean();?><?php if ($_tmp84=="generalPrice"){?> checked
                                            <?php }?>>
                                            المتوسط العام </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="dailyEntryCostprice" value="realBuyPrice" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->dailyEntryCostprice;?>
<?php $_tmp85=ob_get_clean();?><?php if ($_tmp85=="realBuyPrice"){?> checked
                                            <?php }?>>
                                            سعر الشراء الحقيقى </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label class="col-lg-2 control-label">تقييم المخزون</label>
                                <div class="col-lg-offset col-lg-9">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="first" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp86=ob_get_clean();?><?php if ($_tmp86=="first"||empty($_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation)){?> checked <?php }?>>
                                            سعر الشراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="last" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp87=ob_get_clean();?><?php if ($_tmp87=="last"){?> checked <?php }?>>
                                            اخر سعر شراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="last_discount" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp88=ob_get_clean();?><?php if ($_tmp88=="last_discount"){?> checked
                                            <?php }?>>
                                            اخر سعر شراء بعد الخصم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="mean" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp89=ob_get_clean();?><?php if ($_tmp89=="mean"){?> checked <?php }?>>
                                            متوسط سعر الشراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="mean_discount" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp90=ob_get_clean();?><?php if ($_tmp90=="mean_discount"){?> checked
                                            <?php }?>>
                                            متوسط سعر الشراء بعد الخصم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="tax" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp91=ob_get_clean();?><?php if ($_tmp91=="tax"){?> checked <?php }?>>
                                            اخر سعر شراء شامل القيمة المضافة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="mean_tax" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp92=ob_get_clean();?><?php if ($_tmp92=="mean_tax"){?> checked
                                            <?php }?>>
                                            متوسط سعر الشراء شامل القيمة المضافة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="generalPrice" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp93=ob_get_clean();?><?php if ($_tmp93=="generalPrice"){?> checked
                                            <?php }?>>
                                            المتوسط العام </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Inventoryevaluation" value="realBuyPrice" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation;?>
<?php $_tmp94=ob_get_clean();?><?php if ($_tmp94=="realBuyPrice"){?> checked
                                            <?php }?>>
                                            سعر الشراء الحقيقى </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label class="col-lg-2 control-label">تقييم الارباح</label>
                                <div class="col-lg-offset col-lg-9">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="first" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp95=ob_get_clean();?><?php if ($_tmp95=="first"||empty($_smarty_tpl->tpl_vars['programsettingsdata']->value->Inventoryevaluation)){?> checked <?php }?>>
                                            سعر الشراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="last" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp96=ob_get_clean();?><?php if ($_tmp96=="last"){?> checked <?php }?>>
                                            اخر سعر شراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="last_discount" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp97=ob_get_clean();?><?php if ($_tmp97=="last_discount"){?> checked
                                            <?php }?>>
                                            اخر سعر شراء بعد الخصم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="mean" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp98=ob_get_clean();?><?php if ($_tmp98=="mean"){?> checked <?php }?>>
                                            متوسط سعر الشراء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="mean_discount" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp99=ob_get_clean();?><?php if ($_tmp99=="mean_discount"){?> checked
                                            <?php }?>>
                                            متوسط سعر الشراء بعد الخصم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="tax" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp100=ob_get_clean();?><?php if ($_tmp100=="tax"){?> checked <?php }?>>
                                            اخر سعر شراء شامل القيمة المضافة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="mean_tax" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp101=ob_get_clean();?><?php if ($_tmp101=="mean_tax"){?> checked
                                            <?php }?>>
                                            متوسط سعر الشراء شامل القيمة المضافة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="generalPrice" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp102=ob_get_clean();?><?php if ($_tmp102=="generalPrice"){?> checked
                                            <?php }?>>
                                            المتوسط العام </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="Profitevaluation" value="realBuyPrice" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->Profitevaluation;?>
<?php $_tmp103=ob_get_clean();?><?php if ($_tmp103=="realBuyPrice"){?> checked
                                            <?php }?>>
                                            سعر الشراء الحقيقى </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->



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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">الاقساط</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="premiums" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->premiums;?>
<?php $_tmp104=ob_get_clean();?><?php if ($_tmp104==0){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="premiums" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->premiums;?>
<?php $_tmp105=ob_get_clean();?><?php if ($_tmp105==1){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="operationnumEdit" class="col-lg-2 control-label">السماح بتعديل رقم ايصال
                                    التحويل</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="operationnumEdit" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->operationnumEdit;?>
<?php $_tmp106=ob_get_clean();?><?php if ($_tmp106==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="operationnumEdit" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->operationnumEdit;?>
<?php $_tmp107=ob_get_clean();?><?php if ($_tmp107==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->


                            <div class="form-group">
                                <label for="operationnumEdit" class="col-lg-2 control-label">نسبه القسط او الفايد
                                </label>
                                <div class="col-lg-offset-2 col-lg-9">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_3"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->three_months;?>
" style="width: 35px;">
                                            كل 3 شهور </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_6"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->six_months;?>
" style="width: 35px;">
                                            كل 6 شهور </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_12"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->twelve_months;?>
" style="width: 35px;">
                                            كل 12 شهر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_18"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->eighteen_months;?>
" style="width: 35px;">
                                            كل 18 شهر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_24"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->twentyfour_months;?>
" style="width: 35px;">
                                            كل 24 شهر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_30"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->thirty_months;?>
" style="width: 35px;">
                                            كل 30 شهر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_36"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sixthirty_months;?>
" style="width: 35px;">
                                            كل 36 شهر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_42"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->fortytwo_months;?>
" style="width: 35px;">
                                            كل 42 شهر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="text" name="Fayedh_48"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->fortyeight_months;?>
" style="width: 35px;">
                                            كل 48 شهر </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->

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

                            <div class="form-group">
                                <label for="earlyrepayment" class="col-lg-2 control-label"> خصم السداد المبكر</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="earlyrepayment" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->earlyrepayment;?>
<?php $_tmp108=ob_get_clean();?><?php if ($_tmp108==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="earlyrepayment" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->earlyrepayment;?>
<?php $_tmp109=ob_get_clean();?><?php if ($_tmp109==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label">السماح بالغاء مراجعة
                                    الفواتير</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="unReviewBills" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unReviewBills;?>
<?php $_tmp110=ob_get_clean();?><?php if ($_tmp110==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="unReviewBills" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unReviewBills;?>
<?php $_tmp111=ob_get_clean();?><?php if ($_tmp111==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group" id="unReviewBillsPass_div" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unReviewBills;?>
<?php $_tmp112=ob_get_clean();?><?php if ($_tmp112==1){?>style="display:none"<?php }?>>
                                <label for="unReviewBillsPass" class="col-lg-2 control-label">باسورد الغاء مراجعة
                                    الفواتير</label>
                                <div class="col-lg-4"><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unReviewBills;?>
<?php $_tmp113=ob_get_clean();?><?php if ($_tmp113!=1){?><span
                                        id="unReviewBillsPassSpary"><?php }?>
                                        <input name="unReviewBillsPass" id="unReviewBillsPass" type="password"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unReviewBillsPass;?>
" class="form-control" />
                                        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unReviewBills;?>
<?php $_tmp114=ob_get_clean();?><?php if ($_tmp114!=1){?><span
                                            class="textfieldRequiredMsg">***.</span></span><?php }?></div>
                            </div>

                            <!--==============================-->
                            <div class="form-group">
                                <label for="billReviewNote" class="col-lg-2 control-label">ملحوظة مراجعة
                                    الفواتير</label>
                                <div class="col-lg-4">
                                    <input type="text" name="billReviewNote" id="billReviewNote" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->billReviewNote;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <!--==============================-->

                            <div class="form-group">
                                <label for="printSand" class="col-lg-2 control-label">نماذج طباعه سداد دين</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="printSand" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->printSand;?>
<?php $_tmp115=ob_get_clean();?><?php if ($_tmp115==0){?> checked <?php }?>>
                                            نموذج 1 </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="printSand" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->printSand;?>
<?php $_tmp116=ob_get_clean();?><?php if ($_tmp116==1){?> checked <?php }?>>
                                            نموذج 2 </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="printSand" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->printSand;?>
<?php $_tmp117=ob_get_clean();?><?php if ($_tmp117==2){?> checked <?php }?>>
                                            نموذج 3 </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label">قيود اليومية</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="makeDailyEntry" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->makeDailyEntry;?>
<?php $_tmp118=ob_get_clean();?><?php if ($_tmp118==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="makeDailyEntry" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->makeDailyEntry;?>
<?php $_tmp119=ob_get_clean();?><?php if ($_tmp119==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label">نظام الصايه </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="maintenance" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->maintenance;?>
<?php $_tmp120=ob_get_clean();?><?php if ($_tmp120==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="maintenance" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->maintenance;?>
<?php $_tmp121=ob_get_clean();?><?php if ($_tmp121==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label">المورد عميل ايضا</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="suppIsClientToo" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->suppIsClientToo;?>
<?php $_tmp122=ob_get_clean();?><?php if ($_tmp122==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="suppIsClientToo" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->suppIsClientToo;?>
<?php $_tmp123=ob_get_clean();?><?php if ($_tmp123==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label">سعر القطعه فى تقرير مبيعات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="unitPriceAtsalesreport" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unitPriceAtsalesreport;?>
<?php $_tmp124=ob_get_clean();?><?php if ($_tmp124==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="unitPriceAtsalesreport" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unitPriceAtsalesreport;?>
<?php $_tmp125=ob_get_clean();?><?php if ($_tmp125==1){?> checked <?php }?>>
                                            جمله </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="unitPriceAtsalesreport" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unitPriceAtsalesreport;?>
<?php $_tmp126=ob_get_clean();?><?php if ($_tmp126==2){?> checked <?php }?>>
                                            نص جمله </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="unitPriceAtsalesreport" value="3" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->unitPriceAtsalesreport;?>
<?php $_tmp127=ob_get_clean();?><?php if ($_tmp127==3){?> checked <?php }?>>
                                            قطاعى </label>
                                    </div>

                                </div>
                            </div>

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

                        </div>

                        <div class="tab-pane" id="print"><!-- start the 3rd tab -->

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">طباعة المخزن</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="saveprinting" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->saveprinting;?>
<?php $_tmp128=ob_get_clean();?><?php if ($_tmp128==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="saveprinting" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->saveprinting;?>
<?php $_tmp129=ob_get_clean();?><?php if ($_tmp129==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">طباعة الدين</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="deptprinting" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->deptprinting;?>
<?php $_tmp130=ob_get_clean();?><?php if ($_tmp130==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="deptprinting" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->deptprinting;?>
<?php $_tmp131=ob_get_clean();?><?php if ($_tmp131==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> طباعة فاتورة المشتريات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <!--                        <div class="radio-inline">
                                                              <label>
                                                                  <input type="radio" name="printingpapersize"  value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->printingpapersize;?>
<?php $_tmp132=ob_get_clean();?><?php if ($_tmp132==1){?>  checked <?php }?>>
                                                                 A5 </label>

                                                            </div>-->

                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="printingpapersize" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->printingpapersize;?>
<?php $_tmp133=ob_get_clean();?><?php if ($_tmp133==1){?> checked <?php }?>>
                                            <!--A5-->
                                            A4/A5
                                        </label>
                                        </div->

                                        <div class="radio-inline">
                                            <label>


                                                <input type="radio" name="printingpapersize" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->printingpapersize;?>
<?php $_tmp134=ob_get_clean();?><?php if ($_tmp134==0){?> checked <?php }?>>
                                                <!--A4  -->
                                                ريسيت
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> اظهار الكمية / الباركود فى الطباعة
                                </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="print_amount" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->print_amount;?>
<?php $_tmp135=ob_get_clean();?><?php if ($_tmp135==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="print_amount" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->print_amount;?>
<?php $_tmp136=ob_get_clean();?><?php if ($_tmp136==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

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

                        </div>

                        <div class="tab-pane" id="bill"><!-- start the 4rd tab -->

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار اجمالى تحصيلات العميل فى ايصال التحصيل </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="closingcustomeraccount" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->closingcustomeraccount;?>
<?php $_tmp137=ob_get_clean();?><?php if ($_tmp137==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="closingcustomeraccount" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->closingcustomeraccount;?>
<?php $_tmp138=ob_get_clean();?><?php if ($_tmp138==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">الفاتوره متسطره </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="rulers" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->rulers;?>
<?php $_tmp139=ob_get_clean();?><?php if ($_tmp139==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="rulers" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->rulers;?>
<?php $_tmp140=ob_get_clean();?><?php if ($_tmp140==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <!--label for="email" class="col-lg-2 control-label">رقم التسلسلي للعميل</label-->
                                <label for="email" class="col-lg-2 control-label">رقم التسلسلى داخل الفاتورة </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientserial" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientserial;?>
<?php $_tmp141=ob_get_clean();?><?php if ($_tmp141==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientserial" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientserial;?>
<?php $_tmp142=ob_get_clean();?><?php if ($_tmp142==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <!--label for="email" class="col-lg-2 control-label">رقم التسلسلي للعميل</label-->
                                <label for="email" class="col-lg-2 control-label">نسبة الخصم فى الطباعه </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ratioshow" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->ratioshow;?>
<?php $_tmp143=ob_get_clean();?><?php if ($_tmp143==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ratioshow" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->ratioshow;?>
<?php $_tmp144=ob_get_clean();?><?php if ($_tmp144==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <!--label for="email" class="col-lg-2 control-label">رقم التسلسلي للعميل</label-->
                                <label for="email" class="col-lg-2 control-label">اظهار باركودالمنتجات فى
                                    فاتورةالمبيعات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showparcode" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showparcode;?>
<?php $_tmp145=ob_get_clean();?><?php if ($_tmp145==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showparcode" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showparcode;?>
<?php $_tmp146=ob_get_clean();?><?php if ($_tmp146==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="sellorder" class="col-lg-2 control-label">امر بيع </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sellorder" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sellorder;?>
<?php $_tmp147=ob_get_clean();?><?php if ($_tmp147==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sellorder" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sellorder;?>
<?php $_tmp148=ob_get_clean();?><?php if ($_tmp148==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> اظهار رقم الفاتورة فى العرض
                                    والتقارير </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="billid" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->billid;?>
<?php $_tmp149=ob_get_clean();?><?php if ($_tmp149==0){?>
                                            checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="billid" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->billid;?>
<?php $_tmp150=ob_get_clean();?><?php if ($_tmp150==1){?>
                                            checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="valueadded" class="col-lg-2 control-label">اسعار المنتجات شاملة القيمة
                                    المضافه</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="valueadded" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->valueadded;?>
<?php $_tmp151=ob_get_clean();?><?php if ($_tmp151==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="valueadded" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->valueadded;?>
<?php $_tmp152=ob_get_clean();?><?php if ($_tmp152==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="valueadded" class="col-lg-2 control-label">اسعار المنتجات شاملة القيمة
                                    المضافه لفواتير الشراء</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="valueaddedbuy" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->valueaddedbuy;?>
<?php $_tmp153=ob_get_clean();?><?php if ($_tmp153==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="valueaddedbuy" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->valueaddedbuy;?>
<?php $_tmp154=ob_get_clean();?><?php if ($_tmp154==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="valueadded" class="col-lg-2 control-label">حساب القيمه المضافه مع الخصم
                                </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="valueaddeddiscount" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->valueaddeddiscount;?>
<?php $_tmp155=ob_get_clean();?><?php if ($_tmp155==1){?> checked <?php }?>>
                                            قبل الخصم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="valueaddeddiscount" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->valueaddeddiscount;?>
<?php $_tmp156=ob_get_clean();?><?php if ($_tmp156==0){?> checked <?php }?>>
                                            بعد الخصم </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> المبيعات والمردودات فى تقرير ربحية
                                    فواتير </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sells_return" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sells_return;?>
<?php $_tmp157=ob_get_clean();?><?php if ($_tmp157==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sells_return" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sells_return;?>
<?php $_tmp158=ob_get_clean();?><?php if ($_tmp158==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="productDays" class="col-lg-2 control-label">مسمي التعليق على العميل فى
                                    الفاتوره</label>
                                <div class="col-lg-4">
                                    <input type="text" name="commentClient" id="commentClient" class="form-control"
                                           placeholder="" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->commentClient;?>
" />
                                    <span class="textfieldRequiredMsg">***.</span></span>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> شحن / توصيل </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="delivery" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->delivery;?>
<?php $_tmp159=ob_get_clean();?><?php if ($_tmp159==0){?> checked <?php }?>>
                                            شحن </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="delivery" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->delivery;?>
<?php $_tmp160=ob_get_clean();?><?php if ($_tmp160==1){?> checked <?php }?>>
                                            توصيل </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">header نموذج طباعه 9</label>
                                <div class="col-lg-4"><img
                                        src="../views/default/images/upload/<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->headerPrint;?>
" alt=""
                                        width="122" height="75" />
                                    <input type="file" name="headerPrint" id="headerPrint" class="form-control"
                                           placeholder="header نموذج طباعه 9" />
                                    <input type="hidden" name="headerPrint" id="headerPrint"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->headerPrint;?>
" />
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="imgprinthide" class="col-lg-2 control-label"> header نموذج طباعه 9 </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="imgprinthide" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->imgprinthide;?>
<?php $_tmp161=ob_get_clean();?><?php if ($_tmp161==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="imgprinthide" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->imgprinthide;?>
<?php $_tmp162=ob_get_clean();?><?php if ($_tmp162==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">لوجو الايصالات</label>
                                <div class="col-lg-4"><img
                                        src="../views/default/images/upload/<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->headerPrintSand;?>
"
                                        alt="" width="122" height="75" />
                                    <input type="file" name="headerPrintSand" id="headerPrintSand" class="form-control"
                                           placeholder="لوجو الايصالات" />
                                    <input type="hidden" name="headerPrintSand" id="headerPrintSand"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->headerPrintSand;?>
" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> فواتير سيارات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="isCarBill" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->isCarBill;?>
<?php $_tmp163=ob_get_clean();?><?php if ($_tmp163==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="isCarBill" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->isCarBill;?>
<?php $_tmp164=ob_get_clean();?><?php if ($_tmp164==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> تعديل سعر شراء المنتج عند الشراء
                                </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="updateproductprice" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->updateproductprice;?>
<?php $_tmp165=ob_get_clean();?><?php if ($_tmp165==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="updateproductprice" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->updateproductprice;?>
<?php $_tmp166=ob_get_clean();?><?php if ($_tmp166==1){?> checked <?php }?> >
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">تعديل اسعار البيع مع سعر الشراء فى فاتورة الشراء
                                </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeBuyPriceChangeSellInBuyBillCtrl"
                                                   id="changeBuyPriceChangeSellInBuyBillCtrl0" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeBuyPriceChangeSellInBuyBillCtrl;?>
<?php $_tmp167=ob_get_clean();?><?php if ($_tmp167==0){?>
                                            checked <?php }?>>
                                            لا </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeBuyPriceChangeSellInBuyBillCtrl"
                                                   id="changeBuyPriceChangeSellInBuyBillCtrl1" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeBuyPriceChangeSellInBuyBillCtrl;?>
<?php $_tmp168=ob_get_clean();?><?php if ($_tmp168==1){?>
                                            checked <?php }?>>
                                            تحديث بقيمة الفرق </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeBuyPriceChangeSellInBuyBillCtrl"
                                                   id="changeBuyPriceChangeSellInBuyBillCtrl2" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeBuyPriceChangeSellInBuyBillCtrl;?>
<?php $_tmp169=ob_get_clean();?><?php if ($_tmp169==2){?>
                                            checked <?php }?>>
                                            تحديث بنسبة الفرق </label>
                                    </div>

                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> بحث بنوع التحصيل و تاريخ الاستحقاق
                                </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showBillCollectionSearch" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showBillCollectionSearch;?>
<?php $_tmp170=ob_get_clean();?><?php if ($_tmp170==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showBillCollectionSearch" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showBillCollectionSearch;?>
<?php $_tmp171=ob_get_clean();?><?php if ($_tmp171==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار الاسعار السابقه للعملاء</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevPrices" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevPrices;?>
<?php $_tmp172=ob_get_clean();?><?php if ($_tmp172==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevPrices" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevPrices;?>
<?php $_tmp173=ob_get_clean();?><?php if ($_tmp173==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار الخصومات السابقه للعملاء</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevDiscount" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevDiscount;?>
<?php $_tmp174=ob_get_clean();?><?php if ($_tmp174==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevDiscount" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevDiscount;?>
<?php $_tmp175=ob_get_clean();?><?php if ($_tmp175==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار الاسعار السابقه للعملاء -
                                    مردود</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevPricesRet" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevPricesRet;?>
<?php $_tmp176=ob_get_clean();?><?php if ($_tmp176==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevPricesRet" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevPricesRet;?>
<?php $_tmp177=ob_get_clean();?><?php if ($_tmp177==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار الخصومات السابقه للعملاء -
                                    مردود</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevDiscountRet" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevDiscountRet;?>
<?php $_tmp178=ob_get_clean();?><?php if ($_tmp178==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showPrevDiscountRet" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPrevDiscountRet;?>
<?php $_tmp179=ob_get_clean();?><?php if ($_tmp179==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اظهار سعر الشراء فى القائمة المنسدلة
                                    للمنتجات </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showBuyPriceAtProductddl" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showBuyPriceAtProductddl;?>
<?php $_tmp180=ob_get_clean();?><?php if ($_tmp180==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showBuyPriceAtProductddl" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showBuyPriceAtProductddl;?>
<?php $_tmp181=ob_get_clean();?><?php if ($_tmp181==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">اضافة عميل مبسط </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="simpleAddClientInBill" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->simpleAddClientInBill;?>
<?php $_tmp182=ob_get_clean();?><?php if ($_tmp182==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="simpleAddClientInBill" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->simpleAddClientInBill;?>
<?php $_tmp183=ob_get_clean();?><?php if ($_tmp183==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">بحث بالباركود </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="searchBarcodeInBill" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->searchBarcodeInBill;?>
<?php $_tmp184=ob_get_clean();?><?php if ($_tmp184==0){?> checked <?php }?>>
                                            العادى اولا </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="searchBarcodeInBill" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->searchBarcodeInBill;?>
<?php $_tmp185=ob_get_clean();?><?php if ($_tmp185==1){?> checked <?php }?>>
                                            مقاسات والوان اولا</label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">الفاتورة ترسل للمطعم </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sendBillToRestaurant" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sendBillToRestaurant;?>
<?php $_tmp186=ob_get_clean();?><?php if ($_tmp186==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sendBillToRestaurant" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sendBillToRestaurant;?>
<?php $_tmp187=ob_get_clean();?><?php if ($_tmp187==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">حساب سعر المنتج مع وحدات القياس </label>
                                <div class="col-lg-offset-2 col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="defaultUnitPriceAtBill" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->defaultUnitPriceAtBill;?>
<?php $_tmp188=ob_get_clean();?><?php if ($_tmp188==0){?> checked <?php }?>>
                                            الوحدة الاساسية مضروبة فى عدد الوحدات </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="defaultUnitPriceAtBill" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->defaultUnitPriceAtBill;?>
<?php $_tmp189=ob_get_clean();?><?php if ($_tmp189==1){?> checked <?php }?>>
                                            سعر وحدة القياس المختارة </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">استخدام سعر اللستة </label>
                                <div class="col-lg-offset-2 col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="useListPrice" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->useListPrice;?>
<?php $_tmp190=ob_get_clean();?><?php if ($_tmp190==0){?> checked <?php }?>>
                                            لا</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="useListPrice" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->useListPrice;?>
<?php $_tmp191=ob_get_clean();?><?php if ($_tmp191==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <!-- <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">تفعيل الكسور في خانة العدد/الكمية</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="enablequantityfractions" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->enablequantityfractions;?>
<?php $_tmp192=ob_get_clean();?><?php if ($_tmp192==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="enablequantityfractions" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->enablequantityfractions;?>
<?php $_tmp193=ob_get_clean();?><?php if ($_tmp193==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div> -->
                            <!--==============================-->
                            <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">تقريب اجمالى الفاتورة
                                    لاقرب رقم صحيح</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="roundnumbersbilltotal" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->roundnumbersbilltotal;?>
<?php $_tmp194=ob_get_clean();?><?php if ($_tmp194==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="roundnumbersbilltotal" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->roundnumbersbilltotal;?>
<?php $_tmp195=ob_get_clean();?><?php if ($_tmp195==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group" id="noOfDecimalPlacesBillTotal_div" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->roundnumbersbilltotal;?>
<?php $_tmp196=ob_get_clean();?><?php if ($_tmp196!=1){?>style="display:none"<?php }?>>
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">عدد الخانات العشرية
                                    لاجمالى الفاتورة</label>
                                <div class="col-lg-4"><span id="noOfDecimalPlacesBillTotalSpray">
                                        <input name="noOfDecimalPlacesBillTotal" id="noOfDecimalPlacesBillTotal"
                                               type="text" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->noOfDecimalPlacesBillTotal;?>
"
                                               class="form-control positiveNo" />
                                        <span class="textfieldRequiredMsg">***.</span><span
                                            class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">تليفون العميل
                                    اجبارى</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientPhoneReq" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientPhoneReq;?>
<?php $_tmp197=ob_get_clean();?><?php if ($_tmp197==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="clientPhoneReq" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientPhoneReq;?>
<?php $_tmp198=ob_get_clean();?><?php if ($_tmp198==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">اضافة الخدمات الى فواتير
                                    المبيعات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="addServiceToBill" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->addServiceToBill;?>
<?php $_tmp199=ob_get_clean();?><?php if ($_tmp199==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="addServiceToBill" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->addServiceToBill;?>
<?php $_tmp200=ob_get_clean();?><?php if ($_tmp200==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">عرض الحالة في عرض فواتير
                                    المبيعات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showbillstatus" value="1" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->showbillstatus==1){?> checked <?php }?>/>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showbillstatus" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showbillstatus;?>
<?php $_tmp201=ob_get_clean();?><?php if ($_tmp201==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="noOfDecimalPlaces" class="col-lg-2 control-label">عرض تاريخ التسليم في عرض فواتير
                                    المبيعات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showbilldeliverydate" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showbilldeliverydate;?>
<?php $_tmp202=ob_get_clean();?><?php if ($_tmp202==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showbilldeliverydate" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showbilldeliverydate;?>
<?php $_tmp203=ob_get_clean();?><?php if ($_tmp203==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="optics"><!-- start the 5rd tab -->
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> اختيار العميل فى فاتورة البصاريات /
                                    كشف </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="nakdyOnly" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->nakdyOnly;?>
<?php $_tmp204=ob_get_clean();?><?php if ($_tmp204==1){?> checked <?php }?>>
                                            نقدى فقط </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="nakdyOnly" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->nakdyOnly;?>
<?php $_tmp205=ob_get_clean();?><?php if ($_tmp205==0){?> checked <?php }?>>
                                            نقدى وعملاء </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> اختيار العميل فى فاتورة البصاريات /
                                    كشف </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="nakdyOnly" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->nakdyOnly;?>
<?php $_tmp206=ob_get_clean();?><?php if ($_tmp206==1){?> checked <?php }?>>
                                            نقدى فقط </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="nakdyOnly" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->nakdyOnly;?>
<?php $_tmp207=ob_get_clean();?><?php if ($_tmp207==0){?> checked <?php }?>>
                                            نقدى وعملاء </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> الخصم فى صف منتج البصاريات </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="discount_pres_direct" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->discount_pres_direct;?>
<?php $_tmp208=ob_get_clean();?><?php if ($_tmp208==1){?> checked <?php }?>>
                                            نسبة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="discount_pres_direct" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->discount_pres_direct;?>
<?php $_tmp209=ob_get_clean();?><?php if ($_tmp209==0){?> checked <?php }?>>
                                            مباشر </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> الخصم العام بصاريات </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="general_discount" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->general_discount;?>
<?php $_tmp210=ob_get_clean();?><?php if ($_tmp210==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="general_discount" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->general_discount;?>
<?php $_tmp211=ob_get_clean();?><?php if ($_tmp211==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">بصريات</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="isOpticProg" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->isOpticProg;?>
<?php $_tmp212=ob_get_clean();?><?php if ($_tmp212==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="isOpticProg" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->isOpticProg;?>
<?php $_tmp213=ob_get_clean();?><?php if ($_tmp213==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>


                        </div>

                        <div class="tab-pane" id="restur"><!-- start the 3rd tab -->
                            <div class="form-group">
                                <label for="printfoot" class="col-lg-2 control-label">حقوق النشر</label>
                                <div class="col-lg-4">
                                    <textarea class="form-control" name="printfoot" rows="2"
                                              cols="50"><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->printfoot;?>
</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="Stores" class="col-lg-2 control-label">مخزن كافتريات - مطعم</label>
                                <div class="col-lg-4">
                                    <select class="select2" name="restaurantStoreId" id="restaurantStoreId">
                                        <option></option>
                                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allStores']->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->storeId;?>
" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->restaurantStoreId==$_smarty_tpl->tpl_vars['data']->value->storeId){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->storeName;?>

                                        </option>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="restuarantPrintTimeout" class="col-lg-2 control-label">طباعة المطبخ كل "كم
                                    ثانية"</label>
                                <div class="col-lg-4">
                                    <input type="text" name="restuarantPrintTimeout" id="restuarantPrintTimeout"
                                           class="form-control positiveNo" placeholder=""
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->restuarantPrintTimeout;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="isCafe" class="col-lg-2 control-label">البرنامج لـ</label>
                                <div class="col-lg-4">
                                    <label class="sr-only">
                                        <input type="checkbox" id="isCafe" name="isCafe" value="1" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->isCafe){?>
                                        checked="checked" <?php }?>>
                                        كافيه
                                    </label>
                                    <label class="sr-only">
                                        <input type="checkbox" id="isRestaurent" name="isRestaurent" value="1" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->isRestaurent){?> checked="checked" <?php }?>>
                                        مطعم
                                    </label>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="isCafe" class="col-lg-2 control-label"> حقل الكميه</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="quantitynew" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->quantitynew;?>
<?php $_tmp214=ob_get_clean();?><?php if ($_tmp214==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="quantitynew" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->quantitynew;?>
<?php $_tmp215=ob_get_clean();?><?php if ($_tmp215==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group">
                                <label for="numberprint" class="col-lg-2 control-label">الطباعه</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="numberprint" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->numberprint;?>
<?php $_tmp216=ob_get_clean();?><?php if ($_tmp216==0){?> checked <?php }?>>
                                            طباعه 1 </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="numberprint" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->numberprint;?>
<?php $_tmp217=ob_get_clean();?><?php if ($_tmp217==1){?> checked <?php }?>>
                                            طباعه 2 </label>
                                    </div>
                                </div>
                            </div>



                            <div class="form-group">
                                <label for="thereIsRestTax" class="col-lg-2 control-label">يوجد ضريبة "مطاعم"</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline" style="float: right;">
                                        <label>
                                            <input type="radio" name="thereIsRestTax" class="thereIsRestTax" value="1"
                                                   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->thereIsRestTax;?>
<?php $_tmp218=ob_get_clean();?><?php if ($_tmp218==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline" style="float: right;">
                                        <label>
                                            <input type="radio" name="thereIsRestTax" class="thereIsRestTax" value="0"
                                                   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->thereIsRestTax;?>
<?php $_tmp219=ob_get_clean();?><?php if ($_tmp219==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                    <div style="display: inline;" id="restTaxValDiv">
                                        <div class="col-lg-2" style="display: inline;">
                                            <span id="sprytextfield8">
                                                <input type="text" name="restTaxVal" id="restTaxVal"
                                                       class="form-control positivefloat" placeholder=""
                                                       value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->restTaxVal;?>
" />
                                                <span class="textfieldRequiredMsg">***.</span></span>
                                        </div>
                                        <div style="display: inline;">%</div>
                                    </div>
                                </div>

                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="taxNameFlag" class="col-lg-2 control-label">اسم الضريبة</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="taxNameFlag" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->taxNameFlag;?>
<?php $_tmp220=ob_get_clean();?><?php if ($_tmp220==1){?> checked <?php }?>>
                                            خدمة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="taxNameFlag" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->taxNameFlag;?>
<?php $_tmp221=ob_get_clean();?><?php if ($_tmp221==0){?> checked <?php }?>>
                                            ضريبة </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="taxNameFlag" class="col-lg-2 control-label">تعديل الخدمه </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="editservice" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->editservice;?>
<?php $_tmp222=ob_get_clean();?><?php if ($_tmp222==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="editservice" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->editservice;?>
<?php $_tmp223=ob_get_clean();?><?php if ($_tmp223==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="taxNameFlag" class="col-lg-2 control-label">اظهار السيريال</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showserial" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showserial;?>
<?php $_tmp224=ob_get_clean();?><?php if ($_tmp224==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showserial" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showserial;?>
<?php $_tmp225=ob_get_clean();?><?php if ($_tmp225==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="restPrintLang" class="col-lg-2 control-label">طباعة المطعم</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="restPrintLang" class="restPrintLang" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->restPrintLang;?>
<?php $_tmp226=ob_get_clean();?><?php if ($_tmp226==1){?> checked <?php }?>>
                                            English </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="restPrintLang" class="restPrintLang" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->restPrintLang;?>
<?php $_tmp227=ob_get_clean();?><?php if ($_tmp227==0){?> checked <?php }?>>
                                            عربى </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="restPrintLang" class="col-lg-2 control-label">فى حالة التيك اواى</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="takeAwayClient" class="takeAwayClient" value="0"
                                                   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->takeAwayClient;?>
<?php $_tmp228=ob_get_clean();?><?php if ($_tmp228==0){?> checked <?php }?>>
                                            اخفاء العميل </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="takeAwayClient" class="takeAwayClient" value="1"
                                                   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->takeAwayClient;?>
<?php $_tmp229=ob_get_clean();?><?php if ($_tmp229==1){?> checked <?php }?>>
                                            اظهار العميل </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">تطبق الخدمة على </label>
                                <div class="col-lg-4">
                                    <label class="sr-only">
                                        <input type="checkbox" id="delivery" name="delivery" value="-2" <?php if (in_array("-2",$_smarty_tpl->tpl_vars['programsettingsdata']->value->restaurantServiceOn)){?>checked<?php }?>>
                                        دليفرى
                                    </label>

                                    <label class="sr-only">
                                        <input type="checkbox" id="takeAway" name="takeAway" value="-1" <?php if (in_array("-1",$_smarty_tpl->tpl_vars['programsettingsdata']->value->restaurantServiceOn)){?>checked<?php }?>>
                                        تيك أواى
                                    </label>

                                    <label class="sr-only">
                                        <input type="checkbox" id="hall" name="hall" value="1" <?php if (in_array("1",$_smarty_tpl->tpl_vars['programsettingsdata']->value->restaurantServiceOn)){?>checked<?php }?>>
                                        صالة
                                    </label>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="ClientShowTawla" class="col-lg-2 control-label">امكانيه اختيار العميل في
                                    فاتوره طوله</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ClientShowTawla" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientShowTawla;?>
<?php $_tmp230=ob_get_clean();?><?php if ($_tmp230==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="ClientShowTawla" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientShowTawla;?>
<?php $_tmp231=ob_get_clean();?><?php if ($_tmp231==1){?> checked <?php }?>>
                                            اظهار</label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="billRest" class="col-lg-2 control-label">اختيار نوع فاتوره المطاعم</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="billRest" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->billRest;?>
<?php $_tmp232=ob_get_clean();?><?php if ($_tmp232==1){?> checked <?php }?>>
                                            فاتوره 1 </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="billRest" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->billRest;?>
<?php $_tmp233=ob_get_clean();?><?php if ($_tmp233==2){?> checked <?php }?>>
                                            فاتوره 2</label>
                                    </div>
                                </div>
                            </div>


                        </div>
                        <div class="tab-pane" id="product"><!-- start the 3rd tab -->
                            <!--==============================-->

                            <div class="form-group">
                                <label for="productDays" class="col-lg-2 control-label">عدد الايام الافتراضى للبحث فى
                                    صلاحية
                                    المنتج</label>
                                <div class="col-lg-4">
                                    <input type="text" name="productDays" id="productDays"
                                           class="form-control positiveNo" placeholder=""
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->productDays;?>
" />
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="parcodeDigits" class="col-lg-2 control-label">عدد خانات الباركود</label>
                                <div class="col-lg-4">
                                    <input type="text" name="parcodeDigits" id="parcodeDigits"
                                           class="form-control positiveNo" placeholder=""
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeDigits;?>
" />
                                </div>
                                <!--                                <div class="col-lg-6">
                                                                    <label class="control-label">
                                                                        <span style="color:red">ملحوظة :</span> فى حالة تغيير عدد خانات الباركود سوف تتغير
                                                                        الباركود القديم
                                                                    </label>
                                                                     لان لو زودنا الخانات وكنا مستخدمين باركود مكنش موجود فى الفايل ممكن يحصل تكرار للباركود وكده كده الباركود بتغير يعنى مثلا 001 غير 000001
                                                                </div>-->
                            </div>
                            <div class="form-group">
                                <label for="parcodeDigits" class="col-lg-2 control-label">عدد خانات المقاس
                                    واللون</label>
                                <div class="col-lg-4">
                                    <input type="text" name="sizecolorDigits" id="sizecolorDigits"
                                           class="form-control positiveNo" placeholder=""
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sizecolorDigits;?>
" />
                                </div>
                                <div class="col-lg-6">
                                    <label class="control-label">
                                        <span style="color:red">ملحوظة :</span> فى حالة تغيير عدد خانات الباركود سوف
                                        تتغير
                                        الباركود القديم لمنتج المقاسات و الالوان
                                    </label>
                                    <!-- لان لو زودنا الخانات وكنا مستخدمين باركود مكنش موجود فى الفايل ممكن يحصل تكرار للباركود وكده كده الباركود بتغير يعنى مثلا 001 غير 000001 -->
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="specializedParcodeDigits" class="col-lg-2 control-label">عدد خانات الباركود
                                    المتخصص</label>
                                <div class="col-lg-4">
                                    <input type="text" name="specializedParcodeDigits" id="specializedParcodeDigits"
                                           class="form-control positiveNo" placeholder=""
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->specializedParcodeDigits;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="usedParcode" class="col-lg-2 control-label">الباركود المستخدم </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="usedParcode" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->usedParcode;?>
<?php $_tmp234=ob_get_clean();?><?php if ($_tmp234==0){?> checked <?php }?>>
                                            العادى </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="usedParcode" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->usedParcode;?>
<?php $_tmp235=ob_get_clean();?><?php if ($_tmp235==1){?> checked <?php }?>>
                                            المتخصص الجديد</label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">تعديل اسعار البيع مع سعر الشراء </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeBuyPriceChangeSellInProductCtrl" value="0"
                                                   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeBuyPriceChangeSellInProductCtrl;?>
<?php $_tmp236=ob_get_clean();?><?php if ($_tmp236==0){?>
                                            checked <?php }?>>
                                            لا </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeBuyPriceChangeSellInProductCtrl" value="1"
                                                   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeBuyPriceChangeSellInProductCtrl;?>
<?php $_tmp237=ob_get_clean();?><?php if ($_tmp237==1){?>
                                            checked <?php }?>>
                                            تحديث بقيمة الفرق </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="changeBuyPriceChangeSellInProductCtrl" value="2"
                                                   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->changeBuyPriceChangeSellInProductCtrl;?>
<?php $_tmp238=ob_get_clean();?><?php if ($_tmp238==2){?>
                                            checked <?php }?>>
                                            تحديث بنسبة الفرق </label>
                                    </div>

                                </div>
                            </div>
                            <!-----------------------Eman----------------------------------->
                            <div class="form-group">
                                <label for="editAllPrice" class="col-lg-2 control-label">تعديل جميع اسعار المنتج مع
                                    تعديل سعر
                                    الجملة </label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="editAllPrice" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->editAllPrice;?>
<?php $_tmp239=ob_get_clean();?><?php if ($_tmp239==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="editAllPrice" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->editAllPrice;?>
<?php $_tmp240=ob_get_clean();?><?php if ($_tmp240==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">تعديل اسعار وحدات المنتج مع تعديل اسعاره </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="updateProUnitPricesOnPriceUpdate" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->updateProUnitPricesOnPriceUpdate;?>
<?php $_tmp241=ob_get_clean();?><?php if ($_tmp241==0){?> checked
                                            <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="updateProUnitPricesOnPriceUpdate" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->updateProUnitPricesOnPriceUpdate;?>
<?php $_tmp242=ob_get_clean();?><?php if ($_tmp242==1){?> checked
                                            <?php }?>>
                                            لا </label>
                                    </div>


                                </div>
                            </div>

                            <!--==============Show more prices for products================-->
                            <div class="form-group">
                                <label for="showpriceall" class="col-lg-2 control-label">إظهار سعر جملة</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpriceall" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpriceall;?>
<?php $_tmp243=ob_get_clean();?><?php if ($_tmp243==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpriceall" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpriceall;?>
<?php $_tmp244=ob_get_clean();?><?php if ($_tmp244==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="showpricehalf" class="col-lg-2 control-label">إظهار سعر نصف جملة</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpricehalf" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpricehalf;?>
<?php $_tmp245=ob_get_clean();?><?php if ($_tmp245==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpricehalf" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpricehalf;?>
<?php $_tmp246=ob_get_clean();?><?php if ($_tmp246==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="showpriceunit" class="col-lg-2 control-label">إظهار سعر التجزئة</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpriceunit" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpriceunit;?>
<?php $_tmp247=ob_get_clean();?><?php if ($_tmp247==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpriceunit" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpriceunit;?>
<?php $_tmp248=ob_get_clean();?><?php if ($_tmp248==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="showprice4" class="col-lg-2 control-label">إظهار سعر 4</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice4" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice4;?>
<?php $_tmp249=ob_get_clean();?><?php if ($_tmp249==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice4" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice4;?>
<?php $_tmp250=ob_get_clean();?><?php if ($_tmp250==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showprice5" class="col-lg-2 control-label">إظهار سعر 5</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice5" value="1" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice5==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice5" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice5;?>
<?php $_tmp251=ob_get_clean();?><?php if ($_tmp251==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showprice6" class="col-lg-2 control-label">إظهار سعر 6</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice6" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice6;?>
<?php $_tmp252=ob_get_clean();?><?php if ($_tmp252==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice6" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice6;?>
<?php $_tmp253=ob_get_clean();?><?php if ($_tmp253==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showprice7" class="col-lg-2 control-label">إظهار سعر 7</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice7" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice7;?>
<?php $_tmp254=ob_get_clean();?><?php if ($_tmp254==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice7" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice7;?>
<?php $_tmp255=ob_get_clean();?><?php if ($_tmp255==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showprice8" class="col-lg-2 control-label">إظهار سعر 8</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice8" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice8;?>
<?php $_tmp256=ob_get_clean();?><?php if ($_tmp256==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprice8" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprice8;?>
<?php $_tmp257=ob_get_clean();?><?php if ($_tmp257==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="addclienttoproduct" class="col-lg-2 control-label">إضافة عميل للمنتج</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <div class="radio-inline">
                                            <label>
                                                <input type="radio" name="addclienttoproduct" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->addclienttoproduct;?>
<?php $_tmp258=ob_get_clean();?><?php if ($_tmp258==0){?> checked <?php }?>>
                                                إخفاء</label>
                                        </div>
                                        <div class="radio-inline">
                                            <label>
                                                <input type="radio" name="addclienttoproduct" value="1" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->addclienttoproduct){?> eq 1} checked <?php }?>>
                                                إظهار </label>
                                        </div>

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

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> الباركود </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="parcode" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcode;?>
<?php $_tmp259=ob_get_clean();?><?php if ($_tmp259==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="parcode" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcode;?>
<?php $_tmp260=ob_get_clean();?><?php if ($_tmp260==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> وحدة القياس </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="measuringunit" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->measuringunit;?>
<?php $_tmp261=ob_get_clean();?><?php if ($_tmp261==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="measuringunit" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->measuringunit;?>
<?php $_tmp262=ob_get_clean();?><?php if ($_tmp262==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> مدة الصلاحية </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="expiredate" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->expiredate;?>
<?php $_tmp263=ob_get_clean();?><?php if ($_tmp263==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="expiredate" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->expiredate;?>
<?php $_tmp264=ob_get_clean();?><?php if ($_tmp264==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> التصنيع </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="production" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->production;?>
<?php $_tmp265=ob_get_clean();?><?php if ($_tmp265==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="production" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->production;?>
<?php $_tmp266=ob_get_clean();?><?php if ($_tmp266==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> الوصف </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="description" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->description;?>
<?php $_tmp267=ob_get_clean();?><?php if ($_tmp267==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="description" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->description;?>
<?php $_tmp268=ob_get_clean();?><?php if ($_tmp268==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> الخدمة </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="service" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->service;?>
<?php $_tmp269=ob_get_clean();?><?php if ($_tmp269==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="service" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->service;?>
<?php $_tmp270=ob_get_clean();?><?php if ($_tmp270==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> التاريخ </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="date" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->date;?>
<?php $_tmp271=ob_get_clean();?><?php if ($_tmp271==0){?>
                                            checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="date" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->date;?>
<?php $_tmp272=ob_get_clean();?><?php if ($_tmp272==1){?>
                                            checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> الحد الادنى للمنتج </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="limitamount" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->limitamount;?>
<?php $_tmp273=ob_get_clean();?><?php if ($_tmp273==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="limitamount" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->limitamount;?>
<?php $_tmp274=ob_get_clean();?><?php if ($_tmp274==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> اظهار نسب المنتجات</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="precentages" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->precentages;?>
<?php $_tmp275=ob_get_clean();?><?php if ($_tmp275==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="precentages" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->precentages;?>
<?php $_tmp276=ob_get_clean();?><?php if ($_tmp276==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> اظهار سعر الشراء الفعلى</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="realprice" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->realprice;?>
<?php $_tmp277=ob_get_clean();?><?php if ($_tmp277==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="realprice" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->realprice;?>
<?php $_tmp278=ob_get_clean();?><?php if ($_tmp278==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!---------------------------------------------------------------------------------------------->
                            <div class="form-group">
                                <label for="shownameE" class="col-lg-2 control-label">E الإسم	</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="shownameE" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->shownameE;?>
<?php $_tmp279=ob_get_clean();?><?php if ($_tmp279==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="shownameE" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->shownameE;?>
<?php $_tmp280=ob_get_clean();?><?php if ($_tmp280==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showprocode" class="col-lg-2 control-label">كود</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprocode" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprocode;?>
<?php $_tmp281=ob_get_clean();?><?php if ($_tmp281==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showprocode" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showprocode;?>
<?php $_tmp282=ob_get_clean();?><?php if ($_tmp282==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showpartnumber" class="col-lg-2 control-label">رقم القطعة</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpartnumber" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpartnumber;?>
<?php $_tmp283=ob_get_clean();?><?php if ($_tmp283==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showpartnumber" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showpartnumber;?>
<?php $_tmp284=ob_get_clean();?><?php if ($_tmp284==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showtype" class="col-lg-2 control-label">النوع</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showtype" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showtype;?>
<?php $_tmp285=ob_get_clean();?><?php if ($_tmp285==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showtype" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showtype;?>
<?php $_tmp286=ob_get_clean();?><?php if ($_tmp286==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showcompany" class="col-lg-2 control-label">الشركه المنتجه للصنف </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showcompany" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showcompany;?>
<?php $_tmp287=ob_get_clean();?><?php if ($_tmp287==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showcompany" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showcompany;?>
<?php $_tmp288=ob_get_clean();?><?php if ($_tmp288==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showweight" class="col-lg-2 control-label">وزن</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showweight" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showweight;?>
<?php $_tmp289=ob_get_clean();?><?php if ($_tmp289==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showweight" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showweight;?>
<?php $_tmp290=ob_get_clean();?><?php if ($_tmp290==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showorigin" class="col-lg-2 control-label">منشأ</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showorigin" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showorigin;?>
<?php $_tmp291=ob_get_clean();?><?php if ($_tmp291==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showorigin" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showorigin;?>
<?php $_tmp292=ob_get_clean();?><?php if ($_tmp292==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showhscode" class="col-lg-2 control-label">رمز النظام المنسق</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showhscode" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showhscode;?>
<?php $_tmp293=ob_get_clean();?><?php if ($_tmp293==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showhscode" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showhscode;?>
<?php $_tmp294=ob_get_clean();?><?php if ($_tmp294==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showexpire" class="col-lg-2 control-label">صلاحيه</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showexpire" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showexpire;?>
<?php $_tmp295=ob_get_clean();?><?php if ($_tmp295==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showexpire" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showexpire;?>
<?php $_tmp296=ob_get_clean();?><?php if ($_tmp296==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showgrantduration" class="col-lg-2 control-label">مدة الضمان</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showgrantduration" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showgrantduration;?>
<?php $_tmp297=ob_get_clean();?><?php if ($_tmp297==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showgrantduration" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showgrantduration;?>
<?php $_tmp298=ob_get_clean();?><?php if ($_tmp298==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showonline" class="col-lg-2 control-label">اونلاين</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showonline" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showonline;?>
<?php $_tmp299=ob_get_clean();?><?php if ($_tmp299==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showonline" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showonline;?>
<?php $_tmp300=ob_get_clean();?><?php if ($_tmp300==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showminappear" class="col-lg-2 control-label">الحد الأدنى للظهور اونلاين</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showminappear" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showminappear;?>
<?php $_tmp301=ob_get_clean();?><?php if ($_tmp301==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showminappear" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showminappear;?>
<?php $_tmp302=ob_get_clean();?><?php if ($_tmp302==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showonlinecat" class="col-lg-2 control-label">تصنيف اونلاين</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showonlinecat" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showonlinecat;?>
<?php $_tmp303=ob_get_clean();?><?php if ($_tmp303==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showonlinecat" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showonlinecat;?>
<?php $_tmp304=ob_get_clean();?><?php if ($_tmp304==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showsellpercentage" class="col-lg-2 control-label">نسبة البيع</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showsellpercentage" class="sellPercentage" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showsellpercentage;?>
<?php $_tmp305=ob_get_clean();?><?php if ($_tmp305==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showsellpercentage" class="sellPercentage" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showsellpercentage;?>
<?php $_tmp306=ob_get_clean();?><?php if ($_tmp306==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showbuydiscount" class="col-lg-2 control-label">نسبة خصم الشراء</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showbuydiscount" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showbuydiscount;?>
<?php $_tmp307=ob_get_clean();?><?php if ($_tmp307==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showbuydiscount" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showbuydiscount;?>
<?php $_tmp308=ob_get_clean();?><?php if ($_tmp308==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="showsearchfilter" class="col-lg-2 control-label">فلاتر البحث</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showsearchfilter" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showsearchfilter;?>
<?php $_tmp309=ob_get_clean();?><?php if ($_tmp309==1){?> checked <?php }?>>
                                            إظهار </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showsearchfilter" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showsearchfilter;?>
<?php $_tmp310=ob_get_clean();?><?php if ($_tmp310==0){?> checked <?php }?>>
                                            إخفاء</label>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-2 control-label"> المنتجات الاستيراد</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="importproduct" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->importproduct;?>
<?php $_tmp311=ob_get_clean();?><?php if ($_tmp311==0){?> checked <?php }?>>
                                            اخفاء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="importproduct" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->importproduct;?>
<?php $_tmp312=ob_get_clean();?><?php if ($_tmp312==1){?> checked <?php }?>>
                                            اظهار </label>
                                    </div>
                                </div>
                            </div>



                        </div>


                        <div class="tab-pane" id="store"><!-- start the 3rd tab -->
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-3 control-label">عرض تفاصيل مخزن الى فى التحويل بين المخازن
                                </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showStoreToDetail" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showStoreToDetail;?>
<?php $_tmp313=ob_get_clean();?><?php if ($_tmp313==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showStoreToDetail" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showStoreToDetail;?>
<?php $_tmp314=ob_get_clean();?><?php if ($_tmp314==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>


                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="unReviewBills" class="col-lg-3 control-label">التحويل بين المخازن</label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="storeRecieveType" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->storeRecieveType;?>
<?php $_tmp315=ob_get_clean();?><?php if ($_tmp315==0){?> checked <?php }?>>
                                            مباشر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="storeRecieveType" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->storeRecieveType;?>
<?php $_tmp316=ob_get_clean();?><?php if ($_tmp316==1){?> checked <?php }?>>
                                            عن طريق مخزن وسيط </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->

                            <div class="form-group">
                                <label for="Stores" class="col-lg-2 control-label">مخزن تحت التجهيز (خاص بـ اوامر البيع) </label>
                                <div class="col-lg-4">
                                    <select class="select2" name="preparingStore" id="preparingStore">
                                        <option></option>
                                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allStores']->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->storeId;?>
" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->preparingStore==$_smarty_tpl->tpl_vars['data']->value->storeId){?>selected="selected"<?php }elseif($_smarty_tpl->tpl_vars['data']->value->storeId==1){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->storeName;?>

                                        </option>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="tab-pane" id="parcodePrint"><!-- start the 3rd tab -->

                            <div class="form-group">
                                <label class="col-lg-2 control-label">نوع الباركود</label>
                                <div class="col-lg-4">
                                    <select class="select2" name="parcodeprinttype" id="parcodeType">
                                        <option value="I25" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprinttype=="I25"){?>selected="selected"<?php }?>>I25
                                        <option value="C39" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprinttype=="C39"){?>selected="selected"<?php }?>>C39
                                        <option value="C128A" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprinttype=="C128A"||empty($_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprinttype)){?>selected="selected"<?php }?>>C128A
                                        <option value="C128B" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprinttype=="C128B"){?>selected="selected"<?php }?>>C128B
                                        <option value="C128C" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprinttype=="C128C"){?>selected="selected"<?php }?>>C128C
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="parcodewidth" class="col-lg-2 control-label">عرض طباعة الباركود</label>
                                <div class="col-lg-4">
                                    <input type="text" name="parcodeprintwidth" id="parcodeprintwidth"
                                           class="form-control positiveNo"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprintwidth;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="parcodewidth" class="col-lg-2 control-label">حجم الخط</label>
                                <div class="col-lg-4">
                                    <input type="text" name="parcodeprinttextsize" id="parcodeprinttextsize"
                                           class="form-control positiveNo"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprinttextsize;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label for="parcodewidth" class="col-lg-2 control-label">العملة</label>
                                <div class="col-lg-4">
                                    <input type="text" name="parcodeprintCurr" id="parcodeprintCurr"
                                           class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcodeprintCurr;?>
" />
                                </div>
                            </div>
                            <!--==============================-->


                        </div>
                        <div class="tab-pane" id="objyRoyal"><!-- start the 3rd tab -->

                            <div class="form-group">
                                <label class="col-lg-2 control-label">مجموعات مستخدمين الصيدلية</label>
                                <div class="col-lg-4">
                                    <select multiple name="obgyPharmacyGroups[]" id="obgyPharmacyGroups"
                                            class="select2 wdt100">
                                        <?php  $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['userGroups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value){
$_smarty_tpl->tpl_vars['group']->_loop = true;
?>
                                        <option value="<?php echo $_smarty_tpl->tpl_vars['group']->value->usergroupid;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['group']->value->usergroupid,$_smarty_tpl->tpl_vars['programsettingsdata']->value->obgyPharmacyGroups)){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['group']->value->usergroupname;?>

                                        </option>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">البحث بنوع عملية الفاتورة فى تقرير الفواتير
                                </label>
                                <div class="col-lg-6">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showBillOperationSearch" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showBillOperationSearch;?>
<?php $_tmp317=ob_get_clean();?><?php if ($_tmp317==1){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="showBillOperationSearch" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showBillOperationSearch;?>
<?php $_tmp318=ob_get_clean();?><?php if ($_tmp318==0){?> checked <?php }?>>
                                            لا </label>
                                    </div>


                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">اسم الفولدر</label>
                                <div class="col-lg-4">
                                    <input type="text" name="obygyFolder" id="obygyFolder" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->obygyFolder;?>
" />
                                </div>
                            </div>
                            <!--==============================-->

                        </div>

                        <?php if ($_smarty_tpl->tpl_vars['userID']->value==-1){?>
                        <div class="tab-pane" id="EBill"><!-- start the 3rd tab -->
                            <!--  <div class="form-group">
                                 <label class="col-lg-2 control-label">وحدة القياس الضريبية</label>
                                 <div class="col-lg-4">
                                     <input type="hidden" name="eunitInTax" id="unitInTax" >
                                     <input type="hidden" id="eunitInTaxval"  value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->eunitInTax;?>
">
                                 </div>
                             </div>
                            -->

                            <!--==============================-->
                            <div class="well well-sm modfywall">
                                <div class="form-group ">
                                    <label class="col-lg-3 control-label">معلومات</label>
                                </div>
                            </div>
                            <!--==============================-->


                            <div class="form-group">
                                <label class="col-lg-2 control-label"> اسم الشركة مثل البطاقة الضريبية</label>
                                <div class="col-lg-4">
                                    <input type="text" name="eCompanyNameInTaxCard" id="eCompanyNameInTaxCard"
                                           class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eCompanyNameInTaxCard;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">الرقم الضريبى</label>
                                <div class="col-lg-4">
                                    <input type="text" name="eTaxNum" id="eTaxNum" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eTaxNum;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">نوع الفاتوره </label>
                                <div class="col-lg-4">
                                    <select class="select2" name="typebill" id="typebill">
                                        <option></option>
                                        <option value="P" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->typebill=="P"){?>selected="selected"<?php }?>>فردى (P)</option>
                                        <option value="B" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->typebill=="B"){?>selected="selected"<?php }?>>أعمال (B)</option>
                                        <option value="F" <?php if ($_smarty_tpl->tpl_vars['programsettingsdata']->value->typebill=="F"){?>selected="selected"<?php }?>>أجنبى (F)</option>
                                    </select>
                                </div>
                            </div>
                            <!--      <div class="form-group">
                                    <label class="col-lg-2 control-label">النوع  الضرائب</label>
                                    <div class="col-lg-4">
                                        <input type="hidden" name="eTaxType" id="eTaxType">
                                        <input type="hidden" id="oldeTaxType" value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eTaxType;?>
">
                                    </div>
                                </div> -->
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">رقم نوع النشاط فى الضرائب</label>
                                <div class="col-lg-4">
                                    <input type="hidden" name="eTaxTypeNum" id="eTaxTypeNum">
                                    <input type="hidden" id="oldETaxTypeNum" value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eTaxTypeNum;?>
">
                                </div>
                            </div>
                            <!--==============================-->





                            <!--==============================-->
                            <div class="well well-sm modfywall">
                                <div class="form-group ">
                                    <label class="col-lg-3 control-label">تفاصيل العنوان</label>
                                </div>
                            </div>
                            <!--==============================-->




                            <div class="form-group">
                                <label class="col-lg-2 control-label"> رقم الفرع فى الضرائب</label>
                                <div class="col-lg-4">
                                    <input type="text" name="eTaxNumBranch" id="eTaxNumBranch" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eTaxNumBranch;?>
" />
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> المحافظة</label>
                                <div class="col-lg-4">
                                    <input type="text" name="eGovernorate" id="eGovernorate" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eGovernorate;?>
" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> المنطقة / المدينة</label>
                                <div class="col-lg-4">
                                    <input type="text" name="eCity" id="eCity" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eCity;?>
" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> الشارع</label>
                                <div class="col-lg-4">
                                    <input type="text" name="eStreet" id="eStreet" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eStreet;?>
" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> رقم المبنى</label>
                                <div class="col-lg-4">
                                    <input type="text" name="eBuildingNum" id="eBuildingNum" class="form-control"
                                           value="<?php echo $_smarty_tpl->tpl_vars['eBillSetting']->value->eBuildingNum;?>
" />
                                </div>
                            </div>
                            <!--==============================-->




                        </div>
                        <?php }?>
                        <div class="tab-pane " id="transfersell">
                            <div class="form-group">
                                <label for="databasefrom" class="col-lg-2 control-label">تاريخ اخر فاتوره </label>
                                <div class="col-lg-4">
                                    <?php echo $_smarty_tpl->tpl_vars['transfersell']->value->transfertoday;?>

                                </div>
                            </div>
                            <div class="form-group">
                                <label for="databasefrom" class="col-lg-2 control-label">من قاعدة البيانات </label>
                                <div class="col-lg-4">
                                    <input type="text" name="databasefrom" id="databasefrom" class="form-control"
                                           placeholder="" value="<?php echo $_smarty_tpl->tpl_vars['transfersell']->value->databasefrom;?>
" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="faxnumber" class="col-lg-2 control-label"> الى قاعدة البيانات </label>
                                <div class="col-lg-4">
                                    <input type="text" name="databaseto" id="databaseto" class="form-control"
                                           placeholder="" value="<?php echo $_smarty_tpl->tpl_vars['transfersell']->value->databaseto;?>
" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="faxnumber" class="col-lg-2 control-label"> القيمة </label>
                                <div class="col-lg-4">
                                    <input type="text" name="transfervalue" id="transfervalue"
                                           class="form-control positivefloat" value="<?php echo $_smarty_tpl->tpl_vars['transfersell']->value->transfervalue;?>
" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="faxnumber" class="col-lg-2 control-label"> التاريخ</label>
                                <div class="col-lg-4">
                                    <input type="text" class="form-control awdatepicker" autocomplete="off"
                                           data-date-format="yyyy-mm-dd" id="transferdate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
">
                                </div>
                            </div>
                            <button type="button" id="transfersellbtn" class="btn btn-primary">حفظ النقل</button>
                        </div>



                        <div class="tab-pane " id="specialProjects">
                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label">التطوير العقاري</label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="realestatedev" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->realestatedev;?>
<?php $_tmp319=ob_get_clean();?><?php if ($_tmp319==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="realestatedev" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->realestatedev;?>
<?php $_tmp320=ob_get_clean();?><?php if ($_tmp320==1){?> checked <?php }?>>
                                            لا </label>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group">
                                <label for="email" class="col-lg-2 control-label"> انشاء المشروعات الخيريه </label>
                                <div class="col-lg-offset-2 col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="projectshownew" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->projectshownew;?>
<?php $_tmp321=ob_get_clean();?><?php if ($_tmp321==0){?> checked <?php }?>>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="projectshownew" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->projectshownew;?>
<?php $_tmp322=ob_get_clean();?><?php if ($_tmp322==1){?> checked <?php }?> >
                                            لا </label>
                                    </div>
                                </div>
                            </div>



                        </div>

                        <div class="tab-pane " id="names">
                            <div class="form-group">
                                <label for="sellordername" class="col-lg-2 control-label">فواتير معلقة / طلبيات/ أمر بيع</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sellordername" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sellordername;?>
<?php $_tmp323=ob_get_clean();?><?php if ($_tmp323==0){?> checked <?php }?>>
                                            فواتير معلقة </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sellordername" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sellordername;?>
<?php $_tmp324=ob_get_clean();?><?php if ($_tmp324==1){?> checked <?php }?>>
                                            طلبيات </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="sellordername" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->sellordername;?>
<?php $_tmp325=ob_get_clean();?><?php if ($_tmp325==2){?> checked <?php }?>>
                                            أمر بيع </label>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group">
                                <label for="delegate_seller" class="col-lg-2 control-label"> بائع / مندوب/ طبيب </label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="delegate_seller" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->delegate_seller;?>
<?php $_tmp326=ob_get_clean();?><?php if ($_tmp326==0){?> checked <?php }?>>
                                            بائع </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="delegate_seller" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->delegate_seller;?>
<?php $_tmp327=ob_get_clean();?><?php if ($_tmp327==1){?> checked <?php }?>>
                                            مندوب </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input type="radio" name="delegate_seller" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->delegate_seller;?>
<?php $_tmp328=ob_get_clean();?><?php if ($_tmp328==2){?> checked <?php }?>>
                                            طبيب </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="currancy" class="col-lg-2 control-label">بديل كود العميل </label>
                                <div class="col-lg-4">
                                    <span id="sprytextfield7">
                                        <input type="text" name="clientcodname" id="clientcodname" class="form-control"
                                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->clientcodname;?>
" />
                                        <span class="textfieldRequiredMsg">***.</span></span>
                                </div>
                            </div>
                        </div>


                        <!--<div class="form-group">
                          <label for="email" class="col-lg-2 control-label">عرض سعر البيع السابق للعميل</label>
                          <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                              <label>
                                <input type="radio" name="previousPrice"  value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPreviousPrice;?>
<?php $_tmp329=ob_get_clean();?><?php if ($_tmp329==0){?>  checked <?php }?>>
                                نعم </label>
                            </div>
                            <div class="radio-inline">
                              <label>
                                <input type="radio" name="previousPrice"  value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->showPreviousPrice;?>
<?php $_tmp330=ob_get_clean();?><?php if ($_tmp330==1){?>  checked <?php }?>>
                                لا </label>
                            </div>
                          </div>
                        </div>



                        <div class="form-group">
                          <label for="email" class="col-lg-2 control-label"> البركود </label>
                          <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                              <label>
                                <input type="radio" name="parcode"  value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcode;?>
<?php $_tmp331=ob_get_clean();?><?php if ($_tmp331==0){?>  checked <?php }?>>
                                نعم </label>
                            </div>
                            <div class="radio-inline">
                              <label>
                                <input type="radio" name="parcode"  value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->parcode;?>
<?php $_tmp332=ob_get_clean();?><?php if ($_tmp332==1){?>  checked <?php }?>>
                                لا </label>
                            </div>
                          </div>
                        </div>


                        <div class="form-group">
                          <label for="email" class="col-lg-2 control-label"> الاسعار </label>
                          <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                              <label>
                                <input type="radio" name="priceing"  value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->priceing;?>
<?php $_tmp333=ob_get_clean();?><?php if ($_tmp333==0){?>  checked <?php }?>>
                                نعم </label>
                            </div>
                            <div class="radio-inline">
                              <label>
                                <input type="radio" name="priceing"  value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->priceing;?>
<?php $_tmp334=ob_get_clean();?><?php if ($_tmp334==1){?>  checked <?php }?>>
                                لا </label>
                            </div>
                          </div>
                        </div>


                        -->


                        <!--<div class="form-group">
                          <label for="email" class="col-lg-2 control-label"> اتاحه المسح النهائى </label>
                          <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                              <label>
                          <input type="radio" name="allowfinsldelete"  value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->allowfinsldelete;?>
<?php $_tmp335=ob_get_clean();?><?php if ($_tmp335==0){?>  checked <?php }?>>
                                نعم </label>
                            </div>
                            <div class="radio-inline">
                              <label>
                <input type="radio" name="allowfinsldelete"  value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->allowfinsldelete;?>
<?php $_tmp336=ob_get_clean();?><?php if ($_tmp336==1){?>  checked <?php }?> >
                                لا </label>
                            </div>
                          </div>
                        </div>

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

                        <!--<div class="form-group">
                          <label for="email" class="col-lg-2 control-label">الغاء الاسعار الخاصه بعملاء عن تغير سعر شراء المنتج </label>
                          <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                              <label>
                          <input type="radio" name="updateclientprice"  value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->updateclientprice;?>
<?php $_tmp337=ob_get_clean();?><?php if ($_tmp337==0){?>  checked <?php }?>>
                                نعم </label>
                            </div>
                            <div class="radio-inline">
                              <label>
                <input type="radio" name="updateclientprice"  value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->updateclientprice;?>
<?php $_tmp338=ob_get_clean();?><?php if ($_tmp338==1){?>  checked <?php }?> >
                                لا </label>
                            </div>
                          </div>
                        </div>


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

                        <!--<div class="form-group">
                          <label for="email" class="col-lg-2 control-label">  تفعيل نسخة طرفية </label>
                          <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                              <label>
                          <input type="radio" name="copytype"  value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['copytype']->value;?>
<?php $_tmp339=ob_get_clean();?><?php if ($_tmp339==1){?>  checked <?php }?>>
                                نعم </label>
                            </div>
                            <div class="radio-inline">
                              <label>
                <input type="radio" name="copytype"  value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['copytype']->value;?>
<?php $_tmp340=ob_get_clean();?><?php if ($_tmp340==0){?>  checked <?php }?> >
                                لا </label>
                            </div>
                          </div>
                        </div>

                        <!--==============================-->
                        <!--<div class="form-group">
                          <label for="email" class="col-lg-2 control-label">اضافة رابط السرفر</label>
                          <div class="col-lg-4">
                            <input type="text" name="urlcopy" id="urlcopy" class="form-control" placeholder="اضافة رابط السرفر" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->urlcopy;?>
" />
                          </div>
                        </div>

                        <!--==============================-->
                        <!--==============================-->
                        <!--<div class="form-group">
                          <label for="email" class="col-lg-2 control-label">اضافة رابط المحلي</label>
                          <div class="col-lg-4">
                            <input type="text" name="internalcopy" id="internalcopy" class="form-control" placeholder="اضافة رابط المحلي" value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->internalcopy;?>
" />
                          </div>
                        </div>






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


                        <input type="hidden" name="programsettingsid" id="programsettingsid"
                               value="<?php echo $_smarty_tpl->tpl_vars['programsettingsdata']->value->programsettingsid;?>
">

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

                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-4">
                                <button name="btnAdd" type="submit" id="btnAdd" class="btn btn-primary pull-left">حفظ
                                </button>
                            </div>
                        </div>
                </form>

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

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

    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "integer");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "integer");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "integer");
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
    var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
    var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8");
    var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9");
    var noOfDecimalPlacesSpary = new Spry.Widget.ValidationTextField("noOfDecimalPlacesSpary", "integer");
    var noOfDecimalPlacesBillTotalSpray = new Spry.Widget.ValidationTextField("noOfDecimalPlacesSpary", "integer");
    var unReviewBillsPassSpary = new Spry.Widget.ValidationTextField("unReviewBillsPassSpary");
    $(".thereIsRestTax").live('change', function () {
        var val = $(this).val();
        if (val == "1") {
            $('#restTaxValDiv').show();
            sprytextfield8.destroy();
            sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8");
        } else {
            $('#restTaxValDiv').hide();
            $('#restTaxVal').val("");
            sprytextfield8.destroy();
        }
    });
    //
    $("[name='updateproductprice']").live('change', function () {
        var val = $("[name='updateproductprice']:checked").val();
        if (val == "1") {
            $('#changeBuyPriceChangeSellInBuyBillCtrl0').attr('checked', 'checked');
            $("[name='changeBuyPriceChangeSellInBuyBillCtrl']").attr('disabled', 'disabled');
        } else {
            $("[name='changeBuyPriceChangeSellInBuyBillCtrl']").removeAttr('disabled');
        }
    });
    $("[name='updateproductprice']").first().change();
    //
    $("[name='roundnumbers']").live('change', function () {
        var val = $(this).val();
        if (val == "1") {
            $('#noOfDecimalPlaces_div').show();
            noOfDecimalPlacesSpary.destroy();
            noOfDecimalPlacesSpary = new Spry.Widget.ValidationTextField("noOfDecimalPlacesSpary", "integer");
        } else {
            $('#noOfDecimalPlaces_div').hide();
            $('#noOfDecimalPlaces').val("0");
            noOfDecimalPlacesSpary.destroy();
        }
    });
    $("[name='roundnumbersbilltotal']").live('change', function () {
        var val = $(this).val();
        if (val == "1") {
            $('#noOfDecimalPlacesBillTotal_div').show();
            noOfDecimalPlacesBillTotalSpray.destroy();
            noOfDecimalPlacesBillTotalSpray = new Spry.Widget.ValidationTextField("noOfDecimalPlacesSpary", "integer");
        } else {
            $('#noOfDecimalPlacesBillTotal_div').hide();
            $('#noOfDecimalPlacesBillTotal').val("0");
            noOfDecimalPlacesBillTotalSpray.destroy();
        }
    });
    $("[name='unReviewBills']").live('change', function () {
        var val = $(this).val();
        if (val == "0") {
            $('#unReviewBillsPass_div').show();
            unReviewBillsPassSpary.destroy();
            unReviewBillsPassSpary = new Spry.Widget.ValidationTextField("unReviewBillsPassSpary");
        } else {
            $('#unReviewBillsPass_div').hide();
            $('#unReviewBillsPass').val("");
            unReviewBillsPassSpary.destroy();
        }
    });
    $("#noOfDecimalPlaces").live('keyup', function () {
        var val = Number($(this).val());
        if (val > 5) {
            $('#noOfDecimalPlaces').val("5");
        }
    });
    $(document).ready(function () {

        $(".thereIsRestTax:checked").trigger('change');

        $('#affectAllClientDebtLimit').on('click', function () {
            var txt;
            var r = confirm("سيتم حفظ البيانات والتنفيذ الان .هل انت متأكد ؟");
            if (r == true) {
                $('#affectAllClientDebtLimit_h').val(1);
                $('#btnAdd').click();
            }
        });
    });


    $(function () {
        $("#unitInTax").select2({
            placeholder: "اختر",
            minimumInputLength: 0, // document.getElementById("searchvalue").value,
            multiple: false,
            quietMillis: 100,
            ajax: {
                url: "eBillRequests.php?do=unit-types",
                dataType: 'json',
                data: function (term) {
                    return {
                        term: term, //search term
                    };
                },
                results: function (data) {
                    return {results: data};
                }
            },
            formatResult: function (data) {
                return data.text;
            },
            initSelection: function (element, callback) {
                var item = element.val().split(':');
                //  var data = {id: item[0], text: item[1]};
                var data = {id: item[0], text: item[1]};
                callback(data);
            },
            //dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller
        });
        //this is needed for ajax =>to obtain id from it  and use in ajax
        $('#unitInTax').select2('data', {id: $('#eunitInTaxval').val(), text: $('#eunitInTaxval').val()});
    });


    $(function () {
        $("#eTaxTypeNum").select2({
            placeholder: "اختر",
            minimumInputLength: 0, // document.getElementById("searchvalue").value,
            multiple: false,
            quietMillis: 100,
            ajax: {
                url: "eBillRequests.php?do=activity",
                dataType: 'json',
                data: function (term, page) {
                    return {
                        term: term, //search term
                    };
                },
                results: function (data) {
                    return {results: data};
                }
            },
            formatResult: function (data) {
                return data.text;
            },
            initSelection: function (element, callback) {
                var item = element.val().split(':');
                //  var data = {id: item[0], text: item[1]};
                var data = {id: item[0], text: item[1]};
                callback(data);
            },
            //dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller
        });
        //this is needed for ajax =>to obtain id from it  and use in ajax
        $('#eTaxTypeNum').select2('data', {id: $('#oldETaxTypeNum').val(), text: $('#oldETaxTypeNum').val()});



        $("#eTaxType").select2({
            placeholder: "اختر",
            minimumInputLength: 0, // document.getElementById("searchvalue").value,
            multiple: false,
            quietMillis: 100,
            ajax: {
                url: "eBillRequests.php?do=tax-types",
                dataType: 'json',
                data: function (term, page) {
                    return {
                        term: term, //search term
                    };
                },
                results: function (data) {
                    return {results: data};
                }
            },
            formatResult: function (data) {
                return data.text;
            },
            initSelection: function (element, callback) {
                var item = element.val().split(':');
                //  var data = {id: item[0], text: item[1]};
                var data = {id: item[0], text: item[1]};
                callback(data);
            },
            //dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller
        });
        //this is needed for ajax =>to obtain id from it  and use in ajax
        $('#eTaxType').select2('data', {id: $('#oldeTaxType').val(), text: $('#oldeTaxType').val()});
    });

    $('body').on('click', '#transfersellbtn', function () {

        $("#transfersellbtn").prop('disabled', true);
        var databasefrom = $("#databasefrom").val().trim();
        var databaseto = $("#databaseto").val().trim();
        var transfervalue = $("#transfervalue").val().trim();
        if (databasefrom.length > 0 && databaseto.length > 0 && transfervalue > 0) {

            $.post('transfersellAjaxController.php?do=transfersell', {databasefrom: databasefrom, databaseto: databaseto, transfervalue: transfervalue}, function (data) {
                // if (data == 1) {
                //   alert('تم النقل بنجاح');
                // } else {
                //    alert('هناك مشكله اثناء التنفيذ');
                // }
                $("#transfersellbtn").prop('disabled', false);
            });
        } else {
            $("#transfersellbtn").prop('disabled', false);
            alert('يجب ادخل كل البيانات');
        }
    });
</script>
<?php }} ?>