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





<?php $ID = (int)$_GET['ID'];

?>

<style type="text/css">





<!--





.Estilo1 {





	font-family: Verdana, Arial, Helvetica, sans-serif;





	font-size: 14px;





}





.Estilo2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; }





-->





</style>





<p align="center" class="Estilo2"><span class="Estilo2 Estilo3"><?php echo $nombresitio ?> - Panel</span>

 

</p>





<p align="center" class="Estilo1"><br>





</p>





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





  <tr>





    <td valign="top" width="94"  bgcolor="#C3C3C3" class="Estilo1"> <a href="index.php">VOLVER</a> &gt;





      <br>





      <br>





      <br>





      <br>





      <br></td>





    <td bgcolor="#DDDDDD" width="357"><p><img src="publicidades_sitio.png" width="357" height="990" /></p>

</td>





    <td bgcolor="#DDDDDD" width="434" valign="top"><p align="center" class="Estilo1">Seleccione en que lugar de la pagina desea poner la publicidad.</p>

      <form id="form1" name="form1" method="post" action="../upload_crop_publicidades_sitio.php" target="_blank">

        <div align="center">

          <select name="ID" class="Estilo2" id="ID">

            <option value="1000">0</option>

            <option>1</option>

            <option>2</option>

            <option>3</option>

            <option>4</option>

            <option>5</option>

            <option>6</option>

            <option>7</option>

          </select>

          <br />

          <br />

          <input name="button" type="submit" class="Estilo2" id="button" value="CARGAR PUBLICIDAD" />

        </div>

    </form>      
      <?





  





  include 'concha.php';





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





mysql_select_db ("$basedatos");





$sql = "SELECT * FROM publicidades_sitio ORDER BY ID desc";





$consulta = mysql_query ($sql);





while ($row = mysql_fetch_array($consulta))





{





$ID = $row["ID"];





$img = $row["img"];



$url = $row["url"];



















?>      <a href="borrarpublicidad_sitio.php?ID=<?php echo $ID ?>" class="Estilo1"><img title="ELIMINAR IMAGEN" border="0" src="elimi.jpg" width="49" height="45" /></a><img src="../upload_pic/resize_<?php echo $img ?>.jpg" />      <br />
      LUGAR: <?php if ($ID == 1000) {$ID = 0;}; echo $ID ?>
      <form id="form1" name="form1" method="post" action="poner_link_imagen_publicidad_sitio.php">

       <input name="ID" type="hidden" value="<?php if ($ID == 0) {$ID = 1000;} echo $ID ?>" />

          <span class="Estilo1">AGREGAR UN LINK A ESTA IMAGEN</span>: 

          <input name="url" type="text" id="url" value="<?php if ($url == NULL) { ?>http://www.<?php } else {echo $url; };?>" size="30" />

          <label>

          <input type="submit" name="button" id="button" value="Enviar" />

          </label>

      </form>

      <hr />





      <?php }





mysql_free_result($consulta);





?></td>

  </tr>

</table>





