<html lang="en">
<head>
<meta charset="utf-8">
<title>Страница1</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../template/css/main.css" rel="stylesheet">
</head>
<body>
<form action="/2.php" method="post" target="_blank">
<textarea class="input1" cols = "120" name="222" readonly>Название товара</textarea>
<input class="input2" type="text" value="$ 100" name="333" readonly>
<input type="submit" value="Submit">
</form>
</body>
</html>
<head>
<title>страница2</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../template/css/main.css" rel="stylesheet">
</head>
<body>
<form action="/3.php" id="form2" method="post" name="order1">
<input class="input1" type="text" value="<?php echo $_POST["222"]; ?>" name="product2" readonly>
<input class="input1" type="text" value="<?php echo $_POST["333"]; ?>" name="product3" readonly>
</form>
<form action="/3.php" id="form1" method="post" name="order">
<input type="text" name="name" placeholder="Name*">
<input type="text" name="surname" placeholder="Surname*">
<input type="text" name="email" placeholder="Email*">
<input type="text" name="state" placeholder="State">
<input type="text" name="address" placeholder="Address">
<input type="text" name="postcode" placeholder="Postcode*">
<input style="background: #fe980f;align-items: center; margin-left: calc(43%);width:calc(10%);font-size: 20px;" class="check_out" type="Submit" form="form1" name="submit" id="submit" value="Submit">
</form>
</body>
</html>
<html lang="en">
<head>
<title>страница3</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../template/css/main.css" rel="stylesheet">
</head>
<body>
<h3>Product name: <?php echo htmlspecialchars($_POST["product2"]); ?></h3>
<h3>Price: $ <?php echo htmlspecialchars($_POST["product3"]); ?></h3>
<h3>Delivery address: <?php echo $_POST["state"]; ?>, <?php echo $_POST["address"]; ?></h3>
<h3>Your e-mail: <?php echo $_POST["email"]; ?></h3>
<br><br><br>
</body>
</html>
<form action="action.php" id="form2" method="post">
<input class="input1" type="text" value="<?php echo $_POST["222"]; ?>" name="product2" readonly>
<input class="input1" type="text" value="<?php echo $_POST["333"]; ?>" name="product3" readonly>
<input type="submit" value=" button ">
</form>
Product2 name: <?php htmlspanishchars ($_POST["product"]); ?>
Product3 name: <?php htmlspanishchars ($_POST["product"]); ?>
<h1 class="con_heading">{$LANG.SHOP_CART}</h1>
{if $items}
<form action="/shop/order.html" method="post" id="cart_form">
{include file='com_inshop_cart_items.tpl'}
<div class="cart_form">
<input type="button" name="back" value="{$LANG.SHOP_BACK_TO_SHOP}" onclick="window.location.href='{$last_url}';" />
<input type="button" name="go_order" value="{$LANG.SHOP_GO_ORDER}" onclick="$('#cart_form').submit()" />
</div>
</form>
{else}
<p>{$LANG.SHOP_CART_EMPTY}</p>
<p><input type="button" name="back" value="{$LANG.SHOP_BACK_TO_SHOP}" onclick="window.location.href='{$last_url}';" /></p>
{/if}
{if $items}
{add_js file='components/shop/js/cart.js'}
<table cellpadding="0" cellspacing="0" border="0" width="99%" class="cart_table">
{foreach key=num item=item from=$items}
<tr>
<td width="70">
<div class="art_no">{$item.art_no}</div>
</td>
<td width="25">
<a href="#" class="itemlink">
<img src="/images/markers/photo.png" border="0"/>
</a>
<div class="imghint">
<img src="/images/photos/small/{$item.filename}" />
</div>
</td>
<td>
<a href="/shop/{$item.seolink}.html" class="title">{$item.title}</a>
{if $item.var_title}<span class="var_title"> / {$item.var_title}</span>{/if}
{if $item.chars}<span class="var_title"> / {$item.chars}</span>{/if}
</td>
{if !$readonly}
<td width="30">
<a href="/shop/deletefromcart/{$item.cart_id}" title="Отказаться от товара">
<img src="/images/icons/delete.gif" border="0" />
</a>
</td>
<td style="width:60px">
{if $cfg.qty_mode=='qty'}
{if $item.qty}
<select name="qty[{$item.cart_id}]" style="width:50px" onchange="recountSumm()">
{section name=qty loop=$item.qty step=1}
<option value="{$smarty.section.qty.index+1}" {if $smarty.section.qty.index+1 == $item.cart_qty}selected="selected"{/if}>{$smarty.section.qty.index+1}</option>
{/section}
</select>
{/if}
{/if}
{if $cfg.qty_mode=='any'}
<input name="qty[{$item.cart_id}]" onchange="recountSumm()" style="width:50px;text-align:center" value="{if $item.cart_qty}{$item.cart_qty}{else}1{/if}" />
{/if}
</td>
{/if}
<td width="60" {if $readonly}align="center"{/if}>
{if $readonly}{$item.cart_qty} {/if}{if ($item.qty || $cfg.qty_mode=='any') && $cfg.qty_mode != 'one'}{$LANG.SHOP_PIECES} x {/if}
</td>
<td>
{if ($item.qty || $cfg.qty_mode=='any') && $cfg.qty_mode != 'one'}<span class="price"><span class="value">{$item.price}</span> {$cfg.currency}</span>{/if}
</td>
<td width="200" align="right">
<span class="totalprice">= <span class="value">{$item.totalprice}</span> {$cfg.currency}</span>
</td>
</tr>
{/foreach}
<tr>
<td><div class="art_no"> </div></td>
<td> </td>
<td>
<span class="total_summ_title">
{$LANG.SHOP_TOTAL_SUMM}<span id="dsize" {if !$discount_size}style="display:none"{/if}>, со скидкой <span class="value">{$discount_size}</span>%</span>
</span>
</td>
{if !$readonly}
<td> </td>
<td> </td>
{/if}
<td> </td>
<td> </td>
<td align="right">
<span class="total_summ_price">= <span class="value">{$totalsumm}</span> {$cfg.currency}</span>
<input type="hidden" id="totalsumm" value="{$totalsumm}" />
</td>
</tr>
</table>
<a href="/shop/cart.html" style="font-size:18px;font-weight:bold">Изменить заказ</a>
<script type="text/javascript">
{literal}
$('a.itemlink').hover(
function() {
$(this).parent('td').find('div.imghint').fadeIn("fast");
},
function() {
$(this).parent('td').find('div.imghint').fadeOut("fast");
}
);
{/literal}
{literal}
function calculateDiscount(totalsumm){
{/literal}
var dis = new Array();
{if $cfg.discount}
{foreach key=summ item=discount from=$cfg.discount}
dis[{$summ|intval}] = {$discount};
{/foreach}
{/if}
{literal}
var discount_size = 0;
if (isNaN(totalsumm) || totalsumm == ''){ totalsumm = 0; }
for (var summ in dis){
if (totalsumm >= summ) {
discount_size = dis[summ];
}
}
if (isNaN(discount_size) || discount_size == ''){
discount_size = 0;
}
if (discount_size > 0){
totalsumm = totalsumm - (totalsumm * (discount_size/100));
$('#dsize .value').html(discount_size);
$('#dsize').show();
} else {
$('#dsize').hide();
}
$('.total_summ_price .value').html(totalsumm);
$('.total_summ_price .value').fadeOut().fadeIn();
return;
}
{/literal}
</script>
{/if}
<html>
<head>
<title>123</title>
</head>
<body>
<?php
$quotes1 = ['1a', '1b', '1c'];
$quotes2 = ['2a', '2b', '2c'];
$quotes3 = ['3a', '3b', '3c'];
shuffle($quotes1);
shuffle($quotes2);
shuffle($quotes3);
?>
<div class="1">
<?php
echo $quotes1[0];
?>
</div>
<div class="2">
<?php
echo $quotes2[1];
?>
</div>
<div class="3">
<?php
echo $quotes3[2];
?>
</div>
</body>
</html>
<html>
<head>
<title>123</title>
</head>
<body>
<div class="1">
<?php
$quotes1 = ['1a', '1b', '1c'];
shuffle($quotes1);
echo $quotes1[0];
echo $quotes2[0];
echo $quotes3[0];
?>
</div>
<div class="2">
<?php
$quotes2 = ['2a', '2b', '2c'];
shuffle($quotes2);
echo $quotes1[1];
echo $quotes2[1];
echo $quotes3[1];
?>
</div>
<div class="3">
<?php
$quotes3 = ['3a', '3b', '3c'];
shuffle($quotes3);
echo $quotes1[2];
echo $quotes2[2];
echo $quotes3[2];
?>
</div>
</body>
</html>