1 | <?php |
---|
2 | /*************************************************************************** |
---|
3 | * help.php * |
---|
4 | * ------------------- * |
---|
5 | * application : PhpWebGallery 1.3 <http://phpwebgallery.net> * |
---|
6 | * author : Pierrick LE GALL <pierrick@z0rglub.com> * |
---|
7 | * * |
---|
8 | * $Id: help.php 225 2003-11-02 11:18:25Z z0rglub $ |
---|
9 | * * |
---|
10 | ***************************************************************************/ |
---|
11 | |
---|
12 | /*************************************************************************** |
---|
13 | * * |
---|
14 | * This program is free software; you can redistribute it and/or modify * |
---|
15 | * it under the terms of the GNU General Public License as published by * |
---|
16 | * the Free Software Foundation; * |
---|
17 | * * |
---|
18 | ***************************************************************************/ |
---|
19 | include_once( './include/isadmin.inc.php' ); |
---|
20 | //----------------------------------------------------- template initialization |
---|
21 | $sub = $vtp->Open( './template/'.$user['template'].'/admin/help.vtp' ); |
---|
22 | $tpl = array( ); |
---|
23 | templatize_array( $tpl, 'lang', $sub ); |
---|
24 | //----------------------------------------------------- help categories display |
---|
25 | $categories = array( 'images','thumbnails','database','remote','upload', |
---|
26 | 'virtual','groups','access','infos' ); |
---|
27 | foreach ( $categories as $category ) { |
---|
28 | $vtp->addSession( $sub, 'cat' ); |
---|
29 | if ( $category == 'images' ) |
---|
30 | { |
---|
31 | $vtp->addSession( $sub, 'illustration' ); |
---|
32 | $vtp->setVar( $sub, 'illustration.pic_src', './images/admin.png' ); |
---|
33 | $vtp->setVar( $sub, 'illustration.pic_alt', '' ); |
---|
34 | $vtp->setVar( $sub, 'illustration.caption', $lang['help_images_intro'] ); |
---|
35 | $vtp->closeSession( $sub, 'illustration' ); |
---|
36 | } |
---|
37 | $vtp->setVar( $sub, 'cat.name', $lang['help_'.$category.'_title'] ); |
---|
38 | foreach ( $lang['help_'.$category] as $item ) { |
---|
39 | $vtp->addSession( $sub, 'item' ); |
---|
40 | $vtp->setVar( $sub, 'item.content', $item ); |
---|
41 | $vtp->closeSession( $sub, 'item' ); |
---|
42 | } |
---|
43 | |
---|
44 | $vtp->closeSession( $sub, 'cat' ); |
---|
45 | } |
---|
46 | //----------------------------------------------------------- sending html code |
---|
47 | $vtp->Parse( $handle , 'sub', $sub ); |
---|
48 | ?> |
---|