#!/usr/bin/perl
# por_folio.cgi
# Octavio Martinez de la Vega
# Busca por folio.

use CGI qw(:standard);

print "Content-Type: text/html\n\n";
print '<meta http-equiv=Content-Type content="text/html; charset=macintosh">';
print "\n<head>\n","<title>Genera Resumen</title>\n","</head>\n","<body>\n";
print '<IMG SRC="GUIRNALDAREDBIO2010.gif" WIDTH=150 HEIGHT=150 ALIGN=RIGHT>',"\n";
print h2("REDBIO M&eacute;xico 2010<br>B&uacute;squeda de resumen por folio<hr>");

if (param()) { # Ya se tienen datos
 my $folio = param("folio");
 print h1("<a href=$folio.html>Liga al trabajo folio $folio</a>");
print "<a href=_indice.html>Regresar al Indice</a>";

} else {
 print start_form();
 print p("Folio? ", textfield("folio"), "<br>");
 print p(submit("ENVIAR"), reset("BORRAR"));
 print end_form(), hr();
 print "<a href=_indice.html>Regresar al Indice</a>";

}
print end_html;
