Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include './conn.php';
- session_start();
- ?>
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <?php
- $err = '';
- $err1 = '';
- if (isset($_REQUEST['submit'])) {
- $firstname = $_REQUEST['FirstName'];
- $middlename = $_REQUEST['mname'];
- $lastname = $_REQUEST['lName'];
- $city = $_REQUEST['city'];
- $email = $_REQUEST['Email'];
- $mobile = $_REQUEST['Mobile'];
- $intrest = $_REQUEST['intrest'];
- $comments = $_REQUEST['comments'];
- $otp = $_REQUEST['otp'];
- $aa = $_SESSION["otp"];
- $dd= date("Y-m-d");
- if ($otp == $aa) {
- // $err = "CurrOct Otp";
- $check = mysqli_query($stu1, "select * from browser where email='$email'");
- $row = mysqli_num_rows($check);
- if ($row > 0) {
- $err= "Data already exists";
- } else {
- $insert = "insert into browser(date,firstname,middlename,lastname,city,mobile,message,email,interest) values ('$dd','$firstname','$middlename','$lastname','$city','$mobile','$comments','$email','$intrest')";
- $data =mysqli_query($stu1, $insert);
- if ($data) {
- $err1 = "Insert data sucessfully";
- }
- else {
- $err1 = "Not inserted";
- }
- }
- } else {
- $err = "Incorrect Capture";
- }
- }
- ?>
- <?php
- $err1='';
- $user="";
- $pass="";
- if(isset($_REQUEST["submit"]))
- {
- $user=$_REQUEST['user'];
- $pass=$_REQUEST['pass'];
- $query = mysqli_query($stu1,"SELECT type,name FROM userdetails where email='$user'");
- WHILE ($rows = mysqli_fetch_array($query)):
- $uname=$rows['name'];
- $_SESSION["uname"]=$uname;
- $ro = $rows['type'];
- endwhile;
- $login = mysqli_query($stu1, "select name,email,pass from userdetails where email='$user' and pass='$pass'");
- $row=mysqli_num_rows($login);
- if($row > 0)
- {
- if($ro =='1')
- {
- $_SESSION["login"]=$ro;
- header('location:Administrator/home.php');
- }
- else if($ro =='4')
- {
- $_SESSION["login"]=$ro;
- header('location:faculty/home.php');
- }
- else if($ro =='8')
- {
- $_SESSION["login"]=$ro;
- header('location:student/home.php');
- }
- else
- {
- $_SESSION["login"]=$ro;
- header('location:sales/home.php');
- }
- }
- else
- {
- $err1= 'incurrect data entry';
- }
- }
- ?>
- <html>
- <head>
- <script src="js/popper.js" type="text/javascript"></script>
- <script src="js/jquery-3.3.1.js" type="text/javascript"></script>
- <link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
- <script src="js/bootstrap.js" type="text/javascript"></script>
- <title>Welcome to Infoway Technologies</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="css/main.css" rel="stylesheet" type="text/css"/>
- </head>
- <body>
- <div class="container">
- <div style="height: 20px;"></div>
- <div class="row">
- <div class="col-lg-3 logo"> <img src="img/Infoway.png" alt="" style="width:180px;height:60px;"/></div>
- <div class="col-rg-8 ml-auto title"></div>
- <nav class="navbar navbar-sm fixed-left">
- <form class="form-inline" method="post">
- <label style=" color: #ff6666; font-size: larger" ><?php echo $err1; ?></label>
- <input type="text" name="user" class="form-control form-control-sm mr-2" id="username" placeholder="Username" value="">
- <input type="password" name="pass" class="form-control form-control-sm mr-2" id="password" placeholder="Password">
- <button type="submit" name="submit" class="btn btn-sm btn-secondary" style="align:right">Submit</button>
- </form>
- </div>
- <div class="row">
- <div class="col-lg-12 menu">
- <nav class="navbar navbar-default navbar-expand-sm mb-3">
- <div class="container">
- <a class="navbar-brand" href="index.php">Home</a>
- <button class="navbar-toggler" data-toggle="collapse" data-target="#navbarNav"><span class="navbar-toggler-icon"></span></button>
- <div class="collapse navbar-collapse" id="navbarNav">
- <ul class="navbar-nav mr-auto">
- <li class="nav-item">
- <a class="nav-link" href="programs.php">Programs</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="schedules.php">Schedules</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="placements.php">Placements</a>
- <li class="nav-item">
- <a class="nav-link" href="downloads.php">Downloads</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="services.php">Services</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="about.php">About</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="contactUs.php">Contact</a>
- </li>
- </ul>
- </div>
- </div>
- </nav>
- </div>
- </div>
- <div class="row" style="height: 40px;">
- <div class="col-lg-12">
- <h5>Contact Us</h5>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-4">
- <!-- Navigation Panel -->
- <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
- Address<br />
- </span>
- <div class="contents"><p>You are welcome to visit our training center and our office located
- at the following address. Our Counsellors and Course Co-ordinators are
- available at the office between 9.00am and 7.00pm on Monday to Saturday<br><br>
- During your visit you can also see our facilities and the state-of-art computer labs
- </p>
- </div>
- <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
- Infoway Technologies Private Limited<br />
- </span>
- <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 10pt;">
- 3rd Floor, Commerce Center<br />
- Opposite Krishna Hospital, Rambaug Colony<br />
- Paud Road<br />
- Pune 411 038<br /><br />
- </span>
- <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
- Telephone Numbers<br />
- </span>
- <div class="contents"><p>Alternately you can and speak to our counsellors by calling these telephone numbers as per the timings mentioned above.
- </p>
- </div>
- <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 14pt;">
- 020-413-12111<br />
- 020-413-12112
- </span>
- <br />
- <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
- <br /> Email
- </span>
- <div class="contents"><p>Get in touch with us right away! Please write to us with your queries and we
- will get back you with the information by writing back or calling you as per your request.
- </p>
- </div>
- <br />
- <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 14pt;">
- info@infowayltd.com<br /><br />
- </span>
- <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
- Follow Us<br />
- </span>
- <div class="contents"><p>
- You can also follow us on these social media sites and get a Glimpse of what we do<br /><br />
- </p></div>
- <div class="col">
- <a href="https://www.facebook.com/Infoway-Technologies-Pvt-Ltd-880917102040622/?ref=bookmarks" target="_blank"><img src="img/facebook-logo.png" alt="" width="32" height="32" border-left="0"></a>
- <a href="https://www.linkedin.com/in/infoway-technologies-pvt-ltd-344b6b13a" target="_blank"><img src="img/linkedin-logo-1.png" alt="" width="32" height="32" border-left="0"></a>
- <a href="https://twitter.com/cdacinfoway" target="_blank"><img src="img/twitter-letter-logo.png" alt="" width="30" height="30" border-left="0"></a>
- </div>
- <br>
- </div>
- <div class="col-lg-8">
- <!-- Main panel -->
- <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
- Want us to contact you?<br />
- </span>
- <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 10pt;">
- <p>Please fill in your contact details and write us a message
- regarding your query or about the information you like from us.
- We will get back to you in the shortest possible time.</p><br />
- </span>
- <div class="jumbotron">
- <form action="contactUs.php" method="POST">
- <div class="form-group row">
- <label for="inputName" class="col-sm-2 col-form-label">Name</label>
- <div class="col-sm-3">
- <input type="text" name="FirstName" class="form-control" required placeholder="First name"><span class="error_form" id="username_error_message"></span>
- </div>
- <div class="col-sm-3">
- <input type="text" class="form-control" name="mname" placeholder="Middle name" >
- </div>
- <div class="col-sm-3">
- <input type="text" class="form-control" name="lName" placeholder="Last name">
- </div>
- </div>
- <div class="form-group row">
- <label for="inputEmail" class="col-sm-2 col-form-label" >City</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" id="inputEmail" name="city" placeholder="City Name" required><span class="erroro"></span>
- </div>
- </div>
- <div class="form-group row">
- <label for="inputEmail" class="col-sm-2 col-form-label">Email</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" id="inputEmail" required name="Email" placeholder="Email Address"><span class="error_form" id="email_error_message"></span>
- </div>
- </div>
- <div class="form-group row">
- <label for="inputMobile" class="col-sm-2 col-form-label">Mobile</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="Mobile" required id="inputPassword" placeholder="Mobile Number"><span class="erroro"></span>
- </div>
- </div>
- <div class="form-group row">
- <label for="inputMobile" class="col-sm-2 col-form-label">Intrest</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="intrest" required id="inputPassword" placeholder="Enter your Intrest"><span class="erroro"></span>
- </div>
- </div>
- <div class="form-group row">
- <label for="inputMessage" class="col-sm-2 col-form-label">Message</label>
- <div class="col-sm-8">
- <textarea class="form-control" rows="5" name="comments" required id="comment"></textarea>
- </div>
- </div>
- <label id="av" align='center' style="color: #006600; font-family:Jokerman; font-size:30px ;font-style: italic; width: 700px" name="oo" align="center"><?php $ava = rand(11111, 100000);
- $_SESSION["otp"] = $ava;
- echo $ava;
- ?></label>
- <div class="form-group row">
- <label class="col-sm-2 col-form-label">Capture</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="otp" required id="inputPassword" placeholder="Enter your Capture"><span class="erroro"></span>
- </div>
- <label style=" color: red" ><?php echo $err; ?></label><br>
- </div>
- <button type="submit" name="submit" class="btn btn-primary">Submit</button> <button type="reset" class="btn btn-default">Reset</button><br>
- <label style=" color: red" ><?php echo $err1; ?></label>
- </form>
- </div>
- <br>
- <br>
- <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d15133.688816531387!2d73.8149038!3d18.5098134!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xe6e0299d0330dcf9!2sInfoway+Technologies+Private+Limited!5e0!3m2!1sen!2sin!4v1436776815176" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
- <br>
- <br>
- </div>
- </div>
- <div class="row footerarea">
- <div class="col">
- Infoway Technologies Private Limited<br>
- 3rd Floor - Commerce Center<br>
- Rambaug Colony<br>
- Paud Road<br>
- Pune 411038<br>
- </div>
- <div class="col"></div>
- <div class="col"></div>
- <div class="col">
- <a href="https://www.facebook.com/Infoway-Technologies-Pvt-Ltd-880917102040622/?ref=bookmarks" target="_blank"><img src="img/facebook-logo.png" alt="" width="32" height="32" border-left="0"></a>
- <a href="https://www.linkedin.com/in/infoway-technologies-pvt-ltd-344b6b13a" target="_blank"><img src="img/linkedin-logo-1.png" alt="" width="32" height="32" border-left="0"></a>
- <a href="https://twitter.com/cdacinfoway" target="_blank"><img src="img/twitter-letter-logo.png" alt="" width="30" height="30" border-left="0"></a>
- </div>
- </div>
- <!-- eot container section -->
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment