PiNxOs28 de Julio del 2003
PreguntaHola buenas a todos me gustaría crear un hipervinculo para ver mas informaion sobre una tabla en concreto a ver...tengo un acceso con password, y cuando se introduce correecto entra a una pagina donde se ven unos datos preparados para ese ussuario y passwor, los datos estan puestos en tablas colocados (son poco informacion), y en cada tabla quiero crear un hipervinculo que ponga ver mas informacion, para que vean toda la informacion correspondiente a esos datos (una informacion ampliada..)y quiero que se vea la foto tb en esa informacion ampliada. Tengo ya creadas las tabalas de la onformacion ampliado, pero no se que he de poner en el hipervinculo praa que me envie el codigo de esos datos y que solo me muestra la informacion completa del que he dado a ver mas informacion y no la de todos los datos como me hace ahora os envio el codigo fuente
<% Response.buffer = True %>
<html>
<head>
<title>Intranet Forcadell</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.link { color:FFFF99; text-decoration: underline; }
BODY { background-attachment:fixed; }
.linea1izquierda {
text-align:left;
color:#000000;
font-family:Tahoma;
background-color:#66CCFF;
font-size:13;
font-style: normal;
font-weight: bold;
}
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<!-- #Include File="general_empresas.inc" -->
<%
dbf = Server.MapPath(dbName)
set o_Conn = Server.CreateObject("ADODB.Connection")
o_Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" + dbf
Set RS = Server.CreateObject("ADODB.Recordset")
MySql = "SELECT * FROM login"
RS.Open MySql, o_Conn
%>
<strong><font color="#6699FF" size="5" face="Tahoma"><img src="FORCADELL.jpg" width="228" height="53"></font></strong>
<table width=772 height="405" border=0 align=center cellpadding=0 cellspacing=0>
<tr valign=top>
<td width=5></td>
<td width="767">
<%
Dim codigo
Dim n
n=0
MySql = ("select * from login where codigo like '" + codigo + "'")
While Not RS.EOF
%>
<table width="99%" height="350" border="0">
<tr>
<td height="27" colspan="2" bgcolor="#00CCFF"><font face="Tahoma" color="#006666" size="2" style "normal"><strong>Código
del Inmueble:</strong> </font><%=RS("Codigo")%>
<%Codigo=RS("Codigo")%></td>
<td width="35%" bgcolor="#FFFFCC"><div align="right"></div></td>
</tr>
<tr>
<td width="31%" height="28" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Inmueble:</strong> </font><%=RS("Inmueble")%></td>
<td width="34%" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Nº
Habitaciones:</strong> </font><%=RS("NºHabitaciones")%> </td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Muebles:</strong> </font><%=RS("Muebles")%> </td>
</tr>
<tr>
<td height="27" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Precio
Alquiler:</strong> </font><%=RS("PrecioAlquiler")%> €</td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Superficie: </strong></font><%=RS("Superficie")%><font face="Arial" color="#000000" size="2" style "normal"> m2</font></td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Ubicacion:</strong> </font><%=RS("Ubicacion")%></td>
</tr>
<tr>
<td height="27" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Ubicacion:</strong> </font><%=RS("Ubicacion")%></td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>PrecioVenta:</strong> </font><%=RS("PrecioVenta")%> €</td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Precio
Traspaso:</strong> </font><%=RS("PrecioTraspaso")%> €</td>
</tr>
<tr bgcolor="#FFFFCC">
<td colspan="2"><font face="Arial" color="#006666" size="2" style "normal"><strong>Descripción:</strong> </font><%=RS("Descripcion")%></td>
<td><%=RS("Foto")%></td>
</tr>
</table>
<p><%
n=n+1
RS.MoveNext
Wend
RS.Close
Set RS = Nothing
o_Conn.Close
Set o_Conn = Nothing
%>
</p>
</table>
<p>
</body>
</html>
no se si le he de poner codigo al hipervinculo o q..no se..esto es el codigo dela pagina que se muestra cuando se da a ver mas informacion
Si alguien me puede ayudar me haría un gran favor, es un poco urgente! muxas gracias de antemano!
<% Response.buffer = True %>
<html>
<head>
<title>Intranet Forcadell</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.link { color:FFFF99; text-decoration: underline; }
BODY { background-attachment:fixed; }
.linea1izquierda {
text-align:left;
color:#000000;
font-family:Tahoma;
background-color:#66CCFF;
font-size:13;
font-style: normal;
font-weight: bold;
}
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<!-- #Include File="general_empresas.inc" -->
<%
dbf = Server.MapPath(dbName)
set o_Conn = Server.CreateObject("ADODB.Connection")
o_Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" + dbf
Set RS = Server.CreateObject("ADODB.Recordset")
MySql = "SELECT * FROM login"
RS.Open MySql, o_Conn
%>
<strong><font color="#6699FF" size="5" face="Tahoma"><img src="FORCADELL.jpg" width="228" height="53"></font></strong>
<table width=772 height="405" border=0 align=center cellpadding=0 cellspacing=0>
<tr valign=top>
<td width=5></td>
<td width="767">
<%
Dim codigo
Dim n
n=0
MySql = ("select * from login where codigo like '" + codigo + "'")
While Not RS.EOF
%>
<table width="99%" height="350" border="0">
<tr>
<td height="27" colspan="2" bgcolor="#00CCFF"><font face="Tahoma" color="#006666" size="2" style "normal"><strong>Código
del Inmueble:</strong> </font><%=RS("Codigo")%>
<%Codigo=RS("Codigo")%></td>
<td width="35%" bgcolor="#FFFFCC"><div align="right"></div></td>
</tr>
<tr>
<td width="31%" height="28" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Inmueble:</strong> </font><%=RS("Inmueble")%></td>
<td width="34%" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Nº
Habitaciones:</strong> </font><%=RS("NºHabitaciones")%> </td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Muebles:</strong> </font><%=RS("Muebles")%> </td>
</tr>
<tr>
<td height="27" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Precio
Alquiler:</strong> </font><%=RS("PrecioAlquiler")%> €</td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Superficie: </strong></font><%=RS("Superficie")%><font face="Arial" color="#000000" size="2" style "normal"> m2</font></td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Ubicacion:</strong> </font><%=RS("Ubicacion")%></td>
</tr>
<tr>
<td height="27" bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Ubicacion:</strong> </font><%=RS("Ubicacion")%></td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>PrecioVenta:</strong> </font><%=RS("PrecioVenta")%> €</td>
<td bgcolor="#66CCFF"><font face="Arial" color="#006666" size="2" style "normal"><strong>Precio
Traspaso:</strong> </font><%=RS("PrecioTraspaso")%> €</td>
</tr>
<tr bgcolor="#FFFFCC">
<td colspan="2"><font face="Arial" color="#006666" size="2" style "normal"><strong>Descripción:</strong> </font><%=RS("Descripcion")%></td>
<td><%=RS("Foto")%></td>
</tr>
</table>
<p><%
n=n+1
RS.MoveNext
Wend
RS.Close
Set RS = Nothing
o_Conn.Close
Set o_Conn = Nothing
%>
</p>
</table>
<p>
</body>
</html>
no se si le he de poner codigo al hipervinculo o q..no se..esto es el codigo dela pagina que se muestra cuando se da a ver mas informacion
Si alguien me puede ayudar me haría un gran favor, es un poco urgente! muxas gracias de antemano!
