<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 16:44:09
         compiled from "..\views\default\usergroupview\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:19883669535b9685247-35518997%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'df67452cc0274ac1c17783d9ab4c9225d6b8cc9b' => 
    array (
      0 => '..\\views\\default\\usergroupview\\edit.html',
      1 => 1719184530,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19883669535b9685247-35518997',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'loadData' => 0,
    'Programsettingdata' => 0,
    'properityData' => 0,
    'properity' => 0,
    'loginSessionUsergroupId' => 0,
    'i' => 0,
    'properityNum' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_669535b9bf1106_29642543',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_669535b9bf1106_29642543')) {function content_669535b9bf1106_29642543($_smarty_tpl) {?><script>
    $(document).ready(function (e) {


        $("#challredio").change(function () {
            if ($(this).is(':checked')) {

                $("#props .radioR").prop("checked", true);
            } else {
                $("#props .radioR").prop("checked", false);

                $("#props .noradioR").prop("checked", true);
                //$(".xxx").attr("checked", "checked");
            }
        });
        $(".allowBillDelete").change(function () {
            var val = $(this).val();
            if (val == '0') {
                $('#billDeletePasswordDiv').show();
            } else {
                $('#billDeletePasswordDiv').hide();
            }
        });
    });</script>
<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="#">مجموعات المستخدمين</a></li>
            <li class="active">مجموعات المستخدمين</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">تعديل مجموعة</h3>
            </div>
            <div class="panel-body">
                
                <form class="nameToBeChecked form-horizontal" action="usergroupController.php?do=update" method="post"
                    id="spform"><!--validate the form before checking name-->
                    

                    <!---------(Spry.Widget.Form.validate(this))-------->
                    <!-- 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="#genpro" data-toggle="tab">خصائص عامه</a></li>
                    </ul>

                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div class="tab-pane active" id="info"><!-- start the 1st tab -->


                            <input type="hidden" name="usergroupid" id="usergroupid" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->usergroupid;?>
" />
                            <input type="hidden" name="today" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->currentdate;?>
" />
                            <div class="form-group">
                                <label class="col-lg-2 control-label">اسم المجموعة</label>
                                <div class="col-lg-4">
                                    <span id="namesx">
                                        <input type="text" required="required" name="usergroupname" id="usergroupname"
                                            value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->usergroupname;?>
" class="form-control"
                                            placeholder="اسم المجموعة" />
                                        <span class="textfieldRequiredMsg">*</span></span>


                                    <div id="nameError" class="alert alert-block alert-danger fade in"
                                        style="display:none">
                                        <button type="button" class="close pull-left" data-dismiss="alert"
                                            aria-hidden="true">&times;</button>
                                        <h4>رسالة خطا</h4>
                                        <p>هذا الاسم مستخدم من قبل</p>
                                        <div class="clearfix"></div>
                                    </div>

                                </div>
                            </div>

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

                            <div class="form-group">
                                <label class="col-lg-2 control-label">وصف المجموعة</label>
                                <div class="col-lg-4">
                                    <textarea name="usergroupdescription" class="form-control" cols="45"
                                        rows="5"><?php echo $_smarty_tpl->tpl_vars['loadData']->value->usergroupdescription;?>
</textarea>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label class="col-lg-2 control-label">حذف مؤقت</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label> <input value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->conditions;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?> checked <?php }?> name="delete" type="radio" />
                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->conditions;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?> checked <?php }?> name="delete" type="radio" />
                                            لا</label>
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label class="col-lg-2 control-label">صفحة الدخول</label>
                                <div class="col-lg-4">
                                    <span id="spryselect1">
                                        <select name="startpage" data-placeholder="اختر صفحة الدخول"
                                            class="select2 wdt100" required>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3=="index.php"){?> selected="selected" <?php }?>
                                                value="index.php">الادارة</option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4=="billreceiptController.php?do=show"){?>
                                                selected="selected" <?php }?> value="billreceiptController.php?do=show">
                                                ادارة الاستلام</option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5=="checkReportController.php?do=all"){?>
                                                selected="selected" <?php }?> value="checkReportController.php?do=all">
                                                ادارة الفحص</option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6=="externalMaintenanceGoReport.php?do=all"){?> selected="selected" <?php }?>
                                                value="externalMaintenanceGoReport.php?do=all"> ادارة الصيانة الخارجية
                                            </option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7=="stagepropertyController.php?do=show"){?>
                                                selected="selected" <?php }?> value="stagepropertyController.php?do=show">
                                                خواص المراحل</option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8=="receiptController.php?do=show"){?>
                                                selected="selected" <?php }?> value="receiptController.php?do=show"> ايصال
                                                استلام</option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9=="deleveryReportController.php?do=all"){?>
                                                selected="selected" <?php }?> value="deleveryReportController.php?do=all">
                                                ادارة التسليم</option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10=="maintennanceArchiveController.php?do=all"){?> selected="selected" <?php }?>
                                                value="maintennanceArchiveController.php?do=all"> الارشيف</option>
                                            <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->startpage;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11=="sellbillController.php?do=addresBill"){?> selected="selected" <?php }?>
                                                value="sellbillController.php?do=addresBill"> المطاعم</option>

                                        </select>
                                        <span class="selectRequiredMsg">*</span></span>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <label class="col-lg-2 control-label">النوع</label>
                                <div class="col-lg-4">
                                    <span id="spryselect2">
                                        <select name="level" required id="level" data-placeholder="اختر النوع"
                                            class="select2 wdt100">
                                            <option value="-1"></option>
                                            <option value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->level==1){?> selected <?php }?>>مدير</option>
                                            <option value="2" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->level==2){?> selected <?php }?>>محاسب</option>
                                            <option value="3" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->level==3){?> selected <?php }?>><?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->delegate_seller==0){?> بائع <?php }elseif($_smarty_tpl->tpl_vars['Programsettingdata']->value->delegate_seller==1){?>مندوب <?php }elseif($_smarty_tpl->tpl_vars['Programsettingdata']->value->delegate_seller==2){?>طبيب <?php }?></option>
                                        </select>
                                        <span class="selectRequiredMsg">*</span></span>
                                </div>
                            </div>

                            <input type="hidden" name="allPropsJson" id="allPropsJson" value="" />
                        </div><!-- end the 1st tab -->
                        <div class="tab-pane" id="props"><!-- start the 2nd tab -->
                            <div class="well well-sm modfywall">
                                <div class="form-group">
                                    <label class="col-lg-3 control-label"> اختيار كل الخصائص بنعم</label>
                                    <div class="col-lg-4">
                                        <div class="radio-inline">

                                            <input name="challredio" id="challredio" type="checkbox" value="" /> نعم

                                        </div>

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


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

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





                            <?php if ($_smarty_tpl->tpl_vars['properity']->value->isallowed==1&&($_smarty_tpl->tpl_vars['loadData']->value->usergroupid>0||$_smarty_tpl->tpl_vars['loginSessionUsergroupId']->value>0)){?><!--hide if hidden in usergroup admin and my group id < 0 "-1" or group id iam editing > 0 -->


                            <input type="hidden" value="1" name="propertydefault<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" />
                            <input type="hidden" name="propertyid<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyid;?>
" />
                            <input type="hidden" name="theorder<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="0" />
                            <input type="hidden" name="relusergrouppropertiesid<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                value="<?php echo $_smarty_tpl->tpl_vars['properity']->value->relusergrouppropertiesid;?>
" />







                            <?php }else{ ?><!--show-->





                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyparent;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12==0){?><div class="well well-sm modfywall"><?php }?>
                                <div class="form-group <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyparent;?>
