| 3 |
lars |
1 |
<div class="basket">
|
|
|
2 |
<div class="basket_oben">
|
|
|
3 |
<form name=buy class=buy action="<?=$SCRIPT_URL;?>" method="post">
|
|
|
4 |
|
|
|
5 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
6 |
<tr>
|
|
|
7 |
<td>Bitte wählen Sie die gewünschte Versand- und Zahlungsart aus:</td>
|
|
|
8 |
</tr>
|
|
|
9 |
</table>
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
<table border=0 cellpadding="0" cellspacing="0">
|
|
|
13 |
<tr>
|
|
|
14 |
<td height="21" colspan=2>Versandart</td>
|
|
|
15 |
</tr>
|
|
|
16 |
<?
|
|
|
17 |
function getSelectedVersandItem()
|
|
|
18 |
{
|
|
|
19 |
foreach($_SESSION[SHOP][BASKET] as $id => $item)
|
|
|
20 |
{
|
|
|
21 |
if ($item[$opt[ID]][Versand])
|
|
|
22 |
{
|
|
|
23 |
return $id;
|
|
|
24 |
}
|
|
|
25 |
}
|
|
|
26 |
return false;
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
// Falls keine Versandoption ausgewählt
|
|
|
30 |
$versandOptionen=getVersandItems();
|
|
|
31 |
if (getSelectedVersandItem() == false)
|
|
|
32 |
{
|
|
|
33 |
$noSelection = true;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
$_SESSION["MSG"]=array();
|
|
|
37 |
// Versandoption ausgeben
|
|
|
38 |
foreach($versandOptionen as $opt)
|
|
|
39 |
{
|
|
|
40 |
$md5 = md5($opt[kurz].$opt[beschr]);
|
|
|
41 |
$_SESSION["MSG"][]=array("MD5" => $md5, "name" => $opt[kurz], "text" => $opt[beschr]);
|
|
|
42 |
?>
|
|
|
43 |
<tr>
|
|
|
44 |
<td height="21">
|
|
|
45 |
<input type=radio name="ID" value="<?=$opt[ID];?>" <? if (($_SESSION[SHOP][BASKET][$opt[ID]][Versand]) or ($noSelection == true)) {echo " checked";} ?>>
|
|
|
46 |
</td>
|
|
|
47 |
<td valign="middle" height="21">
|
|
|
48 |
<table cellspacing="0" cellpadding="0">
|
|
|
49 |
<tr>
|
|
|
50 |
<td><?=$opt[kurz];?><? if ($opt[preis] > 0) {echo "(zzgl. ".numberFormat($opt[preis])." euro)";} else {echo "kostenlos";} ?><? if ($opt[beschr]) { ?> </td>
|
|
|
51 |
<td><a href="#" onClick="window.open('msg.php?msg=<?=$md5;?>','','height=200,width=610')" title="Informationen zu "<?=$opt[kurz];?>""><img src="/images/webelemente/fragezeichen.gif"></a><? } ?></td>
|
|
|
52 |
</tr>
|
|
|
53 |
</table>
|
|
|
54 |
|
|
|
55 |
</td>
|
|
|
56 |
</tr>
|
|
|
57 |
<?
|
|
|
58 |
$noSelection = false;
|
|
|
59 |
}
|
|
|
60 |
?>
|
|
|
61 |
</table>
|
|
|
62 |
<table width="98%" border="0" cellspacing="0" cellpadding="0">
|
|
|
63 |
<tr>
|
|
|
64 |
<td><a href="<?=$SCRIPT_URL;?>?buy=true&step=<?=$_SESSION[SHOP][buy][step]-1;?>"><img name="back" border="0" src="/images/webelemente/buttons/bt_zurueck.gif"></a></td>
|
|
|
65 |
<td align="right"><a href="javascript:document.buy.submit();"><img name="forward" border="0" src="/images/webelemente/buttons/bt_ok.gif"></a>
|
|
|
66 |
</td>
|
|
|
67 |
</tr>
|
|
|
68 |
</table>
|
|
|
69 |
<input type="hidden" name="action" value="Versand">
|
|
|
70 |
<input type="hidden" name="step" value="<?=$_SESSION[SHOP][buy][step]+1;?>">
|
|
|
71 |
</form>
|
|
|
72 |
</div>
|
|
|
73 |
<div class="basket_unten"></div>
|
|
|
74 |
</div>
|