<?php /* Smarty version Smarty-3.1.11, created on 2025-07-24 13:36:41
         compiled from "..\views\default\productview\showimage.html" */ ?>
<?php /*%%SmartyHeaderCode:1786668820cb9804129-14452657%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6eef0d71df88571e3d2959b6446d9265fcd640cc' => 
    array (
      0 => '..\\views\\default\\productview\\showimage.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1786668820cb9804129-14452657',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'outputString' => 0,
    'catDataReport' => 0,
    'data' => 0,
    'allstores' => 0,
    'chk' => 0,
    'usergroupname' => 0,
    'message' => 0,
    'productCatId' => 0,
    'productCatDescription' => 0,
    'productsData' => 0,
    'userGroupData' => 0,
    'username' => 0,
    'i' => 0,
    'Programsettingdata' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_68820cb9c98017_42474815',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_68820cb9c98017_42474815')) {function content_68820cb9c98017_42474815($_smarty_tpl) {?>﻿<script type="text/javascript" charset="utf-8">


    $(document).ready(function () {
        $('#example').dataTable({
            "bPaginate": false,
            "bStateSave": true,
            "sDom": 'TCR<"clear">lfrtip',
            "oTableTools": {
                "aButtons": [
                    "copy",
                    "print",
                    {
                        "sExtends": "collection",
                        "sButtonText": "حفظ",
                        "aButtons": ["csv", "xls"]
                    }
                ]
            }
        });
    });

</script>
<style>


    .dropzone {
        min-height: 150px;
        border: 1px solid #ddd!important;
        background: white;
        padding: 20px 20px;
        border-radius: 5px;
        margin: 5px;
        /* width: 100%; */
    }
    .dropzone .dz-preview .dz-details {
        opacity: 1;
    }
    .magnify:hover {
        position:relative;
        transition: transform .3s; /* Animation */
        transform: scale(3.5);
        z-index:999;
        top:-25px;
        left:-35px;
        display:block;
    }
.file-img{
    height: 46px;
    margin: 4px;
    width: 57px;
}
    .img-upload-inline{
        float: right;
        display: inline-block;
        border: 1px solid #ddd;
        margin: 2px;
        width: 90px;
        padding: 5px;
        border-radius: 5px;
        /*overflow: hidden;*/
        background-color: #f5f5f5;
    }
    .img-upload-inline img{
        width: 30px;
        margin-bottom: 3px;
        border-radius: 2px;
        height: 28px;
        display: inline;
    }
    .mTop{
        margin-top: 18px;
    }
    .mRight{
        margin-right: 3px;
    }
    .mBottom{
        margin-bottom: 25px;
    }
    .mStyle{
        width: 90px;text-align: center;
    }
    a:link, a:visited, a:hover, a:active{
        text-align: center !important;
    }
    .product-image-overlay {
        /*        position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.9);
                z-index: 9999;
                display: none;*/

        position: fixed;
        top: 15%;
        left: 40%;
        /* text-align: center; */
        width: 30%;
        height: 50%;
        background: rgba(4, 0, 0, 0.38);
        z-index: 9999;
        border-radius: 45px;
        display: none;
    }

    .product-image-overlay .product-image-overlay-close {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #eee;
        line-height: 35px;
        font-size: 20px;
        color: #eee;
        text-align: center;
        cursor: pointer;
    }

    .product-image-overlay img {
        width: auto;
        max-width: 80%;
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    .nav-pills>li {
        float: right;
    }
</style>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">المنتجات</a></li>
            <li><a href="#">المنتجات </a></li>
            <li class="active">عرض المنتجات</li>
        </ol>
        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">عرض المنتجات</h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[56]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>

            </div>
            <div class="panel-body">

                <!---------- start outputString alert ----------->
                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <p id="outputStringValue"><?php echo $_smarty_tpl->tpl_vars['outputString']->value;?>
</p>
                    <div class="clearfix"></div>
                </div>
                <!---------  end outputString alert ------------>
                <form class="form-inline hidden-print" action="productController.php?do=showImage" method="post">
                    <div class="form-group col-lg-5">
                        <label class="sr-only">تصنيف المنتج</label>
                        <select class="select2 wdt300 productCatt" data-level="0" name="productCatId0" id="productCatId0" >
                            <option value="-1">اختر تصنيف</option>
                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['catDataReport']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatId;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
</option>
                            <?php } ?>
                        </select>
                        <input type="hidden" id="level" name="level" value="0">

                    </div>
                    <div id="manyParents">

                    </div>
                    <div class="form-group col-lg-5" style="
    margin-right: -53px;
    padding: 6px;">
                        <label class="sr-only">المخازن</label>
                        <select class="select2 wdt300 store"  name="store" id="store">
                            <option value="-2">اختر المخزن</option>
                            <option value="-1">كل المخازن</option>
                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allstores']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->storeId;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->storeName;?>
