#!/bin/sh
# disable filename globbing

 echo Content-type: text/html
 echo
date=`date +%D" "%T`
awk ' BEGIN { exit }
END {
print "<html>"
print ""
print "<head>"
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">"
print "<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 5.0\">"
print "<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">"
printf "<title>Creacion de O/T %s</title>\n",$1
print ""
print ""
print ""
print "</head>"
print ""
print ""
print "<body bgcolor=\"#D9CEF4\">"
print ""
print "<center>"
print "<form  name=\"creac\">"
print "<form name=\"creac\" method=\"post\" action=\"../forms.htm\">"
print "<hr width=\"550\" size=\"4\" color=\"#C0C0C0\">"
print "<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" width=\"428\" height=\"273\">"
print ""
print "<tr bgcolor=\"#003399\">"
print "<td width=\"409\" bgcolor=\"#003399\" height=\"86\">"
print "<p align=\"center\" style=\"line-height: 150%; margin-top: 0\">"
#print "<img border=\"0\" src=\"http://192.168.1.59/LogoCAISOLI.jpg\" width=\"263\" height=\"240\"> </b></a>&nbsp;</p>"
print "</td>"
print "</tr>"
print "<tr>"
print "<td align=\"right\" bordercolor=\"#FFFFFF\" width=\"410\" bgcolor=\"#DCDCDC\" height=\"107\">"
print "<p align=\"center\">&nbsp;</p>"
print "<p align=\"center\"><b><font face=\"Tahoma\">Se ha creado con &eacute;xito Documento</font></b></p>"
printf "<p align=\"center\"><b><font face=\"Tahoma\">%s<br>%s</font></b></p>\n","'"$1"'","'"$date"'"
print "<p align=\"center\"><b><font face=\"Tahoma\">Presione el bot&oacute;n Aceptar para "
print "continuar</font></b></p>"
print "&nbsp;</td>"
print ""
print "</tr>"
print "<tr>"
print "<td align=center width=\"409\" bgcolor=\"#C0C0C0\" height=\"27\">"
print "<p align=\"center\">"
print "<input type=\"submit\" value=\"ACEPTAR\" name=\"B1\" style=\"font-family: Arial; font-weight: bold\"></td>"
print "</tr>"
print ""
print "</table>"
print "<p align=\"center\"></p>"
print "</body>"
print "<script language=\"Javascript\">"
print "function clos()"
print "{"
print "	window.close()"
print "}"
print "</script>"
print "</form>" } ' 
