\n\n";
}
else
echo "config->getAttributes("TableHeader", "table") . ">\n";
echo "config->getAttributes("TableHeadRow", "tr") . ">\n";
$rf_news = $this->config->getValue("Main", "order");
$width = $this->config->getValue("Main", "width");
if ($this->config->getValue("TableHeader", "width_pp") == "PERCENT")
$percent = "%";
$aliases = $this->config->getValue("Main", "aliases");
$visible = $this->config->getValue("Main", "visible");
$set_1 = $this->config->getAttributes("TableHeadrow", "th");
$set_2 = $this->config->getAttributes("TableHeadrow", "th", TRUE);
$zebra = $this->config->getValue("TableHeadrow", "th_zebrath_");
$i = 0;
foreach($rf_news as $spalte){
if ($visible[$spalte]) {
// "zebra-effect" in head-row
if ($zebra) {
if ($i % 2)
$set = $set_2;
else
$set = $set_1;
}
else
$set = $set_1;
echo "| ";
if($aliases[$spalte] == "")
echo " \n";
else
echo "config->getAttributes("TableHeadrow", "font") . ">" . $aliases[$spalte] . "\n";
echo " | \n";
$i++;
}
}
echo " \n";
$dateform = $this->config->getValue("Main", "dateformat");
$attr_a = $this->config->getAttributes("LinkInternSimple", "a");
$attr_font = $this->config->getAttributes("TableRow", "font");
$attr_div_topic = $this->config->getAttributes("ContentNews", "divtopic");
$attr_div_body = $this->config->getAttributes("ContentNews", "divbody");
$attr_font_topic = $this->config->getAttributes("ContentNews", "fonttopic");
$attr_font_body = $this->config->getAttributes("ContentNews", "fontbody");
$set_1 = $this->config->getAttributes("TableRow", "td");
$set_2 = $this->config->getAttributes("TableRow", "td", TRUE);
$zebra = $this->config->getValue("TableRow", "td_zebratd_");
$show_date_author = $this->config->getValue("Main", "showdateauthor");
$not_author_link = $this->config->getValue("Main", "notauthorlink");
foreach ($content_data as $dat) {
list ($content,$admin_msg) = explode("",$dat["body"]);
if ($admin_msg)
$content.="\n--%%{$admin_msg}%%--";
$data['date'] = $attr_font ? "" : '';
if ($show_date_author != 'date') {
if ($not_author_link)
$author_name = $dat["fullname"];
else
$author_name = sprintf("%s", $attr_a, $dat["fullname"]);
}
switch ($show_date_author) {
case 'date' :
$data['date'] .= strftime($dateform, $dat["date"]);
break;
case 'author' :
$data['date'] .= $author_name;
break;
default:
$data['date'] .= strftime($dateform, $dat["date"]) . ' ' . $author_name;
}
$data['date'] .= $attr_font ? '' : '';
$data['topic'] = sprintf("%s %s ",
$attr_div_topic, $attr_font_topic,
$dat["topic"], $attr_div_body,
$attr_font_body, $content);
// "horizontal zebra"
if ($zebra == "HORIZONTAL") {
if ($i % 2)
$set = $set_2;
else
$set = $set_1;
}
else
$set = $set_1;
echo "config->getAttributes("TableRow", "tr") . ">\n";
$j = 0;
foreach($rf_news as $spalte){
// "vertical zebra"
if ($zebra == "VERTICAL") {
if ($j % 2)
$set = $set_2;
else
$set = $set_1;
}
if ($visible[$spalte]) {
if($data[$this->data_fields[$spalte]] == "")
echo "| | \n";
else
echo "" . $data[$this->data_fields[$spalte]] . " | \n";
$j++;
}
}
echo " \n";
$i++;
}
echo "\n ";
if ($this->config->getValue("Main", "studiplink")) {
if ($this->config->getValue("Main", "studiplink") == "bottom") {
$args = ["width" => "100%", "height" => "40", "link" => ""];
echo "\n| \n";
$this->elements["StudipLink"]->printout($args);
}
echo " | \n";
}
?>
|