<?php /* Smarty version Smarty-3.1.11, created on 2019-02-06 20:26:53
         compiled from "../views/aw_ar/slider/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:2600420225c5b26ed7b42b7-17280775%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '07ebcd5a324f7789ec98607c7ce1f53a99d6d625' => 
    array (
      0 => '../views/aw_ar/slider/edit.html',
      1 => 1537359550,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2600420225c5b26ed7b42b7-17280775',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'returnedData' => 0,
    'bus' => 0,
    'single' => 0,
    'path' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5c5b26ed8ae334_20322768',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5c5b26ed8ae334_20322768')) {function content_5c5b26ed8ae334_20322768($_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="form-horizontal editForm" id="subjects_form" data-link="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
" enctype="multipart/form-data">
                            <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">
                                    <label class="col-md-2 control-label" style="text-align: right">العنوان</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" placeholder="العنوان" name="title" id="title" maxlength="50" minlength="2" required data-edit="<?php echo $_smarty_tpl->tpl_vars['returnedData']->value->title;?>
" value="<?php echo $_smarty_tpl->tpl_vars['returnedData']->value->title;?>
">
                                    </div>
                                    <span class="help-block help-block-error" id="showerrortitle" style="color: #F3565D"></span>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 control-label" style="text-align: right">الرابط </label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" placeholder="الرابط" name="link" id="link" maxlength="50" minlength="2" value="<?php echo $_smarty_tpl->tpl_vars['returnedData']->value->link;?>
">
                                    </div>
                                    <span class="help-block help-block-error" id="showerrortitle_en" style="color: #F3565D"></span>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 control-label" style="text-align: right">الباص </label>
                                    <div class="col-md-8">
                                        <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder" id="bus_id" data-placeholder="اختر باص" name="bus_id">
                                            <option value=""></option>
                                            <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['bus']->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 if ($_smarty_tpl->tpl_vars['returnedData']->value->bus_id==$_smarty_tpl->tpl_vars['single']->value->id){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                            <?php } ?>
                                        </select>                                    </div>
                                    <span class="help-block help-block-error" id="showerrortitle_en" style="color: #F3565D"></span>
                                </div>
                                <!--                                <div class="form-group">
                                                                    <label class="col-md-2 control-label" style="text-align: right">title </label>
                                                                    <div class="col-md-8">
                                                                        <input type="text" class="form-control" placeholder="title" name="title_en" id="title_en" maxlength="50" minlength="2" required data-edit="<?php echo $_smarty_tpl->tpl_vars['returnedData']->value->title_en;?>
" value="<?php echo $_smarty_tpl->tpl_vars['returnedData']->value->title_en;?>
">
                                                                    </div>
                                                                    <span class="help-block help-block-error" id="showerrortitle_en" style="color: #F3565D"></span>
                                                                </div>-->
<!--                                <div class="form-group">
                                    <label class="col-md-2 control-label" style="text-align: right">المحتوى</label>
                                    <div class="col-md-8">
                                        <textarea name="content" id="content" rows="7" class="form-control ckeditor"><?php echo $_smarty_tpl->tpl_vars['returnedData']->value->content;?>
</textarea>
                                    </div>
                                </div>-->
                                <!--                                <div class="form-group">
                                                                    <label class="col-md-2 control-label" style="text-align: right">content</label>
                                                                    <div class="col-md-8">
                                                                        <textarea name="content_en" id="content_en" rows="7" class="form-control ckeditor"><?php echo $_smarty_tpl->tpl_vars['returnedData']->value->content_en;?>
</textarea>
                                                                    </div>
                                                                </div>-->
                                <div class="form-group">
                                    <label class="col-md-2 control-label" style="text-align: right"> صورة</label>
                                    <div class="col-md-8">
                                        <div class="clearfix"></div>
                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
                                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['returnedData']->value->image;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['returnedData']->value->image;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp1=="no image"||$_tmp2==''){?>
                                                <input type="hidden" id="imageurl" name="imageurl" value="no image"/><?php }else{ ?>
                                                <div class="thumb" style="height: 100%;">
                                                    <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/m_Slider/<?php echo $_smarty_tpl->tpl_vars['returnedData']->value->image;?>
" style="height: 100%; width: 100%; ">
                                                </div>
                                                <input type="hidden" id="imageurl" name="imageurl" value="<?php echo $_smarty_tpl->tpl_vars['returnedData']->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="slider"  accept="image/jpg, image/jpeg, image/png" class="img_cls">
                                                </span>
                                                <!-- <a href="#" class="btn red fileinput-exists" data-dismiss="fileinput">
                                                        حذف </a> -->
                                                <span style="color: #F3565D" dir="ltr">1523 * 652</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <input type="hidden" id="id" name="id" value="<?php echo $_smarty_tpl->tpl_vars['returnedData']->value->id;?>
" />
                            </div>
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" id="saveSlider" 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-->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/image_validation.js"></script><?php }} ?>