Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> 2 strony w 1 problem z js
armind
post
Post #1





Grupa: Zarejestrowani
Postów: 61
Pomógł: 0
Dołączył: 15.11.2012

Ostrzeżenie: (0%)
-----


  1. <!-- <![CDATA[
  2. function pobierz_platnosc() {
  3. for (x=0; x<document.checkout_address.shipping.length; x++)
  4. if (document.checkout_address.shipping[x].checked) {
  5. var pole = document.checkout_address.shipping[x].value;
  6. }
  7.  
  8. plik = "paytoship.php?q="+pole;
  9. element = document.getElementById("wynik");
  10.  
  11. xml = null;
  12. element.innerHTML="<img src='popupbox/loader.gif' alt=''>";
  13. try {
  14. xml = new ActiveXObject("Microsoft.XMLHTTP"); // IE
  15. } catch(e) {
  16. try {
  17. xml = new XMLHttpRequest(); // Mozilla/FireFox/Opera
  18. } catch(e) {
  19. xml = null;
  20. }
  21. }
  22. if (xml != null) {
  23. xml.onreadystatechange = function() {
  24. if (xml.readyState==4) {
  25. element.innerHTML=xml.responseText;
  26. }
  27. }
  28. xml.open("GET", plik, true);
  29. xml.send(null);
  30. }
  31. return false;
  32. }
  33. // ]]> -->


a tu php:

  1. <fieldset>
  2. <legend><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></legend>
  3. <div id="wynik">
  4. <table border="0" width="100%" cellspacing="0" cellpadding="3">
  5. <?php
  6. $selection = $payment_modules->selection();
  7.  
  8. $radio_buttons = 0;
  9. for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
  10. ?>
  11. <tr><td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td></tr>
  12. <tr>
  13. <td align="left">
  14. <table border="0" width="100%" cellspacing="0" cellpadding="1">
  15. <?php
  16. if (sizeof($selection) > 1) {
  17. 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";
  18. } else {
  19. echo '<tr id="tr_'.$selection[$i]['id'].'" onclick="'.(($selection[$i]['id'] != 'platnosci') ? 'wylacz_platnosci()' : '').'">' . "\n";
  20. }
  21. ?>
  22. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  23. <td class="main" width="75%" align="left"><b><?php echo $selection[$i]['module']; ?></b></td>
  24. <td class="main" align="right">
  25. <?php
  26. if (sizeof($selection) > 1) {
  27. echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment) , (($selection[$i]['id'] != 'platnosci') ? ' onclick="wylacz_platnosci()"' : '') . ' id="'.$selection[$i]['id'].'"');
  28. } else {
  29. echo tep_draw_hidden_field('payment', $selection[$i]['id']);
  30. }
  31. ?>
  32. </td>
  33. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  34. </tr>
  35. <?php
  36. if (isset($selection[$i]['error'])) {
  37. ?>
  38. <tr>
  39. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  40. <td class="main" colspan="2"><?php echo $selection[$i]['error']; ?></td>
  41. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  42. </tr>
  43. <?php
  44. } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
  45. ?>
  46. <tr>
  47. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  48. <td colspan="2">
  49. <table border="0" cellspacing="4" cellpadding="2">
  50. <?php
  51. for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
  52. ?>
  53. <td class="TableFrame" align="center" onmouseover="this.style.borderColor='#CACACA'" onmouseout="this.style.borderColor='#e7e7e7'">
  54. <table border="0" cellspacing="0" cellpadding="0">
  55. <tr><td class="main" height="65" valign="middle"><?php echo $selection[$i]['fields'][$j]['title']; ?></td></tr>
  56. <tr><td class="main" align="center"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
  57. </tr></table>
  58. </td>
  59. <?php
  60. if ( $j == 3 || $j == 7 || $j == 11 || $j == 15 || $j == 19 ) {
  61. echo '</tr><tr>';
  62. }
  63. }
  64. ?>
  65. </table>
  66. </td>
  67. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  68. </tr>
  69. <?php
  70. }
  71. ?>
  72. </table>
  73. </td>
  74. </tr>
  75. <?php
  76. $radio_buttons++;
  77. }
  78. ?>
  79. </table>
  80. </div>
  81. </fieldset>

Tutaj screen http://files.tinypic.pl/i/00217/k7c6wv2g9lvq.jpg

nie wiemy co tutaj jest grane

Ten post edytował armind 7.12.2012, 11:58:38
Go to the top of the page
+Quote Post

Posty w temacie
- armind   2 strony w 1 problem z js   7.12.2012, 11:45:01
- - cudny   Niesamowite bo my też nie wiemy Tak na prawdę to ...   7.12.2012, 11:47:57
- - armind   tzn, a jasniej??   7.12.2012, 11:49:28
- - cudny   ehh... issue to po andgielsku problerm, może ja pr...   7.12.2012, 11:56:30
- - armind   teraz dobrze?? zawsze robilem w tagach code...   7.12.2012, 11:58:58
- - cudny   Armind - ja po prostu nie mam zielonego pojęcia o ...   7.12.2012, 12:03:48
|- - armind   Cytat(cudny @ 7.12.2012, 12:03:48 ) A...   7.12.2012, 12:05:18
- - nospor   Cytatna screenie jest pokazane jaki problem mam......   7.12.2012, 12:07:57
- - armind   slepi jestescie...ze tak powiem....2 strony sie po...   7.12.2012, 12:09:33
- - nospor   Słuchaj, to że nie potrafisz opisać problemu, no n...   7.12.2012, 12:11:05
- - armind   http://images.tinypic.pl/i/00217/riihez51rpnf.jpg ...   7.12.2012, 12:11:38
- - cudny   nospor dał bym Ci like jakby była taka opcja Tak ...   7.12.2012, 12:12:03
- - nospor   Cytattutaj zaznaczylem+1000 postów dla tego kto wi...   7.12.2012, 12:13:37
- - armind   zaznaczylem, link poprawilem...   7.12.2012, 12:14:26
- - nospor   No, teraz jak link poprawiłeś to faktycznie zaznac...   7.12.2012, 12:15:28
- - armind   to teraz przejdzmy do problemu, o co w tym chodzi...   7.12.2012, 12:16:30
- - radziopoke   hehe problem leży zapewne w pierwszym kodzie Albo...   7.12.2012, 12:25:05
- - redeemer   Prawdopobnie xml.responseText zawiera kod całej st...   7.12.2012, 12:25:50
- - cudny   Domyślam się że zaczytuje Ci pełny layout, a nie t...   7.12.2012, 12:30:39
- - armind   Plik paytoship.php jakies dziwne kodowanie... tylk...   9.12.2012, 14:16:49


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 09:16