PageRenderTime 46ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/regicompl.php

https://gitlab.com/albert925/inmoprov
PHP | 226 lines | 226 code | 0 blank | 0 comment | 7 complexity | 7580a31e4e51a44c709c4fc8af047887 MD5 | raw file
  1. <?php
  2. include 'config.php';
  3. function Nomtipos($dato,$serv)
  4. {
  5. $sacarnombtp="SELECT * from tipo_inmueble where id_tp=$dato";
  6. $sql_sacartipo=mysql_query($sacarnombtp,$serv) or die (mysql_error());
  7. while ($wtp=mysql_fetch_array($sql_sacartipo)) {
  8. $namwtp=$wtp['nam_tp'];
  9. }
  10. return $namwtp;
  11. }
  12. function NomBarr($dato,$serv)
  13. {
  14. $sacarnombarr="SELECT * from barrios where id_barrio='$dato'";
  15. $sql_sacbarr=mysql_query($sacarnombarr,$serv) or die (mysql_error());
  16. $numbarrio=mysql_num_rows($sql_sacbarr);
  17. if ($numbarrio>0) {
  18. while ($brw=mysql_fetch_array($sql_sacbarr)) {
  19. $nambarw=$brw['nam_barr'];
  20. }
  21. }
  22. else{
  23. $nambarw="No selecionado";
  24. }
  25. return $nambarw;
  26. }
  27. $arrestado=["Seleccione","Arriendo","Venta","Arrendado","Vendido"];
  28. $tpreg=$_GET['es'];
  29. switch ($tpreg) {
  30. case '':
  31. $h="Página no existe";
  32. $m="El link ingresado no existe";
  33. $tp=1000;
  34. break;
  35. case '0':
  36. $h="Link Erroneo";
  37. $m="El link ingresado no existe";
  38. $tp=1000;
  39. break;
  40. case '1':
  41. $h="Error activación";
  42. $m="Codigo de activasión erroneo";
  43. $tp=1500;
  44. break;
  45. case '2':
  46. $h="Cuenta activada";
  47. $m="Gracias por registrarse en nuestra página";
  48. $tp=3000;
  49. break;
  50. case '3':
  51. $h="Página no disponible";
  52. $m="El link ingresado no existe";
  53. $tp=1000;
  54. break;
  55. default:
  56. $h="Link Erroneo";
  57. $m="El link ingresado no existe";
  58. $tp=1000;
  59. break;
  60. }
  61. ?>
  62. <!DOCTYPE html>
  63. <html lang="es">
  64. <head>
  65. <meta charset="utf-8" />
  66. <meta name="viewport" content="width=device-width, maximun-scale=1" />
  67. <meta name="description" content="somos una empresa en el sector inmobiliario de la ciudad de Cúcuta y su área metropolitana.
  68. El servicio al cliente interno será una responsabilidad incorporada en todos los miembros de la organización." />
  69. <meta name="keywords" content="Inmobiliaria,inmuebles,publicar inmuebles,casas, departamentos, oficinas, proyectos" />
  70. <title>Inmobiliaria Provase</title>
  71. <link rel="icon" href="imagenes/icon.png" />
  72. <link rel="image_src" href="imagenes/logo.png" />
  73. <link rel="stylesheet" href="css/normalize.css" />
  74. <link rel="stylesheet" href="css/iconos/style.css" />
  75. <link rel="stylesheet" href="css/style.css" />
  76. <link rel="stylesheet" href="css/owl_carousel.css" />
  77. <link rel="stylesheet" href="css/owl_theme_min.css" />
  78. <script src="js/jquery_2_1_1.js"></script>
  79. <script src="js/owl_carousel_min.js"></script>
  80. <script src="js/scripag.js"></script>
  81. <script type="text/javascript">
  82. setTimeout(direccionar,3000);
  83. function direccionar () {
  84. window.location.href="index.php";
  85. }
  86. </script>
  87. </head>
  88. <body>
  89. <header id="automargen">
  90. <figure id="logo">
  91. <a href="index.php">
  92. <img src="imagenes/logo.png" alt="logo" />
  93. </a>
  94. </figure>
  95. <h1>Provase</h1>
  96. </header>
  97. <article id="menuybusc" class="automar">
  98. <nav id="mnP">
  99. <ul>
  100. <li><a href="index.php">Inicio</a></li>
  101. <li><a href="nosotros">Quienes Somos</a></li>
  102. <li class="submen" data-num="1"><a href="servicios">Servicios</a>
  103. <ul class="children1">
  104. <li><a href="servicios/ind2x.php?a=0&b=0&c=0&d=0&e=1&f=">Arriendos</a></li>
  105. <li><a href="servicios/ind2x.php?a=0&b=0&c=0&d=0&e=2&f=">Ventas</a></li>
  106. </ul>
  107. </li>
  108. <li><a href="proyectos">Proyectos</a></li>
  109. <li><a href="registro">Anunciar</a></li>
  110. <li><a href="contacto">Contacto</a></li>
  111. </ul>
  112. </nav>
  113. <div id="boton_mov"><span class="icon-menu"></span></div>
  114. <article id="buscador">
  115. <div><span class="icon-search"></span></div>
  116. </article>
  117. </article>
  118. <section id="automargen">
  119. <article id="inmrec">
  120. <article class="owl-carousel owl-theme owl-loaded">
  121. <?php
  122. $Ultmosdzimb="SELECT * from inmuebles where estd_inm<'3' order by cod_inm desc limit 12";
  123. $sql_ulimb=mysql_query($Ultmosdzimb,$conexion) or die (mysql_error());
  124. while ($ub=mysql_fetch_array($sql_ulimb)) {
  125. $idbUB=$ub['cod_inm'];
  126. $tpbUB=$ub['tip_inm_id'];
  127. $barUB=$ub['barr_id'];
  128. $esUB=$ub['estd_inm'];
  129. $primierimg="SELECT * from images_imb where ib_id=$idbUB order by id_img_ib asc limit 1";
  130. $sql_primeruno=mysql_query($primierimg,$conexion) or die (mysql_error());
  131. $numeruno=mysql_num_rows($sql_primeruno);
  132. if ($numeruno>0) {
  133. while ($ob=mysql_fetch_array($sql_primeruno)) {
  134. $gmibUB=$ob['id_img_ib'];
  135. $gmrutUB=$ob['rut_ib'];
  136. }
  137. }
  138. else{
  139. $gmibUB=0;
  140. $gmrutUB="imagenes/predeterminado.png";
  141. }
  142. ?>
  143. <div class="item">
  144. <figure class="conce" data-id="<?php echo $idbUB ?>">
  145. <a href="descripcion.php?ib=<?php echo $idbUB ?>">
  146. <div id="mosmas_<?php echo $idbUB ?>" class="vermas">
  147. VER MÁS +
  148. </div>
  149. </a>
  150. <img src="<?php echo $gmrutUB ?>" alt="<?php echo $gmibUB ?>" />
  151. <figcaption id="descim">
  152. <hgroup>
  153. <h4> <?php echo Nomtipos($tpbUB,$conexion) ?> <?php echo NomBarr($barUB,$conexion); ?></h4>
  154. <h5><?php echo $arrestado[$esUB]; ?></h5>
  155. </hgroup>
  156. </figcaption>
  157. </figure>
  158. </div>
  159. <?php
  160. }
  161. ?>
  162. </article>
  163. </article>
  164. </section>
  165. <section id="automargen">
  166. <h2 id="disubdos"><?php echo "$h"; ?></h2>
  167. <p>
  168. <?php echo "$m"; ?>
  169. </p>
  170. </section>
  171. <footer id="automarbb">
  172. <article class="flexfoot">
  173. <article id="contfo">
  174. <h2>CONTACTO DETALLES</h2>
  175. <article>
  176. <div><span class="icon-location"></span>Av. 1E # 11-142 Barrio Caobos</div>
  177. <div>Colombia - Cúcuta</div>
  178. <div>
  179. <span class="icon-phone"></span>
  180. 314 394 1701 - 315 827 4399
  181. </div>
  182. <div>
  183. <span class="icon-old-phone"></span>
  184. 583 0897/98 - 573 0190 - 571 22 62
  185. </div>
  186. <div><span class="icon-mail"></span> Info@inmobiliariaprovase.com.co</div>
  187. </article>
  188. </article>
  189. <article id="mapagoogle">
  190. <article id="map_canvas" class="mapas"></article>
  191. </article>
  192. </article>
  193. <article class="finfoot">
  194. CONAXPORT © 2015 &nbsp;&nbsp;todos los derechos reservados &nbsp;- &nbsp;PBX (5) 841 733 &nbsp;&nbsp;Cúcuta - Colombia &nbsp;&nbsp;
  195. <a href="http://conaxport.com/" target="_blank">www.conaxport.com</a>
  196. </article>
  197. </footer>
  198. <script type="text/javascript">
  199. $(document).ready(function(){
  200. $('.owl-carousel').owlCarousel({
  201. autoplay:true,
  202. loop:true,
  203. margin:10,
  204. responsiveClass:true,
  205. autoplayTimeout:3000,
  206. autoplayHoverPause:true,
  207. nav:true,
  208. responsive:{
  209. 0:{
  210. items:1
  211. },
  212. 600:{
  213. items:3
  214. },
  215. 1000:{
  216. items:5
  217. }
  218. }
  219. });
  220. });
  221. </script>
  222. <script src="js/toucheffects.js"></script>
  223. <script src="http://www.google.com/jsapi"></script>
  224. <script src="js/colmapa.js"></script>
  225. </body>
  226. </html>