<?php /* Smarty version Smarty-3.1.11, created on 2019-06-11 14:38:56
         compiled from "..\views\aw_ar\page\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:87295cffa0e00dacc3-37417815%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0f9088257f161bcfa4d6851d38db0aa2527a53e5' => 
    array (
      0 => '..\\views\\aw_ar\\page\\edit.html',
      1 => 1560069650,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '87295cffa0e00dacc3-37417815',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'page' => 0,
    'pages' => 0,
    'single' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5cffa0e046f085_15565792',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5cffa0e046f085_15565792')) {function content_5cffa0e046f085_15565792($_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 class ="planform" action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
/updateit" method="post" class="form-horizontal" enctype="multipart/form-data" id="myform">
                            <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="alert alert-warning display-hide" id="showerrorname">
                                    <button class="close" data-close="alert"></button>
                                    اختر اسم اخر لان هذا مستخدم من قبل
                                </div>
                                <div class="clearfix"></div>

                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-users"></i>
                                        </span>
                                        <input type="text" class="form-control" placeholder="اسم الصفحه" data-link="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
" name="name_ar" id="data" data-edit="<?php echo $_smarty_tpl->tpl_vars['page']->value->name;?>
" value="<?php echo $_smarty_tpl->tpl_vars['page']->value->name;?>
" required=""  minlength="3" maxlength="50">
                                        <label for="form_control_1">اسم الصفحه</label>
                                    </div>
                                </div>
                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-info"></i>
                                        </span>
                                        <input type="text" class="form-control"  placeholder="page name" id="data_en" name="name_en" data-edit="<?php echo $_smarty_tpl->tpl_vars['page']->value->name_en;?>
" value="<?php echo $_smarty_tpl->tpl_vars['page']->value->name_en;?>
" required="" minlength="3" maxlength="50">
                                        <label for="form_control_1">page name</label>
                                    </div>
                                </div>

                                <!--                                <div class="form-group form-md-line-input has-info">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon">
                                                                            <i class="fa fa-info"></i>
                                                                        </span>
                                                                        <input type="text" class="form-control" placeholder="الترتيب" name="order" value="<?php echo $_smarty_tpl->tpl_vars['page']->value->order;?>
"  required="">
                                                                        <label for="form_control_1">الترتيب</label>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group form-md-line-input has-info">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon">
                                                                            <i class="fa fa-users"></i>
                                                                        </span>
                                                                        <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder" data-placeholder="اختر واحد" name="parent">
                                                                            <option value=""></option>
                                                                            <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['page']->value->parent;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?> selected <?php }?>>لا يوجد</option>
                                                                            <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['pages']->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;
?>
                                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['page']->value->parent;?>
<?php $_tmp2=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp2==$_tmp3){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                                            <?php } ?>
                                                                        </select>
                                                                        <label for="form_control_1">والد العنصر</label>
                                                                    </div>
                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-1 control-label">النوع</label>
                                                                    <div class="radio-list">
                                                                        <label class="radio-inline">
                                                                            <input type="radio" name="typeshow" value="0" <?php if ($_smarty_tpl->tpl_vars['page']->value->type==0){?>checked<?php }?>> محتوى </label>
                                                                        <label class="radio-inline">
                                                                            <input type="radio" name="typeshow" value="1" <?php if ($_smarty_tpl->tpl_vars['page']->value->type==1){?>checked<?php }?>> رابط </label>
                                                                    </div>
                                                                </div>-->
                                <div id="contentshow"  <?php if ($_smarty_tpl->tpl_vars['page']->value->type==1){?> style="display: none; "<?php }?>>
                                    <div class="form-group form-md-line-input has-info" id="contentshow1">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-info"></i>
                                            </span>
                                            <textarea class="form-control ckeditor" rows="3" name="content_ar"><?php echo $_smarty_tpl->tpl_vars['page']->value->content;?>
</textarea>
                                            <label for="form_control_1">المحتوى</label>
                                        </div>
                                    </div>
                                    <div class="form-group form-md-line-input has-info" id="contentshow1_en">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-info"></i>
                                            </span>
                                            <textarea class="form-control ckeditor" rows="3" name="content_en"  minlength="3" maxlength="100" required=""><?php echo $_smarty_tpl->tpl_vars['page']->value->content_en;?>
</textarea>
                                            <label for="form_control_1">content</label>
                                        </div>
                                    </div>
                                </div>
                                <!--                                <div class="form-group form-md-line-input has-info" id="linkshow" <?php if ($_smarty_tpl->tpl_vars['page']->value->type==0){?> style="display: none; "<?php }?>">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon">
                                                                            <i class="fa fa-info"></i>
                                                                        </span>
                                                                        <input type="text" class="form-control" placeholder="رابط " name="link" url="true" required="" value="<?php echo $_smarty_tpl->tpl_vars['page']->value->link;?>
">
                                                                        <label for="form_control_1">رابط </label>
                                                                    </div>
                                                                </div>-->

                                <div class="form-group form-md-line-input has-info col-md-6">
                                    <label for="form_control_1" style="font-size: 13px;color: #888888;margin-left: 15px;">الصورة </label>
                                    <div class="input-group">

                                        <div class="clearfix"></div>
                                        <span class="input-group-addon">
                                            <i class="fa fa-image"></i>
                                        </span>
                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"></div>
                                            <div class=" thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['page']->value->image;?>
<?php $_tmp4=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['page']->value->image;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp4=="no image"||$_tmp5==''){?>
                                                <input type="hidden" id="imageurl" name="imageurl1" value="no image"/><?php }else{ ?>
                                                <div class="thumb" style="height: 100%;">
                                                    <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/page/<?php echo $_smarty_tpl->tpl_vars['page']->value->image;?>
" style="height: 100%; width: 100%; ">
                                                </div>
                                                <input type="hidden" id="imageurl" name="imageurl1" value="<?php echo $_smarty_tpl->tpl_vars['page']->value->image;?>
" /><?php }?></div>
                                            <div>
                                                <span class="btn default btn-file">
                                                    <span class="fileinput-new">استعراض</span>
                                                    <span class="fileinput-exists">تغير</span>
                                                    <input type="file" name="image1" class="img_cls">
                                                </span>
                                                <a href="#" class="btn red fileinput-exists" data-dismiss="fileinput">
                                                    حذف </a>
                                            </div>
                                        </div>
                                        <div class="clearfix margin-top-10 margin-bottom-10">
                                            <span class="label label-danger">ملاحظه!</span> يمكنك فقط رفع صور </div>
                                    </div>
                                </div>
                                <input type="hidden" id="id" name="id" value="<?php echo $_smarty_tpl->tpl_vars['page']->value->id;?>
" />
                            </div>
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button  type="submit" id="submit" class="editBtn 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 }} ?>