<?php $_tmp13=ob_get_clean();?><?php if ($_tmp13!=0){?>propbd<?php }?>">
                                    <div class="col-lg-4" style="display: inline">
                                        <label class="col-lg-8 control-label"><?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyname;?>
</label>
                                        <div class="radio-inline">
                                            <label>
                                                <input value="0"
                                                    class="radioR <?php if ($_smarty_tpl->tpl_vars['properity']->value->relusergrouppropertiesid==''){?>edited<?php }?>"
                                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyvalue;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp14==0){?> checked <?php }?>
                                                name="propertydefault<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" type="radio" />
                                                نعم </label>
                                        </div>
                                        <div class="radio-inline">
                                            <label>
                                                <input value="1"
                                                    class="noradioR <?php if ($_smarty_tpl->tpl_vars['properity']->value->relusergrouppropertiesid==''){?>edited<?php }?>"
                                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyvalue;?>
<?php $_tmp15=ob_get_clean();?><?php if ($_tmp15==1){?> checked <?php }?>
                                                name="propertydefault<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" type="radio" />
                                                لا </label>
                                        </div>
                                        <input type="hidden" name="propertyid<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                            class="<?php if ($_smarty_tpl->tpl_vars['properity']->value->relusergrouppropertiesid==''){?>edited<?php }?>"
                                            value="<?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyid;?>
" />
                                        <input type="hidden" name="relusergrouppropertiesid<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                            class="<?php if ($_smarty_tpl->tpl_vars['properity']->value->relusergrouppropertiesid==''){?>edited<?php }?>"
                                            value="<?php echo $_smarty_tpl->tpl_vars['properity']->value->relusergrouppropertiesid;?>
