<?php /* Smarty version Smarty-3.1.11, created on 2019-06-09 15:41:14
         compiled from "..\views\aw_ar\_controll\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:71455cfd0c7aa0ad43-78298914%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8f2c2b68a59f3c933a63e39b2407c8825321a422' => 
    array (
      0 => '..\\views\\aw_ar\\_controll\\edit.html',
      1 => 1560069652,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '71455cfd0c7aa0ad43-78298914',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'awcontroll' => 0,
    'awcontrollprops' => 0,
    'count' => 0,
    'single' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5cfd0c7abceac9_96524030',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5cfd0c7abceac9_96524030')) {function content_5cfd0c7abceac9_96524030($_smarty_tpl) {?><!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>

        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <?php echo $_smarty_tpl->tpl_vars['breadcrumbs']->value;?>

            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">تعديل فى <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>
</span>
                        </div>
                        <div class="actions">
                            <a class="btn default btn-xs blue tooltips" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
/show" data-container="body" data-placement="top" data-original-title="Show">
                                <i class="icon-list"></i>
                                عرض البيانات
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
/updateit" method="post" class="" id="controll_form">
                            <div class="form-body">
                                <div class="alert alert-danger display-hide">
                                    <button class="close" data-close="alert"></button>
                                    لديك خطا فى ادخال البيانات , حاول مره اخرى
                                </div>
                                <div class="alert alert-success display-hide">
                                    <button class="close" data-close="alert"></button>
                                    لقد ادخلت بيانات صحيح
                                </div>


                                <div class="form-group form-md-line-input has-success">
                                    <input type="text" class="form-control" id="form_control_1" name="label" placeholder="عنوان الكنترول" value="<?php echo $_smarty_tpl->tpl_vars['awcontroll']->value->label;?>
">
                                    <label for="form_control_1">عنوان الكنترول</label>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <input type="text" class="form-control" id="form_control_2" id="name" name="name" placeholder="اسم الكنترول" value="<?php echo $_smarty_tpl->tpl_vars['awcontroll']->value->name;?>
">
                                    <label for="form_control_2">اسم الكنترول</label>
                                    <span class="help-block">ادخل اسم الكنترول مثل 'page'</span>
                                </div>


                                <div class="col-md-12">
                                    <h5 class="pull-left">خدمات الكنترول</h5>
                                    <button type="button" class="btn blue-madison pull-right myplusbtn" id="myplusbtn">اضافه خدمه</button>
                                </div>
                                <div class="clearfix"></div>
                                <br/>


                                <ul class="list-group plusitemprop" id="plusitemprop">
                                    <?php $_smarty_tpl->tpl_vars['count'] = new Smarty_variable(1, null, 0);?>
                                    <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['awcontrollprops']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                    <li class="list-group-item row nomargin">

                                        <div class="form-group col-md-7">
                                            <label class="col-md-3 control-label">اسم الخدمه</label>
                                            <div class="col-md-4">
                                                <div class="input-icon right">
                                                    <i class="fa fa-font"></i>
                                                    <input type="text" class="form-control" placeholder="اسم الخدمه" name="proplabel<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['single']->value->proplabel;?>
" required>
                                                    <input type="hidden" id="propid<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" name="propid<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group col-md-4">
                                            <label class="col-md-3 control-label">الصلاحيه:</label>
                                            <div class="radio-list">
                                                <label class="radio-inline">
                                                    <input type="radio" name="checkval<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" id="checkval<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" value="1" <?php if ($_smarty_tpl->tpl_vars['single']->value->checkval==1){?> checked<?php }?>> مسموح </label>
                                                <label class="radio-inline">
                                                    <input type="radio" name="checkval<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" id="checkval<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" value="0" <?php if ($_smarty_tpl->tpl_vars['single']->value->checkval==0){?> checked<?php }?>> ممنوع </label>
                                            </div>
                                        </div>
                                        <?php if ($_smarty_tpl->tpl_vars['count']->value!=1){?>
                                        <div class="col-md-1 pull-right">
                                            <button type="button" class="btn spinner-down red minsprop" data-edit="0" data-id="<?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
">
                                                <i class="fa fa-minus"></i>
                                            </button>
                                        </div>
                                        <?php }?>
                                    </li>
                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'count', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['count']->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 } ?>
                                </ul>
                                <input type="hidden" id="propitr" name="propitr" value="<?php echo count($_smarty_tpl->tpl_vars['awcontrollprops']->value);?>
" />
                                <input type="hidden" id="id" name="id" value="<?php echo $_smarty_tpl->tpl_vars['awcontroll']->value->id;?>
" />

                            </div>
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" class="btn green">تعديل</button>
                                        <button type="button" class="btn default rtnshow" data-controll="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
">الغاء</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->
<?php }} ?>