Ver Mensaje Individual
  #13 (permalink)  
Antiguo 06/09/2008, 12:33
AJDC
 
Fecha de Ingreso: agosto-2003
Mensajes: 324
Antigüedad: 20 años, 8 meses
Puntos: 1
Respuesta: Error en código que no consigo resolver

Gracias a todos ...
Os pongo el código completo (espero no pasarme...) ... de la página que me falla...

Código HTML:
<?php include ("../seguridadadmin.php");?>
<!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">
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Canal Corporativo</title>
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src ="../funcionesjs/js.js"> </script>
<!--<script>
function envia(pag){
	document.modificausuario.action = pag;
	document.modificausuario.submit();
}
</script>-->

</head>

<body>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" background="../imagenes/fondopagina.gif">
  <tr valign="top">
    <td height="600"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr valign="middle">
          <td width="230" height="110"><div align="center"><img src="../imagenes/logosic.gif" width="208" height="87" /></div></td>
          <td height="110">&nbsp;</td>
          <td width="150" height="110"><div align="center"><img src="../imagenes/logotrocadero.png" width="122" height="78" /></div></td>
        </tr>
      </table>
      	<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr valign="top">
          <td height="480"><table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr valign="bottom">
					<td width="125"  height="30" class="TablaZonaActual">Zona Administración</td>
					<td width="200" class="TablaZonaDescriptiva">Modificar Usuario</td>
					<td  height="30" class="TablaDatoUsuario"><?php 
		echo $_SESSION["usuario"];
		?>&nbsp;&nbsp;</td>
				</tr>
			</table>
          	<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr valign="top">
					<td width="125" class="TablaMenu"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
							<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
							<td width="3"></td>
								<td><a href="admindex.php" target="_self" class="menun">Usuarios</a></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><a href="usuariossici.php" target="_self" class="menun">Nuevo</a></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><br /></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><br /></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><a href="salir.php" class="menun">Salir</a></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><br /></td>
							</tr>
					</table></td>
					<td width="20" class="TablaSeparacion"><br /></td>
					<td class="TablaContenidoCentral"><p>Modificar Usuario<br />
							<?php
	include("../conex.php");
	//$link=Conectarse();
	//$q = "select * from usuariossic where UsuarioID=15";
	$q = "select * from usuariossic where UsuarioID='". $_GET[$UsuarioID] . "'";
	$result=mysql_query($q,$link);
	$reg = mysql_fetch_row($result);
	?>
</p>
						<form  name="modificausuario" id="modificausuario">
							<table>
								<tr>
									<td>Nombre:</td>
									<td><input name="unombre" type="text" class="campos" id="unombre" value="<?php echo $reg[1]; ?>" size="20" maxlength="50" /></td>
								</tr>
								<tr>
									<td>Clave:</td>
									<td><input name="uclave" type="text" class="campos" id="uclave" value="<?php echo $reg[2]; ?>" size="20" maxlength="30" /></td>
								</tr>
								<tr>
									<td>Tipo:</td>
									<td><input name="utipo" type="text" class="campos" id="utipo" value="<?php echo $reg[3]; ?>" size="20" maxlength="30" /></td>
								</tr>
								<tr>
									<td>Correo-e:</td>
									<td><input name="ucorreo" type="text" class="campos" id="ucorreo" value="<?php echo $reg[5]; ?>" size="20" maxlength="50" /></td>
								</tr>
								<tr>
									<td>Cliente:</td>
									<td><?php
				  $q2 = "select * from clientes";
					$result2=mysql_query($q2,$link);
				  echo "<select name='ucliente' class='campos'>";
           	        while ($row=mysql_fetch_array($result2))
				 	{
					if($reg[4] == $row['ClienteID']){
					$predeterminado = " SELECTED";
					 }else{
					 $predeterminado = "";
					 }
					
					echo "<option value=" . $row['ClienteID'] .  $predeterminado . ">" . $row["ClienteNombre"] . "</option>";}
					echo "</select>";
					?>
									</td>
								</tr>
							</table>
							<input type="hidden" name='uid' id='uid' value="<?php echo $reg[0];?>" />
							<div align="right">
								<input name="bCancelar" type="button" class="boton" id="bCancelar" onclick="javascript:history.back()" value="Cancelar"/>
								<input name="bGuardar" type="button" class="boton" id="bGuardar" onclick="if(confirm('Esta acción modificará los datos del usuario.\n¿Desea continuar?'))comprobar('usuariossicprocm.php')" value="Guardar"/>
							</div>
							<div align="right"><br />
									<input name="bEliminar" type="button" class="boton" id="bEliminar" onclick="if(confirm('Esta acción eliminará los datos del usuario.\n¿Desea continuar?'))envia('usuariossicprocb.php')" value="Eliminar"/>
							</div>
						</form>
						<p></p></td>
				</tr>
			</table></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="TablaCopyRight">&copy;Trocadero</td>
  </tr>
</table>

      
    </td>
  </tr>
</table>

<p class="Estilo1">
  </table>
</p>
<?php
   mysql_free_result($result);
   mysql_free_result($result2);
   mysql_close($link);   
?>
</body>
</html> 
La otra os la coloco en otro post .. que me dice que no cabe todo..