Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,13 +1,13 @@
|
|||
// a method that converts a csv row into a html table row as a string
|
||||
def toHtmlRow(record, tag)
|
||||
htmlrow = "\t<tr>\n"
|
||||
htmlrow = "\t<tr>\n"
|
||||
|
||||
// loop through the values in the current csv row
|
||||
for i in range(1, len(record))
|
||||
htmlrow = htmlrow + "\t\t<" + tag + ">" + (record ~ i) + "</" + tag + ">\n"
|
||||
end for
|
||||
// loop through the values in the current csv row
|
||||
for i in range(1, len(record))
|
||||
htmlrow = htmlrow + "\t\t<" + tag + ">" + (record ~ i) + "</" + tag + ">\n"
|
||||
end for
|
||||
|
||||
return htmlrow + "\t</tr>\n"
|
||||
return htmlrow + "\t</tr>\n"
|
||||
end def
|
||||
|
||||
// get the name of the csv file then open it
|
||||
|
|
@ -23,7 +23,7 @@ htmltable = (htmltable + toHtmlRow(#0, "th"))
|
|||
|
||||
// add all other rows to the table
|
||||
for i in range(1, $dbsize)
|
||||
htmltable = (htmltable + toHtmlRow(#i, "td"))
|
||||
htmltable = (htmltable + toHtmlRow(#i, "td"))
|
||||
end for
|
||||
|
||||
// close the html table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue