diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/SelectZdata Zakupu.sql b/SelectZdata Zakupu.sql
deleted file mode 100644
index 3ae8c94..0000000
--- a/SelectZdata Zakupu.sql
+++ /dev/null
@@ -1,48 +0,0 @@
- SELECT t.id_towar, t.nazwa, f.data_zak
- FROM towar t
- LEFT JOIN (faktura f, faktura_has_towar thf)
- ON (t.id_towar=thf.id_towar AND f.id_faktura=thf.id_faktura )
-
- WHERE t.nazwa LIKE '%benek%'
- AND (t.id_towar,f.data_zak) IN (SELECT t.id_towar, MAX(f.data_zak)
- FROM towar t JOIN (faktura f, faktura_has_towar thf)
- ON (t.id_towar=thf.id_towar AND f.id_faktura=thf.id_faktura ) GROUP BY 1)
- ORDER BY t.nazwa, f.data_zak ASC
-
-
-
-
-
-
Lp
-
Indeks:
-
Nazwa towaru
-
Jm
-
Ilość
-
Cena netto zakupu
-
VAT
-
PKWiU
-
Cena brutto sprzedaży
-
Kod kreskowy
-
Data zakupów
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SelectZdata Zakupu.txt b/SelectZdata Zakupu.txt
deleted file mode 100644
index 827fb40..0000000
--- a/SelectZdata Zakupu.txt
+++ /dev/null
@@ -1,11 +0,0 @@
- SELECT t.id_towar, t.nazwa, f.data_zak
- FROM towar t
- LEFT JOIN (faktura f, faktura_has_towar thf)
- ON (t.id_towar=thf.id_towar AND f.id_faktura=thf.id_faktura )
-
- WHERE
- t.nazwa LIKE '%benek%'
- AND (t.id_towar,f.data_zak) IN (SELECT t.id_towar, MAX(f.data_zak)
- FROM towar t JOIN (faktura f, faktura_has_towar thf)
- ON (t.id_towar=thf.id_towar AND f.id_faktura=thf.id_faktura ) GROUP BY 1)
- ORDER BY t.nazwa, f.data_zak ASC
\ No newline at end of file
diff --git a/css/style.css b/css/style.css
index 3d273e3..7bf6626 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,44 +1,102 @@
+
body{
background-color: #E5E5E5;
}
-#pojemnik{
+#top{width: 25%; background-color: #F9B254;}
+div#pojemnik{
+ position: static;
width: 100%;
+ }
+
+
+fieldset {
+ display: block;
+ margin-left: 2px;
+ margin-right: 2px;
+ padding-top: 0.35em;
+ padding-bottom: 0.625em;
+ padding-left: 0.75em;
+ padding-right: 0.75em;
+ border: 2px groove (internal value);
+}
+
+legend {
+ background-color: gray;
+ color: white;
+ padding: 5px 5px;
}
-#towar{font-size: 18px; width: 90%;}
-#faktura{font-size: small; width: 50%;}
-label .lab{
+#towar{font-size: small; width: 100%;}
+#faktura{font-size: small; width: 100%;}
+
+#form{
float: left;
- padding-right: 0.3em;
- font-size: 18px;
+ width: 100%;
}
+div#content{width:100%;
+ background-color: #ACF2A2;
+ margin-top: 400px;
+ }
+p{background-color: blanchedalmond;}
+label .lab {
+ float: left;
+ padding: 5px 5px;
+ font-size: 25px;
+ margin-left: 15px;
+}
+
+input {
+ margin: 3px;
+}
input [type="text"]{
float: right;
- width: 50%;
+ width: 100%;
+ display: block;
+ padding-top: 1em;
+ padding-bottom: 2em;
+ margin:30px 5px 10px 5px;
}
-#indeksT{width: 150px;}
+#indeksT{width: 150px; }
#nazwaT{width:450px;}
#jm{width: 100px;}
-#ilosc{width: 100px;}
+#ilosc{width: 70px; }
#cena{width: 100px;}
-#vat{width: 100px;}
+#vat{width: 50px;}
#pkwiu{width: 100px;}
#cena_brutto{width: 100px;}
-#kodKT{width: 150px;}
+#kodKT{width: 250px; text-align: right;}
#stan_mag{width:100px; }
-#data_zak{width: 100px;}
+#data_zak{width: 60px;}
+#marza{width: 50px;}
input[type=text]:focus {
- background-color: lightblue;
+ background-color: #ADD8E6;
}
+
+#przycisk{height: 50px; width:auto; background-color:#BFBFBF ; margin: 5px 3px;}
+
.btn{
-background-color: red;
+ float: right;
+ background-color: #F9965C;
+ margin: 10px 10px;
}
+#button{background-color: #B8ABAB; margin: 10px 10px; border-radius: 8px; }
+
+.ui-autocomplete { height: 350px; overflow-y: scroll; overflow-x: hidden;}
+.ui-autocomplete-input{font-size: 18px;}
+
+#przerwa{height: 20px; background-color: #BFBFBF;}
-.ui-autocomplete { height: 60%; overflow-y: scroll; overflow-x: hidden;}
-.ui-autocomplete-input{font-size: large;}
+#faktura{width: 100%;}
+#nr_faktury{width: 150px; margin:10px 5px 10px 5px; }
+#data_zak{width: 150px;}
+#id_f{width: 150px;}
+#indeksD{width: 150px;}
+#nazwa1{width: 150px;}
-#przerwa{height: 50px; background-color: #BFBFBF;}
\ No newline at end of file
+table, th, td {
+ border-collapse: collapse;
+ border:1px solid black;}
diff --git a/css/style1.css b/css/style1.css
deleted file mode 100644
index f4478d6..0000000
--- a/css/style1.css
+++ /dev/null
@@ -1,8 +0,0 @@
-body {
-background-color: #FFC0CB;
-}
-h3 {
-background-color: #BFBFBF;
- width: 300px;
-}
-
diff --git a/db/SelectZdataZakupow.sql b/db/SelectZdataZakupow.sql
deleted file mode 100644
index c0a4543..0000000
--- a/db/SelectZdataZakupow.sql
+++ /dev/null
@@ -1,11 +0,0 @@
- SELECT t.id_towar, t.nazwa, f.data_zak
- FROM towar t
- LEFT JOIN (faktura f, faktura_has_towar thf) /* nie wiem WTF ale tak zostawię */
- ON (t.id_towar=thf.id_towar AND f.id_faktura=thf.id_faktura )
-
- WHERE
- t.nazwa LIKE '%jakaś niepełna nazwa towaru%'
- AND (t.id_towar,f.data_zak) IN (SELECT t.id_towar, MAX(f.data_zak)
- FROM towar t JOIN (faktura f, faktura_has_towar thf) ON (t.id_towar=thf.id_towar
- AND f.id_faktura=thf.id_faktura ) GROUP BY 1)
- ORDER BY t.nazwa, f.data_zak ASC
\ No newline at end of file
diff --git a/db/connect.php b/db/connect.php
index 84715f5..46ee85f 100644
--- a/db/connect.php
+++ b/db/connect.php
@@ -7,6 +7,5 @@
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
-echo "Połączone z bazą zoonet_alaska na serwerze NAZWA.PL ";
?>
diff --git a/dostawcy.php b/dostawcy.php
index 2e4e2fb..da37376 100644
--- a/dostawcy.php
+++ b/dostawcy.php
@@ -9,11 +9,11 @@
Dostawcy
-
+
@@ -33,7 +33,7 @@
-
+
@@ -41,12 +41,6 @@
-
-
-
-
-
-
@@ -59,15 +53,15 @@
focus: function(event, ui) {
$("#indeksD").val(ui.item.idD);
$("#nazwa1").val(ui.item.value); //wyszukujemy po nazwie, równocześnie pokazuje indeks a dopiero po kliknięciu id
- $("#kraj").val(ui.item.kraj);
- $("#id_dostawcy").val(ui.item.ind);
+ //$("#kraj").val(ui.item.kraj);
+ //$("#id_dostawcy").val(ui.item.ind);
return false;
},
select: function(event, ui) {
$("#indeksD").val(ui.item.idD);
$("#nazwa1").val(ui.item.value);
- $("#kraj").val(ui.item.kraj);
- $("#id_dostawcy").val(ui.item.ind);
+ //$("#kraj").val(ui.item.kraj);
+ //$("#id_dostawcy").val(ui.item.ind);
return false;
}
});
diff --git a/index.php b/index.php
index 064199b..af77f07 100644
--- a/index.php
+++ b/index.php
@@ -1,25 +1,35 @@
-";
- }
+ if ($_SESSION['nr_faktury']) {
+ echo "Faktura nr:" .$_SESSION['nr_faktury'];
+ } else {
+ echo " Brak faktury: ";
+ }
// zmienna potrzebna do prawidlowego wczytania includowanych plikow
-$add_site = true;
+$add_site = true;
?>
@@ -29,137 +39,131 @@
Baza Sklepu ZooNet
-
-
-
+