7b3d1298d137efa57415829c5043dc8fc8482e18
[silc.git] / scripts / silcdoc / gen_detail.php
1 <?php
2 /*
3
4   Author: Pekka Riikonen <priikone@silcnet.org>
5
6   Copyright (C) 2001 Pekka Riikonen
7
8   This program is free software; you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation; either version 2 of the License, or
11   (at your option) any later version.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   This is the detailed page generator. This generates the actual data
19   that is shown plus index at the right side. 
20
21 */
22 ?>
23
24 <div align="center">
25 <table cellpadding=2 cellspacing=0 border=0 width="99%" align=center>
26 <tr>
27 <td valign=top>
28 <font face="Helvetica,Arial,Sans-serif" size="+1">
29
30 <?php
31 /* Get the actual data for the page */
32 require "$page";
33 ?>
34
35 </font>
36 </td>
37
38 <td bgcolor="#dddddd">
39 <table bgcolor="#dddddd" cellpadding=4 cellspacing=0 border=0 
40 width="99%" align=center>
41 <tr><td>
42 <font face="Helvetica,Arial,Sans-serif" size="1">
43
44 <?php
45 /* Get the index for this page */
46 $len = strcspn($page, "__");
47 $fname = substr($page, 0, $len);
48 require "$fname"."__index.tmpl";
49 ?>
50
51 </font>
52 </td></tr>
53 </table>
54 </td>
55
56 </tr>
57 </table>
58 </div>