<div id="gallery_<?php echo $this->galleryName; ?>">
<ul style="list-style:none;" class="img_gallery">
<?php if(!empty($this->images) && is_array($this->images)): ?>
    <?php $path = $this->siteUrl . $this->pathGallery . '/' . $this->galleryName . '/'; ?>
    <?php foreach ($this->images as $image): ?>
    <li id="gallery_image_<?php echo $image; ?>"><?php if(isset($this->settings[2]) && $this->settings[2] == 1): ?><a href="<?php echo $path . $image; ?>" title="<?php echo $image; ?>" rel="<?php echo $this->galleryName; ?>" class="thickbox"><?php endif; ?><img border=0 title="<?php echo $image; ?>" alt="<?php echo Default_View_Helper_ToolsHelper::cropType($image); ?>" style="width:<?php echo $this->settings[0]; ?>px;" src="<?php echo $path . 'thumbnails/' . $image; ?>" /><?php if(isset($this->settings[2]) && $this->settings[2] == 1): ?></a><?php endif; ?>
    <?php if(isset($this->settings[3]) && $this->settings[3] == 1): ?><span><?php echo $image; ?></span><?php endif; ?><?php if($this->isLogin): ?> <a class="img_gallery_delete" href="javascript:;" onclick="deletePictureInGallery('<?php echo $this->galleryName; ?>', '<?php echo $image; ?>', '<?php echo $this->siteUrl; ?>');"><img src="<?php echo $this->siteUrl; ?>system/images/ico_delete.gif" style="width:20px;" alt="delete picture" title="delete this picture" /></a><?php endif; ?></li>
    <?php endforeach; ?>
<?php endif; ?>
<p style="clear: both;"></p>
</ul>
<?php if($this->isLogin): ?><div class="img_gallery_upload"><a href="javascript:;" onclick="tb_show('','<?php echo $this->siteUrl; ?>sys/backend_gallery/index/gallery/<?php echo $this->galleryName; ?>/?TB_iframe=true&height=210&width=460','');">UPLOAD PICTURES</a></div><?php endif; ?>
<p style="clear: both;"></p>
</div>