</option>
                            <?php } ?>
                        </select>

                        <label>  <input name="image" type="checkbox" value="1"  <?php if ($_smarty_tpl->tpl_vars['chk']->value==1){?> checked <?php }?>>الصور</label>
                    </div>

                    <input type="hidden" name="usergroupname" id="usergroupname" value="<?php echo $_smarty_tpl->tpl_vars['usergroupname']->value;?>
"/>
                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
                <br/>
            </div>
            <div class="panel panel-default panel-m">
                <!-- Default panel contents -->
                <div class="panel-heading"><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
</div>

                <div class="alert alert-primary" role="alert">
                    <label class="sr-only">وصف التصنيف :</label>
                    <textarea name="productCatDescription" class="productCatDescription" data-id="<?php echo $_smarty_tpl->tpl_vars['productCatId']->value;?>
" data-type="productCatDescription" cols="50" rows="3"><?php echo $_smarty_tpl->tpl_vars['productCatDescription']->value;?>
</textarea>
                </div>
                
                <div id="exTab1" class="container">
                    <ul  class="nav nav-pills">
                        <li class="active">
                            <a  href="#1a" data-toggle="tab">الكل</a>
                        </li>
                        <li><a href="#2a" data-toggle="tab">المنتهي</a>
                        </li>
                    </ul>

                    <div class="tab-content clearfix">
                        <div class="tab-pane active" id="1a">
                            
                            <form id="form1" name="form1" method="post"
                                  action="productController.php?do=executeOperation2" onsubmit="if (Spry.Widget.Form.validate(this)) {
                        return countChoosenProducts('productController');
                        } else {
                        return false;
                        }
                        " enctype="multipart/form-data">
                                

                                <div class="table-responsive" id="tableWrap">
                                    <?php if (!empty($_smarty_tpl->tpl_vars['productsData']->value)){?>
                                    <table class="display table-black" id="example">

                                        <thead>
                                        <tr>

                                            <th>اسم المنتج</th>
                                            <th <?php if ($_smarty_tpl->tpl_vars['userGroupData']->value->hideproductcatid==1){?> class="hidden" <?php }?>> الصوره
                                                الرئيسية
                                            </th>
                                            <th> الصور</th>
                                            <th> الكميه</th>
                                            <th>الوصف</th>
                                            <th>معلومات تنزيل</th>
                                            <th>اسم المستخدم</th>
                                            <th>مراجعه</th>

                                        </tr>
                                        </thead>


                                        <tbody>
                                        <input type="hidden" name="pro_username" id="pro_username"
                                               value="<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
">
                                        <?php if ($_smarty_tpl->tpl_vars['chk']->value==0){?>

                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>

                                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['productsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                        <?php if ($_smarty_tpl->tpl_vars['data']->value->reviewType==0){?>

                                        <tr>


                                            <input type="hidden" name="pro_id_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" id="pro_id_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
">


                                            <td>
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->productName;?>
/<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
 </label>

                                                <?php echo $_smarty_tpl->tpl_vars['data']->value->productName;?>
/<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>



                                            </td>
                                            <td>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_0 magnify" alt="" width="122" height="75">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_0" data-type="ImageNew"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="0" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_0"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
">
                                                    <!--<img src="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
">-->
                                                </div>
                                            </td>
                                            <td>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo1;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_1 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_1" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="1" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_1"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo1"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo1;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo2;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_2 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_2" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="2" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_2"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo2"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo2;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo3;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_3 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_3" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="3" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_3"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo3"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo3;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo4;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_4 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_4" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="4" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_4"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo4"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo4;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo5;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_5 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_5" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="5" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_5"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo5"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo5;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo6;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_6 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_6" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="6" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_6"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo6"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo6;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <!--                                        <div action="productControllerAjax.php?do=A_productUpdate" class="dropzone" id="my-dropzones<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itracolum="7" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" data-filename="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_7">
                                                    </div>-->
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo7;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_7 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_7" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="7" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_7"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo7"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo7;?>
">
                                                </div>

                                            </td>
                                            <td>
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->productquantity;?>
 </label>

                                                <?php echo $_smarty_tpl->tpl_vars['data']->value->productquantity;?>


                                            </td>
                                            <td>
                                                <textarea name="Description" data-type="DescriptionNew"
                                                          class="form-control m_productNew DescriptionNew Description_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                          data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                          id="Description_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" style="height: 70px"><?php echo $_smarty_tpl->tpl_vars['data']->value->productDescription;?>
</textarea>
                                                <!--<input type="text" name="Description" data-type="DescriptionNew" class="mStyle m_productNew DescriptionNew Description_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" id="Description_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" value='<?php echo $_smarty_tpl->tpl_vars['data']->value->productDescription;?>
'/>-->
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->productDescription;?>
 </label>
                                            </td>

                                            <td>
                                                <textarea name="online" data-type="online"
                                                          class="form-control m_productNew online online_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                          data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                          id="online_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" style="height: 70px"><?php echo $_smarty_tpl->tpl_vars['data']->value->online;?>
</textarea>
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->online;?>
 </label>
                                            </td>

                                            <td>

                                                <?php echo $_smarty_tpl->tpl_vars['data']->value->username;?>
<?php if ($_smarty_tpl->tpl_vars['data']->value->updatebyuser){?><br/><span style="color: red"><?php echo $_smarty_tpl->tpl_vars['data']->value->updatebyuser;?>
</span><?php }?>
                                            </td>

                                            <td><input type="button"  class="btn btn-primary Reviewed" id="rev_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                       value="مراجعه" <?php if (($_smarty_tpl->tpl_vars['data']->value->productDescription==''||$_smarty_tpl->tpl_vars['data']->value->productDescription==null)||($_smarty_tpl->tpl_vars['data']->value->logo==''||$_smarty_tpl->tpl_vars['data']->value->logo==null||$_smarty_tpl->tpl_vars['data']->value->logo==".")){?>disabled<?php }?>></td>

                                        </tr>

                                        <?php }?>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                        <?php } ?>


                                        <?php }else{ ?>

                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>

                                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['productsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp1==''||$_tmp2=='.'){?>
                                        <?php if ($_smarty_tpl->tpl_vars['data']->value->reviewType==0){?>

                                        <tr>


                                            <input type="hidden" name="pro_id_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" id="pro_id_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                   value="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
">

                                            <td>
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->productName;?>
/<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
 </label>

                                                <?php echo $_smarty_tpl->tpl_vars['data']->value->productName;?>
/<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>



                                            </td>

                                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->priceing;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==0){?>

                                            <td>
                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_0 magnify" alt="" width="122" height="75">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_0" data-type="ImageNew"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="0" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_0"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
">
                                                    <!--<img src="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
">-->
                                                </div>


                                            </td>

                                            <td>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo1;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_1 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_1" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="1" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_1"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo1"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo1;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo2;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_2 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_2" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="2" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_2"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo2"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo2;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo3;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_3 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_3" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="3" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_3"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo3"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo3;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo4;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_4 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_4" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="4" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_4"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo4"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo4;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo5;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_5 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_5" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="5" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_5"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo5"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo5;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo6;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_6 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_6" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="6" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_6"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo6"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo6;?>
">
                                                </div>

                                                <div class="img-upload-inline">
                                                    <label class="hidden hidden-print"> </label>

                                                    <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo7;?>
"
                                                         class="iamge_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_7 magnify" alt="" width="50" height="50">
                                                    <input type="file" name="pro_Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_7" data-type="ImageNew1"
                                                           class="mStyle ImageNew Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                           data-itracolum="7" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                           id="Image_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
_7"/>
                                                    <input type="hidden" name="oldlogo" id="oldlogo7"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['data']->value->logo7;?>
">
                                                </div>

                                            </td>
                                            <td>
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->quan;?>
 </label>

                                                <?php echo $_smarty_tpl->tpl_vars['data']->value->quan;?>


                                            </td>
                                            <td>
                                                <textarea name="Description" data-type="DescriptionNew"
                                                          class="form-control m_productNew DescriptionNew Description_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                          data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                          id="Description_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" style="height: 70px"><?php echo $_smarty_tpl->tpl_vars['data']->value->productDescription;?>
</textarea>
                                                <!--<input type="text" name="Description" data-type="DescriptionNew" class="mStyle m_productNew DescriptionNew Description_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" id="Description_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" value='<?php echo $_smarty_tpl->tpl_vars['data']->value->productDescription;?>
'/>-->
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->productDescription;?>
 </label>
                                            </td>

                                            <td>
                                                <textarea name="online" data-type="online"
                                                          class="form-control m_productNew online online_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                                                          data-itra="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                          id="online_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" style="height: 70px"><?php echo $_smarty_tpl->tpl_vars['data']->value->online;?>
</textarea>
                                                <label class="hidden hidden-print"> <?php echo $_smarty_tpl->tpl_vars['data']->value->online;?>
 </label>
                                            </td>

                                            <td>

                                                <?php echo $_smarty_tpl->tpl_vars['data']->value->username;?>
<?php if ($_smarty_tpl->tpl_vars['data']->value->updatebyuser){?><br/><span style="color: red"><?php echo $_smarty_tpl->tpl_vars['data']->value->updatebyuser;?>
</span><?php }?>

                                            </td>

                                            <td><input type="button"  class="btn btn-primary Reviewed" id="rev_<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
"
                                                       value="مراجعه" <?php if (($_smarty_tpl->tpl_vars['data']->value->productDescription==''||$_smarty_tpl->tpl_vars['data']->value->productDescription==null)||($_smarty_tpl->tpl_vars['data']->value->logo==''||$_smarty_tpl->tpl_vars['data']->value->logo==null||$_smarty_tpl->tpl_vars['data']->value->logo==".")){?>disabled<?php }?>></td>

                                            <?php }?>
                                            <!--<td  class="hidden-print "> <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->conditions;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==0){?> <a style="margin-right: 22px !important;" href="productController.php?do=tempdelete&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
&optic=<?php echo $_smarty_tpl->tpl_vars['data']->value->isOptic;?>
"  type="button" class="btn btn-default btn-lg removeicon"> </a> <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->conditions;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==1){?> <a  href="productController.php?do=returndelete&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
&optic=<?php echo $_smarty_tpl->tpl_vars['data']->value->isOptic;?>
"  type="button" class="btn btn-default btn-lg correcticon"> </a></td>-->
                                            <?php }}?>


                                        </tr>

                                        <?php }?>
                                        <?php }?>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                        <?php } ?>

                                        <?php }?>


                                        </tbody>


                                    </table>
                                    <?php }?>

                                    <div class="clearfix"></div>
                                </div>
                                <hr/>
                                <div class="hidden-print">
                                    <div class="col-lg-12">
                                        <div class="well well-sm">
                                            <div class="form-group">
                                                <div class="col-lg-4">
                                                    <label for="operation"></label>
                                                    <span id="spryselect1">
                        <select name="operation" id="operation" data-placeholder="اختر العملية" class="select2 wdt100">
                        <option></option>
                        <option value="1">حذف مؤقت</option>

                        <option value="2">إلغاء الحذف</option>
                        </select>
                        <span class="selectRequiredMsg">اختر العملية</span></span></div>
                                            </div>
                                            <div class="form-group">
                                                <div class="col-lg-4">
                                                    <input name="" class="hidden-print btn btn-primary" type="submit"
                                                           value="تنفيذ"/>
                                                </div>
                                            </div>

                                            <!-----------  start noElementsError alert ------------->
                                            <div class="clearfix"></div>
                                            <div id="noElementsError" class="alert alert-danger fade in"
                                                 style="display:none;">
                                                <button type="button" class="close pull-left" data-dismiss="alert"
                                                        aria-hidden="true">×
                                                </button>
                                                <p>يجب اختيار العناصر أولاً</p>
                                                <div class="clearfix"></div>
                                            </div>
                                            <!----------  end noElementsError alert -------------->

                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                    <div class="clearfix"></div>
                                </div>


                                <!-- Modal -->
                                <div class="hidden-print">
                                    <div class="modal fade " id="myModal1" tabindex="-1" role="dialog"
                                         aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close pull-left" data-dismiss="modal"
                                                            aria-hidden="true">&times;
                                                    </button>
                                                    <h4 class="modal-title">تأكيد حذف مجموعة</h4>
                                                </div>
                                                <div class="modal-body"> هل تريد حذف هذا المنتج ؟</div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-default" data-dismiss="modal">
                                                        لا
                                                    </button>
                                                    <button type="button" class="btn btn-primary savemodel1">نعم
                                                    </button>
                                                </div>
                                            </div>
                                            <!-- /.modal-content -->
                                        </div>
                                        <!-- /.modal-dialog -->
                                    </div>
                                </div>
                                <!-- /.modal -->

                                <div class="hidden-print">
                                    <div class="col-lg-12">
                                        <div class="form-group">
                                            <div class="col-lg-4">
                                                <button type="button" onclick="print_Custom('mycustomheader');"
                                                        class="btn btn-success pull-right">طباعة
                                                </button>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="clearfix"></div>
                                </div>
                            </form>
                        </div>
                        <div class="tab-pane" id="2a">

                            <table class="table" id="Reviewed">
                                <thead>
                                <tr>
                                    <th>اسم المنتج</th>
                                    <th> الصوره الرئيسية</th>
                                    <th> الصور</th>
                                    <th> الكمية</th>
                                    <th>الوصف</th>
                                    <th>معلومات تنزيل</th>
                                    <th>اسم المستخدم</th>
                                </tr>
                                </thead>
                                <tbody>


                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>


    <script>

        var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");

        $('body').on('click', '.moImg', function () {

            $('body').append('<div class="product-image-overlay"><span class="product-image-overlay-close">x</span><img src="" /></div>');
            var productImage = $('img');
            var productOverlay = $('.product-image-overlay');
            var productOverlayImage = $('.product-image-overlay img');

            productImage.click(function () {
                var productImageSource = $(this).attr('src');

                productOverlayImage.attr('src', productImageSource);
                productOverlay.fadeIn(100);
                $('body').css('overflow', 'hidden');

                $('.product-image-overlay-close').click(function () {
                    productOverlay.fadeOut(100);
                    $('body').css('overflow', 'auto');
                });
            });
        });

    </script>
<?php }} ?>