Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/05/2011, 19:34
isabellawebs
Usuario no validado
 
Fecha de Ingreso: diciembre-2009
Ubicación: Bogotá
Mensajes: 462
Antigüedad: 14 años, 3 meses
Puntos: 18
Poner un estilo css...

A ver si me echan una ayudita: Esque en este codigo tengo dos listas menu estan en codigo php...y no he podido aplicarles un estilo css.....lo necesito, por el bien del diseño de este sitio
He probado de 4 maneras diferentes y con nada coge. Es donde pone seleccionar fecha, son dos campos y donde dice enviar......que es un boton..........gracias cualquier cosa...


Código PHP:
<?php $servidor  ="localhost"
$usuario   ="root"
$clave     ="1er10";
$basedatos ="cita"
ob_start();
?>
 

<!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=iso-8859-1" />
<title>Sitio para  solicitud de tablacitas</title><link rel="shortcut icon" href="favicon.ico" />
<link type="text/css" rel="stylesheet" href="css/joya.css" />
</head>
<body>
<div align="center">
  <table width="1024" border="0">
    <tr>
      <td width="507"><a href="index.php" target="_self"><img src="images/logo_joya.png" width="249" height="70" alt="Joya " /></a></td>
      <td width="507">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="middle">&nbsp;</td>
      <td align="center" valign="middle">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="middle"><p class="textogrande">Hola , <br />
      Saca tu cita!</p>
      <p class="textomediano">Selecciona la fecha y tablahoras en que quieres visitarnos.</p>
      <p class="textomediano">Para nosotros, eres lo mas importante.</p></td>
      <td align="center" valign="middle">
<table width="220" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="63"><div align="left">Fecha:</div></td>
    <td width="155">
<?php
 
if (!empty($_POST['enviado'])){
echo 
$_POST['idfecha'];
echo 
"</br>";
echo 
$_POST['idhora'];
header ('Location: enproceso.php') ;
  
} else {
 
   
$conexion mysql_connect($servidor$usuario$clave) or die(mysql_error());
   
mysql_select_db($basedatos$conexion) or die(mysql_error());
 
   
$id_fechas=$_POST['id_fechas'];
 
   echo 
"<form action=\"".$_SERVER['PHP_SELF']."\" method=\"POST\">\n\n";
   echo 
"<select name=\"id_fechas\" onChange=\"this.form.submit()\">\n";
   echo 
"<option value=\"\"> Seleccione una fecha </option>\n";
 
   
$SQLconsulta_fechas="SELECT * FROM tablafechas";
   
$consulta_fechas mysql_query($SQLconsulta_fechas,$conexion) or die(mysql_error());
 
   While (
$registro_fechas=mysql_fetch_assoc($consulta_fechas)){
      if (
$id_fechas == $registro_fechas['idfecha']){
         echo 
"<option value=\"".$registro_fechas['idfecha']."\" selected>".$registro_fechas['fecha']."</option>\n";
      } else {
         echo 
"<option value=\"".$registro_fechas['idfecha']."\">".$registro_fechas['fecha']."</option>\n";
      }
    }
   echo 
"</select>\n\n";
   echo 
"</br>";
 
   
mysql_free_result($consulta_fechas); 
 
?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left">Hora:</div></td>
    <td><div align="left" class="campos">
      <?php 
   
echo "<select name=\"id_horas\">\n";
 
   if (!empty(
$id_fechas)){
 
       
$SQLconsulta_horas="SELECT * FROM tablahoras WHERE idfecha='$id_fechas'";
       
$consulta_horas mysql_query($SQLconsulta_horas,$conexion) or die(mysql_error());
       if (
mysql_num_rows($consulta_horas) != 0){
          While   (
$registro_horas=mysql_fetch_assoc($consulta_horas)){
            echo 
"<option value=\"".$registro_horas['idhora']."\">".$registro_horas['hora']."</option>\n";
          }
        } else {
            echo 
"<option value=\"\">No hay horas para esta fecha</option>";
        }
    } else {
        echo 
"<option value=\"\">Selecciona una fecha  </option>";
    }
 
    
mysql_free_result($consulta_horas); 
 
    echo 
"</select>\n\n";
    echo 
"</br>";
 
?></div>
      <div align="left"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <div align="left">
        <?php 
    
echo "<input type=\"submit\" name=\"enviado\" value=\" Enviar \" >\n\n";
    echo 
"</form>\n";

ob_end_flush();
?>
        </div></td>
  </tr>
</table>
<div align="center"></td>
    </tr>
    <tr>
      <td align="left" valign="middle">&nbsp;</td>
      <td align="center" valign="middle">&nbsp;</td>
    </tr>
    <tr>
      <td height="219" colspan="2" align="center" valign="bottom"><a href="#" target="_blank" class="texto"></a> - <a href="http://www.isawebs.net" target="_blank" class="texto">Dise&ntilde;o y programaci&oacute;n <img src="images/logotrans.png" width="55" height="35" alt="isawebs.net" /></a></td>
    </tr>
  </table>
</div>
<tr>
  <td height="230" colspan="2" align="center" valign="bottom">&nbsp;</td>
    </tr>
</body>