<!--BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </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">اضافة صور ف {$shcontrollname}</span>
                        </div>
                        <div class="actions">
                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/{$controllname}/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="{$hosturl}/{$controllname}/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>

                                                                                        {foreach $gallery as $single}
                                                                                        <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="{$single.name}" data-edit="{$single.name}">
                                                                                                </div>
                                                                                                <span class="help-block help-block-error" id="showerrorname" style="color: #F3565D"></span>
                                                                                        </div>
                                                                                   {/foreach}



















                                                                                        <input type="hidden" id="id" name="id" value="{$category.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="{$controllname}">إلغاء</button>
                                                                                                </div>
                                                                                        </div>
                                                                                </div>
                                                                        </form>-->
                        <!-- END FORM-->

                        <div class="row">
                            <div class="col-md-12">
                                <div action="{$hosturl}/_global_service/uploadproit" class="dropzone dropzone-file-area" id="my-dropzones"  >

                                    {foreach $gallery as $sfile}
                                    <div class="dz-preview dz-processing dz-image-preview dz-success dz-complete">
                                        <div class="dz-image">
                                            {if $sfile.fileType == "image"}
                                            <img src="{$hosturl}/../upload/gallery/{$sfile.name}" style="width: 100%;height: 100%">
                                            {else}
                                            <video src="{$hosturl}/../upload/gallery/{$sfile.name}" controls style="width: 110%;height: 110%"></video><!--poster="{$hosturl}/../upload/static/videoposter.png"-->
                                            {/if}
                                        </div>
                                        <div class="dz-details">
                                            <div class="dz-filename">
                                                <span data-dz-name="">{$sfile.name_from_user}</span>
                                            </div>
                                        </div>
                                        <!--                                                <input type="text" placeholder="الاسم" class="form-control filename" value="{$sfile->name}" data-id='{$sfile->id}'/>
                                                                                        <input type="text" placeholder="السعر" class="form-control fileprice" value="{$sfile->oprice}" data-id='{$sfile->id}'/>-->
                                        <a href="javascript:;" data-id='{$sfile.id}' class="btn red btn-sm btn-block delprod_in">حذف</a>

                                    </div>

                                    {/foreach}
                                    <input type="hidden" id="cat_id" name="cat_id" value="{$cat_id}" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT-->
