#1 (permalink)  
Alt 15.08.2007, 20:38
xt:Commerce Support Kunde
 
Registriert seit: 04.05.2007
Beiträge: 18
Standard textlinks in den produkt-popups

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?

Zitat:
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>

Geändert von manystyles (16.08.2007 um 10:12 Uhr)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
produktpopups, textlinks

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Produkt verlinken m2pdesign2 Admininterface 7 07.07.2008 22:29
xtc v2_0_rc_1_2 Gast warenkorb produkt ist weg jan2 Shopbereich 0 08.11.2005 20:07
2 Warenbest?nde, 1 Produkt ? Charon Installation und Konfiguration 1 26.02.2004 18:09


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:16 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand