<html><head><title><%WRITE REPOSITORY.NAME%></title></head><body>
<table border="0" width="900" bgcolor="#8080FF"><tr><td width="900"><font face="Arial" size="5" color="#FFFFFF"><strong>Repositorio <%WRITE REPOSITORY.NAME%>.</strong></font></td></tr></table>
<hr color="#8080FF">

<%IF REPOSITORY.TABLES%>
	<p><img src="bullet1.jpg" width="26" height="26"> <font face="Arial" size="4" color="#8080FF"><strong>Tablas</strong></font> </p><p>
	<%FOREACH REPOSITORY.TABLE%>
		<%REPEAT TABLE.LEVEL%>
			&nbsp;&nbsp;&nbsp;&nbsp;
		<%END%>
		<%IF TABLE.IS_GROUP%>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="carpeta.gif" width="16" height="16" alt="carpeta.gif"><%WRITE TABLE.LABELORNAME%><br>
		<%END%>
		<%IF TABLE.IS_TABLE%>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="pil.jpg" width="16" height="16" alt="pil.jpg"> <a href="#<%WRITE TABLE.NAME%>"><%WRITE TABLE.LABELORNAME%></a><br>
		<%END%>
		<%IF TABLE.IS_TEMPLATE%>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="template.gif" width="16" height="16" alt="pil.jpg"> <a href="#<%WRITE TABLE.NAME%>"><%WRITE TABLE.LABELORNAME%></a><br>
		<%END%>
	<%END%>
	</p><hr color="#8080FF">
<%END%>

<%IF REPOSITORY.TABLES%>
	<%FOREACH REPOSITORY.TABLE%>
		<%IF TABLE.IS_GROUP%>
		<%ELSE%>
			<a name="<%WRITE TABLE.NAME%>"></a><p><img src="bullet1.jpg" width="26" height="26"> <font face="Arial" size="4" color="#8080FF"><strong>Tabla <%WRITE TABLE.NAME%>. <%WRITE TABLE.LABEL%></strong></font> </p><p>
			<p><%WRITE TABLE.FILE_LONG_COMMENT%></p>
			<%IF TABLE.COLUMNS%>
				<table border="1" cellspacing="0" cellpadding="0"><tr><td align="center" bgcolor="#C0C0C0"><strong>Nombre</strong></td><td align="center" bgcolor="#C0C0C0"><strong>Link</strong></td><td align="center" bgcolor="#C0C0C0"><strong>Tipo</strong></td><td align="center" bgcolor="#C0C0C0"><strong>Longitud</strong></td><td align="center" bgcolor="#C0C0C0"><strong>No nulo</strong></td><td align="center" bgcolor="#C0C0C0"><strong>Defecto</strong></td><td align="center" bgcolor="#C0C0C0"><strong>Etiqueta</strong></td></tr>
				<%FOREACH TABLE.COLUMN%>
					<tr>
					    <td align="left">
						<%IF COLUMN.IS_PRIMARY%>
							<%IF COLUMN.IS_FOREIGN%>
								<img src="pkjn.gif" width="20" height="18">
							<%ELSE%>
								<img src="pk.gif" width="20" height="18">
							<%END%>
						<%ELSE%>
							<%IF COLUMN.IS_FOREIGN%>
								<img src="jn.gif" width="20" height="18">
							<%END%>
						<%END%>
						<a href="#<%WRITE TABLE.NAME%>.<%WRITE COLUMN.NAME%>"><%WRITE COLUMN.NAME%></a></td>
					    <td align="center"> <%IF COLUMN.IS_LINK%>X<%END%> </td>
					    <td align="center"> <%WRITE COLUMN.TYPE%> </td>
					    <td align="center"> <%WRITE COLUMN.LENGTH%> </td>
					    <td align="center"> <%IF COLUMN.IS_NOTNULL%>X<%END%> </td>
					    <td align="center"> <%WRITE COLUMN.DEFAULT%> </td>
					    <td align="left"> <%WRITE COLUMN.LABEL%> </td>
					</tr>
				<%END%>
				</table>
			<%END%>
			<%IF TABLE.PRIMARIES%>
				<br><img src="bulletlit.jpg" width="15" height="15"><strong><big> </big><font color="#808080" face="Times New Roman" size="4">Clave primaria: </font></strong><br>
				<%FOREACH TABLE.PRIMARY%>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%WRITE PRIMARY.NAME%><br>
				<%END%>
			<%END%>
			<%IF TABLE.INDEXES%>
				<br><img src="bulletlit.jpg" width="15" height="15"><strong><big> </big><font color="#808080" face="Times New Roman" size="4">Indices: </font></strong><br>
				<%FOREACH TABLE.INDEX%>
					&nbsp;&nbsp;&nbsp;&nbsp;<%WRITE INDEX.NAME%> (
					<%IF INDEX.IS_UNIQUE%>
						Unico
					<%ELSE%>
						Duplicado
					<%END%>
					):<br>
					<%FOREACH INDEX.COLUMN%>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%WRITE COLUMN.NAME%><br>
					<%END%>
					<br>
				<%END%>
			<%END%>
		<%END%>
	<%END%>
	</p><hr color="#8080FF">
<%END%>

</body></html>
