<%@ Language=VBScript %>
<%
set	CUENTO = Server.CreateObject("ADODB.Connection")
	CUENTO.Open "dsn=MNENOS;uid=;pwd=;"

IF Request.Form.Count=0  then
			else	
	nom=Request.Form("NOMBRE")
	em=Request.Form("EMAIL")
	aport=Request.Form("APORTA")
	pai=Request.Form("PAIS")
	ed=Request.Form("EDAD")
	
	If pai="" then pai="Desconocido"
	IF nom="" THEN nom="Anónimo" 
	IF em="" then em="nomail" 
	if aport="" then
	
	ELSE
	tim=CStr(time)
	fech=CStr(date)
	ipis=Request.ServerVariables("REMOTE_ADDR")
	Instcuento="INSERT INTO CUENTORRO (NOMBRE,EMAIL,EDAD,PAIS,APORTACION,IPES,HORA,FECHA) VALUES ('"+nom+"','"+em+"','"+ed+"','"+pai+"','"+aport+"...','"+ipis+"','"+tim+"','"+fech+"')"
	ON ERROR RESUME NEXT
	CUENTO.Execute(Instcuento)
	end if	
	end if
	
	%>
<html>


<head>

<title>El Cuentorro</title>

</head>

<body BACKGROUND="culebak1.gif" TEXT="#0000ff" LINK="#00ff00" VLINK="#ff00ff">
<basefont SIZE="5">
<bgsound SRC="nut1mrch.mid" balance=0 volume=-670>
<center><table border="0"><tr><td><img SRC="pez.gif" ALIGN="top" BORDER="0" WIDTH="100" HEIGHT="79"></td><td><img SRC="cuentorro.gif" ALIGN="top" WIDTH="314" HEIGHT="74"></td><td><img SRC="pez.gif" ALIGN="top" BORDER="0" WIDTH="100" HEIGHT="79"></td></tr></table></center><br><center><img SRC="balline.gif" ALIGN="top" BORDER="0" WIDTH="420" HEIGHT="12"></center><br><br><center><img SRC="ordenador.gif" ALIGN="top" BORDER="0" WIDTH="189" HEIGHT="163"></center><br><br>
<table border="0"><tr><td><center><img SRC="nenap.gif" ALIGN="top" BORDER="0" WIDTH="50" HEIGHT="48"></center></td><td></td><td><font FACE="Comic Sans MS" COLOR="#0000ff" SIZE="4"><b>Os vamos a 
            contar lo que mi amiga Culebrilla y yo hemos escrito. &iexcl;Espero 
            que os guste mucho!</b></font></td></tr>
<tr><td><center><img SRC="snaker.gif" ALIGN="top" BORDER="0" WIDTH="32" HEIGHT="32"></center></td><td></td><td><font FACE="Comic Sans MS" COLOR="#ff0000" SIZE="4"><b>Despu&eacute;s 
            vosotros tendr&eacute;is que continuar la historia</b></font></td></tr>
<tr><td><img SRC="nenap.gif" ALIGN="top" BORDER="0" WIDTH="50" HEIGHT="48"></td><td><img SRC="snaker.gif" ALIGN="top" BORDER="0" WIDTH="32" HEIGHT="32"></td><td><font FACE="Comic Sans MS" COLOR="#005e2f" SIZE="4"><b>&iexcl;ALL&Aacute; VAMOS!</b></font></td></tr></table><br><br><center><img SRC="balline.gif" ALIGN="top" BORDER="0" WIDTH="420" HEIGHT="12"></center><br><br><center><img SRC="misterioso.gif" ALIGN="top" BORDER="0" WIDTH="728" HEIGHT="52"></center><br><br><center><table border="0"><tr><td><img SRC="casa.gif" ALIGN="top" BORDER="0" WIDTH="45" HEIGHT="43"></td><td></td><td><img SRC="lolito.gif" ALIGN="top" BORDER="0" WIDTH="105" HEIGHT="104"></td><td width="500"></td><td><img SRC="palmera.gif" ALIGN="top" BORDER="0" WIDTH="72" HEIGHT="82"></td></tr></table></center>
<br><br><font FACE="Comic Sans MS" COLOR="#800080" SIZE="4"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Sal&iacute;a Lolito de su casa cargadito de juguetes. Ten&iacute;a prisa por 
llegar a casa de su amiguito Roque, para jugar con la pelota y soltar los globos 
y que estos volaran libres por el cielo. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hac&iacute;a calor, era un d&iacute;a 
precioso. Lolito estaba contento y ansioso por ver a su amigo Roque. Todo 
parec&iacute;a marchar bien. El camino era hermoso como siempre. Pero de 
pronto....<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-&iquest;Qu&eacute; es eso que veo all&aacute; lejos?- se pregunt&oacute; 
Lolito.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &iexcl;Una 
palmera!<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Una palmera 
grande y verde hab&iacute;a aparecido repentinamente en medio del camino. Lolito 
estaba boquiabierto. &iexcl;Jam&aacute;s la hab&iacute;a visto antes y eso que 
pasaba por ese camino cada d&iacute;a para ir a la escuela.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&iexcl;Qu&eacute; misterio tan 
sorprendente! &iquest;C&oacute;mo es posible que una palmera tan grande haya 
crecido en este camino de un d&iacute;a para otro?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &iexcl;Todo un enigma!<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lolito estaba algo asustado. Aquello 
parec&iacute;a magia. Pens&oacute; en regresar y encerrarse en su casa pero no 
lo hizo.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&iexcl;Debo ser 
valiente y investigar este misterio!- se dijo para infundirse &aacute;nimos.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Y as&iacute; lo hizo. Ni 
corto ni perezoso, Lolito se encamin&oacute; apresuradamente hacia la misteriosa 
palmera m&aacute;gica.</b></font>
<br>
<%
dibujito=Array("balun.gif","pelota.gif","calvin.gif","casa.gif")
d=0
obtdatos="SELECT NOMBRE,EDAD,PAIS,APORTACION FROM CUENTORRO"
ON ERROR RESUME NEXT
SET datoobt=CUENTO.Execute(obtdatos)
dobt=datoobt.GetRows(100)
datoobt.close
	for f=0 to Ubound(dobt,2) step 1  
	
		
		if d=4 then d=0
			%>
