Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions coc/cocentries.sql
Original file line number Diff line number Diff line change
@@ -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 */;
133 changes: 47 additions & 86 deletions coc/css/styles.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
2 changes: 1 addition & 1 deletion coc/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class="fab fa-youtube fa-2x row1 youtube"></i></a></span>
</div>
<div class="col-md-4 text-white text-center foot1">
<p>For Association Opportunities and Queries Contact: <br>
<a class="foot" href="mailto:contact@ecellvnit.org">contact@ecellvnit.org</a><br>
<a class="foot" href="mailto:corporateaffairs@ecellvnit.co.in">corporateaffairs@ecellvnit.co.in</a><br>
<a class="foot" href="mailto:cocconso2022@gmail.com">cocconso2022@gmail.com</a>
</p>
</div>
Expand Down
7 changes: 3 additions & 4 deletions coc/queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 . "<br>" . $con->error;
}
}
?>
?>
40 changes: 40 additions & 0 deletions coc/queries.sql
Original file line number Diff line number Diff line change
@@ -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 */;
Loading