Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
    /**
4
     * @package   Content-management
5
     * @author    Webagentur Niewerth <tiefland@weban.de>
6
     * @copyright 2011 Webagentur Niewerth
7
     * @license   propietary http://www.weban.de
8
     * @version   $Rev: 3608 $
9
     * @filesource
10
     *
11
     */
12
 
13
    /**
14
     *
15
     * @package   Content-management
16
     * @author    Webagentur Niewerth <tiefland@weban.de>
17
     * @copyright 2011 Webagentur Niewerth
18
     */
19
 
20
    // SVN: $Id: artikel_export.php 3608 2011-06-28 09:49:06Z tiefland $
21
 
22
    require_once "common.php";
23
 
24
    $mode=Weban_Utils::clean_global_input("mode");
25
 
26
    if ( $mode == "export" )
27
    {
28
        require_once "includes/$site/artikel_export.php";
29
    }
30
    else
31
    {
32
        $sql = "SELECT
33
                id,
34
                    name
35
            FROM
36
                directory
37
            WHERE
38
                father =-1
39
            AND
40
                language='" . DEFAULT_LANG . "'
41
        ";
42
        $res = mysql_query( $sql );
43
        while ( $row = mysql_fetch_assoc( $res ) )
44
        {
45
            $kategorien[$row["name"]][$row["id"]] = $row["name"];
46
            $sql_s = "SELECT
47
                    id,
48
                    name
49
                FROM
50
                    directory
51
                WHERE
52
                    father = " . $row["id"] . "
53
                AND
54
                    language='" . DEFAULT_LANG . "'
55
            ";
56
            $res_s = mysql_query( $sql_s );
57
            while ( $row_s = mysql_fetch_assoc( $res_s ) )
58
            {
59
                $kategorien[$row["name"]][$row_s["id"]] = $row_s["name"];
60
            }
61
        }
62
        $GLOBALS["ui"]->assign( "kategorien", $kategorien );
63
        $GLOBALS["ui"]->assign( "tpl_f", "artikel_export.tpl" );
64
        $GLOBALS["ui"]->display( "page.tpl" );
65
    }
66
 
67
?>