Advertisement
adityakarkara

signup1

Nov 22nd, 2017
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 9.26 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Bajwa Cold Store</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta name="keywords" content="Truck Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
  8. <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
  9. <!-- bootstarp-css -->
  10. <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
  11. <!--// bootstarp-css -->
  12. <!-- css -->
  13. <link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
  14. <!--// css -->
  15. <script src="js/jquery-1.11.1.min.js"></script>
  16. <!--fonts-->
  17. <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,800,700,600' rel='stylesheet' type='text/css'>
  18. <!--/fonts-->
  19. <link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
  20. <script src="js/wow.min.js"></script>
  21. <script>
  22.      new WOW().init();
  23. </script>
  24. <!-- pop-up -->
  25. <link rel="stylesheet" href="css/touchTouch.css" type="text/css" media="all" />
  26. <script type="text/javascript" src="js/jquery.fancybox.js"></script>
  27.        <script type="text/javascript">
  28.             $(document).ready(function() {
  29.                 /*
  30.                  *  Simple image gallery. Uses default settings
  31.                  */
  32.  
  33.                 $('.fancybox').fancybox();
  34.  
  35.             });
  36.         </script>
  37. <!-- pop-up -->
  38. <!--start-smoth-scrolling-->
  39.         <script type="text/javascript" src="js/move-top.js"></script>
  40.         <script type="text/javascript" src="js/easing.js"></script>
  41.         <script type="text/javascript">
  42.             jQuery(document).ready(function($) {
  43.                 $(".scroll").click(function(event){    
  44.                     event.preventDefault();
  45.                     $('html,body').animate({scrollTop:$(this.hash).offset().top},900);
  46.                 });
  47.             });
  48.         </script>
  49.  
  50. </head>
  51. <body>
  52.  
  53. <div id="home" class="banner a-banner">
  54.         <!-- container -->
  55.         <div class="container">
  56.             <div class="header">
  57.                 <div class="head-logo">
  58.                     <a href="index.html"><img src="images/logo7.png" alt="" /></a>
  59.                 </div>
  60.                 <div class="top-nav">
  61.                     <span class="menu"><img src="images/menu.png" alt=""></span>
  62.                     <ul class="nav1">
  63.                         <li class="hvr-sweep-to-bottom"><a href="index.php">Home<i><img src="images/nav-but1.png" alt=""/></i></a></li>
  64.                         <li class="hvr-sweep-to-bottom"><a href="about.php">About<i><img src="images/nav-but2.png" alt=""/></i></a></li>
  65.                         <li class="hvr-sweep-to-bottom active"><a href="services.php">Services<i><img src="images/nav-but3.png" alt=""/></i></a></li>
  66.                         <li class="hvr-sweep-to-bottom"><a href="signup.php">Sign-Up<i><img src="images/nav-but4.png" alt=""/></i></a></li>
  67.                         <li class="hvr-sweep-to-bottom"><a href="login.php">Login<i><img src="images/nav-but5.png" alt=""/></i></a></li>
  68.                         <div class="clearfix"> </div>
  69.                     </ul>
  70.                     <!-- script-for-menu -->
  71.                              <script>
  72.                                $( "span.menu" ).click(function() {
  73.                                  $( "ul.nav1" ).slideToggle( 300, function() {
  74.                                  // Animation complete.
  75.                                   });
  76.                                  });
  77.                             </script>
  78.                         <!-- /script-for-menu -->
  79.                 </div>
  80.                 <div class="clearfix"> </div>
  81.             </div>
  82.         </div>
  83.         <!-- //container -->
  84.     </div>
  85.     <!-- //banner -->
  86.     <!-- products-top -->
  87.     <div class="products-top">
  88.         <!-- container -->
  89.         <div class="container">
  90.     <!--<h3 class="wow fadeInRight animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">Login Successful!!</h3>
  91.     <h5 class="wow fadeInRight animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">Press continue to avail our services.</h5>
  92. <h1><a href="avail.php">Continue</a></h1>   -->
  93.             <?php
  94.             session_start();
  95. $cs=$_POST["cid"];
  96. //echo"Customer ID=:".$cs."<br>";
  97. $ps=$_POST["pass"];
  98. //echo"Password=:".$ps."<br>";
  99. $dbhost='localhost';
  100. $dbuser='root';
  101. $conn=mysql_connect($dbhost,$dbuser);
  102. if(!$conn)
  103. {
  104. die('Could not connect: '.mysql_error());
  105. }
  106. $sql="SELECT * FROM signup where cid=$cs and password='$ps'";
  107. mysql_select_db('store');
  108. $retval=mysql_query($sql,$conn);
  109. if(!$retval)
  110. {
  111. echo"Invalid user-id or password\n";
  112. echo"<a href=login.php>Login again...</a>";
  113. }
  114. //echo"s";
  115. $p=0;
  116. $cnt=mysql_num_rows($retval);
  117.  
  118. if($cnt==0)
  119. {
  120. echo"<font size='12' face='arial'>Invalid user-id or password\n<br>";
  121. echo"<u><a href=login.php>Login again...</a></u>";
  122. echo "</font>";
  123. }
  124. else
  125. {
  126. while($row=mysql_fetch_array($retval,MYSQL_ASSOC))
  127. {
  128. $_SESSION["C1"]=$row['cid'];
  129. $_SESSION["C2"]=$row['cname'];
  130.  
  131.  
  132.  
  133. //echo "First name: <input type='text' name='fname' value='".$row['cid']."'><br>";
  134.  
  135.  
  136. echo "Customer_ID: ".$row['cid']."<br>";
  137. echo "Customer_Name: ".$row['cname']."<br>";
  138. echo "Email_ID: ".$row['emailid']."<br>";
  139. echo "Address: ".$row['address']."<br>";
  140. echo "Contact: ".$row['contact']."<br>";
  141. //echo "Password: ".$row['password']."<br>";
  142.  
  143. //echo"Login  successfully\n";
  144. //header("location:login1.php");
  145.  
  146.  
  147.  
  148.    
  149. }
  150. }
  151.  
  152. mysql_close($conn);
  153. ?>
  154.  
  155. <?php
  156.             //session_start();
  157. $cs=$_POST["cid"];
  158. //echo"Customer ID=:".$cs."<br>";
  159. $ps=$_POST["pass"];
  160. //echo"Password=:".$ps."<br>";
  161. $dbhost='localhost';
  162. $dbuser='root';
  163. $conn=mysql_connect($dbhost,$dbuser);
  164. if(!$conn)
  165. {
  166. die('Could not connect: '.mysql_error());
  167. }
  168. $sql="SELECT * FROM service where cid=$cs and password='$ps'";
  169. mysql_select_db('store');
  170. $retval1=mysql_query($sql,$conn);
  171. if(!$retval)
  172. {
  173. echo"Invalid user-id or password\n";
  174. //echo"<a href=login.php>Login again...</a>";
  175. }
  176. //echo"s";
  177. $p=0;
  178. $cnt=mysql_num_rows($retval);
  179.  
  180. if($cnt==0)
  181. {
  182. echo"<font size='12' face='arial'>Invalid user-id or password\n<br>";
  183. //echo"<u><a href=login.php>Login again...</a></u>";
  184. //echo "</font>";
  185. }
  186. else
  187. {
  188. while($row=mysql_fetch_array($retval,MYSQL_ASSOC))
  189. {
  190. $_SESSION["C1"]=$row['cid'];
  191. $_SESSION["C2"]=$row['cname'];
  192.  
  193.  
  194.  
  195. //echo "First name: <input type='text' name='fname' value='".$row['cid']."'><br>";
  196.  
  197.  
  198. echo "Customer_ID: ".$row['cid']."<br>";
  199. echo "Customer_Name: ".$row['units']."<br>";
  200. echo "Email_ID: ".$row['duration']."<br>";
  201. echo "Address: ".$row['date1']."<br>";
  202. echo "Contact: ".$row['type1']."<br>";
  203. //echo "Password: ".$row['password']."<br>";
  204. }
  205. }
  206.  
  207. mysql_close($conn);
  208. ?>
  209.  
  210. </div> 
  211.     <!-- //products-top -->
  212.     <!-- products-bottom -->
  213.    
  214.         <div class="products-bottom">
  215.         <!-- container -->
  216.    
  217.         <!-- //container -->
  218.     </div>
  219.     <!-- products-bottom -->
  220.     <!-- footer -->
  221.     <div class="footer">
  222.         <!-- container -->
  223.         <div class="container">
  224.             <div class="col-md-6 footer-left  wow fadeInLeft animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  225.                 <ul>
  226.                     <li><a href="index.php">Home</a></li>
  227.                     <li><a href="about.php">About</a></li>
  228.                     <li><a href="services.php">Services</a></li>
  229.                     <li><a href="signup.php">Sign-Up</a></li>
  230.                     <li><a href="login.php">Login</a></li>
  231.                 </ul>
  232.             </div>
  233.             <div class="col-md-3 footer-middle wow bounceIn animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  234.                 <h3>Address</h3>
  235.                 <div class="address">
  236.                     <p>Bajwa Cold Store
  237.                         <span>Kahnuwan road, Batala</span>
  238.                     </p>
  239.                 </div>
  240.                 <div class="phone">
  241.                     <p>+91-9815964055</p>
  242.                 </div>
  243.             </div>
  244.             <div class="col-md-3 footer-right  wow fadeInRight animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  245.                 <a href="#"><img src="images/logo7.png" alt="" /></a>
  246.                 <p>We are here to help you.</p>
  247.             </div>
  248.             <div class="clearfix"> </div>  
  249.         </div>
  250.         <!-- //container -->
  251.     </div>
  252.     <!-- //footer -->
  253.     <div class="copyright">
  254.         <!-- container -->
  255.         <div class="container">
  256.             <div class="copyright-left wow fadeInLeft animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  257.                 <p>� 2017 Bajwa Cold Store</p>
  258.             </div>
  259.             <div class="copyright-right wow fadeInRight animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  260.                 <ul>
  261.                     <li><a href="#" class="twitter"> </a></li>
  262.                     <li><a href="#" class="twitter facebook"> </a></li>
  263.                     <li><a href="#" class="twitter chrome"> </a></li>
  264.                     <li><a href="#" class="twitter pinterest"> </a></li>
  265.                     <li><a href="#" class="twitter linkedin"> </a></li>
  266.                     <li><a href="#" class="twitter dribbble"> </a></li>
  267.                 </ul>
  268.             </div>
  269.             <div class="clearfix"> </div>
  270.             <script type="text/javascript">
  271.                                     $(document).ready(function() {
  272.                                         /*
  273.                                         var defaults = {
  274.                                             containerID: 'toTop', // fading element id
  275.                                             containerHoverID: 'toTopHover', // fading element hover id
  276.                                             scrollSpeed: 1200,
  277.                                             easingType: 'linear'
  278.                                         };
  279.                                         */
  280.                                        
  281.                                         $().UItoTop({ easingType: 'easeOutQuart' });
  282.                                        
  283.                                     });
  284.                                 </script>
  285.         <a href="#home" id="toTop" class="scroll" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>
  286.  
  287.         </div>
  288.         <!-- //container -->
  289.     </div>
  290. </body>
  291. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement