<center><?php
require('conexion.php');

$selecbann=$_POST['selecbann'];

$result_img=mysqli_query($link,"select categ_excursion,id_excursion,slogan_excursion,excursion_max,excursion_erw,excursion_kind,excursion_bezah,excursion_Beford,excursion_inklusive,excursion_besch FROM excursion_web WHERE id_excursion='".$selecbann."'"); 
$resultadoimg=mysqli_fetch_array($result_img);
$id_excursion=$resultadoimg['id_excursion'];
$categ_excursion=$resultadoimg['categ_excursion'];
$slogan_excursion=$resultadoimg['slogan_excursion'];
$excursion_max=$resultadoimg['excursion_max'];
$excursion_erw=$resultadoimg['excursion_erw'];
$excursion_kind=$resultadoimg['excursion_kind'];
$excursion_bezah=$resultadoimg['excursion_bezah'];
$excursion_Beford=$resultadoimg['excursion_Beford'];
$excursion_inklusive=$resultadoimg['excursion_inklusive'];
$excursion_besch=$resultadoimg['excursion_besch'];

$result_imgs=mysqli_query($link,"select id_excimg,url_excimg FROM excursion_img WHERE id_excursion='".$selecbann."' ORDER BY id_excimg DESC"); 
$resultado_img=mysqli_fetch_array($result_imgs);
$id_excimg=$resultado_img['id_excimg'];
$img_excursions=$resultado_img['url_excimg'];
			?>
			<table width="100%" border="0" cellspacing="1" cellpadding="1">
   
      <td valign="top"><strong>Excursi&oacute;n</strong></td>
      <td colspan="3"><?Php echo $categ_excursion?></td>
    </tr>
    <tr>
      <td width="20%" valign="top"><strong>Comentario</strong></td>
      <td colspan="3">
         <?Php echo $slogan_excursion?>
      </td>
    </tr>
    <tr>
      <td><strong>Foto</strong></td>
      <td width="50%"><?Php 
	      $resultad_imgs=mysqli_query($link,"select id_excimg,url_excimg FROM excursion_img WHERE id_excursion='".$selecbann."' ORDER BY id_excimg DESC"); 
          while($resultado_imgs=mysqli_fetch_array($resultad_imgs)){
              $id_excimg=$resultado_imgs['id_excimg'];
              $img_excursions=$resultado_imgs['url_excimg'];
			  echo "&nbsp;&nbsp;";
       echo "<img src='$img_excursions' border='0' width='110' height='110'/>";
	  } ?>
	  </td>
      <td colspan="2"><div id='preview_imgbanner'>
      <input name='id_clientweb' type='hidden' id='id_clientweb'/>
      <input name='img_foto' type='hidden' id='img_foto'/></div></td>
    </tr>
	<tr>
      <td valign="top"><strong>Max</strong></td>
      <td colspan="3"><?Php echo $excursion_max?></td>
    </tr>
	<tr>
      <td valign="top"><strong>Erwachsene</strong></td>
      <td colspan="3"><?Php echo $excursion_erw?></td>
    </tr>
	<tr>
      <td valign="top"><strong>Kindern</strong></td>
      <td colspan="3"><?Php echo $excursion_kind?></td>
    </tr>
	<tr>
      <td valign="top"><strong>Bezahlung</strong></td>
      <td colspan="3"><?Php echo $excursion_bezah?></td>
    </tr>
	<tr>
      <td valign="top"><strong style="color:#fc0303;font-weight: bold;">Beförderung</strong></td>
      <td colspan="3"><?Php echo $excursion_Beford?></td>
    </tr>
	<tr>
      <td valign="top"><strong>Inklusive</strong></td>
      <td colspan="3"><?Php echo $excursion_inklusive?></td>
    </tr>
	<tr>
      <td valign="top"><strong>Beschreibung</strong></td>
      <td colspan="3">
         <?Php echo $excursion_besch?>
      </td>
    </tr>
    <tr>
      <td colspan="4" align="center">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="4" align="center"><div id="publicar_bann"></div></td>
    </tr>
    
    <tr>
      <td colspan="4" align="center"><!--<input type="button" name="button4" value="GUARDAR " style="font-family:'Arial Black'" onClick="publicimgexcursions();"/>-->

			<!--<font style='color: #fced03;background-color: #fc0303;'>Debe de ingresar los datos que faltan, por favor.</font><br />-->
			       <input type="button" name="button4" value="ELIMINAR" style="font-size: 14px;color: #fc0303;font-family:'Arial Black'" onClick="eliminar_excursweb();"/>
			       &nbsp;&nbsp;&nbsp;
      <input type="submit" name="button4" value="MODIFICAR EXCURSION" style="font-family:'Arial Black'" onClick="this.form.action='modificar_excursimg.php?id_excursionrd=<?php echo $id_excursion?>';this.form.submit();"/>
&nbsp;&nbsp;&nbsp;
<input type="button" name="button2" id="button2" value="REFRESCAR" onClick="location.reload();" style="font-family:'Arial Black'"></td>
      </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
			
			
</center>