diff --git a/README.md b/README.md index a8aaf24..874b3ee 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,82 @@ -# Web-Project -It is a website made using HTML,CSS,JAVASCRIPT,PHP,MY SQL for different refugee managing organizations to have a common database platform to communicate and search a particular refugee from any organization. +

+ + RescueWorld-logo +

+ +

Common Database for Refugee Organizations

+ +------------------------------------------ + +>There are no common database platform to communicate and search a particular refugee from any organization in different refugee managing organizations.We've built a website for different refugee managing organizations to have a common database platform to communicate and search a particular refugee from any organization and It also helps organizations to send email to other organizations and ask for aid in case of any emergency just by `click of a button`. + . + + +
+"You know, those of us who leave our homes in the morning and expect to find them there when we go back - it's hard for us to understand what the experience of a refugee might be like." - Priyam +
+ + +------------------------------------------ +### Features + +- `AID` send a mail for medical aid to nearby hospitals,organizations etc. +- `Resource` send a mail for Food,Clothes to different organizations. +- `Transfer Refugee` send a mail for Transferring Refugees to different organizations. +- `Search` based on name and age +- `Add Refugee` to add a refugee from a organization + +

Rescue World As Website

+
+

+ +

+ + +------------------------------------------ + +### Add-Ons + +- [ ] Using Google-Map Api for nearby hospitals,places searching. +- [ ] Add More + +------------------------------------------ +### File Structure + + +#### Website + +- `HTML` : front_p.html is the starting point of website , login1.html contains login and signup page , refugee_signup.html contains refugee signup page , aid.html contains all mail related services with mailing categories. +- `css` : contains full-slider.css for carousel of main page , style.css for all html files +- `javascript` : java.js common javascript file +- `php` : db.php for database intialization , download.php for image downloading , help1.php for mailing in various categories , index.php for including html files , login.php for taking user info in sql , logout.php for stopping sessions , refugee.php for storing refugee data , search.php for age,name based search etc +- `sql` : 3 tables hospital,organization and refugee +- `upload` : images of refugee + +------------------------------------------ +### Installation + +* Install dependencies +```sh + $ git clone https://github.com/RescueWorld/Web-Project.git +``` +* Used PostCast Server for mailing system +``` + $ http://www.postcastserver.com/default.aspx?a=nf +``` +* Also require to change in php.ini for sending mail to localhost +* import the sql file to your database +* start execution from running front_p.html + +------------------------------------------ +### Contributing + + We're are open to `enhancements` & `bug-fixes` + +### Note +- This project was done under `24 hours with minimal pre-preparation` +------------------------------------------ +### Contributors + +- [@priyamshah112](https://github.com/priyamshah112) +- [@devanshslnk](https://github.com/devanshslnk) +------------------------------------------ diff --git a/_travis.yml b/_travis.yml new file mode 100644 index 0000000..18f48b1 --- /dev/null +++ b/_travis.yml @@ -0,0 +1,11 @@ +sudo: false +language: node_js +node_js: + - "node" +install: npm install +script: + - npm test + - gulp +cache: + directories: + - node_modules diff --git a/aid.html b/aid.html new file mode 100644 index 0000000..caf6d9c --- /dev/null +++ b/aid.html @@ -0,0 +1,230 @@ + + + + + + + Refugee Details + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + diff --git a/background.jpg b/background.jpg new file mode 100644 index 0000000..1aa8c31 Binary files /dev/null and b/background.jpg differ diff --git a/background2.jpg b/background2.jpg new file mode 100644 index 0000000..37f0eb6 Binary files /dev/null and b/background2.jpg differ diff --git a/background3.jpg b/background3.jpg new file mode 100644 index 0000000..df72c40 Binary files /dev/null and b/background3.jpg differ diff --git a/bg1.jpg b/bg1.jpg new file mode 100644 index 0000000..afcd067 Binary files /dev/null and b/bg1.jpg differ diff --git a/bg1_01.jpg b/bg1_01.jpg new file mode 100644 index 0000000..98aac11 Binary files /dev/null and b/bg1_01.jpg differ diff --git a/bg2.jpg b/bg2.jpg new file mode 100644 index 0000000..91845c6 Binary files /dev/null and b/bg2.jpg differ diff --git a/bg2_01.jpg b/bg2_01.jpg new file mode 100644 index 0000000..e404fd2 Binary files /dev/null and b/bg2_01.jpg differ diff --git a/bg3.jpg b/bg3.jpg new file mode 100644 index 0000000..0735023 Binary files /dev/null and b/bg3.jpg differ diff --git a/bg3_01.jpg b/bg3_01.jpg new file mode 100644 index 0000000..5343f99 Binary files /dev/null and b/bg3_01.jpg differ diff --git a/db.php b/db.php new file mode 100644 index 0000000..9b56312 --- /dev/null +++ b/db.php @@ -0,0 +1,11 @@ + diff --git a/download.php b/download.php new file mode 100644 index 0000000..aec0cb4 --- /dev/null +++ b/download.php @@ -0,0 +1,40 @@ + + + + + File Upload & Download + + + + +
+
+ + + +
+ +
+'; + } + + + ?> + + + + + \ No newline at end of file diff --git a/front.php b/front.php new file mode 100644 index 0000000..e54a791 --- /dev/null +++ b/front.php @@ -0,0 +1,369 @@ + + + + + + + + + + + + Helpers! + + + +
+ +
+
+
+
+
+

