Advertisement
adityakarkara

bill

Nov 22nd, 2017
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 9.05 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. $cd=$_SESSION["C1"];
  96. $nm=$_SESSION["C2"];
  97. //$cd=$row['cid']
  98. //$nm="ankita";
  99. //echo"Name=:".$nm."<br>";
  100.  
  101. //echo"Email=:".$em."<br>";
  102. $un=$_POST["units"];
  103. //echo"Address=:".$ad."<br>";
  104. $dr=$_POST["months"];
  105. //echo"Contact=:".$cn."<br>";
  106. $tp=$_POST["type1"];
  107. //echo"Password=:".$ps."<br>";
  108. //$ba=$un*$dr*1000;
  109. $bn=rand(1,100000);
  110. $rn=rand(1,100);
  111. //$dt=$_POST["date2"];
  112. $currentDate = strtotime("now");    
  113. $starttime=date("y-m-d", $currentDate);
  114. $rt=$_POST["service_type"];
  115.  
  116. if($rt=="blast")
  117. {
  118. $ba=$un*$dr*1000;
  119. }
  120. if($rt=="room")
  121. {
  122. $ba=$un*$dr*200;
  123. }
  124. else if($rt=="ultra")
  125. {
  126. $ba=$un*$dr*300;
  127. }
  128. else if($rt=="product")
  129. {
  130. $ba=$un*$dr*400;
  131. }
  132. else if($rt=="ambient")
  133. {
  134. $ba=$un*$dr*1500;
  135. }
  136. else if($rt=="normal")
  137. {
  138. $ba=$un*$dr*100;
  139. }
  140. else
  141. {
  142. $ba=$un*$dr*0;
  143. //echo "This service is temporarily unavailable. Sorry for inconvenience.<br>";
  144. }
  145. $dbhost='localhost';
  146. $dbuser='root';
  147. $conn=mysql_connect($dbhost,$dbuser);
  148. if(!$conn)
  149. {
  150. die('Could not connect: '.mysql_error());
  151. }
  152.  
  153. $sql="INSERT INTO service (cid,cname,units,duration,date1,type1,bill_amount,bill_no,room_no,type_service) VALUES($cd,'$nm',$un,$dr,'$starttime','$tp',$ba,$bn,$rn,'$rt')";
  154.  
  155. mysql_select_db('store');
  156. $retval=mysql_query($sql,$conn);
  157. if(!$retval)
  158. {
  159. die('Could not enter data: '.mysql_error());
  160. }
  161. echo "<b>Customer_ID: ".$cd."<br>";
  162. echo "Customer_Name: ".$nm."<br>";
  163. echo "Number of units: ".$un."<br>";
  164. echo "Duration: ".$dr."<br>";
  165. echo "Date: ".$starttime."<br>";
  166. echo "Bill No.: ".$bn."<br>";
  167. echo "According to your requirements we have alloted room no.: ".$rn." to you.<br>";
  168. echo "Service Type: ".$rt."<br></b>";
  169. //echo "Password: ".$row['password']."<br>";
  170. echo "<font size='10' face='Arial'><b><br>Bill_Amount:- *</b>".$ba."<br>";
  171. echo "</font>";
  172. echo"<b>Congratulations!! Now you have successfully entered details so proceed further to pay options to continue..\n</b><br><br>";
  173. echo "* As per current scenario, if further charges are involved due to any reason then the customer has to pay that also(See Terms and Conditions for your query).<br>";
  174. echo"<font size='10'><b><u><a href='#'>Proceed</a></u></b></font>";
  175. mysql_close($conn);
  176. ?>
  177. </div> 
  178.     <!-- //products-top -->
  179.     <!-- products-bottom -->
  180.    
  181.         <div class="products-bottom">
  182.         <!-- container -->
  183.    
  184.         <!-- //container -->
  185.     </div>
  186.     <!-- products-bottom -->
  187.     <!-- footer -->
  188.     <div class="footer">
  189.         <!-- container -->
  190.         <div class="container">
  191.             <div class="col-md-6 footer-left  wow fadeInLeft animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  192.                 <ul>
  193.                     <li><a href="index.php">Home</a></li>
  194.                     <li><a href="about.php">About</a></li>
  195.                     <li><a href="services.php">Services</a></li>
  196.                     <li><a href="signup.php">Sign-Up</a></li>
  197.                     <li><a href="login.php">Login</a></li>
  198.                 </ul>
  199.             </div>
  200.             <div class="col-md-3 footer-middle wow bounceIn animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  201.                 <h3>Address</h3>
  202.                 <div class="address">
  203.                     <p>Bajwa Cold Store
  204.                         <span>Kahnuwan road, Batala</span>
  205.                     </p>
  206.                 </div>
  207.                 <div class="phone">
  208.                     <p>+91-9815964055</p>
  209.                 </div>
  210.             </div>
  211.             <div class="col-md-3 footer-right  wow fadeInRight animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  212.                 <a href="#"><img src="images/logo7.png" alt="" /></a>
  213.                 <p>Proin eget ipsum ultrices, aliquet velit eget, tempus tortor. Phasellus non velit sit amet diam faucibus molestie tincidunt efficitur nisi.</p>
  214.             </div>
  215.             <div class="clearfix"> </div>  
  216.         </div>
  217.         <!-- //container -->
  218.     </div>
  219.     <!-- //footer -->
  220.     <div class="copyright">
  221.         <!-- container -->
  222.         <div class="container">
  223.             <div class="copyright-left wow fadeInLeft animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  224.                 <p>� 2017 Bajwa Cold Store</p>
  225.             </div>
  226.             <div class="copyright-right wow fadeInRight animated" data-wow-delay="0.4s" style="visibility: visible; -webkit-animation-delay: 0.4s;">
  227.                 <ul>
  228.                     <li><a href="#" class="twitter"> </a></li>
  229.                     <li><a href="#" class="twitter facebook"> </a></li>
  230.                     <li><a href="#" class="twitter chrome"> </a></li>
  231.                     <li><a href="#" class="twitter pinterest"> </a></li>
  232.                     <li><a href="#" class="twitter linkedin"> </a></li>
  233.                     <li><a href="#" class="twitter dribbble"> </a></li>
  234.                 </ul>
  235.             </div>
  236.             <div class="clearfix"> </div>
  237.             <script type="text/javascript">
  238.                                     $(document).ready(function() {
  239.                                         /*
  240.                                         var defaults = {
  241.                                             containerID: 'toTop', // fading element id
  242.                                             containerHoverID: 'toTopHover', // fading element hover id
  243.                                             scrollSpeed: 1200,
  244.                                             easingType: 'linear'
  245.                                         };
  246.                                         */
  247.                                        
  248.                                         $().UItoTop({ easingType: 'easeOutQuart' });
  249.                                        
  250.                                     });
  251.                                 </script>
  252.         <a href="#home" id="toTop" class="scroll" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>
  253.  
  254.         </div>
  255.         <!-- //container -->
  256.     </div>
  257. </body>
  258. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement