archive: minor tweaks.

This commit is contained in:
XhmikosR 2013-07-31 16:59:23 +03:00
parent b2e140389f
commit 67afb6b2ba
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ void listAll(char **data)
{ {
puts("Content-type: text/html\r\n\r\n"); puts("Content-type: text/html\r\n\r\n");
puts("<input type=\"button\" onclick=\"addFile()\" value=\"Add file\"/>"); puts("<input type=\"button\" onclick=\"addFile()\" value=\"Add file\"/>");
puts("<table border=\"1\"><tr><td><table>"); puts("<br /><table border=\"1\"><tr><td><table>");
for (int i = 0; i < MAX_RECORDS && data[i]; i++) { for (int i = 0; i < MAX_RECORDS && data[i]; i++) {
const char *name = getname(data[i]); const char *name = getname(data[i]);
int version = getversion(data[i]); int version = getversion(data[i]);

View File

@ -105,12 +105,12 @@ void generatepage(const char msg[])
{ {
puts("Content-type: text/html\r\n\r\n"); puts("Content-type: text/html\r\n\r\n");
puts("<html>"); puts("<html>");
puts("<head><script>"); puts("<head><script type=\"text/javascript\">");
puts("function ok() { window.location = \"http://cppcheck.sourceforge.net/archive/\"; }"); puts("function ok() { window.location = \"http://cppcheck.sourceforge.net/archive/\"; }");
puts("</script></head>"); puts("</script></head>");
puts("<body>"); puts("<body>");
puts(msg); puts(msg);
puts("<br><input type=\"button\" value=\"OK\" onclick=\"ok()\"></body></html>"); puts("<br /><input type=\"button\" value=\"OK\" onclick=\"ok()\"></body></html>");
} }