" />
                                    </div>
                                    <div class="col-lg-3" style="display: inline">
                                        <!--<label  class="col-lg-3 control-label">الترتيب</label>-->
                                        <div class="col-lg-6">
                                            <input type="text" name="theorder<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['properity']->value->theorder;?>
"
                                                class="form-control positiveNo <?php if ($_smarty_tpl->tpl_vars['properity']->value->relusergrouppropertiesid==''){?>edited<?php }?>" />
                                        </div>
                                    </div>
                                </div>
                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['properity']->value->propertyparent;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp16==0){?>
                            </div><?php }?>












                            <?php }?>
                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                            <?php } ?>
                            <input type="hidden" name="itr" value="<?php echo $_smarty_tpl->tpl_vars['properityNum']->value;?>
" />



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

                        </div><!-- end the 2nd tab -->
                        <div class="tab-pane" id="genpro"><!-- start the 3rd tab -->

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">خاصيه البحث بالتاريخ فى تقرير يوميه الخزنه</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->savedailydate;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17==1){?> checked
                                            <?php }?> name="savedailydate" type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->savedailydate;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18==0){?>
                                            checked <?php }?> name="savedailydate" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار القوائم</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="hidemenu" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->hidemenu;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="hidemenu" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->hidemenu;?>
<?php $_tmp20=ob_get_clean();?><?php if ($_tmp20==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label"> تعديل بيانات المستخدم</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="editUserPrivlage" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->editUserPrivlage;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21==0){?> checked <?php }?>/>

                                            اسم المستخدم وكلمة المرور فقط </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="editUserPrivlage" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->editUserPrivlage;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22==1){?> checked <?php }?>/>
                                            كل البيانات </label>
                                    </div>

                                </div>
                            </div>

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


                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار تصنيفات المنتجات</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="hidecat" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->hidecat;?>
<?php $_tmp23=ob_get_clean();?><?php if ($_tmp23==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="hidecat" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->hidecat;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp24==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

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


                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">ادخال مديونيه عميل بالسالب</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="clientnegative" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->clientnegative;?>
<?php $_tmp25=ob_get_clean();?><?php if ($_tmp25==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="clientnegative" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->clientnegative;?>
<?php $_tmp26=ob_get_clean();?><?php if ($_tmp26==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


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


                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">ادخال مديونيه مورد بالسالب</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="suplliernegative" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->suplliernegative;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp27==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="suplliernegative" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->suplliernegative;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


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



                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">ادخال ارصده للمخازن بالسالب</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="storenegative" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->storenegative;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="storenegative" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->storenegative;?>
<?php $_tmp30=ob_get_clean();?><?php if ($_tmp30==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>

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



                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">تعديل الاسعار</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="priceupdate" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->priceupdate;?>
<?php $_tmp31=ob_get_clean();?><?php if ($_tmp31==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="priceupdate" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->priceupdate;?>
<?php $_tmp32=ob_get_clean();?><?php if ($_tmp32==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار تعديل وحذف فى فواتير البيع</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="allowEditDelInBills" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowEditDelInBills==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowEditDelInBills==1){?>
                                            checked <?php }?> name="allowEditDelInBills" type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار تعديل وحذف فى فواتير الشراء</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="allowEditDelInBuyBills" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowEditDelInBuyBills==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowEditDelInBuyBills==1){?> checked <?php }?> name="allowEditDelInBuyBills" type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار تكويد المنتجات فى عرض فواتير الشراء </label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showSerializeBtn" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSerializeBtn==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSerializeBtn==1){?>
                                            checked <?php }?> name="showSerializeBtn" type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group">
                                <label class="col-lg-3 control-label">السماح بحذف الفواتير</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR allowBillDelete" name="allowBillDelete"
                                                type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowBillDelete==0){?> checked <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR allowBillDelete" name="allowBillDelete"
                                                type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowBillDelete==1){?> checked <?php }?>/>
                                            لا </label>
                                    </div>

                                </div>

                            </div>
                            <!--==============================-->
                            <div class="form-group" id="billDeletePasswordDiv" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowBillDelete==1){?>style="display: none"<?php }?>>
                                <label class="col-lg-3 control-label">كلمة سر حذف الفواتير</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <input type="password" class="form-control" name="billDeletePassword"
                                            value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->billDeletePassword;?>
" />
                                    </div>
                                </div>
                            </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار الاسعار فى تقرير مبيعات بنوع السعر</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="sellreportpricetype" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->sellreportpricetype==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->sellreportpricetype==1){?>
                                            checked <?php }?> name="sellreportpricetype" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


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

                               <div class="form-group propbd">
                             <label class="col-lg-3 control-label">الخصم المباشر</label>
                              <div class="col-lg-4">
                                <div class="radio-inline">

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



                              </div>


                              </div>

                                  </div>


                            <!--==============================-->
                            <div class="form-group propbd">

                                <label class="col-lg-3 control-label">الخصم نسبه</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">

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



                                    </div>


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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار صافى الربح</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="netprofit" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->netprofit==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->netprofit==1){?> checked
                                            <?php }?> name="netprofit" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار سعر الشراء فى عرض المنتجات و تفاصيل المنتج
                                    فى الفاتورة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="hideproductcatid" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->hideproductcatid==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="hideproductcatid" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->hideproductcatid==1){?> checked <?php }?> name="hideproductcatid" type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">حفظ مباشر "بصريات"</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="directSaveBills" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->directSaveBills;?>