let's help

+

the innocent people who desperately need our help

+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+

Some information about our registered oragnistaions

+

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. + +Why do we use it? +It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). + +

+
+
+
+
+
+
+
+
+

these are some other organisations

+
+
+
+
+
+
+
+
+
+
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+ +
+ + +
+
+
+ + +
+
+ + + + + + +
+ + + + + + + + + + diff --git a/front_back.jpg b/front_back.jpg new file mode 100644 index 0000000..88483eb Binary files /dev/null and b/front_back.jpg differ diff --git a/front_p.html b/front_p.html new file mode 100644 index 0000000..38fea1a --- /dev/null +++ b/front_p.html @@ -0,0 +1,144 @@ + + + + + + + + + + + Helpers + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..ffcaaf9 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,41 @@ +var gulp = require('gulp'); +var browserSync = require('browser-sync').create(); +var pkg = require('./package.json'); + +// Copy third party libraries from /node_modules into /vendor +gulp.task('vendor', function() { + + // Bootstrap + gulp.src([ + './node_modules/bootstrap/dist/**/*', + '!./node_modules/bootstrap/dist/css/bootstrap-grid*', + '!./node_modules/bootstrap/dist/css/bootstrap-reboot*' + ]) + .pipe(gulp.dest('./vendor/bootstrap')) + + // jQuery + gulp.src([ + './node_modules/jquery/dist/*', + '!./node_modules/jquery/dist/core.js' + ]) + .pipe(gulp.dest('./vendor/jquery')) + +}) + +// Default task +gulp.task('default', ['vendor']); + +// Configure the browserSync task +gulp.task('browserSync', function() { + browserSync.init({ + server: { + baseDir: "./" + } + }); +}); + +// Dev task +gulp.task('dev', ['browserSync'], function() { + gulp.watch('./css/*.css', browserSync.reload); + gulp.watch('./*.html', browserSync.reload); +}); diff --git a/help.php b/help.php new file mode 100644 index 0000000..ad054e3 --- /dev/null +++ b/help.php @@ -0,0 +1,44 @@ +\r\n"; + $headers.="Content-Type: text/html; charset=ISO-8859-1\r\n"; + $msg = "First Second line of text"; + + + $msg = wordwrap($msg,70); + + +// $sql="SELECT * FROM organization"; +// $result=mysqli_query($conn,$sql); +// $resultcount=mysqli_num_rows($result); +// while($row=mysqli_fetch_assoc($result)) +// { + //ini_set( 'sendmail_from', "priyamshah112@gmail.com" ); + ini_set("SMTP","smtp.gmail.com"); + ini_set("smtp_port","465"); + mail($to,"My subject",$msg,'From: priyamshah112@gmail.com'); + echo 'success' +// } + + + + + + + + +// }else +// { +// header("location:front.php?help=error"); +// eixt(); +// } +?> diff --git a/help1.php b/help1.php new file mode 100644 index 0000000..e8e8e8f --- /dev/null +++ b/help1.php @@ -0,0 +1,98 @@ + + + + + + + ' . "\r\n"; + $headers.="Content-Type: text/html; charset=ISO-8859-1\r\n"; + + + $sql="SELECT email FROM organization "; + $result=mysqli_query($conn,$sql); + $main_text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. + + "; + + while($row=mysqli_fetch_assoc($result)) + { + $email=$row['email']; + mail($email,$text,$main_text,$headers); + + } + echo "Your mail was sent"; + header("location:front.php?mail=success"); + xit(); + + + + }elseif(isset($_POST['Medical'])) + { + + $text=""; + if(isset($_POST['Emergency']) && !isset($_POST['Chronic'])) + { + $text="EMERGENCY"; + }elseif(!isset($_POST['Emergency']) && isset($_POST['Chronic'])) + { + $text="Chronic"; + }elseif(isset($_POST['Emergency']) && isset($_POST['Chronic'])) + { + $text="EMERGENCY&CHRONIC"; + } + + $headers = 'From: Priyam' . "\r\n"; + $headers.="Content-Type: text/html; charset=ISO-8859-1\r\n"; + + + $sql="SELECT email FROM hospital "; + $result=mysqli_query($conn,$sql); + $main_text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."; + while($row=mysqli_fetch_assoc($result)) + { + $email=$row['email']; + mail($email,$text,$main_text,$headers); + echo "Your mail was sent"; + header("location:front.php?mail=success"); + + } + }elseif(isset($_POST['Migration'])) + { + $text="MIGRATION"; + $headers = 'From: Priyam' . "\r\n"; + $headers.="Content-Type: text/html; charset=ISO-8859-1\r\n"; + + + $sql="SELECT email FROM organization "; + $result=mysqli_query($conn,$sql); + $main_text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."; + while($row=mysqli_fetch_assoc($result)) + { + $email=$row['email']; + mail($email,$text,$main_text,$headers); + echo "Your mail was sent"; + header("location:front.php?mail=success"); + + } + } + + ?> + + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..d0d7b6c --- /dev/null +++ b/index.php @@ -0,0 +1,12 @@ + + diff --git a/java.js b/java.js new file mode 100644 index 0000000..da149a2 --- /dev/null +++ b/java.js @@ -0,0 +1,43 @@ +$('.form').find('input, textarea').on('keyup blur focus', function (e) { + + var $this = $(this), + label = $this.prev('label'); + + if (e.type === 'keyup') { + if ($this.val() === '') { + label.removeClass('active highlight'); + } else { + label.addClass('active highlight'); + } + } else if (e.type === 'blur') { + if( $this.val() === '' ) { + label.removeClass('active highlight'); + } else { + label.removeClass('highlight'); + } + } else if (e.type === 'focus') { + + if( $this.val() === '' ) { + label.removeClass('highlight'); + } + else if( $this.val() !== '' ) { + label.addClass('highlight'); + } + } + +}); + +$('.tab a').on('click', function (e) { + + e.preventDefault(); + + $(this).parent().addClass('active'); + $(this).parent().siblings().removeClass('active'); + + target = $(this).attr('href'); + + $('.tab-content > div').not(target).hide(); + + $(target).fadeIn(600); + +}); diff --git a/login.php b/login.php new file mode 100644 index 0000000..784fb5a --- /dev/null +++ b/login.php @@ -0,0 +1,61 @@ + + diff --git a/login1.html b/login1.html new file mode 100644 index 0000000..72586da --- /dev/null +++ b/login1.html @@ -0,0 +1,114 @@ + + + + + + Sign-Up/Login Form + + + + + + + + + + + +
+ + + +
+
+

