} // get_photo_details
+ public function getPhotoName($idx)
+ {
+ $details = $this->get_photo_details($idx);
+
+ return $details['name'];
+
+ } // getPhotoName()
+
public function translate_path($path, $width = 0)
{
return str_replace($this->cfg->path_replace_from, $this->cfg->path_replace_to, $path);
$img_height[$rows] = Array();
$img_width[$rows] = Array();
$img_id[$rows] = Array();
+ $img_name[$rows] = Array();
for($i = $begin_with; $i < $end_with; $i++) {
$images[$rows][$cols] = $photos[$i];
$img_id[$rows][$cols] = $i;
+ $img_name[$rows][$cols] = $this->getPhotoName($photos[$i]);
$thumb_path = $this->cfg->base_path ."/thumbs/". $this->cfg->thumb_width ."_". $this->getMD5($photos[$i]);
$this->tmpl->assign('img_width', $img_width);
$this->tmpl->assign('img_height', $img_height);
$this->tmpl->assign('img_id', $img_id);
+ $this->tmpl->assign('img_name', $img_name);
$this->tmpl->assign('rows', $rows);
$this->tmpl->assign('columns', $this->cfg->thumbs_per_row);
}
}
+function setBackGrdColor(item, color)
+{
+ if(color == 'mouseover')
+ item.style.backgroundColor='#c6e9ff';
+ if(color == 'mouseout')
+ item.style.backgroundColor='#eeeeee';
+ if(color == 'mouseclick')
+ item.style.backgroundColor='#93A8CA';
+}
+
var startup = 1;
color: #00aa44;\r
}\r
\r
+a.thumblink {\r
+ font-size: 12px;\r
+}\r
+\r
+a.thumblink:hover {\r
+ color: #4761ab;\r
+}\r
+\r
#matrix,#single {\r
padding: 10px;\r
}\r
\r
td.thumb {\r
- padding: 1px;\r
+ padding: 5px;\r
text-align: center;\r
}\r
\r
-#outter {\r
- padding: 10px;\r
- background-color: #eeeeee;\r
-}\r
-\r
#inner {\r
- padding: 7px;\r
- -moz-border-radius: 1em;\r
- border-radius: 1em;\r
+ padding: 10px;\r
+ -moz-border-radius: 3px;\r
+ border-radius: 3px;\r
border: dashed 1px #888888;\r
-\r
+ background-color: #eeeeee;\r
}\r
\r
#photo_details {\r
-<!-- Image Matrix -->
+<!-- Photo Index -->
<table>
<tr>
<td colspan="3">
{section name="col" loop=$columns step=1}
<td class="thumb">
{if $images[row][col] }
- <div id="outter">
- <div id="inner">
- <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}">
+ <div id="inner" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');">
+ <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink">
<img class="thumb" id="{$images[row][col]}" src="phpfspot_img.php?idx={$images[row][col]}&width={$width}" alt="thumb_{$images[row][col]}" width="{$img_width[row][col]}" height="{$img_height[row][col]}" />
+ <br />
+ {$img_name[row][col]}
</a>
</div>
- </div>
{else}
{/if}
</td>
</tr>
</table>
-<!-- /Image Matrix -->
+<!-- /Photo Index -->