diff --git a/coc/cocentries.sql b/coc/cocentries.sql new file mode 100644 index 0000000..a1e6aa2 --- /dev/null +++ b/coc/cocentries.sql @@ -0,0 +1,67 @@ +-- phpMyAdmin SQL Dump +-- version 5.1.1 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1 +-- Generation Time: Feb 02, 2022 at 12:16 PM +-- Server version: 10.4.21-MariaDB +-- PHP Version: 8.0.12 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `coc` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `cocentries` +-- + +CREATE TABLE `cocentries` ( + `S.No` int(11) NOT NULL, + `name` text NOT NULL, + `email` varchar(50) NOT NULL, + `college` varchar(50) NOT NULL, + `year` int(1) NOT NULL, + `phone` text NOT NULL, + `emergencyphone` text NOT NULL, + `size` int(1) NOT NULL, + `name2` text NOT NULL, + `name3` text NOT NULL, + `name4` text NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `cocentries` +-- +ALTER TABLE `cocentries` + ADD PRIMARY KEY (`S.No`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `cocentries` +-- +ALTER TABLE `cocentries` + MODIFY `S.No` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/coc/css/styles.css b/coc/css/styles.css index a589901..2addab4 100644 --- a/coc/css/styles.css +++ b/coc/css/styles.css @@ -1,90 +1,51 @@ -*{ - margin: 0; - padding: 0; - box-sizing: border-box; - font-family: 'Montserrat',sans-serif; - } - body{ - height: 100vh; +body{ + font-family: 'Lato',sans-serif; + font-weight: 400; + padding-top: 20px; + background-image: url('../images/bg\ pattern.png'); +} +body h1{ + font-weight: 800; + color: #232323; +} +form label{ + color: #232323; +} +.submit{ + background-color: #232323; + border: none; +} +.submit:hover{ + background-color: #fff; + color: #232323; +} +.container{ + background-color: #76BFDA; +} +input::-webkit-input-placeholder { + font-size: 13px; + line-height: 3; +} + +.hidden{ + display: none; +} +.show{ + display: block; +} +@media only screen and (min-width:992px) { + label { display: flex; - justify-content: center; - align-items: center; - overflow-x: hidden; - padding: 10px; - background-image: url(https://s3-alpha-sig.figma.com/img/80cf/5cd7/424b92fd138982f1b54459bfbdaebca5?Expires=1644192000&Signature=GAX1wMSBQPREC4MtFe6831bZlMeDYGYIQpN9XVaJ9d2Yqvd6xmHXWy9O7ANLbAhPrkq2jmQudmyLyCnNjDCqhKNgcWmfWtpA5QOYPrvCuNe~Ellqx0EmCsrevmn~GWT4-YvCboAw5PsRkcWxSyKOXvkajb3tTVV2fMkByaYnM~pxsqcztcEphGjYlZyE9ThCTlnIKDWxTCoYslfAUvKcQ1uh-PQ10-dVAwS19all-Tjwzgd~YmjqFWUib0typsOuQ2Yp~ds4S5fPRwhuAyX-mfp7HVfRupnqUkn0c8TxTyPZVWwevTt6IE8Jgk16vyHTvz2tJrkfaFfoAzhZNLYObA__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA); - } - .content{ - max-width: 1240px; - width: 100%; - background-color: #76BFDA; - padding: 25px 30px; - border-radius: 15px; - margin-top: 30px; + flex-direction: row; + justify-content: flex-start; + text-align: right; + width: 400px; + line-height: 26px; + margin-bottom: 10px; } - .container .title{ - font-size: 25px; - font-weight: 700; - position: absolute; - top: 20vh; - left: calc(50% - 100px); - background: #76BFDA; - padding: 10px; - border-radius: 20px; + input,select { + flex: 0 0 200px; + margin-left: 150px; } - .content form .user-details{ - display: flex; - flex-wrap: wrap; - justify-content: space-between; - margin: 20px 0 12px 0; - } - form .user-details .input-box{ - margin-bottom: 15px; - width: calc(100% / 2 - 20px); - } - .user-details .input-box input{ - height: 45px; - width: 100%; - outline: none; - font-size: 16px; - border-radius: 10px; - border-bottom-width: 2px; - } - form .button{ - height: 45px; - margin: 35px 0; - position: absolute; - left: calc(50% - 68px); - - } - form .button input{ - height: 100%; - width: 150%; - border-radius: 20px; - border: none; - color: black; - font-size: 22px; - font-weight: 700; - letter-spacing: 1px; - background: #76BFDA; - cursor: pointer; - } - form .button input:hover{ - background-color: skyblue; - } - @media(max-width: 584px){ - .container{ - max-width: 100%; - } - form .user-details .input-box{ - margin-bottom: 15px; - width: 100%; - } - .content form .user-details{ - max-height: 300px; - overflow-y: scroll; - } - .user-details::-webkit-scrollbar{ - width: 5px; - } - } \ No newline at end of file +} diff --git a/coc/index.php b/coc/index.php index cc7d409..ebffad9 100644 --- a/coc/index.php +++ b/coc/index.php @@ -384,7 +384,7 @@ class="fab fa-youtube fa-2x row1 youtube">

For Association Opportunities and Queries Contact:
- contact@ecellvnit.org
+ corporateaffairs@ecellvnit.co.in
cocconso2022@gmail.com

diff --git a/coc/queries.php b/coc/queries.php index e672b03..823ca33 100644 --- a/coc/queries.php +++ b/coc/queries.php @@ -7,7 +7,7 @@ // $password = "ecell123"; // $dbname = "eco21"; - $con = mysqli_connect("localhost","root","","test"); + $con = mysqli_connect("localhost","ias2020","ecell123","coc"); // $conn = new mysqli($servername, $username, $password, $dbname); if ($con->connect_error){ die("Connection failed: " . $con->connect_error); @@ -20,10 +20,9 @@ $sql = "INSERT INTO queries (name, email, phone, message) VALUES ('$name', '$email','$phone', '$message')"; if ($con->query($sql) === TRUE) { - // header('LOCATION:thanks.php'); - echo "Done"; + header('LOCATION:thanks.php'); } else { echo "Error: " . $sql . "
" . $con->error; } } -?> \ No newline at end of file +?> diff --git a/coc/queries.sql b/coc/queries.sql new file mode 100644 index 0000000..e9e8a90 --- /dev/null +++ b/coc/queries.sql @@ -0,0 +1,40 @@ +-- phpMyAdmin SQL Dump +-- version 5.1.1 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1 +-- Generation Time: Jan 31, 2022 at 08:50 AM +-- Server version: 10.4.21-MariaDB +-- PHP Version: 8.0.12 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `coc` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `queries` +-- + +CREATE TABLE `queries` ( + `name` text NOT NULL, + `email` varchar(50) NOT NULL, + `phone` text NOT NULL, + `message` text NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/coc/register.php b/coc/register.php index efdeb67..54d3b28 100644 --- a/coc/register.php +++ b/coc/register.php @@ -1,41 +1,130 @@ - - - - - - - E-CELL | Chambers Of Commerce - - - -
-
REGISRATION
-
-
-
-
- -
-
- -
-
- -
-
- -
-
- + + + + Registration | Chamber of Commerce + + + + + + + + + + + +
+
+ +
+

Registration

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ +
+ +
+
+ + +
+ +
+
- - \ No newline at end of file +
+ + + + + + + diff --git a/coc/store_details.php b/coc/store_details.php index 236a34c..45f80ac 100644 --- a/coc/store_details.php +++ b/coc/store_details.php @@ -7,7 +7,7 @@ // $password = "ecell123"; // $dbname = "eco21"; - $con = mysqli_connect("localhost","root","","test"); + $con = mysqli_connect("localhost","ias2020","ecell123","coc"); // $conn = new mysqli($servername, $username, $password, $dbname); if ($con->connect_error){ die("Connection failed: " . $con->connect_error); @@ -18,14 +18,26 @@ $college=mysqli_real_escape_string($con, $_POST['college']); $year = mysqli_real_escape_string($con, $_POST['year']); $phone = mysqli_real_escape_string($con, $_POST['phone']); +$emergencyphone = mysqli_real_escape_string($con, $_POST['emergencyphone']); +$size = mysqli_real_escape_string($con, $_POST['size']); +$name2 = mysqli_real_escape_string($con, $_POST['name2']); +$name3 = mysqli_real_escape_string($con, $_POST['name3']); +$name4 = mysqli_real_escape_string($con, $_POST['name4']); $_SESSION['name'] = $name; - - $sql = "INSERT INTO cocentries (name, email, college, year, phone) VALUES ('$name', '$email', '$college', '$year', '$phone')"; - if ($con->query($sql) === TRUE) { - // header('LOCATION:thanks.php'); - echo "Done"; - } else { - echo "Error: " . $sql . "
" . $con->error; - } +$checkUser = "SELECT * FROM cocentries where email = '$email'"; +$result = mysqli_query($con, $checkUser); +$count = mysqli_num_rows($result); +if($count>0){ + header('LOCATION:thanksmsg.php'); +} +else{ + $sql = "INSERT INTO cocentries (name, email, college, year, phone, emergencyphone, size, name2, name3, name4) VALUES ('$name', '$email', '$college', '$year', '$phone', '$emergencyphone','$size','$name2','$name3', '$name4')"; + if ($con->query($sql) === TRUE) { + header('LOCATION:thanksmsg.php'); + } else { + echo "Error: " . $sql . "
" . $con->error; + } +} + } ?> diff --git a/coc/thanks.php b/coc/thanks.php new file mode 100644 index 0000000..a51590c --- /dev/null +++ b/coc/thanks.php @@ -0,0 +1,42 @@ + + + + Thank You + + + + + + + + + + + + + + +
+
+
+
+ Your Query has been recorded.
We will get back to you soon.";?>
+
+
+ Your Query has been recorded.
We will get back to you soon.

";?>
+
+
+ +
+ +
+
+
+ + + + + + + +