0) { list($this_catname, $this_cat_description, $this_frame_style, $this_watermark_txt, $this_display_orderby, $this_display_order) = mysql_fetch_row($get_catname); } } } ?> Product Gallery : H2O Printing
  
About Us Products Client Testimonials Contact Us
Home         
0) { list($frame_top_left_sm, $frame_top_bg_sm, $frame_top_right_sm, $frame_left_bg_sm, $frame_right_bg_sm, $frame_bottom_left_sm, $frame_bottom_bg_sm, $frame_bottom_right_sm) = mysql_fetch_row($get_frames); if ((!empty($frame_top_left_sm)) && (file_exists($cfg_frames_path."/".$frame_top_left_sm))) { $frame_top_left_sm_size = getimagesize($cfg_frames_path."/".$frame_top_left_sm); } else { //$frame_top_left_sm = "spacer.gif"; } if ((!empty($frame_top_right_sm)) && (file_exists($cfg_frames_path."/".$frame_top_right_sm))) { $frame_top_right_sm_size = getimagesize($cfg_frames_path."/".$frame_top_right_sm); } else { //$frame_top_right_sm = "spacer.gif"; } if ((!empty($frame_bottom_left_sm)) && (file_exists($cfg_frames_path."/".$frame_bottom_left_sm))) { $frame_bottom_left_sm_size = getimagesize($cfg_frames_path."/".$frame_bottom_left_sm); } else { //$frame_bottom_left_sm = "spacer.gif"; } if ((!empty($frame_bottom_right_sm)) && (file_exists($cfg_frames_path."/".$frame_bottom_right_sm))) { $frame_bottom_right_sm_size = getimagesize($cfg_frames_path."/".$frame_bottom_right_sm); } else { //$frame_bottom_right_sm = "spacer.gif"; } } } } echo "View Images in: ".stripslashes($this_catname)."
"; $sql = "select id, title, thumbname, added from snipe_gallery_data where cat_id='".$_REQUEST['gallery_id']."' AND publish=1"; /* * user order by statement specified in database */ if (!empty($this_display_orderby)){ $sql .= " order by ".$this_display_orderby." "; } else { $sql .= " order by id "; } if (!empty($this_display_order)) { $sql .= " ".$this_display_order." "; } else { if ($this_display_orderby!="rand()") { $sql .= " asc "; } } if ($this_display_order!="id") { $sql .= ", id asc "; } $sql .=" LIMIT $limitvalue, $cfg_per_page_limit"; $sqlcount = "select count(*) from snipe_gallery_data where cat_id='".$_REQUEST['gallery_id']."' AND publish=1 "; $print_query ="?gallery_id=".$_REQUEST['gallery_id']."&"; //echo $sql; $sql_countresult = mysql_query($sqlcount); list($totalrows) = mysql_fetch_row($sql_countresult); if ($get_file_list = mysql_query($sql)) { $num_images = mysql_num_rows($get_file_list); $on_page_count = 1; if ($num_images > 0 ) { //echo "

"; //echo "
"; if (($page==1) && (!empty($this_cat_description))) { //echo stripslashes(nl2br($this_cat_description))."
"; } if ($totalrows == 1 ) { //echo "There is $totalrows image posted."; } else { //echo "There are $totalrows images posted. "; } // echo "Click on the thumbnails to view the fullsize images."; $rowcolor = 0; if ($cfg_num_columns > $totalrows) { $table_width = ($totalrows * $cfg_thumb_width); } else { $table_width = ($cfg_num_columns * $cfg_thumb_width); } $cfg_max_img_width = $cfg_thumb_width; echo "

"; if ($totalrows > $cfg_per_page_limit) { echo ""; } echo '\n\n"; if ($num_images!=$on_page_count) { echo "\n"; if (($empty_cells < $cfg_num_columns) && ($num_images == $on_page_count) && ($cfg_num_columns < $num_images)) { echo "\n"; if ($totalrows > $cfg_per_page_limit) { echo ""; } echo "
"; echo ""; make_user_page_nums($totalrows, $print_query, $_SERVER['PHP_SELF'], $cfg_per_page_limit, $page, $max_pages_to_show); echo "
'; echo '
'; $col_position = 1; while (list($image_id, $image_title, $image_filename, $image_date_added) = mysql_fetch_row($get_file_list)) { echo ""; $title_shortened = explode(" ", $image_title); $title_total_words = count($title_shortened); if ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo "".''.""; } if ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo ''; echo ''; echo ''.""; echo ''; echo ''."\n"; } } else { if ((($this_frame_style=="0") || ($this_frame_style=="")) && ($cfg_use_dropshadow==1)) { echo "\n
"; } elseif ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo ''; echo '
'; echo ''."\n"; echo ''."\n"; echo ''."\n\n"; } } if (!empty($image_title)) { if ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo ""; } } if ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo "
'; } if ((file_exists($cfg_thumb_path."/".$image_filename)) && (!empty($image_filename))){ $thumb_size = getimagesize($cfg_thumb_path."/".$image_filename); if ((($this_frame_style=="0") || ($this_frame_style=="")) && ($cfg_use_dropshadow==1)) { echo "
"; } elseif ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo "".'
'.""; } echo "
\"".htmlspecialchars($image_title)."\"
"; if ((($this_frame_style=="0") || ($this_frame_style=="")) && ($cfg_use_dropshadow==1)) { echo "\n"; } elseif ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo '
'; } echo ""; if ((($this_frame_style=="0") || ($this_frame_style=="")) && ($cfg_use_dropshadow==1)) { echo "\n"; } elseif ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo '
"; } echo "\n\n
"; $x = 0; while ($x <= $cfg_wordnumber_max) { echo trim($title_shortened[$x]); if ($title_total_words > ($x+1)) { echo " "; } ++$x; } if ($title_total_words > $cfg_wordnumber_max ) { echo "..."; } echo "
"; if ((!empty($this_frame_style)) && ($valid_framestyle > 0)) { echo "
\n\n"; } $empty_cells = $num_images - $on_page_count; $cells_to_span = $cfg_num_columns - $col_position; if ($col_position/$cfg_num_columns == 1){ echo "
\n\n
'."\n\n"; $col_position = 1; } } else { echo "
                                    "; } elseif (($cfg_num_columns > $num_images) && ($col_position==$num_images)) { echo "\n"; } else { echo "\n
'; } $col_position++; } $on_page_count++; } echo "
"; // addesdby ADAM make_user_page_nums($totalrows, $print_query, $_SERVER['PHP_SELF'], $cfg_per_page_limit, $page, $max_pages_to_show); echo "
\n\n\n "; } else { if ($totalrows < 1) { echo "

There are no images listed in this gallery yet.

"; } else { if ($page > ($totalrows/$cfg_per_page_limit)) { echo "

You have reached a page number that appears to be invalid. Click here to try the previous page, or return to the gallery page.

"; } } } } else { echo "

A database error has occured.

"; if ($cfg_debug_on==1) { echo "

mySQL said: "; echo mysql_error(); echo "

\n\n

SQL query: $sql

"; } } } else { echo "error - no gallery id"; } ?>
 
06. All rights reserved. H2O printing About | Products | Testimonials | Contact | Powered by Bactondale | Privacy Policy