<?php /* Smarty version Smarty-3.1.11, created on 2019-06-11 10:55:42
         compiled from "..\views\aw_ar\category\gallery.html" */ ?>
<?php /*%%SmartyHeaderCode:217605cfcdcf6103d03-48659000%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8d31cad6194aab07499d6651903e588a7bcb1ef9' => 
    array (
      0 => '..\\views\\aw_ar\\category\\gallery.html',
      1 => 1560243338,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '217605cfcdcf6103d03-48659000',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5cfcdcf61f9be9_47349713',
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'gallery' => 0,
    'single' => 0,
    'category' => 0,
    'sfile' => 0,
    'cat_id' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5cfcdcf61f9be9_47349713')) {function content_5cfcdcf61f9be9_47349713($_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;?>
/addgallery" method="post" class="form-horizontal" id="teachers_form" 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>

                                                                                        <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['gallery']->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;
?>
                                                                                        <div class="form-group">
                                                                                                <label class="col-md-2 control-label" style="text-align: right">الاسم</label>
                                                                                                <div class="col-md-6">
                                                                                                        <input type="text" class="form-control" placeholder="الإسم" name="name" id="name" minlength="2" value="<?php echo $_smarty_tpl->tpl_vars['single']->value['name'];?>
" data-edit="<?php echo $_smarty_tpl->tpl_vars['single']->value['name'];?>
">
                                                                                                </div>
                                                                                                <span class="help-block help-block-error" id="showerrorname" style="color: #F3565D"></span>
                                                                                        </div>
                                                                                   <?php } ?>



















                                                                                        <input type="hidden" id="id" name="id" value="<?php echo $_smarty_tpl->tpl_vars['category']->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 class="row">
                            <div class="col-md-12">
                                <div action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/_global_service/uploadproit" class="dropzone dropzone-file-area" id="my-dropzones"  >

                                    <?php  $_smarty_tpl->tpl_vars['sfile'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sfile']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['gallery']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sfile']->key => $_smarty_tpl->tpl_vars['sfile']->value){
$_smarty_tpl->tpl_vars['sfile']->_loop = true;
?>
                                    <div class="dz-preview dz-processing dz-image-preview dz-success dz-complete">
                                        <div class="dz-image">
                                            <?php if ($_smarty_tpl->tpl_vars['sfile']->value['fileType']=="image"){?>
                                            <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/gallery/<?php echo $_smarty_tpl->tpl_vars['sfile']->value['name'];?>
" style="width: 100%;height: 100%">
                                            <?php }else{ ?>
                                            <video src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/gallery/<?php echo $_smarty_tpl->tpl_vars['sfile']->value['name'];?>
" controls style="width: 110%;height: 110%"></video><!--poster="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/static/videoposter.png"-->
                                            <?php }?>
                                        </div>
                                        <div class="dz-details">
                                            <div class="dz-filename">
                                                <span data-dz-name=""><?php echo $_smarty_tpl->tpl_vars['sfile']->value['name_from_user'];?>
</span>
                                            </div>
                                        </div>
                                        <!--                                                <input type="text" placeholder="الاسم" class="form-control filename" value="<?php echo $_smarty_tpl->tpl_vars['sfile']->value->name;?>
" data-id='<?php echo $_smarty_tpl->tpl_vars['sfile']->value->id;?>
'/>
                                                                                        <input type="text" placeholder="السعر" class="form-control fileprice" value="<?php echo $_smarty_tpl->tpl_vars['sfile']->value->oprice;?>
" data-id='<?php echo $_smarty_tpl->tpl_vars['sfile']->value->id;?>
'/>-->
                                        <a href="javascript:;" data-id='<?php echo $_smarty_tpl->tpl_vars['sfile']->value['id'];?>
' class="btn red btn-sm btn-block delprod_in">حذف</a>

                                    </div>

                                    <?php } ?>
                                    <input type="hidden" id="cat_id" name="cat_id" value="<?php echo $_smarty_tpl->tpl_vars['cat_id']->value;?>
" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT-->
<?php }} ?>