<?php /* Smarty version Smarty-3.1.8, created on 2019-10-23 17:52:34
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/ProductOptionImageAjax.tpl" */ ?>
<?php /*%%SmartyHeaderCode:6443950265db05b22b58c18-52005493%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '17b30fd4ed12bdfef580c560b6496cf8da864deb' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/ProductOptionImageAjax.tpl',
      1 => 1571049180,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6443950265db05b22b58c18-52005493',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'productImageCount' => 0,
    'productOptionCount' => 0,
    'language' => 0,
    'ajax_root_path' => 0,
    'view_images' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5db05b22bb2218_00317937',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5db05b22bb2218_00317937')) {function content_5db05b22bb2218_00317937($_smarty_tpl) {?><li class="productImageInlineli<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
 productImageLi<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
">
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"delete02 icon-set fixing_right",'title'=>"click to delete",'onclick'=>"removeRowImages('".($_smarty_tpl->tpl_vars['productOptionCount']->value)."','".($_smarty_tpl->tpl_vars['productImageCount']->value)."')"),$_smarty_tpl);?>
 
   <span class="fixing_left upload-column">	<p><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMainImage'];?>
</p>      
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('root_path'=>$_smarty_tpl->tpl_vars['ajax_root_path']->value,'validate'=>"isImage",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidImage'],'view_images'=>($_smarty_tpl->tpl_vars['view_images']->value).("/"),'name'=>((("productOptionImage_").($_smarty_tpl->tpl_vars['productOptionCount']->value)).("_")).($_smarty_tpl->tpl_vars['productImageCount']->value),'width'=>"120",'message_delete'=>($_smarty_tpl->tpl_vars['language']->value['lblmsgdeleteImg']),'delete_title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>
 </div>
    
    </span>    
                  <span class="fixing_right upload-column"><span class="show" id="thumbLink_<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
" ><a href="javascript:void(0);" class="linkbtnt01" onclick="showThumbImages('<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
')">
		  <?php echo $_smarty_tpl->tpl_vars['language']->value['Uploadthumbimage'];?>
</a></span> 
                  <span class="hide"  id="thumbBlock_<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
"><p><?php echo $_smarty_tpl->tpl_vars['language']->value['lblThumbImage'];?>
</p> 
  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('root_path'=>$_smarty_tpl->tpl_vars['ajax_root_path']->value,'validate'=>"isImage",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidImage'],'view_images'=>($_smarty_tpl->tpl_vars['view_images']->value).("/"),'name'=>((("productOptionImageThumb_").($_smarty_tpl->tpl_vars['productOptionCount']->value)).("_")).($_smarty_tpl->tpl_vars['productImageCount']->value),'width'=>"120",'message_delete'=>($_smarty_tpl->tpl_vars['language']->value['lblmsgdeleteImg']),'delete_title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>
  
  </span>
 </span>
</li>
<script type="text/javascript">

  function removeRowImages(opid,imagecount)
  {
    jConfirm(msgDeleteItem, 'Delete', function (r) {
            if (r == true) {
		$("#productImagesul" + opid+" .productImageInlineli" + imagecount).remove();
                if ($(".productImageLi"+opid+":visible").size() == 1) {
                    $(".delete02").hide();
                }
		else
		{
		$(".delete02").show();	
		}
            };
        });
   
}

  // Auto Height
	function equalHeight(group) {
	tallest = 0;
	group.each(function() {
	thisHeight = $(this).height();
	if(thisHeight > tallest) {
	tallest = thisHeight;
	}
	});
	
	group.height(tallest);
	
	}
	$(document).ready(function() {
	equalHeight($(".AjaxAutoHeight"));
	
	});
function showThumbImages(opid,imagecount)
{				
$("#thumbBlock_" + opid+"_" + imagecount).removeClass('hide');
 $("#thumbLink_" + opid+"_" + imagecount).addClass("hide");
 $("#thumbBlock_" + opid+"_" + imagecount).focus();
           
}    
  

</script>
<?php }} ?>