34 $listattr[] = $this->GetAttribute(
"FI_FILE");
36 $tableimage = array();
39 while (list($i, $attr) = each($listattr)) {
41 $value = chop($this->GetValue($attr->id));
44 if ((
$value !=
"") && ($attr->visibility !=
"H")) {
46 switch ($attr->type) {
49 $tableimage[$nbimg][
"imgsrc"] = $this->GetHtmlValue($attr,
$value,
$target, $ulink);
52 $tableimage[$nbimg][
"type"] = $reg[1];
53 if (
$vf->Show($reg[2], $info) ==
"") {
55 $tableimage[$nbimg][
"size"] = round($info->size / 1024, 2);
56 }
else $fname = _(
"no filename");
58 $tableimage[$nbimg][
"name"] = $fname;
66 $this->lay->SetBlockData(
"TABLEFILE", $tableimage);