Jacek Kowalski
2019-12-16 07517ae563097e04e91ea3fae2c2ca1cf2309b86
commit | author | age
175a52 1 <?php
JK 2 include('./includes/std.php');
3
4 validate::MSC($_POST['regal'], $_POST['polka'], $_POST['rzad']);
5 if(!empty($_POST['regal2']) || !empty($_POST['polka2']) || !empty($_POST['rzad2'])) {
6     validate::MSC($_POST['regal2'], $_POST['polka2'], $_POST['rzad2']);
7 }
8
9 $arr = array();
10
11 if(!empty($_POST['regal'])) {
12     $arr['regal'] = $_POST['regal'];
13 }
14 if(!empty($_POST['polka'])) {
15     $arr['polka'] = $_POST['polka'];
16 }
17 if(!empty($_POST['rzad'])) {
18     $arr['rzad'] = $_POST['rzad'];
19 }
20
21 $aff = ksiazki::miejsce($_POST['regal2'], $_POST['polka2'], $_POST['rzad2'], $arr);
22
23 $title = 'Położenie książki';
24 include('design/top.php');
25
26 echo '<p>Ustalono położenie '.$aff.' książek.</p>';
27
28 include('design/bottom.php');
29 ?>