Guest User

Untitled

a guest
May 8th, 2018
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.67 KB | None | 0 0
  1. <?php
  2. include './conn.php';
  3. session_start();
  4.  
  5.  
  6. ?>
  7. <!DOCTYPE html>
  8. <!--
  9. To change this license header, choose License Headers in Project Properties.
  10. To change this template file, choose Tools | Templates
  11. and open the template in the editor.
  12. -->
  13. <?php
  14.  
  15. $err = '';
  16. $err1 = '';
  17.  
  18. if (isset($_REQUEST['submit'])) {
  19.  
  20. $firstname = $_REQUEST['FirstName'];
  21. $middlename = $_REQUEST['mname'];
  22. $lastname = $_REQUEST['lName'];
  23. $city = $_REQUEST['city'];
  24. $email = $_REQUEST['Email'];
  25. $mobile = $_REQUEST['Mobile'];
  26. $intrest = $_REQUEST['intrest'];
  27. $comments = $_REQUEST['comments'];
  28. $otp = $_REQUEST['otp'];
  29.  
  30. $aa = $_SESSION["otp"];
  31.  
  32. $dd= date("Y-m-d");
  33.  
  34.  
  35. if ($otp == $aa) {
  36. // $err = "CurrOct Otp";
  37. $check = mysqli_query($stu1, "select * from browser where email='$email'");
  38.  
  39. $row = mysqli_num_rows($check);
  40.  
  41.  
  42.  
  43. if ($row > 0) {
  44. $err= "Data already exists";
  45. } else {
  46.  
  47. $insert = "insert into browser(date,firstname,middlename,lastname,city,mobile,message,email,interest) values ('$dd','$firstname','$middlename','$lastname','$city','$mobile','$comments','$email','$intrest')";
  48. $data =mysqli_query($stu1, $insert);
  49. if ($data) {
  50.  
  51. $err1 = "Insert data sucessfully";
  52. }
  53. else {
  54.  
  55. $err1 = "Not inserted";
  56.  
  57.  
  58. }
  59. }
  60. } else {
  61. $err = "Incorrect Capture";
  62.  
  63. }
  64. }
  65.  
  66. ?>
  67. <?php
  68.  
  69.  
  70.  
  71.  
  72. $err1='';
  73. $user="";
  74. $pass="";
  75. if(isset($_REQUEST["submit"]))
  76. {
  77.  
  78. $user=$_REQUEST['user'];
  79. $pass=$_REQUEST['pass'];
  80. $query = mysqli_query($stu1,"SELECT type,name FROM userdetails where email='$user'");
  81. WHILE ($rows = mysqli_fetch_array($query)):
  82. $uname=$rows['name'];
  83.  
  84. $_SESSION["uname"]=$uname;
  85. $ro = $rows['type'];
  86.  
  87. endwhile;
  88. $login = mysqli_query($stu1, "select name,email,pass from userdetails where email='$user' and pass='$pass'");
  89. $row=mysqli_num_rows($login);
  90.  
  91.  
  92. if($row > 0)
  93. {
  94.  
  95. if($ro =='1')
  96. {
  97. $_SESSION["login"]=$ro;
  98. header('location:Administrator/home.php');
  99. }
  100. else if($ro =='4')
  101.  
  102. {
  103. $_SESSION["login"]=$ro;
  104. header('location:faculty/home.php');
  105. }
  106. else if($ro =='8')
  107.  
  108. {
  109. $_SESSION["login"]=$ro;
  110. header('location:student/home.php');
  111. }
  112. else
  113. {
  114. $_SESSION["login"]=$ro;
  115. header('location:sales/home.php');
  116.  
  117. }
  118. }
  119. else
  120. {
  121.  
  122. $err1= 'incurrect data entry';
  123. }
  124.  
  125.  
  126. }
  127. ?>
  128. <html>
  129. <head>
  130. <script src="js/popper.js" type="text/javascript"></script>
  131. <script src="js/jquery-3.3.1.js" type="text/javascript"></script>
  132. <link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
  133. <script src="js/bootstrap.js" type="text/javascript"></script>
  134. <title>Welcome to Infoway Technologies</title>
  135. <meta charset="UTF-8">
  136. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  137. <link href="css/main.css" rel="stylesheet" type="text/css"/>
  138. </head>
  139. <body>
  140.  
  141.  
  142. <div class="container">
  143. <div style="height: 20px;"></div>
  144.  
  145. <div class="row">
  146. <div class="col-lg-3 logo"> <img src="img/Infoway.png" alt="" style="width:180px;height:60px;"/></div>
  147. <div class="col-rg-8 ml-auto title"></div>
  148. <nav class="navbar navbar-sm fixed-left">
  149. <form class="form-inline" method="post">
  150. <label style=" color: #ff6666; font-size: larger" ><?php echo $err1; ?></label>
  151. <input type="text" name="user" class="form-control form-control-sm mr-2" id="username" placeholder="Username" value="">
  152. <input type="password" name="pass" class="form-control form-control-sm mr-2" id="password" placeholder="Password">
  153. <button type="submit" name="submit" class="btn btn-sm btn-secondary" style="align:right">Submit</button>
  154. </form>
  155.  
  156. </div>
  157.  
  158. <div class="row">
  159. <div class="col-lg-12 menu">
  160.  
  161.  
  162. <nav class="navbar navbar-default navbar-expand-sm mb-3">
  163. <div class="container">
  164. <a class="navbar-brand" href="index.php">Home</a>
  165. <button class="navbar-toggler" data-toggle="collapse" data-target="#navbarNav"><span class="navbar-toggler-icon"></span></button>
  166. <div class="collapse navbar-collapse" id="navbarNav">
  167. <ul class="navbar-nav mr-auto">
  168. <li class="nav-item">
  169. <a class="nav-link" href="programs.php">Programs</a>
  170. </li>
  171. <li class="nav-item">
  172. <a class="nav-link" href="schedules.php">Schedules</a>
  173. </li>
  174. <li class="nav-item">
  175. <a class="nav-link" href="placements.php">Placements</a>
  176.  
  177. <li class="nav-item">
  178. <a class="nav-link" href="downloads.php">Downloads</a>
  179. </li>
  180.  
  181. <li class="nav-item">
  182. <a class="nav-link" href="services.php">Services</a>
  183. </li>
  184. <li class="nav-item">
  185. <a class="nav-link" href="about.php">About</a>
  186. </li>
  187. <li class="nav-item">
  188. <a class="nav-link" href="contactUs.php">Contact</a>
  189. </li>
  190. </ul>
  191. </div>
  192. </div>
  193. </nav>
  194. </div>
  195. </div>
  196.  
  197. <div class="row" style="height: 40px;">
  198. <div class="col-lg-12">
  199. <h5>Contact Us</h5>
  200. </div>
  201. </div>
  202.  
  203. <div class="row">
  204. <div class="col-lg-4">
  205.  
  206.  
  207. <!-- Navigation Panel -->
  208.  
  209. <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
  210. Address<br />
  211. </span>
  212.  
  213. <div class="contents"><p>You are welcome to visit our training center and our office located
  214. at the following address. Our Counsellors and Course Co-ordinators are
  215. available at the office between 9.00am and 7.00pm on Monday to Saturday<br><br>
  216.  
  217. During your visit you can also see our facilities and the state-of-art computer labs
  218. </p>
  219. </div>
  220. <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
  221. &nbsp;&nbsp;Infoway Technologies Private Limited<br />
  222. </span>
  223. <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 10pt;">
  224. &nbsp;&nbsp;3rd Floor, Commerce Center<br />
  225. &nbsp;&nbsp;Opposite Krishna Hospital, Rambaug Colony<br />
  226. &nbsp;&nbsp;Paud Road<br />
  227. &nbsp;&nbsp;Pune 411 038<br /><br />
  228. </span>
  229.  
  230. <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
  231. Telephone Numbers<br />
  232. </span>
  233.  
  234. <div class="contents"><p>Alternately you can and speak to our counsellors by calling these telephone numbers as per the timings mentioned above.
  235. </p>
  236. </div>
  237.  
  238. <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 14pt;">
  239. &nbsp;&nbsp;020-413-12111<br />
  240. &nbsp;&nbsp;020-413-12112
  241. </span>
  242. <br />
  243. <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
  244. <br /> Email
  245. </span>
  246.  
  247. <div class="contents"><p>Get in touch with us right away! Please write to us with your queries and we
  248. will get back you with the information by writing back or calling you as per your request.
  249. </p>
  250. </div>
  251. <br />
  252. <span style="color:#0080C0; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 14pt;">
  253. &nbsp;&nbsp;info@infowayltd.com<br /><br />
  254. </span>
  255.  
  256. <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
  257. Follow Us<br />
  258. </span>
  259.  
  260. <div class="contents"><p>
  261. You can also follow us on these social media sites and get a Glimpse of what we do<br /><br />
  262. </p></div>
  263.  
  264. <div class="col">
  265. <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>
  266. <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>
  267. <a href="https://twitter.com/cdacinfoway" target="_blank"><img src="img/twitter-letter-logo.png" alt="" width="30" height="30" border-left="0"></a>
  268. </div>
  269. <br>
  270. </div>
  271.  
  272.  
  273.  
  274.  
  275. <div class="col-lg-8">
  276.  
  277. <!-- Main panel -->
  278. <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 12pt;">
  279. Want us to contact you?<br />
  280. </span>
  281.  
  282.  
  283. <span style="color:Black; font-family: Candara; font-weight: bold; font-style: normal; text-decoration: none; font-size: 10pt;">
  284. <p>Please fill in your contact details and write us a message
  285. regarding your query or about the information you like from us.
  286. We will get back to you in the shortest possible time.</p><br />
  287. </span>
  288.  
  289.  
  290. <div class="jumbotron">
  291. <form action="contactUs.php" method="POST">
  292.  
  293.  
  294. <div class="form-group row">
  295.  
  296. <label for="inputName" class="col-sm-2 col-form-label">Name</label>
  297. <div class="col-sm-3">
  298. <input type="text" name="FirstName" class="form-control" required placeholder="First name"><span class="error_form" id="username_error_message"></span>
  299. </div>
  300. <div class="col-sm-3">
  301. <input type="text" class="form-control" name="mname" placeholder="Middle name" >
  302. </div>
  303. <div class="col-sm-3">
  304. <input type="text" class="form-control" name="lName" placeholder="Last name">
  305. </div>
  306. </div>
  307. <div class="form-group row">
  308. <label for="inputEmail" class="col-sm-2 col-form-label" >City</label>
  309. <div class="col-sm-6">
  310. <input type="text" class="form-control" id="inputEmail" name="city" placeholder="City Name" required><span class="erroro"></span>
  311. </div>
  312. </div>
  313.  
  314. <div class="form-group row">
  315. <label for="inputEmail" class="col-sm-2 col-form-label">Email</label>
  316. <div class="col-sm-6">
  317. <input type="text" class="form-control" id="inputEmail" required name="Email" placeholder="Email Address"><span class="error_form" id="email_error_message"></span>
  318. </div>
  319. </div>
  320.  
  321. <div class="form-group row">
  322. <label for="inputMobile" class="col-sm-2 col-form-label">Mobile</label>
  323. <div class="col-sm-6">
  324. <input type="text" class="form-control" name="Mobile" required id="inputPassword" placeholder="Mobile Number"><span class="erroro"></span>
  325. </div>
  326. </div>
  327. <div class="form-group row">
  328. <label for="inputMobile" class="col-sm-2 col-form-label">Intrest</label>
  329. <div class="col-sm-6">
  330. <input type="text" class="form-control" name="intrest" required id="inputPassword" placeholder="Enter your Intrest"><span class="erroro"></span>
  331. </div>
  332. </div>
  333.  
  334.  
  335. <div class="form-group row">
  336. <label for="inputMessage" class="col-sm-2 col-form-label">Message</label>
  337. <div class="col-sm-8">
  338. <textarea class="form-control" rows="5" name="comments" required id="comment"></textarea>
  339. </div>
  340. </div>
  341.  
  342. <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);
  343. $_SESSION["otp"] = $ava;
  344. echo $ava;
  345. ?></label>
  346. <div class="form-group row">
  347. <label class="col-sm-2 col-form-label">Capture</label>
  348. <div class="col-sm-6">
  349. <input type="text" class="form-control" name="otp" required id="inputPassword" placeholder="Enter your Capture"><span class="erroro"></span>
  350. </div>
  351. <label style=" color: red" ><?php echo $err; ?></label><br>
  352. </div>
  353.  
  354. <button type="submit" name="submit" class="btn btn-primary">Submit</button> <button type="reset" class="btn btn-default">Reset</button><br>
  355. <label style=" color: red" ><?php echo $err1; ?></label>
  356. </form>
  357. </div>
  358.  
  359.  
  360. <br>
  361.  
  362.  
  363.  
  364.  
  365.  
  366. <br>
  367. <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>
  368. <br>
  369. <br>
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380. </div>
  381. </div>
  382.  
  383. <div class="row footerarea">
  384. <div class="col">
  385. Infoway Technologies Private Limited<br>
  386. 3rd Floor - Commerce Center<br>
  387. Rambaug Colony<br>
  388. Paud Road<br>
  389. Pune 411038<br>
  390. </div>
  391.  
  392.  
  393. <div class="col"></div>
  394. <div class="col"></div>
  395.  
  396.  
  397. <div class="col">
  398. <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>
  399. <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>
  400. <a href="https://twitter.com/cdacinfoway" target="_blank"><img src="img/twitter-letter-logo.png" alt="" width="30" height="30" border-left="0"></a>
  401. </div>
  402.  
  403. </div>
  404.  
  405. <!-- eot container section -->
  406. </div>
  407. </body>
  408. </html>
Add Comment
Please, Sign In to add comment