Skip to content

Commit

Permalink
Added -meter option to have SiteMeter stuff on the sample output.
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurrier committed Oct 31, 2006
1 parent 3b92bd9 commit 9350fa5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/net/sourceforge/schemaspy/view/HtmlFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class HtmlFormatter {
protected final boolean encodeComments = Boolean.getBoolean("encodeComments");
protected final boolean displayTableComments = Boolean.getBoolean("displayTableComments");;
protected final boolean displayNumRows = Boolean.getBoolean("displayNumRows");
private final boolean isMetered = Boolean.getBoolean("isMetered");

protected HtmlFormatter() {
}
Expand Down Expand Up @@ -192,6 +193,18 @@ protected void writeInvalidGraphvizInstallation(LineWriter html) throws IOExcept

protected void writeFooter(LineWriter html) throws IOException {
html.writeln("</div>");
if (isMetered) {
html.writeln("<span style='float: right;' title='This link is only on the SchemaSpy sample pages'>");
html.writeln("<!-- Site Meter -->");
html.writeln("<script type='text/javascript' src='http://s28.sitemeter.com/js/counter.js?site=s28schemaspy'>");
html.writeln("</script>");
html.writeln("<noscript>");
html.writeln("<a href='http://s28.sitemeter.com/stats.asp?site=s28schemaspy' target='_top'>");
html.writeln("<img src='http://s28.sitemeter.com/meter.asp?site=s28schemaspy' alt='Site Meter' border='0'/></a>");
html.writeln("</noscript>");
html.writeln("<!-- Copyright (c)2006 Site Meter -->");
html.writeln("</span>");
}
html.writeln("</body>");
html.writeln("</html>");
}
Expand Down

0 comments on commit 9350fa5

Please sign in to comment.