aboutsummaryrefslogtreecommitdiff
path: root/t/user.t
blob: b69633a3116d7641703f97d131256e622c4cdb5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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" %>