<br><center><img SRC="<%=dibujito(d)%>" ALIGN="top" BORDER="0" WIDTH="36" HEIGHT="35"></center><br><br>

<center><table border="0"><tr><td><font FACE="Comic Sans MS" COLOR="#0000ff" SIZE="2"><center><b>
            <%Response.Write(dobt(0,f))%><br>-
            <%Response.Write(dobt(1,f))%>
             a&ntilde;os-<br>
            <%Response.Write(dobt(2,f))%></b></center></font></td><td></td><td><font FACE="Comic Sans MS" COLOR="#0000ff" SIZE="5"><b>
            <%Response.Write(dobt(3,f))%></b></font> </td></tr>
    <%
		d=d+1
		f=f+1
		if f > Ubound(dobt,2)  then 
				Response.Write("</table></center>")
				exit for
				end if%>
<tr><td><font FACE="Comic Sans MS" COLOR="#007339" SIZE="2"><center><b>
            <%Response.Write(dobt(0,f))%><br>-
            <%Response.Write(dobt(1,f))%>
             a&ntilde;os-<br>
            <%Response.Write(dobt(2,f))%></b></center></font></td><td></td><td><font FACE="Comic Sans MS" COLOR="#007339" SIZE="5"><b>
            <%Response.Write(dobt(3,f))%></b></font> </td></tr>
</table></center>
<%	next
		%>


<br><br><center><img SRC="balline.gif" ALIGN="top" BORDER="0" WIDTH="420" HEIGHT="12"></center><br><br>

<center><table border="0">
<tr><td><img SRC="nenap.gif" ALIGN="top" BORDER="0" WIDTH="50" HEIGHT="48"></td><td><img SRC="snaker.gif" ALIGN="top" BORDER="0" WIDTH="32" HEIGHT="32"></td><td><font FACE="Comic Sans MS" COLOR="#005e2f" SIZE="4"><b>&iexcl;CONTIN&Uacute;A EL RELATO!</b></font> 
 </td></tr>
</table></center>

<br><br><center><form METHOD="post" ACTION="cuentorro.asp">

<center><font COLOR="#c60063"><b>NOMBRE</b></font> <input NAME="NOMBRE" ALIGN = "TOP" MAXLENGTH="40"></center><br>
<center><font COLOR="#c60063"><b> EDAD</b></font><SELECT id=select1 name=EDAD size=1 style="HEIGHT: 22px; WIDTH: 75px">
<OPTION selected value=1>1 A&Ntilde;O
       <%for ANO=1 TO 15 STEP 1 %>
        <OPTION value=<%Response.Write(ANO)%>><%Response.Write(ANO)%> A&Ntilde;OS
        <%NEXT
        
       CUENTO.close%>
</SELECT>
 </center><br><center><font COLOR="#c60063"><b>PAIS</b></font> <input NAME="PAIS" ALIGN = "TOP" MAXLENGTH="40"></center><br>
<center><font COLOR="#c60063"><b>TU MAIL(opcional)</b></font> <input NAME="EMAIL" ALIGN = "TOP" MAXLENGTH="40"></center><br><center><font COLOR="#c60063"><b><u>CONTINUA EL 
RELATO</u></b></font></center>
<center><TEXTAREA cols=47 name=APORTA rows=17></TEXTAREA></center><center><br><input TYPE="submit" VALUE="Enviar">&nbsp;<input TYPE="reset" VALUE="Borrar"></center></form><br>
<br><br><center><img SRC="balline.gif" ALIGN="top" BORDER="0" WIDTH="420" HEIGHT="12"></center><br><br>
<br><br><center><a HREF="culebrilla1.htm"><img SRC="http://www.encomix.es/~milaoya/atras.gif" ALIGN="top" ALT="VOLVER A LA PÁGINA DE ADA Y CULEBRILLA" BORDER="0"></a></center><br><center><a HREF="http://www.encomix.es/~milaoya/foto.htm"><font FACE="Comic Sans MS" COLOR="#ff0000" SIZE="2"><b>Milagros 
Oya&copy;</b></font></a></center></center></basefont>
</body>

</html>