<?php $_tmp33=ob_get_clean();?><?php if ($_tmp33==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="directSaveBills" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->directSaveBills;?>
<?php $_tmp34=ob_get_clean();?><?php if ($_tmp34==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">نسخة احتياطية يدوى من قاعدة البيانات</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="showManualBackup" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->showManualBackup;?>
<?php $_tmp35=ob_get_clean();?><?php if ($_tmp35==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="showManualBackup" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->showManualBackup;?>
<?php $_tmp36=ob_get_clean();?><?php if ($_tmp36==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">حذف فى تقرير حركة المستخدمين</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="deleteMovementManage" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->deleteMovementManage;?>
<?php $_tmp37=ob_get_clean();?><?php if ($_tmp37==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="deleteMovementManage" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->deleteMovementManage;?>
<?php $_tmp38=ob_get_clean();?><?php if ($_tmp38==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">تحميل هواتف العملاء</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="downloadClientPhones" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->downloadClientPhones;?>
<?php $_tmp39=ob_get_clean();?><?php if ($_tmp39==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="downloadClientPhones" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->downloadClientPhones;?>
<?php $_tmp40=ob_get_clean();?><?php if ($_tmp40==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">جداول مراجعة الفواتير المسموحة</label>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label class="sr-only">
                                            <input type="checkbox" id="reviewBillsAllowedTables1"
                                                name="reviewBillsAllowedTables[]" value="1" <?php if (in_array(1,$_smarty_tpl->tpl_vars['loadData']->value->reviewBillsAllowedTables)){?>checked<?php }?>>
                                            جديد نقدى
                                        </label>
                                        <label class="sr-only">
                                            <input type="checkbox" id="reviewBillsAllowedTables2"
                                                name="reviewBillsAllowedTables[]" value="2" <?php if (in_array(2,$_smarty_tpl->tpl_vars['loadData']->value->reviewBillsAllowedTables)){?>checked<?php }?>>
                                            جديد عملاء
                                        </label>
                                        <label class="sr-only">
                                            <input type="checkbox" id="reviewBillsAllowedTables3"
                                                name="reviewBillsAllowedTables[]" value="3" <?php if (in_array(3,$_smarty_tpl->tpl_vars['loadData']->value->reviewBillsAllowedTables)){?>checked<?php }?>>
                                            تمت مراجعتها
                                        </label>
                                        <label class="sr-only">
                                            <input type="checkbox" id="reviewBillsAllowedTables4"
                                                name="reviewBillsAllowedTables[]" value="4" <?php if (in_array(4,$_smarty_tpl->tpl_vars['loadData']->value->reviewBillsAllowedTables)){?>checked<?php }?>>
                                            معلقة
                                        </label>
                                        <label class="sr-only">
                                            <input type="checkbox" id="reviewBillsAllowedTables5"
                                                name="reviewBillsAllowedTables[]" value="5" <?php if (in_array(5,$_smarty_tpl->tpl_vars['loadData']->value->reviewBillsAllowedTables)){?>checked<?php }?>>
                                            ارشيف
                                        </label>

                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار سعر الشراء فى تقرير المخازن</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showstoredetailprice" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showstoredetailprice==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showstoredetailprice==1){?>
                                            checked <?php }?> name="showstoredetailprice" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار ‏احصائيات ‏الصفحة الرئيسية</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showsIndexStatistics" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsIndexStatistics==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsIndexStatistics==1){?>
                                            checked <?php }?> name="showsIndexStatistics" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار خرائط ‏الصفحة الرئيسية</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showsIndexCharts" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsIndexCharts==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsIndexCharts==1){?>
                                            checked <?php }?> name="showsIndexCharts" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار تقرير المنتجات الاقل من الحد الادنى فى
                                    ‏الصفحة الرئيسية</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="showsIndexProductBelowLimitReport" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsIndexProductBelowLimitReport==1){?> checked <?php }?>
                                            type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsIndexProductBelowLimitReport==0){?> checked <?php }?>
                                            name="showsIndexProductBelowLimitReport" type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">نسبة المندوب تقبض</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="mandobMethod" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->mandobMethod==0){?> checked <?php }?>/>

                                            كمصروف </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="mandobMethod" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->mandobMethod==1){?> checked <?php }?>/>
                                            كمكافئة </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">يوجد اضافة عميل فى الفاتورة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="addClientInBill" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->addClientInBill==0){?> checked <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="addClientInBill" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->addClientInBill==1){?> checked <?php }?>/>
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">يوجد اضافة مورد فى الفاتورة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="addsupplierInBill" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->addsupplierInBill==0){?> checked <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="addsupplierInBill" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->addsupplierInBill==1){?> checked <?php }?>/>
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار نقدى ومباشر</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showClientAndSupplierOne" type="radio"
                                                <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showClientAndSupplierOne==0){?> checked <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="showClientAndSupplierOne"
                                                type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showClientAndSupplierOne==1){?> checked
                                            <?php }?>/>
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">خانة المخزن فى فاتورة الشراء فارغ</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="dontChooseStore" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->dontChooseStore==1){?> checked
                                            <?php }?>/>
                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="dontChooseStore" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->dontChooseStore==0){?> checked <?php }?>/>

                                            لا </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اخفاء الاسعار فى الفواتير</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="hideBillPrices" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->hideBillPrices==1){?> checked <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="hideBillPrices" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->hideBillPrices==0){?> checked <?php }?>/>
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار تعديل وحذف تحويل بين المخازن</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="allowStoreMoveUpdateDel" type="radio"
                                                <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowStoreMoveUpdateDel==0){?> checked <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="allowStoreMoveUpdateDel"
                                                type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->allowStoreMoveUpdateDel==1){?> checked
                                            <?php }?>/>
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار الربح داخل فاتورة المبيعات</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="showProfitInsideBill" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showProfitInsideBill==1){?> checked <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="showProfitInsideBill" type="radio"
                                                <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showProfitInsideBill==0){?> checked <?php }?>/>
                                            لا </label>
                                    </div>

                                </div>
                            </div>

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">الاطلاع على قيمة الخزنة بعد التصفية</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSaveBalanceAfterClose==0){?>
                                            checked <?php }?>
                                            name="showSaveBalanceAfterClose" type="radio" />
                                            لا </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="showSaveBalanceAfterClose"
                                                type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSaveBalanceAfterClose==1){?> checked
                                            <?php }?>/>

                                            نعم </label>
                                    </div>

                                    <div class="radio-inline">
                                        <label>
                                            <input value="2" class="noradioR" name="showSaveBalanceAfterClose"
                                                type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSaveBalanceAfterClose==2){?> checked
                                            <?php }?>/>
                                            الاطلاع قبل وبعد </label>
                                    </div>

                                </div>
                            </div>

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">تستطيع التعديل في نسب الإضافة والخصم في
                                    الفاتورة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="canEditAddDiscountPercentage"
                                                type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->canEditAddDiscountPercentage==1){?> checked
                                            <?php }?>/>

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->canEditAddDiscountPercentage==0){?>
                                            checked <?php }?>
                                            name="canEditAddDiscountPercentage" type="radio" />
                                            لا </label>
                                    </div>
                                </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 propbd">
                                <label class="col-lg-3 control-label">الاطلاع على جميع الصالات </label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="seeAllHalls" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->seeAllHalls;?>
