simpleadmingalleryimage.phtml 1.19 KB

<?php
$params=$this->getRequest()->getParams();
D::ulli('Test sg.phtml',1);		
?>




<?php $NcImagesForCustomer = Mage::helper('anc_image/ncmodel')->getNcImagesForAlbum($params['id']);  ?>

<ul class="gallery AncGalleryImages">
	<?php if ($params['id']>0):?>
	<?php foreach($NcImagesForCustomer as $ncimage ): ?>
		<?php $NcImagePath = Mage::helper('anc_image/ncimage')->getNcImagePath($ncimage['entity_id'], 'relative', 'thumbnail');?>
		<?php $url= Mage::helper("adminhtml")->getUrl("image/adminhtml_image/edit/",array('id'=>$ncimage['entity_id'])); ?>
		<?php // $NcImagePath = Mage::helper('anc_image/ncimage')->getNcImagePath($ncimage['entity_id'], 'relative', 'original'); ?>
		<?php $ncimage_title = Mage::helper('anc_image/ncimage')->getNcImageMetaDataAsHtml($ncimage['entity_id']); ?>
		<a data-site="<?php echo $this->getUrl('ancimage/customer/showNcImageForm', array('id'=>$ncimage['entity_id'])) ?>" class="ancimage-showNcImageForm" rel="prettyPhoto[pp_gal2]" href="<?php echo $url ?>" title="<?php echo $ncimage_title; ?>">
			<img height="50" src="<?php echo DS.$NcImagePath ?>" class="anc-image-draggabl" id="<?php echo $ncimage['entity_id'] ?>" />
		</a>							
	<?php endforeach; ?>
	<?php	endif;?>
</ul>