diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 11:58:56 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 11:58:56 +0200 |
commit | 973edb08ed5ff35644328c244d5d584f44a70591 (patch) | |
tree | 864b7e74297fafa44db93ce5c55888380282de56 /t/user.t | |
parent | b67acafd615ae705a3e3682f87f35027789ddda5 (diff) | |
download | cforum-973edb08ed5ff35644328c244d5d584f44a70591.tar.gz |
Implement `add' functions
Diffstat (limited to 't/user.t')
-rw-r--r-- | t/user.t | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ <% #include "head.tc" %> <h1>User <% printf("%d", id); %>: <%= user->name %></h1> +<h3>Latest posts</h3> +<table border="1"> + <% while(post = nextpost(stmt)){ %> + <tr> + <td><a href="?post=<% printf("%d", post->id); %>"><%= post->subject %></a></td> + <td><% printdate(post->created); %></td> + </tr> + <% free(post); + } %> +</table> <% #include "foot.tc" %>
\ No newline at end of file |