<?php $_tmp41=ob_get_clean();?><?php if ($_tmp41==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="seeAllHalls" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->seeAllHalls;?>
<?php $_tmp42=ob_get_clean();?><?php if ($_tmp42==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>

                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار زر الصفحة الرئيسية </label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="homePageIcon" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->homePageIcon;?>
<?php $_tmp43=ob_get_clean();?><?php if ($_tmp43==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="homePageIcon" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->homePageIcon;?>
<?php $_tmp44=ob_get_clean();?><?php if ($_tmp44==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">طباعة للمطبخ تلقائيا مع انهاء الفاتورة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="autoKitchenPrint" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->autoKitchenPrint;?>
<?php $_tmp45=ob_get_clean();?><?php if ($_tmp45==1){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="autoKitchenPrint" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->autoKitchenPrint;?>
<?php $_tmp46=ob_get_clean();?><?php if ($_tmp46==0){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">الأزرار المسموح بها</label>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label class="sr-only">
                                            <input type="checkbox" id="sendKitchen" name="sendKitchen" value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->sendKitchen==1){?>checked<?php }?>>
                                            ارسال للمطبخ
                                        </label>

                                        <label class="sr-only">
                                            <input type="checkbox" id="printKitchen" name="printKitchen" value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->printKitchen==1){?>checked<?php }?>>
                                            طباعة للمطبخ
                                        </label>

                                        <label class="sr-only">
                                            <input type="checkbox" id="endBill" name="endBill" value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->endBill==1){?>checked<?php }?>>
                                            انهاء الفاتورة
                                        </label>

                                        <label class="sr-only">
                                            <input type="checkbox" id="endPrintBill" name="endPrintBill" value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->endPrintBill==1){?>checked<?php }?>>
                                            طباعة وانهاء الفاتورة
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">مسموح للمجموعة بـ</label>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label class="sr-only">
                                            <input type="checkbox" id="takeAway" name="takeAway" value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->takeAway==1){?>checked<?php }?>>
                                            تيك أواى
                                        </label>

                                        <label class="sr-only">
                                            <input type="checkbox" id="delivery" name="delivery" value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->delivery==1){?>checked<?php }?>>
                                            دليفرى
                                        </label>

                                        <label class="sr-only">
                                            <input type="checkbox" id="hall" name="hall" value="1" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->hall==1){?>checked<?php }?>>
                                            صالة
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">الدخول تلقائى على</label>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label class="sr-only">
                                            <input type="radio" class="radioR" name="restaurantDefaultPage" value="0"
                                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->restaurantDefaultPage;?>
