Files
znc/modules/www/notes/index.tmpl
T
cflakes da954bb4a6 WebMods: Following the last commit, this adds the CSRF check token
to existing action="post" forms. Right now, we don't have much of a
real protection against CSRF yet, but psychon is working on making
that happen :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1933 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 13:35:06 +00:00

50 lines
1.2 KiB
Cheetah

<? INC Header.tmpl ?>
<form method="post" action="/mods/notes/addnote">
<? INC _csrf_check.tmpl ?>
<div class="section">
<h3>Add A Note</h3>
<div class="sectionbg">
<div class="sectionbody">
<div class="subsection third">
<div class="inputlabel">Key:</div>
<div><input type="text" name="key" size="8" /></div>
</div>
<div class="subsection full">
<div class="inputlabel">Note:</div>
<div><input type="text" name="note" size="40" /></div>
</div>
<div class="subsection submitline">
<input type="submit" name="add" value="Add Note" />
</div>
</div>
</div>
</div>
</form>
<? IF !NotesLoop ?>
<p>You have no notes to display.</p>
<? ELSE ?>
<table class="data">
<thead>
<tr>
<td style="width: 10px;">&nbsp;</td>
<td>Key</td>
<td>Note</td>
</tr>
</thead>
<tbody>
<? LOOP NotesLoop ?>
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
<td><a href="/mods/notes/delnote?key=<? VAR Key ESC=URL,HTML ?>"><img src="/modfiles/<? VAR ModName TOP ?>/trash.gif" alt="[del]" /></a></td>
<td><? VAR Key ?></td>
<td><? VAR Note ?></td>
</tr>
<? ENDLOOP ?>
</tbody>
</table>
<? ENDIF ?>
<? INC Footer.tmpl ?>