|
|
@ -2,7 +2,14 @@ |
|
|
|
<form method="POST" action="/comments/add" id="cadd"> |
|
|
|
<form method="POST" action="/comments/add" id="cadd"> |
|
|
|
<input type="hidden" value="<%= $pageid %>" name="pageid"> |
|
|
|
<input type="hidden" value="<%= $pageid %>" name="pageid"> |
|
|
|
<hr/> |
|
|
|
<hr/> |
|
|
|
<textarea></textarea> |
|
|
|
% if (my $user = session('username')) { |
|
|
|
|
|
|
|
<input type="text" name="user" value="<%= $user %>" readonly="1"> |
|
|
|
|
|
|
|
% } else { |
|
|
|
|
|
|
|
<input type="text" name="user" maxlength="32"> |
|
|
|
|
|
|
|
% } |
|
|
|
|
|
|
|
<input type="email" name="email"> |
|
|
|
|
|
|
|
<br/> |
|
|
|
|
|
|
|
<textarea name="text"></textarea> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|
<input type="submit" value="<%= l('Add') %>"> |
|
|
|
<input type="submit" value="<%= l('Add') %>"> |
|
|
|
<span id="resp" style="color: red"></span> |
|
|
|
<span id="resp" style="color: red"></span> |
|
|
|