summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2008-02-23 14:59:01 +0000
committerAndreas Brachold <vdr07@deltab.de>2008-02-23 14:59:01 +0000
commit8cc206947676df6f2a2923e3fb68f9c9f7730897 (patch)
treed2049addc157c004a98e2324d9e2cac4b72ac1f1 /html
parent6914bc82846a8e51427f94a0876a89fe1ec2a7a1 (diff)
downloadxxv-8cc206947676df6f2a2923e3fb68f9c9f7730897.tar.gz
xxv-8cc206947676df6f2a2923e3fb68f9c9f7730897.tar.bz2
* Redirect to help template, if command not be understood
* Reformat help page * xstyle move main menu from help.tmpl to mainmenu.inc * program,alist,tlist: add paging support by &start= .. &limit= + ajax: send tables without header + ajax: send present count of rows * CHANNELS: Missing header with TID * search, warn if none text defined
Diffstat (limited to 'html')
-rw-r--r--html/help.tmpl49
-rw-r--r--html/index.tmpl2
2 files changed, 50 insertions, 1 deletions
diff --git a/html/help.tmpl b/html/help.tmpl
index 809c5ef..7a9c601 100644
--- a/html/help.tmpl
+++ b/html/help.tmpl
@@ -1,3 +1,4 @@
+<?% IF cgi.param('cmd') == 'help' && cgi.param('data') == 'menu' %?>
<script type="text/javascript" src="javascript/xtree.js"></script>
<link type="text/css" rel="stylesheet" href="style/xtree.css" />
@@ -134,3 +135,51 @@ document.write(tree);
</div>
<?% global.hidefooter = 1 %?>
+<?% ELSE %?>
+<!-- help -->
+<?% BLOCK item %?>
+ <td>
+ <?% long %?> ( <?% short %?> )
+ </td>
+ <td>
+ <a href="?cmd=<?% short %?>">
+ <font class="title"><?% desc %?></font>
+ </a>
+ </td>
+<?% END %?>
+
+
+<h1>XXV - Version <?% version %?></h1>
+<p><?% data.shift %?></p>
+ <?% IF data.size > 1 %?>
+<table summary="" width="100%">
+ <?% FOREACH zeile = data %?>
+ <?% IF debug;"<!-- Item: ";FOREACH x = zeile;loop.count - 1;":";x.replace("-"," ");"|";END;"-->";END %?>
+ <tr<?% " class='two'" IF loop.count mod 2 == 0 %?>>
+ <?% short=zeile.0;long=zeile.1;modul=zeile.2;desc=zeile.3 %?>
+ <?% IF allow(long) %?>
+ <?% IF !old.defined || modul != old %?>
+ <?% IF old.defined; %?>
+ </tr>
+ <tr>
+ <?% END %?>
+ <td colspan="12">
+ <h2>
+ <a href="?cmd=doc&amp;data=<?% modul %?>">
+ <?% modul %?>
+ </a>
+ </h2>
+ </td>
+ </tr>
+ <tr>
+ <?% END %?>
+ <?% IF allow(long) %?>
+ <?% PROCESS item %?>
+ <?% END %?>
+ <?% old = modul %?>
+ </tr>
+ <?% END %?>
+ <?% END %?>
+</table>
+ <?% END %?>
+<?% END %?>
diff --git a/html/index.tmpl b/html/index.tmpl
index 513203e..8720ca9 100644
--- a/html/index.tmpl
+++ b/html/index.tmpl
@@ -7,7 +7,7 @@
</head>
<frameset rows="*,1" frameborder="NO" border="1" framespacing="0">
<frameset cols="175,*" frameborder="NO" border="1" framespacing="0">
- <frame src="?cmd=help" name="Navigation">
+ <frame src="?cmd=help&data=menu" name="Navigation">
<frame src="?cmd=<?% param.start %?>" name="Daten">
</frameset>
<frame src="about:blank" name="Status">