Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php

    /**
     * @package   Content-management
     * @author    Webagentur Niewerth <tiefland@weban.de>
     * @copyright 2011 Webagentur Niewerth
     * @license   propietary http://www.weban.de
     * @version   $Rev: 3608 $
     * @filesource
     * 
     */

    /**
     * 
     * @package   Content-management
     * @author    Webagentur Niewerth <tiefland@weban.de>
     * @copyright 2011 Webagentur Niewerth
     */

    // SVN: $Id: artikel_export.php 3608 2011-06-28 09:49:06Z tiefland $

    require_once "common.php";

    $mode=Weban_Utils::clean_global_input("mode");

    if ( $mode == "export" )
    {
        require_once "includes/$site/artikel_export.php";
    }
    else
    {
        $sql = "SELECT
                id,
                    name
            FROM
                directory
            WHERE
                father =-1
            AND
                language='" . DEFAULT_LANG . "'
        ";
        $res = mysql_query( $sql );
        while ( $row = mysql_fetch_assoc( $res ) )
        {
            $kategorien[$row["name"]][$row["id"]] = $row["name"];
            $sql_s = "SELECT
                    id,
                    name
                FROM
                    directory
                WHERE
                    father = " . $row["id"] . "
                AND
                    language='" . DEFAULT_LANG . "'
            ";
            $res_s = mysql_query( $sql_s );
            while ( $row_s = mysql_fetch_assoc( $res_s ) )
            {
                $kategorien[$row["name"]][$row_s["id"]] = $row_s["name"];
            }
        }
        $GLOBALS["ui"]->assign( "kategorien", $kategorien );
        $GLOBALS["ui"]->assign( "tpl_f", "artikel_export.tpl" );
        $GLOBALS["ui"]->display( "page.tpl" );
    }
    
?>