Files
znc/modules/notes/tmpl/index.tmpl
psychon c6b5a4d4db Move module's templates to their data dir
Instead of having the template files and images in /usr/share/znc/www/<mod>/,
modules now get to use /usr/share/znc/<mod>/tmpl/ and files/ for this purpose.
This puts those directories for static data to good use again and might even fix
some bugs (after all, the code for that dir is older and more tested than the
new code for www/).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1997 726aef4b-f618-498e-8847-2d620e286838
2010-05-17 13:25:17 +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 ?>