Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robocze x #1

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .gitignore
100644 → 100755
Empty file.
48 changes: 0 additions & 48 deletions SelectZdata Zakupu.sql

This file was deleted.

11 changes: 0 additions & 11 deletions SelectZdata Zakupu.txt

This file was deleted.

92 changes: 75 additions & 17 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -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;}
table, th, td {
border-collapse: collapse;
border:1px solid black;}
8 changes: 0 additions & 8 deletions css/style1.css

This file was deleted.

11 changes: 0 additions & 11 deletions db/SelectZdataZakupow.sql

This file was deleted.

1 change: 0 additions & 1 deletion db/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <br />";

?>
18 changes: 6 additions & 12 deletions dostawcy.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<head>
<meta charset="utf-8" />
<title>Dostawcy</title>
<link href="style/style.css" type="text/css" rel="stylesheet" media="all" />
<!-- jQuery UI library -->
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link href="css/style.css" type="text/css" rel="stylesheet" media="all" />
</head>
<body>

Expand All @@ -33,20 +33,14 @@
<label for="id_f">Indeks faktury. (może być nr faktury)</label>
<input type="text" name="id_f" size="30" maxlength="30" tabindex="7" placeholder="nr_faktury" required/><br>
<label for="data_zak">Data zakupu</label>
<input type="data" name="data_zak" size="15" maxlength="15" tabindex="6" placeholder="2016-01-01" required pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}"/><br>
<input type="date" name="data_zak" size="15" /><br>

<label for="nazwa_dost">Nazwa dostawcy</label>
<input id="nazwa1" type="text" name="nazwa_dost" size="30" maxleng="30" tabindex="9" required/>

<label for="indeks_dost">Indeks dostawcy</label>
<input id="indeksD" type="text" name="indeks_dost" size="30" maxlength="30"tabindex="8" required/><br>

<label for="id_dostawcy">ID dostawcy</label>
<input id="id_dostawcy" type="text" name="id_dostawcy" size="30" maxleng="30" tabindex="9" required/>

<label for="kraj">Kraj</label>
<input id="kraj" type="text" name="kraj" size="30" maxlength="30"tabindex="8" required/><br>

<input type="submit" value="Dodaj fakturę" />

</div>
Expand All @@ -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;
}
});
Expand Down
Loading