<?php $_tmp47=ob_get_clean();?><?php if ($_tmp47==0){?> checked <?php }?> >
                                            الرئيسية
                                        </label>
                                        <label class="sr-only">
                                            <input type="radio" class="radioR" name="restaurantDefaultPage" value="-1"
                                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->restaurantDefaultPage;?>
<?php $_tmp48=ob_get_clean();?><?php if ($_tmp48==-1){?> checked <?php }?>>
                                            تيك أواى
                                        </label>

                                        <label class="sr-only">
                                            <input type="radio" class="radioR" name="restaurantDefaultPage" value="-2"
                                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->restaurantDefaultPage;?>
<?php $_tmp49=ob_get_clean();?><?php if ($_tmp49==-2){?> checked <?php }?>>
                                            دليفرى
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">قيمة المدفوع</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="kitchenPayedVal" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->kitchenPayedVal;?>
<?php $_tmp50=ob_get_clean();?><?php if ($_tmp50==0){?> checked <?php }?> type="radio" />

                                            صفر </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="kitchenPayedVal" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->kitchenPayedVal;?>
<?php $_tmp51=ob_get_clean();?><?php if ($_tmp51==1){?> checked <?php }?> type="radio" />
                                            الاجمالى </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">تعديل المدفوع</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="kitchenPayedChange" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->kitchenPayedChange;?>
<?php $_tmp52=ob_get_clean();?><?php if ($_tmp52==0){?> checked <?php }?> type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="kitchenPayedChange" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->kitchenPayedChange;?>
<?php $_tmp53=ob_get_clean();?><?php if ($_tmp53==1){?> checked <?php }?> type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">زر حجز البلاى ستيشن</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="radioR" name="restaurantplaystationpalyBtn" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->restaurantplaystationpalyBtn;?>
<?php $_tmp54=ob_get_clean();?><?php if ($_tmp54==1){?> checked <?php }?>
                                            type="radio" />

                                            نعم </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="noradioR" name="restaurantplaystationpalyBtn" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value->restaurantplaystationpalyBtn;?>
