PageRenderTime 26ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/registro/index.php

https://gitlab.com/albert925/inmoprov
PHP | 228 lines | 228 code | 0 blank | 0 comment | 6 complexity | 0bd1be78847fcb28353abba02fbb84ff 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. ?>
  29. <!DOCTYPE html>
  30. <html lang="es">
  31. <head>
  32. <meta charset="utf-8" />
  33. <meta name="viewport" content="width=device-width, maximun-scale=1" />
  34. <meta name="description" content="Anunciar un inmuble" />
  35. <meta name="keywords" content="Publicar inmuebles" />
  36. <title>Registro|Inmobiliaria Provase</title>
  37. <link rel="icon" href="../imagenes/icon.png" />
  38. <link rel="stylesheet" href="../css/normalize.css" />
  39. <link rel="stylesheet" href="../css/iconos/style.css" />
  40. <link rel="stylesheet" href="../css/style.css" />
  41. <link rel="stylesheet" href="../css/regis_anunc.css" />
  42. <link rel="stylesheet" href="../css/owl_carousel.css" />
  43. <link rel="stylesheet" href="../css/owl_theme_min.css" />
  44. <script src="../js/jquery_2_1_1.js"></script>
  45. <script src="../js/owl_carousel_min.js"></script>
  46. <script src="../js/scripag.js"></script>
  47. <script src="../js/registro.js"></script>
  48. <script type="application/ld+json">
  49. {
  50. "@context" : "http://schema.org",
  51. "@type" : "LocalBusiness",
  52. "name" : "Registro|Inmobiliaria Provase",
  53. "image" : "http://inmobiliariaprovase.com.co/logo.png"
  54. }
  55. </script>
  56. </head>
  57. <body>
  58. <header id="automargen">
  59. <figure id="logo">
  60. <a href="../">
  61. <img src="../imagenes/logo.png" alt="logo" />
  62. </a>
  63. </figure>
  64. <h1>Registro y publicar</h1>
  65. </header>
  66. <article id="menuybusc" class="automarbb">
  67. <nav id="mnP">
  68. <ul>
  69. <li><a href="../">Inicio</a></li>
  70. <li><a href="../nosotros">Quienes Somos</a></li>
  71. <li class="submen" data-num="1"><a href="../servicios">Servicios</a>
  72. <ul class="children1">
  73. <li><a href="../servicios/ind2x.php?a=0&b=0&c=0&d=0&e=1&f=">Arriendos</a></li>
  74. <li><a href="../servicios/ind2x.php?a=0&b=0&c=0&d=0&e=2&f=">Ventas</a></li>
  75. </ul>
  76. </li>
  77. <li><a href="../proyectos">Proyectos</a></li>
  78. <li><a class="sel" href="../registro">Anunciar</a></li>
  79. <li><a href="../contacto">Contacto</a></li>
  80. </ul>
  81. </nav>
  82. <div id="boton_mov"><span class="icon-menu"></span></div>
  83. <article id="buscador">
  84. <div><span class="icon-search"></span></div>
  85. </article>
  86. </article>
  87. <section id="automargen">
  88. <article id="inmrec">
  89. <article class="owl-carousel owl-theme owl-loaded">
  90. <?php
  91. $Ultmosdzimb="SELECT * from inmuebles where estd_inm<'3' order by cod_inm desc limit 12";
  92. $sql_ulimb=mysql_query($Ultmosdzimb,$conexion) or die (mysql_error());
  93. while ($ub=mysql_fetch_array($sql_ulimb)) {
  94. $idbUB=$ub['cod_inm'];
  95. $tpbUB=$ub['tip_inm_id'];
  96. $barUB=$ub['barr_id'];
  97. $esUB=$ub['estd_inm'];
  98. $primierimg="SELECT * from images_imb where ib_id=$idbUB order by id_img_ib asc limit 1";
  99. $sql_primeruno=mysql_query($primierimg,$conexion) or die (mysql_error());
  100. $numeruno=mysql_num_rows($sql_primeruno);
  101. if ($numeruno>0) {
  102. while ($ob=mysql_fetch_array($sql_primeruno)) {
  103. $gmibUB=$ob['id_img_ib'];
  104. $gmrutUB=$ob['rut_ib'];
  105. }
  106. }
  107. else{
  108. $gmibUB=0;
  109. $gmrutUB="imagenes/predeterminado.png";
  110. }
  111. ?>
  112. <div class="item">
  113. <figure class="conce" data-id="<?php echo $idbUB ?>">
  114. <a href="../descripcion.php?ib=<?php echo $idbUB ?>">
  115. <div id="mosmas_<?php echo $idbUB ?>" class="vermas">
  116. VER MÁS +
  117. </div>
  118. </a>
  119. <img src="../<?php echo $gmrutUB ?>" alt="<?php echo $gmibUB ?>" />
  120. <figcaption id="descim">
  121. <hgroup>
  122. <h4> <?php echo Nomtipos($tpbUB,$conexion) ?> <?php echo NomBarr($barUB,$conexion); ?></h4>
  123. <h5><?php echo $arrestado[$esUB]; ?></h5>
  124. </hgroup>
  125. </figcaption>
  126. </figure>
  127. </div>
  128. <?php
  129. }
  130. ?>
  131. </article>
  132. </article>
  133. </section>
  134. <section>
  135. <article id="automargen">
  136. <h2 id="disubdos">Anunciar Inmueble o Ingresar</h2>
  137. <article class="flexreg">
  138. <article id="anuncio">
  139. <h2 id="disubdos">Anunciar inmueble</h2>
  140. <hgroup>
  141. <h3>Paso 1</h3>
  142. <h4>Datos Propietario</h4>
  143. </hgroup>
  144. <p>
  145. <b>Nota:</b> Al anunciar el inmueble, te registras automáticamente a la página
  146. </p>
  147. <article class="columninput">
  148. <label>*<b>Nombres</b></label>
  149. <input type="text" id="rgnm" />
  150. <label>*<b>Apellidos</b></label>
  151. <input type="text" id="rgap" />
  152. <label>*<b>Correo</b></label>
  153. <input type="email" id="rgcr" />
  154. <label>*<b>Número celular</b></label>
  155. <input type="tel" id="rgmv" />
  156. <div id="txA"></div>
  157. <input type="submit" value="Registrar" id="btreg" />
  158. </article>
  159. </article>
  160. <article id="ingreso">
  161. <h2 id="disubdos">Ingreso</h2>
  162. <form action="#" method="post" class="columninput">
  163. <label><b>Correo</b></label>
  164. <input type="email" id="coring" required />
  165. <label><b>Contraseña</b></label>
  166. <input type="password" id="passing" required />
  167. <div id="msjig"></div>
  168. <input type="submit" value="Ingresar" id="inus" />
  169. </form>
  170. </article>
  171. </article>
  172. </article>
  173. </section>
  174. <footer class="automarbb">
  175. <article class="flexfoot">
  176. <article id="contfo">
  177. <h2>CONTACTO DETALLES</h2>
  178. <article>
  179. <div><span class="icon-location"></span>Av. 1E # 11-142 Barrio Caobos</div>
  180. <div>Colombia - Cúcuta</div>
  181. <div>
  182. <span class="icon-phone"></span>
  183. 314 394 1701 - 315 827 4399
  184. </div>
  185. <div>
  186. <span class="icon-old-phone"></span>
  187. 583 0897/98 - 573 0190 - 571 22 62
  188. </div>
  189. <div><span class="icon-mail"></span> Info@inmobiliariaprovase.com.co</div>
  190. </article>
  191. </article>
  192. <article id="mapagoogle">
  193. <article id="map_canvas" class="mapas"></article>
  194. </article>
  195. </article>
  196. <article class="finfoot">
  197. CONAXPORT © 2015 &nbsp;&nbsp;todos los derechos reservados &nbsp;- &nbsp;PBX (5) 841 733 &nbsp;&nbsp;Cúcuta - Colombia &nbsp;&nbsp;
  198. <a href="http://conaxport.com/" target="_blank">www.conaxport.com</a>
  199. </article>
  200. </footer>
  201. <script type="text/javascript">
  202. $(document).ready(function(){
  203. $('.owl-carousel').owlCarousel({
  204. autoplay:true,
  205. loop:true,
  206. margin:10,
  207. responsiveClass:true,
  208. autoplayTimeout:3000,
  209. autoplayHoverPause:true,
  210. nav:true,
  211. responsive:{
  212. 0:{
  213. items:1
  214. },
  215. 600:{
  216. items:3
  217. },
  218. 1000:{
  219. items:5
  220. }
  221. }
  222. });
  223. });
  224. </script>
  225. <script src="http://www.google.com/jsapi"></script>
  226. <script src="../js/colmapa.js"></script>
  227. </body>
  228. </html>