PageRenderTime 124ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/public_html/rezervare_sejur_succes.php

https://bitbucket.org/ocaziituristice/ocaziituristice.ro
PHP | 269 lines | 209 code | 50 blank | 10 comment | 8 complexity | 892235af72deb7592fac94814c68be10 MD5 | raw file
  1. <?php
  2. include_once( $_SERVER['DOCUMENT_ROOT'] . '/includes/config_responsive.php' );
  3. include_once($_SERVER['DOCUMENT_ROOT']."/includes/peste_tot.php");
  4. include_once($_SERVER['DOCUMENT_ROOT'].'/config/includes/class/afisare_hotel.php');
  5. include_once($_SERVER['DOCUMENT_ROOT'].'/config/includes/class/afisare_sejur.php');
  6. include_once($_SERVER['DOCUMENT_ROOT']."/adm/class/rezervare.php");
  7. $meta_index = "noindex,follow";
  8. /*** check login admin ***/
  9. $logare_admin = new LOGIN('useri');
  10. $err_logare_admin = $logare_admin->verifica_user();
  11. /*** check login admin ***/
  12. $id_rezervare=$_GET['rez'];
  13. $rezervare = new REZERVARE();
  14. $row_rez=$rezervare->date_rezervare($id_rezervare);
  15. //apelare clasa rezervare
  16. //$id_oferta=$_GET['oferta'];
  17. //$id_hotel=$_GET['hotel'];
  18. $id_oferta=$row_rez['id_oferta'];
  19. $id_sesiune=$row_rez['session_id'];
  20. //echo "=".session_id();
  21. $modalitate_plata=$row_rez['modalitate_plata'];
  22. $timp_de_la_rezervare=floor((time()-strtotime($row_rez['data_adaugarii']))/(60));
  23. if($timp_de_la_rezervare>100)
  24. {
  25. header("Location: ".$sitepath."rezervare_expirata.php");
  26. }
  27. $tip_pagina='conversion';
  28. $id_hotel=$row_rez['id_hotel'];
  29. //$id_user=$_GET['usr'];
  30. $GLOBALS['make_vizualizata']='nu';
  31. $det= new DETALII_SEJUR();
  32. $detalii=$det->select_det_sejur($id_oferta);
  33. $detalii_hotel=$det->select_camp_hotel($id_hotel);
  34. $preturi=$det->select_preturi_sejur($id_oferta, '', '');
  35. $link_oferta_return = substr($sitepath,0,-1).make_link_oferta($detalii_hotel['localitate'], $detalii_hotel['denumire'], $detalii['denumire_scurta'], $id_oferta);
  36. // comision la google in analitycs
  37. $pagetype="rezervare";
  38. $comision_google = $row_rez['comision_trimis_google'];
  39. //echo "0000";
  40. $sel_bnr="SELECT * FROM curs_valutar ";
  41. $que_bnr=mysql_query($sel_bnr) or die(mysql_error());
  42. $row_bnr=mysql_fetch_array($que_bnr);
  43. @mysql_free_result($que_bnr);
  44. $pret_total = final_price_lei($row_rez['pret'], $row_rez['moneda']);
  45. $pret_total_euro = final_price_euro(final_price_lei($row_rez['pret'], $row_rez['moneda']));
  46. $procent_avans=$row_rez['procent_avans'];
  47. $comision = $row_rez['comision'];
  48. if ($comision<1){$comision=$pret_total*7/100;}
  49. ?>
  50. <script>
  51. fbq('track', 'Purchase', {value: <?php echo $comision;?>, currency:'RON'});
  52. </script>
  53. <!DOCTYPE html>
  54. <html lang="ro">
  55. <head>
  56. <?php include_once($_SERVER['DOCUMENT_ROOT']."/includes/header_charset.php"); ?>
  57. <title>Rezervare succes<?php echo $denumire_agentie; ?></title>
  58. <meta name="description" content="Rezervare finalizata <?php echo $denumire_agentie; ?>" />
  59. <?php
  60. include( $_SERVER['DOCUMENT_ROOT'] . '/includes/hoteluri/reviews_top.php' );
  61. require_once( $_SERVER['DOCUMENT_ROOT'] ."/includes/header/header_responsive.php" );
  62. ?>
  63. <style>
  64. table.plata_card{ text-align:left;}
  65. .plata_card td{ text-align:left;}
  66. </style>
  67. </head>
  68. <body>
  69. <?php include($_SERVER['DOCUMENT_ROOT'].'/includes/header/admin_bar_responsive.php'); ?>
  70. <?php // Header ?>
  71. <header>
  72. <?php require( $_SERVER['DOCUMENT_ROOT'] ."/includes/header/meniu_header_responsive.php" ); ?>
  73. </header>
  74. <?php // Breadcrumbs and general search ?>
  75. <div class="layout">
  76. <?php require( $_SERVER['DOCUMENT_ROOT'] ."/includes/header/breadcrumb_responsive_intreg.php" ); ?>
  77. </div>
  78. <div class="layout">
  79. <div id="payment">
  80. <h1>Bravo!! Rezervare finalizata!</h1>
  81. <div class="text-justify pad10 article">
  82. <h2><span class="red"><?php echo $row_rez['prenume']; ?></span> multumim pentru rezervarea efectuata! <span class="green"><br />
  83. In cel mai scurt timp vei fi contactat de unul din agentii nostri?</span></h2>
  84. <div class="clearfix bigger-11em" style="padding:0 10px 0 0; line-height:150% !important;">
  85. <div class="afisare-oferta">
  86. <div class="col-md-12 columns">
  87. <h2 class="hotel-name">
  88. <?php echo $row_rez['hotel_denumire']; ?>
  89. <?php for($stea=1; $stea<=$detalii_hotel['stele']; $stea++) {$stars .= '<i class="icon-star yellow"></i>';} echo $stars; ?>
  90. <?php if($detalii_hotel['tip_unitate']!='Circuit') { ?><?php } ?>
  91. </h2>
  92. </div>
  93. <div class="col-md-3 columns">
  94. <img src="<?php echo $sitepath; ?>img_mediu_hotel/<?php echo $detalii_hotel['poza1']; ?>" alt="" class="poza">
  95. </div>
  96. <div class="col-md-9 columns">
  97. <div class="circuit-details">
  98. <p class="titlu">
  99. <span class="name">
  100. <i class="fa fa-building-o" aria-hidden="true"></i>
  101. <span class="bigger-12em bold">
  102. <?php echo $row_rez['hotel_denumire']; ?>
  103. <?php if($detalii_hotel['tip_unitate']!='Circuit') { ?>
  104. <?php $stea=1;
  105. for($stea=1; $stea<=$detalii_hotel['stele']; $stea++) {$stars1 .= '<i class="icon-star yellow"></i>';} echo $stars1; ?>
  106. <?php }?>
  107. </span>
  108. </span>
  109. <span class="clear" style="display: block"></span>
  110. </p>
  111. <p class="titlu">
  112. <span class="name">
  113. <i class="fa fa-map-marker" aria-hidden="true"></i>
  114. <span class="bigger-12em bold">
  115. <?php //if ( ! $err_logare_admin ) { echo '<pre>';print_r($detalii_hotel);echo '</pre>';}?>
  116. <?php echo $detalii_hotel['localitate']?> / <?php echo $detalii_hotel['zona']?> / <?php echo $detalii_hotel['tara']?> </span>
  117. </span>
  118. <span class="clear" style="display: block"></span>
  119. </p>
  120. <p class="titlu">
  121. <span class="name">
  122. <i class="fa fa-bed" aria-hidden="true"></i>
  123. <span class="bigger-12em bold">
  124. Durata:
  125. </span>
  126. </span>
  127. <span class="bigger-12em green bold result"> <?php echo $row_rez['nr_nopti']; ?> nopti</span>
  128. <span class="clear" style="display: block"></span>
  129. </p>
  130. <p class="titlu">
  131. <span class="name">
  132. <i class="fa fa-cutlery" aria-hidden="true"></i>
  133. <span class="bigger-12em bold">
  134. Masă:
  135. </span>
  136. </span>
  137. <span class="bigger-12em green bold result"><?php echo $row_rez['tip_masa']; ?></span>
  138. <span class="clear" style="display: block"></span>
  139. </p>
  140. <p class="titlu">
  141. <span class="name">
  142. <i class="fa fa-bus" aria-hidden="true"></i>
  143. <span class="bigger-12em bold">
  144. Transport:
  145. </span>
  146. </span>
  147. <span class="bigger-12em green bold result"><?php echo $row_rez['transport']; ?></strong><?php if($row_rez['oras_plecare']) echo ', plecare din <strong>'.get_den_localitate($row_rez['oras_plecare']).'</strong>'; ?></span>
  148. <span class="clear" style="display: block"></span>
  149. </p>
  150. <p class="titlu">
  151. <span class="name">
  152. <i class="fa fa-calendar" aria-hidden="true"></i>
  153. <span class="bigger-12em bold">
  154. Dată incepere sejur:
  155. </span>
  156. </span>
  157. <span class="bigger-12em green bold result"><?php echo denLuniRo(denZileRo(date('l, d F Y', strtotime($row_rez['data_plecare'])))) ; ?></span>
  158. <span class="clear" style="display: block"></span>
  159. </p>
  160. <p class="titlu">
  161. <span class="name">
  162. <i class="fa fa-money" aria-hidden="true"></i>
  163. <span class="bigger-12em bold">
  164. Tarif:
  165. </span>
  166. </span>
  167. <span class="bigger-12em green bold result"><?php echo $row_rez['pret'].' '.$row_rez['moneda']; ?></strong></span>
  168. <span class="clear" style="display: block"></span>
  169. </p>
  170. </div>
  171. </div>
  172. </div>
  173. <div class="clear"><br /></div>
  174. <table width="100%" cellspacing="2" cellpadding="2" class="plata_card">
  175. <tr>
  176. <td><?php echo $row_rez['hotel_denumire']." - ".$row_rez['hotel_categorie'] ." stele/".$row_rez['hotel_localitate']?>
  177. &nbsp; - &nbsp;
  178. <strong> <?php echo $suma_de_plata=final_price_lei($row_rez['pret'], $row_rez['moneda'], $adaos=NULL)?></strong> Lei
  179. <br />
  180. <?php echo $row_rez['specificatii_oferta']?>
  181. Data inceput sejur:<?php echo $row_rez['data_plecare']. " / nr nopti:" .$row_rez['nr_nopti']." tip masa:".$row_rez['tip_masa']?>
  182. <br />
  183. </td>
  184. </tr>
  185. <tr>
  186. <td><?php if ($row_rez['disponibilitate']=="disponibil")
  187. {
  188. $OrderNumber=$id_rezervare;
  189. $suma_de_plata=final_price_lei($row_rez['pret'], $row_rez['moneda'], $adaos=NULL);
  190. $denumire_produs=$row_rez['oferta_denumire'];
  191. $descriere_produs="descriere _ ".$row_rez['oferta_denumire'];
  192. $prenume=$row_rez['prenume'];
  193. $nume=$row_rez['nume'];
  194. $adresa_facturare=$row_rez['adresa_facturare'];
  195. $oras_facturare=$row_rez['oras_facturare'];
  196. $telefon_facturare=$row_rez['telefon_facturare'];
  197. $email_facturare=$row_rez['email_facturare'];
  198. $denumire_facturare=$row_rez['denumire_facturare'];
  199. $reg_comert=$row_rez['reg_comert'];
  200. $cui_cnp=$row_rez['cui_cnp'];
  201. $linie_factura='Rezervare nr.'.$OrderNumber.'<br/>'.$denumire_produs;
  202. $total_pret=$row_rez['pret'];
  203. $nr_zile_expira=floor((strtotime($row_rez['data_plecare'])-time())/(60*60*24));
  204. include_once($_SERVER['DOCUMENT_ROOT']."/includes/plata_card_mobil_pay.php");
  205. //include_once($_SERVER['DOCUMENT_ROOT']."/includes/plata_card.php");
  206. }
  207. ?></td>
  208. </tr>
  209. </table>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <?php // Footer ?>
  215. <?php require_once($_SERVER['DOCUMENT_ROOT']."/includes/newsletter_responsive.php" ); ?>
  216. <?php require_once( $_SERVER['DOCUMENT_ROOT']."/includes/footer/footer_responsive.php" ); ?>
  217. <?php include_once( $_SERVER['DOCUMENT_ROOT'] . "/includes/addins_bodybottom_responsive.php" ); ?>
  218. </body>
  219. </html>