<?php 
/**********************************************************************/
/* pragmaMx  Content Management System // mxPinnwad-Module       	  */
/* ================================================================== */
/* Copyright (C) 2006 by pragmaMx Developer Team                      */
/* email:         team@pragmamx.org                                   */
/* homepage:      http://www.pragmaMx.org                             */
/* further sites:                                                     */
/*            http://www.marx-city.de, http://www.genutec-studios.de, */
/*            http://www.shiba-design.de,                             */
/* ================================================================== */
/* Based on:                                                          */
/* block-newest_pinwand.php,v 1.2									  */
/* Copyright (c) 2003 by ~ by the vkpMx & pragmaMx Developer Team 	  */
/* http://www.pragmamx.org											  */
/**********************************************************************/
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
########################Ab hier Konbfigurationseinstellungen####################################
$scrolling = 1; 			# Scrollen ein/aus (1/0)
$numartikel = 10;			# Anzahl der Notes im Block
$hoehe = 100;				# Höhe des Marquee Tag
$laenge = 70;       		# Länge der Textvorschau
$width = 150;       		# Breite des DIV-Containers
$sorter = 'DESC';    		# Sortierung der Beiträge DESC = neueste zuerst, ASC = älteste zuerst
$modname = "mx_Pinwand";    # Name des Pinwanmdmodules
########################Ende des Konfigurationsbereiches########################################

$thisfile=basename(__file__);
$mxblockcache = TRUE;
global $prefix;
$show = '';
$a = 1;
$result = sql_query("select name, text from ".$prefix."_pinwand order by datum ".$sorter." limit 0,".$numartikel."");
while(list($name, $text) = sql_fetch_row($result)) {
	$text2 = mxCutString($text, $laenge);
	$show .='<div style="margin-left:8px; width:' . $width . 'px;"><b>' . $a . '</b>:<big>&nbsp;</big><a href="modules.php?name=' . $modname . '">' . $name . ': ' . $text2 . '</a></div>
	';
	$a++;
	}
if ($show) {
	$content = "";
	if ($scrolling) $content .= '<MARQUEE behavior="scroll" align="left" direction="up" height="'.$hoehe.'" scrollamount= "2" scrolldelay="90" onmouseover="this.stop()" onmouseout="this.start()">';
	$content .= $show;
	if ($scrolling) $content .= '</MARQUEE>';
	}
?>
