<?php include 'sesion.php'; ?>



<?php 

$nombre_u = $_POST['nombre_u'];
$IDS = $_POST['IDS'];
$IDC = $_POST['IDC'];
$titulo = $_POST['titulo'];
$linea1 = $_POST['linea1'];
$linea2 = $_POST['linea2'];
$accion = $_POST['accion'];
$telefono = $_POST['telefono'];
$email = $_POST['email'];


?>







<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml">



<head>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



<title>Documento sin t&iacute;tulo</title>



<link href="estilo.css" rel="stylesheet" type="text/css" /></head>

<body>



<table width="900" border="0" align="center">



  <tr>



    <td><?php include 'logo.php';?></td>

  </tr>

  

  <tr>

    <td height="40px" colspan="2" background="menu.png" class="Estilo3"><div align="center"></div></td>

  </tr>

  <tr>



    <td bgcolor="#FFFFFF" ><p align="center"><br />



      <span class="Estilo1">PUBLICAR UN AVISO</span><br />



      <span class="Estilo9">ENVIADO  CORRECTAMENTE</span><br />



      



      



      



      



      <?



include('concha.php');



mysql_connect ("$host", "$usuario", "$contra");



mysql_select_db ("$basedatos");







$sql = "SELECT * FROM subcategorias WHERE ID = '$IDS'";







$consulta = mysql_query ($sql);



while ($row = mysql_fetch_array($consulta))



{



$nombresub = $row["nombresub"];



$IDC = $row["IDC"];



$IDS = $row["ID"];







}



mysql_free_result($consulta);



?>











      <?



include('concha.php');



mysql_connect ("$host", "$usuario", "$contra");



mysql_select_db ("$basedatos");







$sql = "SELECT * FROM cla_categorias WHERE ID = '$IDC'";







$consulta = mysql_query ($sql);



while ($row = mysql_fetch_array($consulta))



{



$nombre = $row["nombre"];















}



mysql_free_result($consulta);



?>















      







      <form id="form1" name="form1" method="post" action="publicar4.php">







      <p align="center">           <br />



        <span class="Estilo1"><strong><?php echo $nombre ?></strong> &raquo; <?php echo $nombresub ?></span>

      <hr />



           



      <table width="339" border="0" align="center" cellpadding="0" cellspacing="0">



        <tbody>



          <tr>



            <td width="14"><img src="imag/fdo_002.gif" width="14" height="38" /></td>



            <td width="314" background="imag/fdo-02_002.gif" ><div align="left"><span class="Estilo1"><strong><u><?php echo $titulo ?></u></strong><br />



            </span></div></td>



            <td width="250"><img src="imag/fdo-03_002.gif" width="11" height="38" /></td>

          </tr>



          <tr>



            <td background="imag/fdo-04.gif"><img src="imag/spacer.gif" width="7" height="7" /></td>



            <td valign="top" bgcolor="#ffffff"><table width="100%" border="0" align="left" class="Estilo1">







              <tr>



                <td><?php echo $linea1 ?></td>

              </tr>



              <tr>



                <td><?php echo $linea2 ?></td>

              </tr>



              <tr>



                <td><span class="Estilo4"><u>Ver Aviso &raquo;</u></span></td>

              </tr>



            </table></td>



            <td background="imag/fdo-06.gif"><img src="imag/spacer.gif" width="7" height="7" /></td>

          </tr>







          <tr>



            <td><img src="imag/fdo-07.gif" width="14" height="28" /></td>



            <td><img src="imag/fdo-08.gif" width="367" height="28" /></td>



            <td><img src="imag/fdo-09.gif" width="11" height="28" /></td>

          </tr>

        </tbody>

      </table>











      <?



include('concha.php');



mysql_connect ("$host", "$usuario", "$contra");



mysql_select_db ("$basedatos");







$sql = "SELECT * FROM avisos ORDER BY ID";







$consulta = mysql_query ($sql);



while ($row = mysql_fetch_array($consulta))



{



$ID_aviso = $row["ID"];















}



mysql_free_result($consulta);



?>











      <p align="center"><a href="subir_foto_clasificado.php?ID=<?php echo $ID_aviso ?>" class="Estilo29">

<img src="http://static.phpjabbers.com/files/icons/cms-script-files-upload-option.png" border="0" /><br />

COLOCAR UNA IMAGEN EN ESTE AVISO</a></p>

      <p align="center"><br />



          <br />



          <br />



          <label>



        



          <?php include 'concha.php';







mysql_connect("$host","$usuario","$contra");



mysql_db_query("$basedatos","INSERT INTO  `$basedatos`.`avisos` (`ID`,`titulo`,`linea1`,`linea2`,
`IDC`,
`IDS`,
`user`,
`ver`,
`accion`,
`nombre`,
`telefono`,
`email`,`foto`)
VALUES (NULL,'$titulo','$linea1','$linea2','$IDC','$IDS','$user','no','$accion','$nombre_u','$telefono','$email','');");











?>

        </label>

      </p>



      <p align="center" class="Estilo1">EL AVISO FUE ENVIADO CORRECTAMENTE, EN BREVE SERÁ REVISADO Y PUBLICADO<br />



        <a href="index.php">VOLVER</a></p>

      </form>



    <hr>    </td>

  </tr>

</table>



</body>



</html>



