manystyles Posted August 15, 2007 Report Share Posted August 15, 2007 hallo, ich habe die "show_product_thumbs.php" jetzt so umgeschrieben, das da keine thumbnails mehr sind sondern das da textlinks stehen. in meinem fall "front" und "back". wenn jetzt ein drittes produktbild dazukommt heißt der link dann natürlich auch "back", der soll aber "top" heißen. kann mir einer erklären wie ich das mache? require ('includes/application_top.php'); require_once (DIR_FS_INC.'xtc_get_products_mo_images.inc.php'); ?> <body bgcolor="#FFFFFF"> <table align="center"> <tr> <? $mo_images = xtc_get_products_mo_images((int) $_GET['pID']); if ((int) $_GET['imgID'] == 0) $actual = ' bgcolor="#ffffff"'; else unset ($actual); echo '<td align="left" border="0" cellpadding="0" cellspacing="0"'.$actual.'>'; $products_query = xtc_db_query("select pd.products_name, p.products_image from ".TABLE_PRODUCTS." p left join ".TABLE_PRODUCTS_DESCRIPTION." pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '".(int) $_GET['pID']."' and pd.language_id = '".(int) $_SESSION['languages_id']."'"); $products_values = xtc_db_fetch_array($products_query); echo '<a style="font-family: Verdana, Arial, sans-serif; color: #000000; font-size: 12px; font-weight:bold; text-decoration:none;" href="popup_image.php?pID='.(int) $_GET['pID'].'&imgID=0" target="_parent">'.front.'</a>'; echo '</td>'; echo '<td style="width:10px;">'; echo '</td>'; if ($mo_images != false) { foreach ($mo_images as $mo_img) { if ($mo_img['image_nr'] == (int) $_GET['imgID']) $actual = ' bgcolor="#ffffff"'; else unset ($actual); echo '<td align=left'.$actual.'><a style="font-family: Verdana, Arial, sans-serif; color: #000000; font-size: 12px; font-weight:bold; text-decoration:none;" href="popup_image.php?pID='.(int) $_GET['pID'].'&imgID='.$mo_img['image_nr'].'" target="_parent">'.back.'</a></td>'; } } ?> </tr> </table> </body> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.