commit | author | age
|
175a52
|
1 |
<?php |
JK |
2 |
include('./includes/std.php'); |
|
3 |
|
|
4 |
validate::KOD($_POST['kod'], FALSE); |
|
5 |
|
|
6 |
$ibd = new ibd; |
|
7 |
|
|
8 |
switch( validate::type($_POST['isn']) ) { |
|
9 |
case 'ISBN': |
|
10 |
$szukaj1 = ksiazki::szukaj_ISBN($_POST['isn']); |
|
11 |
$szukaj2 = $ibd->szukaj_ISBN($_POST['isn']); |
|
12 |
break; |
|
13 |
case 'ISSN': |
|
14 |
$szukaj1 = ksiazki::szukaj_ISSN($_POST['isn']); |
|
15 |
$szukaj2 = $ibd->szukaj_ISSN($_POST['isn']); |
|
16 |
break; |
|
17 |
} |
|
18 |
|
|
19 |
$i = 0; |
|
20 |
|
|
21 |
$title = 'Dodawanie książki'; |
|
22 |
include('./design/top.php'); |
|
23 |
?> |
|
24 |
|
|
25 |
<h3> Krok 2 - wybierz żądaną książkę </h3> |
|
26 |
|
|
27 |
<?php |
|
28 |
gotowe::dodaj_lista($_POST['kod'], $szukaj1, $szukaj2); |
|
29 |
|
|
30 |
include('./design/bottom.php'); |
|
31 |
?> |