diff options
Diffstat (limited to 'html/cmdlist.tmpl')
| -rw-r--r-- | html/cmdlist.tmpl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/html/cmdlist.tmpl b/html/cmdlist.tmpl new file mode 100644 index 0000000..54e48ce --- /dev/null +++ b/html/cmdlist.tmpl @@ -0,0 +1,38 @@ +<h1><?% gettext("Commands list") %?></h1> +<!-- TableTemplate --> +<?% IF param.headingText %?> +<table width=100%><tr><td class='tableheader'><h3><?% param.headingText %?></h3> +<?% END %?> +<table border="0" width="95%"> +<?% fields = data.shift %?> + <tr> + <?% FOREACH field = fields %?> + <?% NEXT IF field.match('^__') %?> + <th> + <nobr><?% field %?> + <?% IF param.sortable %?> + <a href="?cmd=<?% cgi.param('cmd') %?>&__sortby=<?% field %?>&__desc=0"><img src="images/asc.png"></a> + <a href="?cmd=<?% cgi.param('cmd') %?>&__sortby=<?% field %?>&__desc=1"><img src="images/desc.png"></a> + <?% END %?> + </nobr> + </th> + <?% END %?> + </tr> + <?% FOREACH zeile = data %?> + <tr> + <?% c = -1 %?> + <?% FOREACH field = zeile %?> + <?% c = c + 1 %?> + <?% NEXT IF fields.$c.match('^__') %?> + <td> + <a href='?cmd=cmd&data=<?% zeile.first %?>'> + <?% field.replace('\|', '<p>').replace('\n', '<br>') %?></td> + </a> + <?% END %?> + </tr> + <?% END %?> +</table> +<?% IF param.headingText %?> +</td></tr></table> +<p> +<?% END %?> |
