Commit de0f1f3d by AlekefromKz

COMMENT TO DESCRIBE THE INTENTION OF THE COMMIT

parent 41789cf8
Showing with 2267 additions and 0 deletions
This diff is collapsed. Click to expand it.
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}
*{
box-sizing: border-box;
}
body{
font-family: "Roboto", sans-serif;
padding-top: 44px;
}
.container{
max-width: 1200px;
margin: auto;
}
header{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 35px;
vertical-align: middle;
}
.input{
font-size: 16px;
line-height: 24px;
background: #FFFFFF;
border: 1px solid #D9D9D9;
padding: 8px;
padding-left: 35px;
background-repeat: no-repeat;
background-position: left 11px center;
border-radius: 2px;
}
.input-address{
flex: 0.8;
background-image: url(../images/home.svg);
}
.input-search{
width: 306px;
background-image: url(../images/search.svg);
margin-left: auto;
}
.button{
padding: 8px 16px;
background: #FFFFFF;
border: 1px solid #D9D9D9;
box-sizing: border-box;
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.0015);
border-radius: 2px;
color: #595959;
font-size: 16px;
line-height: 24px;
}
.button-primary{
background-color: #1890FF;
color:white;
border:1px solid 1890FF;
margin-right: 10px;
}
.card-buttons{
margin-top: 15px;
}
.button-icon{
margin-right: 6px;
vertical-align: middle;
}
.button-text{
vertical-align: middle;
}
.button-card-text{
margin-right: 10px;
}
.buttons{
display: flex;
align-items: center;
}
.welcome-message{
background-color: red;
display: flex;
}
.promo{
box-shadow: 0px 7px 12px rgba(158, 158, 163, 0.1);
background: #FFF1B8 url(../images/icon-blue.png) no-repeat top -110px right -70px / 600px;
border-radius: 10px;
padding: 67px 70px;
margin-bottom: 56px;
}
.promo-title{
font-style: normal;
font-weight: bold;
font-weight: bold;
font-size: 39px;
line-height: 46px;
color: #302C34;
}
.promo-text{
font-style: normal;
font-weight: normal;
max-width: 530px;
font-size: 24px;
line-height: 28px;
color: #302C34;
}
.section-header{
display: flex;
align-items: center;
margin-bottom: 44px;
}
.section-item{
font-style: normal;
font-weight: bold;
font-size: 36px;
line-height: 42px;
margin: 0;
}
.section-title{
margin-right: 30px;
}
.cards{
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
}
.card{
background: #FFFFFF;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
border-radius: 7px;
overflow: hidden;
margin-bottom: 30px;
flex-basis: 32%;
text-decoration: none;
max-width: 384px;
max-height: 416px;
}
.card-image{
width: 384px;
height: 250px;
object-fit: cover; /*auticuting*/
}
.card-text{
padding: 20px 24px 35px 24px;
}
.card-header{
display: flex;
align-items: center;
justify-content: space-between;
}
.card-title{
margin: 0;
font-style: normal;
font-weight: bold;
font-size: 24px;
line-height: 32px;
}
.card-title-tag{
font-weight: 400;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card-buttons{
display: flex;
align-items: center;
}
.card-info{
display: flex;
align-items: center;
flex-wrap: wrap;
}
.card-price{
font-weight: bold;
font-size: 20px;
line-height: 32px;
margin-left: 30px;
}
.rating{
margin-right: 26px;
font-style: normal;
font-weight: bold;
font-size: 18px;
line-height: 32px;
color: #FFC107;
}
.price,
.category{
font-style: normal;
font-weight: normal;
font-size: 18px;
line-height: 32px;
color: #8C8C8C;
}
.ingredients{
font-style: normal;
font-weight: normal;
font-size: 18px;
line-height: 21px;
color: #8C8C8C;
overflow: hidden;
text-overflow: ellipsis;
}
.category{
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
max-width: 150px;
}
.price{
margin-right: 10px;
}
.price::after{
content: "";
width: 5px;
height: 5px;
background-color: #8C8C8C;
display: inline-block;
vertical-align: middle;
border-radius: 50%;
margin-left: 10px;
}
.main{
background: linear-gradient(180deg, rgba(245, 245, 245, 0) 1.04%, #F5F5F5 100%);
}
footer{
padding: 60px 0;
}
.footer-block{
display: flex;
align-items: center;
justify-content: space-between;
}
.footer-link{
display: inline;
text-decoration: none;
font-size: 18px;
line-height: 21px;
color: #595959;
font-style: normal;
font-weight: normal;
}
.footer-link:not(:last-child){
margin-right: 15px;
}
.footer-nav{
margin-right: auto;
margin-left: 35px;
}
.social-links{
display: flex;
align-items: center;
}
.social-link:not(:last-child){
margin-right: 21px;
}
.login{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
display: none;
}
.is-open{
display: flex;
}
.login-dialog{
width: 90%;
max-width: 480px;
background: #FFFFFF;
border-radius: 5px;
margin: auto;
padding: 40px 45px;
display: wrap;
}
.login-close-b{
max-width: 100%;
display: flex;
justify-content: flex-end;
}
.login-form{
display: flex;
justify-content: center;
align-items: center;
}
input[type="email"], textarea{
background-color: #F3EFF2;
font-size: medium;
}
input[type="password"], textarea{
background-color: #F3EFF2;
font-size: medium;
}
input[type="submit"], textarea{
background-color: #F3EFF2;
font-size: medium;
}
.register{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
display: none;
}
.register-dialog{
width: 90%;
max-width: 480px;
background: #FFFFFF;
border-radius: 5px;
margin: auto;
padding: 40px 45px;
}
.is-close{
display: flex;
}
@media(max-width: 1366px){
.container{
max-width: 960px;
}
.promo{
background-size: 750px;
background-position: center right -200px;
padding: 50px;
}
.rating{
margin-right: 15px;
}
}
@media(max-width: 992px){
.container{
max-width: 750px;
}
.promo{
background-size: 500px;
background-position: center right -200px;
padding: 50px;
}
.promo-text{
font-size: 18px;
max-width: 400px;
}
.card{
flex-basis: 49%;
}
.footer-link{
font-size: 16px;
}
}
@media(max-width: 768px){
.container{
max-width: 560px;
}
.card .rating{
flex-basis: 100%;
}
.card-info{
flex-wrap: wrap;
}
.card-title{
font-size: 18px;
}
.promo{
background-size: 400px;
background-position: bottom 55px right -200px;
}
.promo-title{
font-size: 24px;
line-height: 1.4;
}
.promo-text{
margin-top: 0;
}
.button{
font-size: 12px;
line-height: 14px;
}
}
@media(max-width: 578px){
.button{
min-height: 40px;
text-align: center;
}
.basket{
margin-bottom: 20px;
}
.container{
max-width: 90%;
}
header{
flex-wrap: wrap;
}
.input-address{
order: 5;
margin-top: 15px;
flex: 1%;
/* flex-basis: 100%; */
}
.promo{
background-image: none;
}
.promo-title{
margin-bottom: 10px;
}
.section-title{
font-size: 20px;
}
.card{
flex-basis: 100%;
}
.card-image{
width: 100%;
}
.footer{
padding: 30px;
}
.footer-block{
align-items: flex-start;
}
.footer-nav{
order:0;
margin-left: 0;
display: flex;
flex-direction: column;
margin-right: 0;
}
.footer-logo{
order:1;
margin-right: 15px;
}
.social-links{
order:2;
}
}
@media(max-width: 480px){
.button-text{
display: none;
}
.button{
min-height: 40px;
}
.button-icon{
margin: 0;
}
.promo{
padding: 20px;
}
.section-header{
flex-wrap: wrap;
}
.footer-block{
flex-wrap: wrap;
flex-direction: column;
align-items: center;
}
.footer-logo{
order:0;
margin-bottom: 20px;
}
.footer-nav{
margin-bottom: 20px;
text-align: center;
}
.footer-link:not(:last-child){
margin-right: 0;
}
}
\ No newline at end of file
<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22.8228 0.314819H4.07275C2.34932 0.314819 0.947754 1.71638 0.947754 3.43982V22.1898C0.947754 23.9133 2.34932 25.3148 4.07275 25.3148H22.8228C24.5462 25.3148 25.9478 23.9133 25.9478 22.1898V3.43982C25.9478 1.71638 24.5462 0.314819 22.8228 0.314819Z" fill="#1976D2"/>
<path d="M22.0415 12.8148H18.1353V9.68982C18.1353 8.82732 18.8353 8.90857 19.6978 8.90857H21.2603V5.00232H18.1353C15.5462 5.00232 13.4478 7.10076 13.4478 9.68982V12.8148H10.3228V16.7211H13.4478V25.3148H18.1353V16.7211H20.479L22.0415 12.8148Z" fill="#FAFAFA"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.6377 7.87727L8.84548 1.0886L8.39021 0.633327C8.28648 0.530278 8.14619 0.472443 7.99997 0.472443C7.85376 0.472443 7.71347 0.530278 7.60974 0.633327L0.36228 7.87727C0.255987 7.98315 0.171982 8.10925 0.115223 8.24813C0.0584644 8.38701 0.0301024 8.53585 0.0318111 8.68587C0.0388424 9.30462 0.553881 9.79856 1.17263 9.79856H1.9197V15.5238H14.0802V9.79856H14.8431C15.1437 9.79856 15.4267 9.68079 15.6394 9.46809C15.7442 9.3637 15.8271 9.23957 15.8836 9.10288C15.94 8.9662 15.9687 8.81968 15.9681 8.6718C15.9681 8.37298 15.8504 8.08997 15.6377 7.87727V7.87727ZM8.98435 14.2581H7.0156V10.6722H8.98435V14.2581ZM12.8146 8.53294V14.2581H10.1093V10.2503C10.1093 9.86184 9.7947 9.54719 9.40622 9.54719H6.59372C6.20525 9.54719 5.8906 9.86184 5.8906 10.2503V14.2581H3.18533V8.53294H1.49783L8.00173 2.0343L8.40779 2.44036L14.5039 8.53294H12.8146Z" fill="#8C8C8C"/>
</svg>
<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18.1353 0.314819H8.76025C4.44619 0.314819 0.947754 3.81326 0.947754 8.12732V17.5023C0.947754 21.8164 4.44619 25.3148 8.76025 25.3148H18.1353C22.4493 25.3148 25.9478 21.8164 25.9478 17.5023V8.12732C25.9478 3.81326 22.4493 0.314819 18.1353 0.314819ZM23.604 17.5023C23.604 20.5179 21.1509 22.9711 18.1353 22.9711H8.76025C5.74463 22.9711 3.2915 20.5179 3.2915 17.5023V8.12732C3.2915 5.11169 5.74463 2.65857 8.76025 2.65857H18.1353C21.1509 2.65857 23.604 5.11169 23.604 8.12732V17.5023Z" fill="url(#paint0_linear)"/>
<path d="M13.4478 6.56482C9.99619 6.56482 7.19775 9.36326 7.19775 12.8148C7.19775 16.2664 9.99619 19.0648 13.4478 19.0648C16.8993 19.0648 19.6978 16.2664 19.6978 12.8148C19.6978 9.36326 16.8993 6.56482 13.4478 6.56482ZM13.4478 16.7211C11.2946 16.7211 9.5415 14.9679 9.5415 12.8148C9.5415 10.6601 11.2946 8.90857 13.4478 8.90857C15.6009 8.90857 17.354 10.6601 17.354 12.8148C17.354 14.9679 15.6009 16.7211 13.4478 16.7211Z" fill="url(#paint1_linear)"/>
<path d="M20.1666 6.92892C20.6265 6.92892 20.9994 6.55606 20.9994 6.09611C20.9994 5.63617 20.6265 5.26331 20.1666 5.26331C19.7066 5.26331 19.3337 5.63617 19.3337 6.09611C19.3337 6.55606 19.7066 6.92892 20.1666 6.92892Z" fill="url(#paint2_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="3.23627" y1="23.0265" x2="23.6592" y2="2.60318" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFC107"/>
<stop offset="0.507" stop-color="#F44336"/>
<stop offset="0.99" stop-color="#9C27B0"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="9.02846" y1="17.2341" x2="17.8671" y2="8.39552" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFC107"/>
<stop offset="0.507" stop-color="#F44336"/>
<stop offset="0.99" stop-color="#9C27B0"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="19.5777" y1="6.6851" x2="20.7554" y2="5.50728" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFC107"/>
<stop offset="0.507" stop-color="#F44336"/>
<stop offset="0.99" stop-color="#9C27B0"/>
</linearGradient>
</defs>
</svg>
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14.6515 6.24221C14.5553 5.94476 14.2915 5.7335 13.9793 5.70536L9.73947 5.32038L8.06292 1.39623C7.9393 1.10864 7.65776 0.922485 7.34495 0.922485C7.03215 0.922485 6.75061 1.10864 6.62699 1.39691L4.95043 5.32038L0.709893 5.70536C0.398319 5.73417 0.135163 5.94476 0.0384405 6.24221C-0.0582818 6.53966 0.0310434 6.86592 0.266741 7.07158L3.47158 9.88224L2.52655 14.0451C2.45739 14.3512 2.5762 14.6676 2.83016 14.8512C2.96667 14.9498 3.12638 15 3.28744 15C3.4263 15 3.56404 14.9626 3.68766 14.8886L7.34495 12.7028L11.0009 14.8886C11.2684 15.0495 11.6057 15.0349 11.8591 14.8512C12.1131 14.667 12.2318 14.3505 12.1627 14.0451L11.2177 9.88224L14.4225 7.07214C14.6582 6.86592 14.7482 6.54022 14.6515 6.24221V6.24221Z" fill="#FFC107"/>
</svg>
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.9891 15.0205L11.424 10.4555C12.1324 9.53965 12.5156 8.41992 12.5156 7.24219C12.5156 5.83242 11.9654 4.51055 10.9705 3.51387C9.97559 2.51719 8.6502 1.96875 7.24219 1.96875C5.83418 1.96875 4.50879 2.51895 3.51387 3.51387C2.51719 4.50879 1.96875 5.83242 1.96875 7.24219C1.96875 8.6502 2.51895 9.97559 3.51387 10.9705C4.50879 11.9672 5.83242 12.5156 7.24219 12.5156C8.41992 12.5156 9.53789 12.1324 10.4537 11.4258L15.0188 15.9891C15.0321 16.0025 15.048 16.0131 15.0655 16.0203C15.083 16.0276 15.1018 16.0313 15.1207 16.0313C15.1396 16.0313 15.1584 16.0276 15.1759 16.0203C15.1934 16.0131 15.2093 16.0025 15.2227 15.9891L15.9891 15.2244C16.0025 15.211 16.0131 15.1951 16.0203 15.1776C16.0276 15.1601 16.0313 15.1414 16.0313 15.1225C16.0313 15.1035 16.0276 15.0848 16.0203 15.0673C16.0131 15.0498 16.0025 15.0339 15.9891 15.0205V15.0205ZM10.0266 10.0266C9.28125 10.7701 8.29336 11.1797 7.24219 11.1797C6.19102 11.1797 5.20313 10.7701 4.45781 10.0266C3.71426 9.28125 3.30469 8.29336 3.30469 7.24219C3.30469 6.19102 3.71426 5.20137 4.45781 4.45781C5.20313 3.71426 6.19102 3.30469 7.24219 3.30469C8.29336 3.30469 9.28301 3.7125 10.0266 4.45781C10.7701 5.20313 11.1797 6.19102 11.1797 7.24219C11.1797 8.29336 10.7701 9.28301 10.0266 10.0266Z" fill="#8C8C8C"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14.4201 10.9672H5.11537L5.58256 10.0156L13.3451 10.0016C13.6076 10.0016 13.8326 9.81406 13.8794 9.55469L14.9544 3.5375C14.9826 3.37969 14.9404 3.21719 14.8372 3.09375C14.7863 3.033 14.7227 2.98407 14.6509 2.95034C14.5792 2.91661 14.5009 2.8989 14.4216 2.89844L4.54662 2.86562L4.46224 2.46875C4.40912 2.21562 4.18099 2.03125 3.92162 2.03125H1.50756C1.36127 2.03125 1.22098 2.08936 1.11754 2.1928C1.0141 2.29624 0.955994 2.43653 0.955994 2.58281C0.955994 2.7291 1.0141 2.86939 1.11754 2.97283C1.22098 3.07626 1.36127 3.13438 1.50756 3.13438H3.47474L3.84349 4.8875L4.75131 9.28281L3.58256 11.1906C3.52186 11.2725 3.4853 11.3698 3.47702 11.4714C3.46874 11.573 3.48906 11.675 3.53568 11.7656C3.62943 11.9516 3.81849 12.0688 4.02787 12.0688H5.00912C4.79993 12.3466 4.68694 12.685 4.68724 13.0328C4.68724 13.9172 5.40599 14.6359 6.29037 14.6359C7.17474 14.6359 7.89349 13.9172 7.89349 13.0328C7.89349 12.6844 7.77787 12.3453 7.57162 12.0688H10.0888C9.87962 12.3466 9.76662 12.685 9.76693 13.0328C9.76693 13.9172 10.4857 14.6359 11.3701 14.6359C12.2544 14.6359 12.9732 13.9172 12.9732 13.0328C12.9732 12.6844 12.8576 12.3453 12.6513 12.0688H14.4216C14.7247 12.0688 14.9732 11.8219 14.9732 11.5172C14.9723 11.3711 14.9136 11.2312 14.81 11.1282C14.7064 11.0251 14.5662 10.9673 14.4201 10.9672V10.9672ZM4.77631 3.95312L13.7732 3.98281L12.8919 8.91719L5.82474 8.92969L4.77631 3.95312ZM6.29037 13.5266C6.01849 13.5266 5.79662 13.3047 5.79662 13.0328C5.79662 12.7609 6.01849 12.5391 6.29037 12.5391C6.56224 12.5391 6.78412 12.7609 6.78412 13.0328C6.78412 13.1638 6.7321 13.2894 6.6395 13.3819C6.54691 13.4745 6.42132 13.5266 6.29037 13.5266V13.5266ZM11.3701 13.5266C11.0982 13.5266 10.8763 13.3047 10.8763 13.0328C10.8763 12.7609 11.0982 12.5391 11.3701 12.5391C11.6419 12.5391 11.8638 12.7609 11.8638 13.0328C11.8638 13.1638 11.8118 13.2894 11.7192 13.3819C11.6266 13.4745 11.501 13.5266 11.3701 13.5266V13.5266Z" fill="#8C8C8C"/>
</svg>
<svg width="16" height="24" viewBox="0 0 16 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.4145 15.9312C13.1197 15.2331 12.692 14.5989 12.1551 14.0641C11.6198 13.5277 10.9858 13.1 10.2879 12.8047C10.2817 12.8016 10.2754 12.8 10.2692 12.7969C11.2426 12.0938 11.8754 10.9484 11.8754 9.65625C11.8754 7.51562 10.141 5.78125 8.00041 5.78125C5.85978 5.78125 4.12541 7.51562 4.12541 9.65625C4.12541 10.9484 4.75822 12.0937 5.73166 12.7984C5.72541 12.8016 5.71916 12.8031 5.71291 12.8062C5.01291 13.1016 4.38478 13.525 3.84572 14.0656C3.30933 14.6009 2.88166 15.235 2.58634 15.9328C2.29622 16.616 2.13975 17.3485 2.12541 18.0906C2.12499 18.1073 2.12791 18.1239 2.13401 18.1394C2.1401 18.1549 2.14924 18.1691 2.16089 18.181C2.17254 18.193 2.18646 18.2025 2.20184 18.2089C2.21721 18.2154 2.23372 18.2188 2.25041 18.2188H3.18791C3.25666 18.2188 3.31134 18.1641 3.31291 18.0969C3.34416 16.8906 3.82853 15.7609 4.68478 14.9047C5.57072 14.0188 6.74728 13.5312 8.00041 13.5312C9.25353 13.5312 10.4301 14.0188 11.316 14.9047C12.1723 15.7609 12.6567 16.8906 12.6879 18.0969C12.6895 18.1656 12.7442 18.2188 12.8129 18.2188H13.7504C13.7671 18.2188 13.7836 18.2154 13.799 18.2089C13.8143 18.2025 13.8283 18.193 13.8399 18.181C13.8516 18.1691 13.8607 18.1549 13.8668 18.1394C13.8729 18.1239 13.8758 18.1073 13.8754 18.0906C13.8598 17.3437 13.7051 16.6172 13.4145 15.9312V15.9312ZM8.00041 12.3438C7.28322 12.3438 6.60822 12.0641 6.10041 11.5563C5.59259 11.0484 5.31291 10.3734 5.31291 9.65625C5.31291 8.93906 5.59259 8.26406 6.10041 7.75625C6.60822 7.24844 7.28322 6.96875 8.00041 6.96875C8.71759 6.96875 9.39259 7.24844 9.90041 7.75625C10.4082 8.26406 10.6879 8.93906 10.6879 9.65625C10.6879 10.3734 10.4082 11.0484 9.90041 11.5563C9.39259 12.0641 8.71759 12.3438 8.00041 12.3438Z" fill="white"/>
</svg>
<svg width="36" height="21" viewBox="0 0 36 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18.0988 20.7306H20.1934C20.1934 20.7306 20.8266 20.6605 21.1486 20.3121C21.4466 19.9922 21.4356 19.3919 21.4356 19.3919C21.4356 19.3919 21.394 16.5809 22.6998 16.1669C23.9859 15.7593 25.6378 18.8836 27.3884 20.0864C28.7117 20.9957 29.7173 20.7963 29.7173 20.7963L34.3994 20.7306C34.3994 20.7306 36.8488 20.5794 35.6876 18.6536C35.5934 18.4958 35.0106 17.2295 32.2062 14.6266C29.2704 11.9011 29.6648 12.3437 33.2009 7.63099C35.3546 4.76087 36.2156 3.00813 35.9462 2.25883C35.6898 1.54458 34.1058 1.733 34.1058 1.733L28.8388 1.76368C28.8388 1.76368 28.4488 1.7111 28.1574 1.88418C27.8748 2.05507 27.6929 2.44944 27.6929 2.44944C27.6929 2.44944 26.8582 4.67104 25.7452 6.55962C23.3987 10.5449 22.4588 10.7553 22.0754 10.5077C21.1837 9.93147 21.4071 8.18968 21.4071 6.95399C21.4071 3.09138 21.9921 1.48105 20.2657 1.06477C19.6917 0.926742 19.271 0.834723 17.8053 0.819387C15.9254 0.799668 14.3326 0.82596 13.4322 1.26634C12.8318 1.55992 12.3696 2.21501 12.6522 2.25226C13.0005 2.29827 13.7893 2.46478 14.2078 3.03442C14.7489 3.76838 14.7292 5.42034 14.7292 5.42034C14.7292 5.42034 15.0403 9.96652 14.004 10.5318C13.2919 10.9196 12.317 10.1286 10.2246 6.51142C9.15328 4.66009 8.34263 2.61157 8.34263 2.61157C8.34263 2.61157 8.18708 2.23035 7.90883 2.02659C7.57142 1.77901 7.09818 1.70014 7.09818 1.70014L2.08972 1.73081C2.08972 1.73081 1.33823 1.75272 1.06217 2.07917C0.816787 2.37057 1.04245 2.97088 1.04245 2.97088C1.04245 2.97088 4.96422 12.1443 9.40304 16.7694C13.476 21.0088 18.0988 20.7306 18.0988 20.7306Z" fill="#1E88E5"/>
</svg>
This diff is collapsed. Click to expand it.
<?php
$connnection = mysqli_connect('127.0.0.1', 'root', '', 'globalcare');
?>
\ No newline at end of file
<?php
if(!isset($data['confirm1'])){ $errors[] = 'All conditions have to be accepted!';}
if(!isset($data['confirm2'])){ $errors[] = 'All conditions have to be accepted!';}
if(!isset($data['confirm3'])){ $errors[] = 'All conditions have to be accepted!';}
?>
\ No newline at end of file
<?php
if($Email == ''){ $errors[] = 'Enter your email!';}
elseif(mb_strlen($Email) < 3 || mb_strlen($Email) > 90){$errors[] = 'Minimum length for last name is 3 characters';}
if($FirstName == ''){ $errors[] = 'Enter your first name!';}
if($LastName == ''){ $errors[] = 'Enter your last name!';}
if($BirthDate == ''){ $errors[] = 'Enter your birthday!';}
if($BirthDate < 01-01-1900 or $BirthDate > date("Y-m-d")){$errors[] = "Not possible birthday!";}
if($Country == ''){ $errors[] = 'Enter your citizenship!';}
if($Passport == ''){ $errors[] = 'Enter your passport number!';}
if($Gender == ''){ $errors[] = 'Choose your gender!';}
?>
\ No newline at end of file
<?php
if($StartDate == ''){ $errors[] = 'Enter start date!';}
if($EndDate == ''){ $errors[] = 'Enter end date!';}
if($StartDate < date("Y-m-d")){$errors[] = 'Start date can not be earlier than today!!!';}
if($StartDate > $EndDate){$errors[] = 'Start date can not be earlier than end date!';}
if($StartDate > 2030-01-01 or $EndDate > 2030-01-01){$errors[] = 'Dates have to be earlier than 2030-01-10';}
?>
\ No newline at end of file
<select id="area" name="Area" value="<?php echo @$data['Area'];?>">
<option selected="selected" value="" disabled>Select an area</option>
<?php if (isset($Area)){ ?><option value = "<?php echo $Area;?>" selected = "selected"><?php echo $Area; }?></option>
<option value="Worldwide">Worldwide</option>
<option value="USA">USA</option>
<option value="Europe">Europe</option>
<option value="Asia">Asia</option>
<option value="Worldwide-USA">Worldwide excluding USA</option>
</select>
\ No newline at end of file
<select id="car_year" name="CarYear">
<?php for($i = 2000; $i < 2020; $i++){?>
<option value="<?php $i; ?>"><?php echo $i; ?></option>
<?php } ?>
</select>
<select id="Car" name="Cars">
<option value="ASTON MARTIN">ASTON MARTIN</option>
<option value="AUDI">AUDI</option>
<option value="BENTLEY">BENTLEY</option>
<option value="BMW">BMW</option>
<option value="BUGATTI">BUGATTI</option>
<option value="FERRARI">FERRARI</option>
<option value="DAIMLERCHRYSLER">DAIMLERCHRYSLER</option>
<option value="FORD">FORD</option>
<option value="FUJI">FUJI</option>
<option value="GM">GM</option>
<option value="HONDA">HONDA</option>
<option value="HYUNDAI">HYUNDAI</option>
<option value="JAGUAR">JAGUAR</option>
<option value="KIA">KIA</option>
<option value="LAMBORGHINI">LAMBORGHINI</option>
<option value="LAND ROVER">LAND ROVER</option>
<option value="LOTUS">LOTUS</option>
<option value="MASERATI">MASERATI</option>
<option value="MAZDA">MAZDA</option>
<option value="MERCEDES">MERCEDES</option>
<option value="MITSUBISHI">MITSUBISHI</option>
<option value="NISSAN">NISSAN</option>
<option value="PORSCHE">PORSCHE</option>
<option value="ROLLS-ROYCE">ROLLS-ROYCE</option>
<option value="ROUSH">ROUSH</option>
<option value="SUZUKI">SUZUKI</option>
<option value="TOYOTA">TOYOTA</option>
<option value="VOLKSWAGEN">VOLKSWAGEN</option>
<option value="VOLVO">VOLVO</option>
</select>
\ No newline at end of file
<div class="confirmation">
<input type="checkbox" name="confirm1" class="exception" <?php if(isset($data['confirm1'])) echo "checked";?>>
<label for="confirm1">I read, understand, and agree with the <a href="#">terms and conditions</a> and the <a href="#">product document</a> information as well as all legal documentation and correspondence is exclusively in English language.</label><br><br>
<input type="checkbox" name="confirm2" class="exception" <?php if(isset($data['confirm2'])) echo "checked";?>>
<label for="confirm2">I read, understand and agree to the fact that this plan is sold online without personal advice. I understand that if I require personal advice, I can contact Swisscare directly.</label><br><br>
<input type="checkbox" name="confirm3" class="exception" <?php if(isset($data['confirm3'])) echo "checked";?>>
<label for="confirm3">I read, understand and agree with <a href="#">legal information</a> and <a href="#">the data protection policy</a>.
</label>
</div>
\ No newline at end of file
<input type="radio" name="Gender" value="Male" class="exception" <?php if ($Gender == "Male") echo "checked" ?> ><label for="Male">Male</label>
<input type="radio" name="Gender" value="Female" class="exception" <?php if ($Gender == "Female") echo "checked" ?>><label for="Female">Female</label>
<input type="radio" name="Gender" value="Other" class="exception" <?php if ($Gender == "Other") echo "checked" ?>><label for="Other">Other</label>
\ No newline at end of file
<div class="card person">
<h2>Insured Person</h2>
<label for="Email">Email:</label><br><input type="Email" name="Email" value = "
<?php if(@$data['Email'] == '')
{
echo$_COOKIE["email"];}
else
{
echo @$data['Email'];
}?>"><br><br>
<label for="FirstName">First name:</label><br><input type="text" name="FirstName" value="<?php echo @$data['FirstName'];?>"><br><br>
<label for="LastName">Last name:</label><br><input type="text" name="LastName" value="<?php echo @$data['LastName'];?>"><br><br>
<label for="Age">Birth date:</label><br><input type="date" name="BirthDate" value="<?php echo @$data['BirthDate'];?>"><br><br>
<label for="Countries">Citizenship:</label><br><?php require "countries.php"?><br><br>
<label for="Passport">Passport number:</label><br><input type="text" name="Passport" value="<?php echo @$data['Passport'];?>"><br><br>
<label for="Gender">Gender:</label><br><?php require "genders.php";?>
</div>
\ No newline at end of file
<footer class="footer">
<div class="container">
<div class="footer-block">
<img class="footer-logo" src="..\images\logo5.png" alt="logo">
<nav class="footer-nav">
<a href="#" class="footer-link">Partnership</a>
<a href="#" class="footer-link">Awards</a>
<a href="#" class="footer-link">Offices</a>
<a href="#" class="footer-link">Contacts</a>
</nav>
` <div class="social-links">
<a class="social-link" href="#"><img src="..\images\inst.svg" alt="instagram"></a>
<a class="social-link" href="#"><img src="..\images\face.svg" alt="facebook"></a>
<a class="social-link" href="#"><img src="..\images\vk.svg" alt="vk"></a>
</div>
</div>
</div>
</footer>
\ No newline at end of file
<header>
<a class="logo animated fadeInRight delay-1s" href="../index.php"><img src="../images/logo5.png" alt="logotype" class="new-logo"> </a>
<input type="text" class="input input-address" placeholder="Search">
</header>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
*{
box-sizing: border-box;
}
.mistakes{
background-color: rgb(255, 94, 0);
text-align: center;
font-size: 20px;
height: 60px;
vertical-align: middle;
border-radius: 5px;
margin: auto 100px;
padding: auto;
justify-content: flex;
flex-wrap: wrap;
margin-bottom: 20px;
}
.promo{
width: 1200px;
height: 300px;
box-shadow: 0px 7px 12px rgba(158, 158, 163, 0.1);
background: #FFF1B8 url(../../images/icon-blue.png) no-repeat center right;
border-radius: 10px;
margin-bottom: 40px;
}
.promo-title{
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 39px;
line-height: 46px;
padding-top: 70px;
padding-left: 70px;
margin: 0;
}
.promo-text{
padding-top: 25px;
margin: 0;
padding-left: 70px;
font-size: 25px;
}
.output{
padding-top: 20px;
}
body{
font-family: "Roboto", sans-serif;
padding-top: 44px;
}
.container{
max-width: 1200px;
margin: auto;
}
header{
display: flex;
align-items: center;
justify-content: left;
margin-bottom: 35px;
vertical-align: middle;
}
header .input{
margin-left: 100px;
font-size: 16px;
line-height: 24px;
background: #FFFFFF;
border: 1px solid #D9D9D9;
padding-left: 35px;
background-repeat: no-repeat;
background-position: left 11px center;
border-radius: 2px;
background-image: url(../../images/home.svg);
flex: 0.8;
}
.info{
text-align: center;
}
.submit-form{
border-radius: 5px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
background-color: #CCE5EA;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
vertical-align: middle;
border: 2px solid green;
}
.dates{
display: flex;
flex-wrap: wrap;
}
.date{
flex-basis: 48%;
}
input[type="submit"]{
border-radius: 5px;
}
div.submit-form input[type = "text"],
div.submit-form input[type = "email"],
div.submit-form input[type="date"],
select{
border-radius: 5px;
width: 250px;
padding-left: 5px;
height: 25px;
}
div.submit-form input[type = "radio"],
div.submit-form input[type = "checkbox"]{
height: 20px;
width: 20px;
}
div.submit-form input[type="radio"]:hover{
border: 3px solid rgb(53, 9, 31);
}
div.submit-form input[type = "text"]:hover,
div.submit-form input[type = "email"]:hover,
div.submit-form input[type="date"]:hover,
div.submit-form select:hover{
border: 2px bold blueviolet;
color: rgb(29, 6, 6);
vertical-align: middle;
font-size: large;
}
div.submit-form input:hover, textarea {
background-color : #d1d1d1;
border: 3px solid blue;
}
.card{
overflow: hidden;
flex-basis: 50%;
text-decoration: none;
height: 500px;
padding: 5px;
}
.person{
flex-basis: 46%;
}
.insurance{
flex-basis: 54%;
}
label{
padding-left: 5px;
}
#continue-button{
padding: 7px;
margin-left: 480px;
font-weight: bold;
}
footer{
padding: 60px 0;
margin-top: 30px;
}
.footer-block{
display: flex;
align-items: center;
justify-content: space-between;
}
.footer-link{
display: inline;
text-decoration: none;
font-size: 18px;
line-height: 21px;
color: #595959;
font-style: normal;
font-weight: normal;
}
.footer-link:not(:last-child){
margin-right: 15px;
}
.footer-nav{
margin-right: auto;
margin-left: 35px;
}
.social-links{
display: flex;
align-items: center;
}
.social-link:not(:last-child){
margin-right: 21px;
}
@media(max-width: 1366px){
.container{
max-width: 960px;
}
.promo{
background-size: 750px;
background-position: center right -200px;
padding: 50px;
}
.rating{
margin-right: 15px;
}
}
@media(max-width: 992px){
.container{
max-width: 750px;
}
.promo{
background-size: 500px;
background-position: center right -200px;
padding: 50px;
}
.promo-text{
font-size: 18px;
max-width: 400px;
}
.footer-link{
font-size: 16px;
}
}
@media(max-width: 768px){
.container{
max-width: 560px;
}
.card .rating{
flex-basis: 100%;
}
.card-info{
flex-wrap: wrap;
}
.card-title{
font-size: 18px;
}
.promo{
background-size: 400px;
background-position: bottom 55px right -200px;
}
.promo-title{
font-size: 24px;
line-height: 1.4;
}
.promo-text{
margin-top: 0;
}
.button{
font-size: 12px;
line-height: 14px;
}
}
@media(max-width: 578px){
.button{
min-height: 40px;
text-align: center;
}
.container{
max-width: 90%;
}
header{
flex-wrap: wrap;
}
.input-address{
order: 5;
margin-top: 15px;
flex: 1%;
/* flex-basis: 100%; */
}
.promo{
background-image: none;
}
.promo-title{
margin-bottom: 10px;
}
.section-title{
font-size: 20px;
}
.card{
flex-basis: 100%;
}
.card-image{
width: 100%;
}
.footer{
padding: 30px;
}
.footer-block{
align-items: flex-start;
}
.footer-nav{
order:0;
margin-left: 0;
display: flex;
flex-direction: column;
margin-right: 0;
}
.footer-logo{
order:1;
margin-right: 15px;
}
.social-links{
order:2;
}
}
@media(max-width: 480px){
.button-text{
display: none;
}
.button{
min-height: 40px;
}
.button-icon{
margin: 0;
}
.promo{
padding: 20px;
}
.section-header{
flex-wrap: wrap;
}
.footer-block{
flex-wrap: wrap;
flex-direction: column;
align-items: center;
}
.footer-logo{
order:0;
margin-bottom: 20px;
}
.footer-nav{
margin-bottom: 20px;
text-align: center;
}
.footer-link:not(:last-child){
margin-right: 0;
}
}
\ No newline at end of file
<?php
session_start();
error_reporting(0);
$Email = $_SESSION['Email'];
$FirstName = $_SESSION['FirstName'];
$LastName = $_SESSION['LastName'];
$BirthDate = $_SESSION['BirthDate'];
$Country = $_SESSION['Country'];
$Passport = $_SESSION['Passport'];
$Gender = $_SESSION['Gender'];
$StartDate = $_SESSION['StartDate'];
$EndDate = $_SESSION['EndDate'];
$Area = $_SESSION['Area'];
//echo "You ordered it!";
//$query = "INSERT INTO `travelling-insurance` (`first-name`, `last-name`,
//`birth-date`, `citizenship`, `passport-number`, `gender`, `area`, `start-date`, `end-date`, `email`) VALUES ('$FirstName', '$LastName', '$BirthDate', '$Country', '$Passport', '$Gender', '$Area', '$StartDate', '$EndDate', '$Email')";
//$result = mysqli_query($connnection, $query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Confirmation</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="../../css/normalize.css">
</head>
<body>
<div class="container">
<header>
<a class="logo animated fadeInRight delay-1s" href="../../index.php"><img src="../../images/logo5.png" alt="logotype" class="new-logo"> </a>
<input type="text" class="input input-address" placeholder="Search">
</header>
<section class="promo">
<h1 class="promo-title">Travelling insurance appliation<br>Step 3</h1>
<p class="promo-text">Please, check provided information and pay</p>
</section>
<div class="main-header">
<span class="main-header-text">Check once more provided information and finish your application process</span>
</div>
<div class="main-content">
<div class="main">
<div class="person">
<h3 class="personal-info">Personal Information</h3>
<ul>
<li>First name: &nbsp; <?php echo " " . $FirstName;?></li>
<li>Last name: &nbsp; <?php echo $LastName;?></li>
<li>Date of birth: &nbsp; <?php echo $BirthDate;?></li>
<li>Country: &nbsp; <?php echo $Country;?></li>
<li>Passport number: &nbsp; <?php echo $Passport;?></li>
<li>Gender: &nbsp; <?php echo $Gender;?></li>
<li>Email: &nbsp; <?php echo $Email;?></li>
</ul>
</div>
<div class="insurance">
<h3 class="insurance-info">Insurance Information</h3>
<ul>
<li>Duration: &nbsp; <?php echo $StartDate . " - " . $EndDate;?></li>
<li>Area: &nbsp; <?php echo $Area;?></li>
<li>Total price: &nbsp; <?php echo "50$"; ?> </li>
</ul>
</div>
</div>
<div class="finish">
<div class="back">
<button onclick="history.go(-1);">Go back</button>
</div>
<div class="pay">
<form action="end.php" method="POST">
<input type="submit" value="Pay and get insurance">
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="footer-block">
<img class="footer-logo" src="..\..\images\logo5.png" alt="logo">
<nav class="footer-nav">
<a href="#" class="footer-link">Partnership</a>
<a href="#" class="footer-link">Awards</a>
<a href="#" class="footer-link">Offices</a>
<a href="#" class="footer-link">Contacts</a>
</nav>
<div class="social-links">
<a class="social-link" href="#"><img src="..\..\images\inst.svg" alt="instagram"></a>
<a class="social-link" href="#"><img src="..\..\images\face.svg" alt="facebook"></a>
<a class="social-link" href="#"><img src="..\..\images\vk.svg" alt="vk"></a>
</div>
</div>
</footer>
<!-- basket -->
</body>
</html>
*{
box-sizing: border-box;
}
.promo{
width: 1200px;
height: 300px;
box-shadow: 0px 7px 12px rgba(158, 158, 163, 0.1);
background: #FFF1B8 url(../../images/icon-blue.png) no-repeat center right;
border-radius: 10px;
margin-bottom: 40px;
}
.promo-title{
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 39px;
line-height: 46px;
padding-top: 70px;
padding-left: 70px;
margin: 0;
}
.promo-text{
padding-top: 25px;
margin: 0;
padding-left: 70px;
font-size: 25px;
}
.output{
padding-top: 20px;
}
body{
font-family: "Roboto", sans-serif;
padding-top: 44px;
}
.container{
max-width: 1200px;
margin: auto;
}
header{
display: flex;
align-items: center;
justify-content: left;
margin-bottom: 35px;
vertical-align: middle;
}
header .input{
margin-left: 100px;
font-size: 16px;
line-height: 24px;
background: #FFFFFF;
border: 1px solid #D9D9D9;
padding: 8px;
padding-left: 35px;
background-repeat: no-repeat;
background-position: left 11px center;
border-radius: 2px;
background-image: url(../../images/home.svg);
flex: 0.8;
}
.main-content{
background-color: #9DCA92;
border-radius: 5px;
padding: 20px;
}
.main{
display: flex;
justify-content: left;
max-width: 900px;
margin: auto;
font-size: larger;
}
.main-header{
text-align: center;
margin-bottom: 50px;
}
.insurance{
padding-left: 150px;
justify-content: right;
}
.person{
justify-content: right;
padding-left: 50px;
}
.main-header-text{
font-size: 30px;
}
ul{
list-style-type: none;
margin: 0;
padding: 0;
}
li{
margin-top: 10px;
}
.finish{
display: flex;
justify-content: space-between;
max-width: 800px;
padding-top: 30px;
margin: auto;
}
.pay{
margin-right: 130px;
}
footer{
padding: 60px 0;
margin-top: 30px;
}
.footer-block{
display: flex;
align-items: center;
justify-content: space-between;
}
.footer-link{
display: inline;
text-decoration: none;
font-size: 18px;
line-height: 21px;
color: #595959;
font-style: normal;
font-weight: normal;
}
.footer-link:not(:last-child){
margin-right: 15px;
}
.footer-nav{
margin-right: auto;
margin-left: 35px;
}
.social-links{
display: flex;
align-items: center;
}
.social-link:not(:last-child){
margin-right: 21px;
}
\ No newline at end of file
<?php
session_start();
error_reporting(0);
$data = $_POST;
if(isset($data['submit']))
{
$Email = filter_var(trim($data['Email']), FILTER_SANITIZE_STRING);
$FirstName = filter_var(trim($data['FirstName']), FILTER_SANITIZE_STRING);
$LastName = filter_var(trim($data['LastName']), FILTER_SANITIZE_STRING);
$BirthDate = filter_var(trim($data['BirthDate']), FILTER_SANITIZE_STRING);
$Country = filter_var(trim($data['Countries']), FILTER_SANITIZE_STRING);
$Passport = filter_var(trim($data['Passport']), FILTER_SANITIZE_STRING);
$Gender = filter_var(trim($data['Gender']), FILTER_SANITIZE_STRING);
$StartDate = filter_var(trim($data['StartDate']), FILTER_SANITIZE_STRING);
$EndDate = filter_var(trim($data['EndDate']), FILTER_SANITIZE_STRING);
$Area = filter_var(trim($data['Area']), FILTER_SANITIZE_STRING);
require "additional/errors/person.php";
require "additional/errors/confirm.php";
require "additional/errors/start-end.php";
if($Area == '' || $Area == "Select an area"){ $errors[] = 'Choose area of your insurance!';}
if(empty($errors))
{
$_SESSION['Email'] = $Email;
$_SESSION['FirstName'] = $FirstName;
$_SESSION['LastName'] = $LastName;
$_SESSION['BirthDate'] = $BirthDate;
$_SESSION['Country'] = $Country;
$_SESSION['Passport'] = $Passport;
$_SESSION['Gender'] = $Gender;
$_SESSION['StartDate'] = $StartDate;
$_SESSION['EndDate'] = $EndDate;
$_SESSION['Area'] = $Area;
header('Location:final\checkpoint.php');
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Travelling insurance</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="../../css/normalize.css">
</head>
<body>
<div class="container">
<?php require "additional\html-parts\header.php";?>
<section class="promo">
<h1 class="promo-title">Travelling insurance appliation<br>Step 1</h1>
<p class="promo-text">Please, fill the form below in order to continue</p>
</section>
<section class="info">
<h3>Go to <a href="../index.php">main page</a> and login in order to save your infotmation to use it next time</h3>
</section>
<?php if(!empty($errors)) echo '<div class="mistakes">' . '<div class="output">' .array_shift($errors) . '</div>' . '</div>';?>
<div class="main">
<form action="travelling.php" method="POST">
<div class="submit-form">
<?php require "additional/form-input/person.php";?>
<div class="card insurance">
<h2>Insurance Information</h2>
<label for="Area">Area of Cover:</label><br><?php require "additional/form-input/areas.php"; ?><br><br>
<div class="dates">
<div class="date"></span><label for="StartDate">Start date:</label><br><input type="date" name="StartDate" value="<?php echo @$data['StartDate'];?>"></div>
<div class="date"><label for="EndDate">End date:</label><br><input type="date" name="EndDate" value="<?php echo @$data['EndDate'];?>"></div>
</div><br><br>
<?php require "additional/form-input/confirmation.php";?><br><br>
<input id="continue-button" type="submit" name="submit" value="continue">
</div>
</div>
</div>
<?php require "additional/html-parts/footer.php";?>
</div>
</body>
</html>
const loginButton = document.querySelector('#login-button');
const login = document.querySelector(".login");
const loginClose = document.querySelector(".login-close");
loginButton.addEventListener('click', toggleModal);
loginClose.addEventListener('click', toggleModal);
function toggleModal(){
login.classList.toggle("is-open");
}
new WOW().init();
const registerButton = document.querySelector('#register-button');
const register = document.querySelector(".register");
const registerClose = document.querySelector(".register-close");
registerButton.addEventListener('click', toggleRegister);
registerClose.addEventListener('click', toggleRegister);
function toggleRegister(){
register.classList.toggle("is-close");
}
/*! WOW - v1.1.3 - 2016-05-06
* Copyright (c) 2016 Matthieu Aussaguel;*/(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
\ No newline at end of file
body{
text-align: center;
background-color: #74C35A;
}
#the_only_form{
display: inline-block;
position: relative;
top:200px;
background-color: white;
width: 400px;
height: 400px;
padding: 0 auto;
text-align: center;
}
#inner{
position: relative;
top:60px;
}
input[type="text"], textarea{
background-color: #F3EFF2;
width: 300px;
height: 50px;
font-size: 26px;
}
input[type="password"], textarea{
background-color: #F3EFF2;
width: 300px;
height: 50px;
font-size: 26px;
}
input[type="submit"], textarea{
background-color: #00B242;
width: 300px;
height: 50px;
}
#question{
padding-top: 20px;
color: black;
}
a{
color: #5E2691;
}
\ No newline at end of file
body{
text-align: center;
background-color: #74C35A;
justify-content: center;
}
#content{
display: inline-block;
position: relative;
top:100px;
background-color: white;
width: 400px;
height: 540px;
padding: 0 auto;
text-align: center;
}
#content > input[type="text"], #content > input[type="Email"], #content > input[type="password"], textarea{
background-color: #F2F2F2;
width: 300px;
height: 30px;
font-size: 26px;
}
#mistakes{
color: blue;
}
input[type="submit"], textarea{
background-color: #00B242;
width: 300px;
height: 50px;
font-size: 26px;
}
\ No newline at end of file
<?php
$connnection = mysqli_connect('127.0.0.1', 'root', '', 'globalcare');
?>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/login-page.css">
<title>Authorization</title>
<meta charset="utf-8"/>
</head>
<body>
<?php
error_reporting(0);
if(isset($_POST['login'])){
$data = $_POST;
$login = $data['username'];
$password = md5($data['password']."AlmazKydyrminFromQazaqstan");
require_once "database_connection.php";
if($connnection == false)
{
echo 'something went wrong...';
echo mysql_connect_error();
exit();
}
else
{
$sql = "SELECT * FROM `users` WHERE `email` LIKE '$login' AND `password` LIKE '$password'";
$result = mysqli_query($connnection, $sql);
$user = mysqli_fetch_assoc($result);
if(count($user) == 0)
{
echo "<p style='text-align: center;'>User with such login and password is not found</p>";
}
else
{
echo "string";
setcookie('name', $user['name'], time() + 1000, "/");
setcookie('surname', $user['surname'], time() + 1000, "/");
$connnection->close();
header('Location:../index.php');
}
}
}
?>
<form id="the_only_form" action="login-page.php" method="POST">
<div id="inner">
<p><input type="text" placeholder="username" name="username" ></p>
<p><input id="aleke" type="password" placeholder="password" name="password" {font:small-caption;font-size:16px}></p>
<p><input type="submit" value = "LOGIN" name="login"></p>
<p id="question">Not registered? <a href="registration.php">Create an account</a></p>
<div>
</form>
</body>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
error_reporting(0);
if(isset($_POST['login'])){
$data = $_POST;
$login = $data['email'];
$password = md5($data['password']."AlmazKydyrminFromQazaqstan");
require_once "database_connection.php";
if($connnection == false)
{
echo 'something went wrong...';
echo mysql_connect_error();
exit();
}
else
{
$sql = "SELECT * FROM `users` WHERE `email` LIKE '$login' AND `password` LIKE '$password'";
$result = mysqli_query($connnection, $sql);
$user = mysqli_fetch_assoc($result);
if(count($user) == 0)
{
echo "<p style='text-align: center;'>User with such login and password is not found</p>";
}
else
{
echo "Works!";
setcookie('name', $user['name'], time() + 1000, "/");
setcookie('surname', $user['surname'], time() + 1000, "/");
setcookie('email', $user['email'], time() + 1000, "/");
$connnection->close();
header('Location:../index.php');
}
}
}
?>
</body>
</html>
\ No newline at end of file
<?php
setcookie('name','', time() - 3600, "/");
setcookie('surname','', time() - 3600, "/");
header('Location:../index.php'); // pereiti na glavnuyu
?>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/register-page.css">
<title>Registration</title>
<meta charset="utf-8"/>
</head>
<body>
<?php
error_reporting(0);
$data = $_POST;
if(isset($data['signup'])) // registration p-ss
{
$name = filter_var(trim($data['name']), FILTER_SANITIZE_STRING);
$Lname = filter_var(trim($data['Lname']), FILTER_SANITIZE_STRING);
$Email = filter_var(trim($data['Email']), FILTER_SANITIZE_STRING);
$password = filter_var(trim($data['password']), FILTER_SANITIZE_STRING);
if($name == ''){ $errors[] = 'Enter your name!';}
elseif(mb_strlen($name) < 3 || mb_strlen($name) > 90){$errors[] = 'Minimum length for name is 3 characters';}
if($Lname == ''){ $errors[] = 'Enter your last name!';}
elseif(mb_strlen($Lname) < 3 || mb_strlen($Lname) > 90){$errors[] = 'Minimum length for last name is 3 characters';}
if($Email == ''){ $errors[] = 'Enter your email!';}
elseif(mb_strlen($Email) < 7 || mb_strlen($Email) > 90){$errors[] = 'Minimum length for email is 7 characters';}
if($password == ''){ $errors[] = 'Enter your password!';}
elseif(mb_strlen($password) < 7 || mb_strlen($password) > 90){$errors[] = 'Minimum length for password is 7 characters';}
if(empty($errors))
{
require_once "database_connection.php";
$password = md5($password."AlmazKydyrminFromQazaqstan");
if($connnection == false)
{
echo 'something went wrong...';
echo mysql_connect_error();
exit();
}
else
{
$sql = "SELECT * FROM `users` WHERE `email` LIKE '$Email'";
$result_0 = mysqli_query($connnection, $sql);
$user = mysqli_fetch_assoc($result_0);
if(count($user) != 0)
{
echo "User with such email already exists";
}
else
{
$result = mysqli_query($connnection, "INSERT INTO `users` (`name`, `surname`,
`email`, `password`) VALUES ('$name', '$Lname', '$Email', '$password')");
echo "Congratulations! You are registered!";
$connnection->close();
header('Location:login-page.php');
}
}
}
else
{
echo '<div id="mistakes">' .array_shift($errors). '</div>';
}
}
?>
<form action="register-page.php" method="POST"> <!--form to be completed-->
<div id="content">
<p>
<p><strong>First Name:</strong></p>
<input type="text" name="name" value="<?php echo @$data['name'];?>">
</p>
<p>
<p><strong>Last Name:</strong></p>
<input type="text" name="Lname" value="<?php echo @$data['Lname'];?>">
</p>
<p>
<p><strong>Email:</strong></p>
<input type="Email" name="Email" value="<?php echo @$data['Email'];?>">
</p>
<p>
<p><strong>Password:</strong></p>
<input type="password" name="password" value="<?php echo @$data['password'];?>">
</p>
<p>
<input type="submit" name="signup" value="Register">
</p>
</div>
</form>
</body>
\ No newline at end of file
<?php
error_reporting(0);
$data = $_POST;
$name = filter_var(trim($data['fname']), FILTER_SANITIZE_STRING);
$Lname = filter_var(trim($data['lname']), FILTER_SANITIZE_STRING);
$Email = filter_var(trim($data['email']), FILTER_SANITIZE_STRING);
$password = filter_var(trim($data['password']), FILTER_SANITIZE_STRING);
if($name == ''){ $errors[] = 'Enter your name!';}
elseif(mb_strlen($name) < 3 || mb_strlen($name) > 90){$errors[] = 'Minimum length for name is 3 characters';}
if($Lname == ''){ $errors[] = 'Enter your last name!';}
elseif(mb_strlen($Lname) < 3 || mb_strlen($Lname) > 90){$errors[] = 'Minimum length for last name is 3 characters';}
if($Email == ''){ $errors[] = 'Enter your email!';}
elseif(mb_strlen($Email) < 7 || mb_strlen($Email) > 90){$errors[] = 'Minimum length for email is 7 characters';}
if($password == ''){ $errors[] = 'Enter your password!';}
elseif(mb_strlen($password) < 7 || mb_strlen($password) > 90){$errors[] = 'Minimum length for password is 7 characters';}
if(empty($errors))
{
require_once "database_connection.php";
$password = md5($password."AlmazKydyrminFromQazaqstan");
if($connnection == false)
{
echo 'something went wrong...';
echo mysql_connect_error();
exit();
}
else
{
$sql = "SELECT * FROM `users` WHERE `email` LIKE '$Email'";
$result_0 = mysqli_query($connnection, $sql);
$user = mysqli_fetch_assoc($result_0);
if(count($user) != 0)
{
echo "User with such email already exists";
}
else
{
$result = mysqli_query($connnection, "INSERT INTO `users` (`name`, `surname`,
`email`, `password`) VALUES ('$name', '$Lname', '$Email', '$password')");
echo "Congratulations! You are registered!";
$connnection->close();
header('Location:login-page.php');
}
}
}
else
{
echo '<div id="mistakes">' .array_shift($errors). '</div>';
}
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment