<!-- <![CDATA[ function pobierz_platnosc() { for (x=0; x<document.checkout_address.shipping.length; x++) if (document.checkout_address.shipping[x].checked) { var pole = document.checkout_address.shipping[x].value; } plik = "paytoship.php?q="+pole; element = document.getElementById("wynik"); xml = null; element.innerHTML="<img src='popupbox/loader.gif' alt=''>"; try { xml = new ActiveXObject("Microsoft.XMLHTTP"); // IE } catch(e) { try { xml = new XMLHttpRequest(); // Mozilla/FireFox/Opera } catch(e) { xml = null; } } if (xml != null) { xml.onreadystatechange = function() { if (xml.readyState==4) { element.innerHTML=xml.responseText; } } xml.open("GET", plik, true); xml.send(null); } return false; } // ]]> -->
a tu php:
<fieldset> <div id="wynik"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <?php $selection = $payment_modules->selection(); $radio_buttons = 0; ?> <tr> <td align="left"> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <?php echo '<tr id="tr_'.$selection[$i]['id'].'" class="moduleRow" onmouseover="rowOverEffect_Peyment(this)" onmouseout="rowOutEffect_Peyment(this)" onclick="selectRowEffect_Peyment(this, ' . $radio_buttons . ');'.(($selection[$i]['id'] != 'platnosci') ? 'wylacz_platnosci()' : '').'">' . "\n"; } else { echo '<tr id="tr_'.$selection[$i]['id'].'" onclick="'.(($selection[$i]['id'] != 'platnosci') ? 'wylacz_platnosci()' : '').'">' . "\n"; } ?> <td class="main" align="right"> <?php echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment) , (($selection[$i]['id'] != 'platnosci') ? ' onclick="wylacz_platnosci()"' : '') . ' id="'.$selection[$i]['id'].'"'); } else { } ?> </td> </tr> <?php ?> <tr> </tr> <?php ?> <tr> <td colspan="2"> <table border="0" cellspacing="4" cellpadding="2"> <?php ?> <td class="TableFrame" align="center" onmouseover="this.style.borderColor='#CACACA'" onmouseout="this.style.borderColor='#e7e7e7'"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td class="main" height="65" valign="middle"><?php echo $selection[$i]['fields'][$j]['title']; ?></td></tr> </tr></table> </td> <?php if ( $j == 3 || $j == 7 || $j == 11 || $j == 15 || $j == 19 ) { } } ?> </table> </td> </tr> <?php } ?> </table> </td> </tr> <?php $radio_buttons++; } ?> </table> </div> </fieldset>
Tutaj screen http://files.tinypic.pl/i/00217/k7c6wv2g9lvq.jpg
nie wiemy co tutaj jest grane