Welcome Back!

+ +
+ +
+ + +
+ +
+ + +
+ +

Forgot Password?

+ + + +
+ +
+ +
+

Register Organization

+ + +
+ +
+
+ + +
+
+
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ + + +
+ +
+ + +
+ +
+ + + + + + + + + + + + + diff --git a/logout.php b/logout.php new file mode 100644 index 0000000..7f4f874 --- /dev/null +++ b/logout.php @@ -0,0 +1,11 @@ + diff --git a/main1.css b/main1.css new file mode 100644 index 0000000..6db28ac --- /dev/null +++ b/main1.css @@ -0,0 +1,98 @@ +.container-fluid +{ + width:100%; + padding-left: 0px; + padding-right:0px; +} +nav ul li +{ + padding-right:20px; + +} + +.jumbotron + +{ + text-align:center; + font-family:'Libre Baskerville', serif; +} +.section-jumbo +{ + background-color:#e9ecef; + + +} +.section-jumbo .row +{ + margin-left:0px; + margin-right:0px; +} +.carousel-item img +{ + height:auto; + +} +.section-darker +{ + background-color:#cccccc; + padding:2rem; +} +.signin +{ + padding:3px; + border:3px solid #00CC00; + border-radius:3px; + background-color:transparent; + color:#00CC00; + transition:all 0.08s linear; + + +} +.signin:hover +{ + background-color:green; + text-decoration:none; + color:white; +} +.search +{ + padding:3px; + border:3px solid #00CC00; + border-radius:3px; + background-color:transparent; + color:#00CC00; + transition:all 0.08s linear; + + +} +.search:hover +{ + background-color:green; + text-decoration:none; + color:white; +} +.searchBar +{ + margin-right:9px; +} +.disp_card +{ + background-color:#343a40; + margin-bottom:10px; + +} +.disp_card:hover +{ + box-shadow:2px 6px 2px 0px rgba(0,0,0,0.3),-2px 0 2px 0px rgba(0,0,0,0.3); + + +} + +@media screen and (max-width:576px) +{ + .text_field + { + width:100%; + } +} + diff --git a/ngologo2.jpg b/ngologo2.jpg new file mode 100644 index 0000000..fc7e0e0 Binary files /dev/null and b/ngologo2.jpg differ diff --git a/ngologo3.png b/ngologo3.png new file mode 100644 index 0000000..1f80458 Binary files /dev/null and b/ngologo3.png differ diff --git a/ngologo4.png b/ngologo4.png new file mode 100644 index 0000000..cd90623 Binary files /dev/null and b/ngologo4.png differ diff --git a/refugee.php b/refugee.php new file mode 100644 index 0000000..daef6a5 --- /dev/null +++ b/refugee.php @@ -0,0 +1,77 @@ + 500000) { + echo "Sorry, your file is too large."; + $uploadOk = 0; +} +// Allow certain file formats +if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" +&& $imageFileType != "gif" ) { + echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; + $uploadOk = 0; +} +// Check if $uploadOk is set to 0 by an error +if ($uploadOk == 0) { + echo "Sorry, your file was not uploaded."; +// if everything is ok, try to upload file +} else { + $filen=uniqid('',true).'.'.$imageFileType; + $t='upload/'.$filen; + if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $t)){ + echo "hey"; + } else { + echo "Sorry, there was an error uploading your file."; + } +} + + + + + $sql2="INSERT INTO refugee(OG_NAME,F_NAME,L_NAME,AGE,PLACE,GENDER,IMAGE) VALUES ('$org_name','$first_name','$last_name','$age','$location','$gender','$filen');"; + mysqli_query($conn,$sql2); + header("location:front.php?signup=success"); + + exit(); + + + } + + } +?> diff --git a/refugee_signup.html b/refugee_signup.html new file mode 100644 index 0000000..53746ae --- /dev/null +++ b/refugee_signup.html @@ -0,0 +1,163 @@ + + + + + + + Refugee Details + + + + + + + + + + + +
+ +
    + + + + +
    + +

    Register Refugee

    +
    +
    + + + + +
    +
    + +
    +
    + + +
    +
    + + +
    + +
    + + +
    +
    + +
    + + +
    + +
    + + +
    + +
    + + + + +
    + +
    + +
    + + +
    + + + + +
    + + + + +
    + + +
+ + + + + + + + + + + + + + + + + diff --git a/search.php b/search.php new file mode 100644 index 0000000..5aff529 --- /dev/null +++ b/search.php @@ -0,0 +1,205 @@ + + + + + + + + + + + + Hello, world! + + +
+ + + +
+
+ +
+ +
+
+
+

Name of organisation:'.$row['OG_NAME'].'

+ +

First name:'.$row['F_NAME'].'

+ +

Last name:'.$row['L_NAME'].'

+

Age:'.$row['AGE'].'

+ +

Gender:'.$row['GENDER'].'

+ +

Location:'.$row['PLACE'].'

+ + + +
+
+ +
+
+
+
+
'; + } + + } + }elseif(!empty($name1) && !empty($name2) && !empty($age)) + { + + $sql="SELECT * FROM WHERE F_NAME='$name1' AND L_NAME='$name2' AND AGE='$age'"; + $result=mysqli_query($conn,$sql); + $resultcount=mysqli_num_rows($result); + if($resultcount<1) + { + // no people + }else + { + while($row=mysqli_fetch_assoc($result)) + { + echo '
+
+
+ ; +
+ +
+
+
+

Name of organisation:'.$row['OG_NAME'].'

+
+

First name:'.$row['F_NAME'].'

+
+

Last name:'.$row['L_NAME'].'

+

Age:'.$row['AGE'].'

+
+

Gender:'.$row['GENDER'].'

+
+

Location:'.$row['LOCATION'].'

+
+ + +
+
+ +
+
+
+
+
'; + } + + } + + }else + { + //error + } + + + + } +?> + + + + + + + diff --git a/signup.php b/signup.php new file mode 100644 index 0000000..ec1a2d1 --- /dev/null +++ b/signup.php @@ -0,0 +1,50 @@ +0) + { echo "1"; + header("location:login1.html?signup=usertaken"); + exit(); + }else + { + + $hashpwd=password_hash($password,PASSWORD_DEFAULT); + $sql2="INSERT INTO organization(name,email,pwd,contact) VALUES ('$name','$email','$hashpwd','$contact');"; + mysqli_query($conn,$sql2); + header("location:login1.html?signup=success"); + exit(); + } + } + } + + }else + { + header("loaction:signup.html"); + exit(); + } + +?> + diff --git a/style.css b/style.css new file mode 100644 index 0000000..f6d8045 --- /dev/null +++ b/style.css @@ -0,0 +1,186 @@ + +*, *:before, *:after { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +html { + overflow-y: scroll; +} + +body { + background: #D3D3D3 url("/images/background2.jpg") no-repeat; + + + font-family: 'Titillium Web', sans-serif; +} + +a { + text-decoration: none; + color: #1ab188; + -webkit-transition: .5s ease; + transition: .5s ease; +} +a:hover { + color: #179b77; +} + +.form { + background: rgba(19, 35, 47, 0.9); + padding: 40px; + max-width: 600px; + margin: 40px auto; + border-radius: 4px; + -webkit-box-shadow: 0 4px 10px 4px rgba(19, 35, 47, 0.3); + box-shadow: 0 4px 10px 4px rgba(19, 35, 47, 0.3); +} + +.tab-group { + list-style: none; + padding: 0; + margin: 0 0 40px 0; +} +.tab-group:after { + content: ""; + display: table; + clear: both; +} +.tab-group li a { + display: block; + text-decoration: none; + padding: 15px; + background: rgba(160, 179, 176, 0.25); + color: #a0b3b0; + font-size: 20px; + float: left; + width: 50%; + text-align: center; + cursor: pointer; + -webkit-transition: .5s ease; + transition: .5s ease; +} +.tab-group li a:hover { + background: #179b77; + color: #ffffff; +} +.tab-group .active a { + background: #1ab188; + color: #ffffff; +} + +.tab-content > div:last-child { + display: none; +} + +h1 { + text-align: center; + color: #ffffff; + font-weight: 300; + margin: 0 0 40px; +} + +label { + position: absolute; + -webkit-transform: translateY(6px); + transform: translateY(6px); + left: 13px; + color: rgba(255, 255, 255, 0.5); + -webkit-transition: all 0.25s ease; + transition: all 0.25s ease; + -webkit-backface-visibility: hidden; + pointer-events: none; + font-size: 22px; +} +label .req { + margin: 2px; + color: #1ab188; +} + +label.active { + -webkit-transform: translateY(50px); + transform: translateY(50px); + left: 2px; + font-size: 14px; +} +label.active .req { + opacity: 0; +} + +label.highlight { + color: #ffffff; +} + +input, textarea { + font-size: 22px; + display: block; + width: 100%; + height: 100%; + padding: 5px 10px; + background: none; + background-image: none; + border: 1px solid #a0b3b0; + color: #ffffff; + border-radius: 0; + -webkit-transition: border-color .25s ease, -webkit-box-shadow .25s ease; + transition: border-color .25s ease, -webkit-box-shadow .25s ease; + transition: border-color .25s ease, box-shadow .25s ease; + transition: border-color .25s ease, box-shadow .25s ease, -webkit-box-shadow .25s ease; +} +input:focus, textarea:focus { + outline: 0; + border-color: #1ab188; +} + +textarea { + border: 2px solid #a0b3b0; + resize: vertical; +} + +.field-wrap { + position: relative; + margin-bottom: 40px; +} + +.top-row:after { + content: ""; + display: table; + clear: both; +} +.top-row > div { + float: left; + width: 48%; + margin-right: 4%; +} +.top-row > div:last-child { + margin: 0; +} + +.button { + border: 0; + outline: none; + border-radius: 0; + padding: 15px 0; + font-size: 2rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: .1em; + background: #1ab188; + color: #ffffff; + -webkit-transition: all 0.5s ease; + transition: all 0.5s ease; + -webkit-appearance: none; +} +.button:hover, .button:focus { + background: #179b77; +} + +.button-block { + display: block; + width: 100%; +} + +.forgot { + margin-top: -20px; + text-align: right; +} + diff --git a/upload.php b/upload.php new file mode 100644 index 0000000..5bc903f --- /dev/null +++ b/upload.php @@ -0,0 +1,40 @@ + 500000) { + echo "Sorry, your file is too large."; + $uploadOk = 0; +} +if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" +&& $imageFileType != "gif" ) { + echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; + $uploadOk = 0; +} +if ($uploadOk == 0) { + echo "Sorry, your file was not uploaded."; +} else { + $filename= + if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { + echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded."; + } else { + echo "Sorry, there was an error uploading your file."; + } +} +?> \ No newline at end of file