- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
<?
include "mode.php";
#session_start();
?>
<? $carttext .='<div class="text">';
$carttext .= "<form action=\"?confirm\" method=\"post\"><table border=\"0\" width=\"100%\" cellpadding=\"3\" cellspacing=\"0\">";
$carttext .="<tr>";
$split = explode(",",$list);
foreach ($split as $item) {
$check = explode("+",$item);
$query = mysql_query("SELECT p.id, p.urlname, p.name, p.group_join_category, p.price, c.name, p.photo_foto, c.urlname FROM catalog_prod as p left join catalog_category as c ON p.group_join_category=c.id WHERE p.id=$check[0]");
$row = mysql_fetch_row($query);
$row[10]="руб.";
$add_item="";
$add_item.=$row[1]."/";
$carttext .= "</tr><tr>";
if (!empty($row[6])) {
if(file_exists($_SERVER['DOCUMENT_ROOT'].$row[6])) {
$fo1 = '<img style="border:3px solid #f1f1f1;" src="/image.php/image-name.jpg?width=100&cropratio=1:1&image='.$row[6].'" alt="'.$row[2].'" width="100" height="100" align="left" />';}
else {$fo1 = '<img style="border:3px solid #f1f1f1;" src="/images/nofoto.png" alt="'.$row[2].'" width="100" height="100" align="left" />';}
} else {
$fo1 = '<img style="border:3px solid #f1f1f1;" src="/images/nofoto.png" alt="'.$row[2].'" width="100" height="100" align="left" />';
}
$carttext .= "<td valign=\"top\" width=\"100\">
<a href=\"/catalog/$row[7]/$add_item\">$fo1</a></td><td class=\"catlist\" valign=\"top\" width=\"100%\"><a href=\"/catalog/$row[7]/$add_item\">$row[2]</a></td>";
$carttext .= "<td valign=\"top\" class=\"catlist\" nowrap=\"nowrap\">$row[4] $row[10]</td>";
$carttext .= '<td valign=\"top\" class="catlist"><input type="hidden" value="'.$row[4].'" name="curprice" id="'.$check[0].'_curprice" /><input type="text" maxlength="5" size="3" style="width:20px" name="'.$check[0].'_amount" value="'.$check[1].'" id="'.$check[0].'_amount" class="basketinput1" onKeypress="onlyDigit(event);" onkeyup="updateBasket('.$check[0].');" /></td>';
$price = $row[4] * $check[1];
$price = sprintf("%0.2f", $price);
$carttext .= "<td valign=\"top\" class=\"catlist\" nowrap>$price $row[10]</td>";
$carttext .= '<td valign=\"top\" class="catlist"><input type="button" onclick="xajax_DelFromCart('.$check[0].');" value="Удалить" class="cartsubmit1" /></td>';
if (!IsSet($total1)) {
$total1 = 0;
}
if (!IsSet($totalcheck1)) {
$totalcheck1 = 0;
}
$total1 = $total1+ $price;
$totalcheck1 = $totalcheck1 + $check[1];
$total1 = sprintf("%0.2f", $total1);
}
$carttext .= "</tr><tr>";
$carttext .= "</tr><tr>";
$carttext .= "<td colspan=\"6\"><div style=\"border-bottom: solid 1px #3e1f16; padding: 5px 0 0 0; font-size:1px;\"> </div></td>";
$carttext .= "</tr><tr>";
$carttext .= "<td width=\"100%\" colspan=\"3\" class=\"catlist1\"><b>Итого:</b></td>";
$carttext .= "<td class=\"catlist1\">$totalcheck1</td>";
$carttext .= "<td class=\"catlist1\" colspan=\"2\" nowrap><b>$total1 $value</b></td>";
$carttext .= "</tr><tr>";
$carttext .= '';
$carttext .= "<td colspan=\"6\"><div style=\"border-bottom: solid 1px #3e1f16; padding: 1px 0 0 0; font-size:1px;\"> </div><br><input type=\"submit\" value=\"Оформить заказ\" class=\"inputsubmit1\" /></td>";
$carttext .= "</tr></table></form></div>";
?>