<?php $_tmp55=ob_get_clean();?><?php if ($_tmp55==0){?> checked <?php }?>
                                            type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="well well-sm modfywall">
                                <div class="form-group ">
                                    <label class="col-lg-6 control-label">خواص تقرير نسب الخصومات على الفواتير</label>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">تعطيل الخصم على اجمالى الفواتير </label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="stopDiscountOfTotalControl" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->stopDiscountOfTotalControl==0){?> checked <?php }?> type="radio"
                                            />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->stopDiscountOfTotalControl==1){?> checked <?php }?> name="stopDiscountOfTotalControl" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">السماح بالتعديل على الخصم فى الفاتورة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="discountOfTotalControlEditable" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->discountOfTotalControlEditable==0){?> checked <?php }?>
                                            type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->discountOfTotalControlEditable==1){?> checked <?php }?>
                                            name="discountOfTotalControlEditable" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">السماح بتخطى نسبة الخصم المسموح للمجموعة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="discountOfTotalControlMTGDA" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->discountOfTotalControlMTGDA==0){?> checked <?php }?> type="radio"
                                            /><!-- MTGDA more than group discount Allowed -->

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->discountOfTotalControlMTGDA==1){?> checked <?php }?> name="discountOfTotalControlMTGDA" type="radio"
                                            /><!-- MTGDA more than group discount Allowed -->
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="well well-sm modfywall">
                                <div class="form-group ">
                                    <label class="col-lg-6 control-label">خواص تقرير الاصناف بكل الاسعار - التحويل بين
                                        المخازن</label>
                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار الكمية بالمخزن</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showsStorerQuantity" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsStorerQuantity==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showsStorerQuantity==1){?>
                                            checked <?php }?> name="showsStorerQuantity" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار سعر التجزئة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showSellUnitPrice" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSellUnitPrice==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSellUnitPrice==1){?>
                                            checked <?php }?> name="showSellUnitPrice" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار سعر النصف جملة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showSellHalfPrice" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSellHalfPrice==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSellHalfPrice==1){?>
                                            checked <?php }?> name="showSellHalfPrice" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار سعر الجملة</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showSellAllPrice" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSellAllPrice==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showSellAllPrice==1){?>
                                            checked <?php }?> name="showSellAllPrice" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>


                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">اظهار سعر الشراء</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="showBuyPrice" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showBuyPrice==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->showBuyPrice==1){?> checked
                                            <?php }?> name="showBuyPrice" type="radio" />
                                            لا </label>
                                    </div>

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

                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">مخزن مباشر او وسيط</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="storeSupervisorShow" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->storeSupervisorShow==0){?> checked <?php }?>/>

                                            اخفاء </label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" name="storeSupervisorShow" type="radio"
                                                <?php if ($_smarty_tpl->tpl_vars['loadData']->value->storeSupervisorShow==1){?> checked <?php }?>/>
                                            اظهار </label>
                                    </div>

                                </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 propbd">
                                <label class="col-lg-3 control-label">المنتجات الاقل من الحد الادنى</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="productno" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->productno==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->productno==1){?> checked
                                            <?php }?> name="productno" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">الكمبيالات</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="kempilano" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->kempilano==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->kempilano==1){?> checked
                                            <?php }?> name="kempilano" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label"> المنتجات الراكده من اسبوع</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="productnotsellno" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->productnotsellno==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->productnotsellno==1){?>
                                            checked <?php }?> name="productnotsellno" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label"> شيكات العملاء </label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="clientcheckno" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->clientcheckno==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->clientcheckno==1){?> checked
                                            <?php }?> name="clientcheckno" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label"> شيكات الموردين</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="suppliercheckno" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->suppliercheckno==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->suppliercheckno==1){?>
                                            checked <?php }?> name="suppliercheckno" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label"> طلبات المنتجات</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="productRequist" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->productRequist==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->productRequist==1){?>
                                            checked <?php }?> name="productRequist" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label"> طلبات أخرى من الفروع</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="otherRequist" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->otherRequist==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->otherRequist==1){?> checked
                                            <?php }?> name="otherRequist" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label">متاخرات البصريات</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="toWorkShopOrder" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->toWorkShopOrder==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->toWorkShopOrder==1){?>
                                            checked <?php }?> name="toWorkShopOrder" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                            <div class="form-group propbd">
                                <label class="col-lg-3 control-label"> فواتير التأمين</label>
                                <div class="col-lg-4">
                                    <div class="radio-inline">
                                        <label>
                                            <input value="0" class="radioR" name="insuranceBill" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->insuranceBill==0){?> checked <?php }?> type="radio" />

                                            نعم</label>
                                    </div>
                                    <div class="radio-inline">
                                        <label>
                                            <input value="1" class="noradioR" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->insuranceBill==1){?> checked
                                            <?php }?> name="insuranceBill" type="radio" />
                                            لا </label>
                                    </div>

                                </div>
                            </div>
                            <!--==============================-->
                        </div><!-- end the 3rd tab -->
                    </div><!-- end of tabs -->
                    <!--==============================-->

                    <!--==============================-->
                    <div class="form-group">
                        <div class="col-lg-offset-8 col-lg-4">
                            <button type="button" class="btn btn-primary pull-left" id="spbutton">تعديل</button>
                        </div>
                    </div>






                </form>

            </div>

        </div>

    </div>
</div>

<script type="text/javascript">
    var namesx = new Spry.Widget.ValidationTextField("namesx");
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", { invalidValue: "-1" });
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", { invalidValue: "-1" });</script>


