das gibt es doch gar nicht... lacht.
der macht das immer noch...
hier der code:
Code: Alles auswählen
<?php
/***********************************************
* CONTENIDO MODUL - OUTPUT
*
* REFERENZ MODUL / ARTIKELLISTE
*
* Artikelliste mit Img 1, Head 1, Head 2
*
* Erstellt eine Liste mit allen Artikel bis
* auf den Startartikel.
*
* Author : Jan Lengowski
* Copyright : four for business AG
* Created : 15-08-2002
* Modified : 16-08-2002
************************************************/
// second db class instance
$db2 = new DB_Contenido;
// selected category
$selcat = "CMS_VALUE[0]";
if($selcat!="0" && $selcat!=""){
// select all articles in category widthout start article
$query = "SELECT ARTLANG.idart, ARTLANG.idartlang FROM ".$cfg["tab"]["cat_art"]." AS CATART, ".
$cfg["tab"]["art_lang"]." AS ARTLANG ".
"WHERE CATART.idcat = '$selcat' AND ARTLANG.idart = CATART.idart AND ARTLANG.idlang = '$lang' AND ".
"ARTLANG.online = '1' ORDER BY CATART.idart DESC";
// execute query
$db->query($query);
unset($articleID);
unset($linkID);
// get id's of sub articles
while ($db->next_record()) {
$articleID[] = $db->f("idartlang");
$linkID[] = $db->f("idart");
} // end while
// loop through subarticles
echo '
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td style="padding-left:10px">CMS_VALUE[2]</td></tr>
';
if (is_array($articleID)) {
foreach ($articleID as $key => $value) {
// select all CMS variables of the article
$sql = "SELECT * FROM ".$cfg["tab"]["content"]." WHERE idartlang = '$value' AND idtype = '1' AND typeid = '1'";
$db->query($sql);
$db->next_record();
$head = $db->f("value");
if ( strlen($head) > "CMS_VALUE[3]") {
$head = substr($head, 0, "CMS_VALUE[3]");
$head = strip_tags ($head);
/*$head = str_replace ('<STRONG>' , '', $head);
$head = str_replace ('</STRONG>' , '', $head);
$head = str_replace ('<strong>' , '', $head);
$head = str_replace ('</strong>' , '', $head);
$head = str_replace ('<B>' , '', $head);
$head = str_replace ('</B>' , '', $head);
$head = str_replace ('<b>' , '', $head);
$head = str_replace ('</b>' , '', $head);
$head = str_replace ('<H2>' , '', $head);
$head = str_replace ('</H2>' , '', $head);
$head = str_replace ('<h2>' , '', $head);
$head = str_replace ('</h2>' , '', $head);
$head = str_replace ('<H1>' , '', $head);
$head = str_replace ('</H1>' , '', $head);
$head = str_replace ('<h1>' , '', $head);
$head = str_replace ('</h1>' , '', $head); */
$head .= '..';
}
// link
$link = $sess->url("front_content.php?client=$client&lang=$lang&idcat=$selcat&idart=$linkID[$key]&m=$m&s=$s");
echo '<tr><td height="22" style="padding:0; margin: 0;padding-left:10px;height: 22px;"><a href="'.$link.'" style="color: black;">'.urldecode($db->f("value")).'</a></td></tr>';
} // end while
unset($headline);
unset($text);
} // end foreach
} // end if (is_array)
echo '</table><br>';
?>
lg
nicole
die jetzt erst einmal weg ist.