<script type="text/javascript">
    /* ---------------------------------------------------------------------- */
    //## record changes part

    //get hidden properities to remove it as it wont be changed
    $('input[type="hidden"][name^="propertydefault"]').each(function () {
        var i = $(this).attr('name').substr(15);
        $('[name="propertydefault' + i + '"]').remove();
        $('[name="propertyid' + i + '"]').remove();
        $('[name="theorder' + i + '"]').remove();
        $('[name="relusergrouppropertiesid' + i + '"]').remove();
    });
    $('select, textarea').change(function () {
        $(this).addClass('edited');
    });
    $('input[type="text"], input[type="radio"], input[type="checkbox"], input[type="password"]').change(function () {
        var thisis = $(this);
        var type = thisis.attr('type');
        switch (type) {
            case "checkbox":
                if (thisis.attr('id') == "challredio") {//mark all properities as changed
                    $('[name^="propertydefault"]').addClass('edited');
                    $('[name^="propertyid"]').addClass('edited');
                    $('[name^="theorder"]').addClass('edited');
                    $('[name^="relusergrouppropertiesid"]').addClass('edited');
                } else {
                    //not only the element.there is special case has name=reviewBillsAllowedTables[]  if other checkboxes of that name was not changed but marked value will be wrong
                    $('input[name="' + thisis.attr('name') + '"]').addClass('edited');
                }
                break;
            case "radio":
                if (thisis.attr('name').indexOf("propertydefault") == 0) {
                    var i = $(this).attr('name').substr(15);
                    $('[name="propertydefault' + i + '"]').addClass('edited');
                    $('[name="propertyid' + i + '"]').addClass('edited');
                    $('[name="theorder' + i + '"]').addClass('edited');
                    $('[name="relusergrouppropertiesid' + i + '"]').addClass('edited');
                } else {
                    $(this).addClass('edited');
                }
                break;
            case "text":
                if (thisis.attr('name').indexOf("theorder") == 0) {
                    var i = $(this).attr('name').substr(8);
                    $('[name="propertydefault' + i + '"]').addClass('edited');
                    $('[name="propertyid' + i + '"]').addClass('edited');
                    $('[name="theorder' + i + '"]').addClass('edited');
                    $('[name="relusergrouppropertiesid' + i + '"]').addClass('edited');
                } else {
                    $(this).addClass('edited');
                }
                break;
            default:
                $(this).addClass('edited');
                break;
        }
        $(this).addClass('edited');
    });
    /* ---------------------------------------------------------------------- */
    $('#spbutton').live('click', function (e) {
        //ckeck name
        var tableName = 'usergroup';
        var inputName = 'usergroupname';
        var name = $("#" + inputName).val();
        var id = $("#usergroupid").val();
        $.ajax({
            url: 'checkRedundantNames.php?do=checkNameWithId&name=' + name + '&id=' + id + '&tablename=' + tableName,
            success: function (data) {
                //alert(data);
                if (data == '0') {
                    $("#nameError").css("display", "none");
                    var myForm = document.getElementById("spform");
                    var SS = Spry.Widget.Form.validate(myForm);
                    if (SS == true) {
                        if (!$('#spbutton').hasClass("processing")) {
                            $('#spbutton').addClass("processing");
                            /* ---------------------------------------------------------------------- */
                            //## just before submitting stop sending elements not changed by removing attribute name
                            //this step is for input[type="hidden"] of properities not changed to remove it
                            $('[name^="propertyid"]').not('.edited').remove();
                            $('[name^="relusergrouppropertiesid"]').not('.edited').remove();
                            //this step is to remove generally not changed of the selector
                            $('select, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], input[type="password"]').not('.edited').removeAttr('name');
                            //nullNotAllowedOnChange "checkbox" elements sent with zero instead of null for notchecked case
                            $('input.edited[type="checkbox"]:not(:checked)').each(function () {
                                $(this).removeClass('edited');
                                $(this).after('<input type="hidden" name="' + $(this).attr('name') + '" value=0>');
                                $(this).removeAttr('name');
                            });
                            /* ---------------------------------------------------------------------- */
                            var obj = {};
                            /* Iterate over every input. */
                            $("#props [type='text'], #props [type='hidden'], #props [type='radio']:checked").each(function () {
                                //console.log($(this).attr('name') + ' ++++++ ' + $(this).val());
                                /* Cache the id of the input. */
                                obj[$(this).attr('name')] = $(this).val();
                                $(this).removeAttr('name');
                            });
                            $('#allPropsJson').val(JSON.stringify(obj));
                            /* ---------------------------------------------------------------------- */
                            myForm.submit();
                            //$('#spbutton').unbind('click');
                        }
                    }

                } else if (data == '1') {
                    $("#" + inputName).val("");
                    $("#" + inputName).focus();
                    $("#nameError").css("display", "block");
                    return false;
                }
            }
        });
    });
</script>
<?php }} ?>