so ich hab das script mal en bissel überarbeitet und vergrößert

Was ist denn schon 9 gegen 19 ?
INPUT:
###################
# over-worked by
#
# Thomas Broich
#
mywork@cidnet.de
#
# Modified : 20.2.2004
###################
# original
/***********************************************
* Modulname : Download
* Author : 4fb - Jan Lengowski/ 4.3.1b mods by J. Matern
* Copyright : Contenido - four for business
* Created : 26-08-2002
* Modified : 05-07-2003
************************************************/
$wert = 0;
$werte = array(
"CMS_VAR[1]", "CMS_VALUE[1]", "CMS_VAR[3]", "CMS_VALUE[3]" ,
"CMS_VAR[4]", "CMS_VALUE[4]", "CMS_VAR[6]", "CMS_VALUE[6]" ,
"CMS_VAR[7]", "CMS_VALUE[7]", "CMS_VAR[9]", "CMS_VALUE[9]" ,
"CMS_VAR[10]", "CMS_VALUE[10]", "CMS_VAR[12]", "CMS_VALUE[12]" ,
"CMS_VAR[13]", "CMS_VALUE[13]", "CMS_VAR[15]", "CMS_VALUE[15]" ,
"CMS_VAR[16]", "CMS_VALUE[16]", "CMS_VAR[18]", "CMS_VALUE[18]" ,
"CMS_VAR[19]", "CMS_VALUE[19]", "CMS_VAR[21]", "CMS_VALUE[21]" ,
"CMS_VAR[22]", "CMS_VALUE[22]", "CMS_VAR[24]", "CMS_VALUE[24]" ,
"CMS_VAR[25]", "CMS_VALUE[25]", "CMS_VAR[27]", "CMS_VALUE[27]" ,
"CMS_VAR[30]", "CMS_VALUE[30]", "CMS_VAR[32]", "CMS_VALUE[32]" ,
"CMS_VAR[35]", "CMS_VALUE[35]", "CMS_VAR[37]", "CMS_VALUE[37]" ,
"CMS_VAR[39]", "CMS_VALUE[39]", "CMS_VAR[41]", "CMS_VALUE[41]" ,
"CMS_VAR[43]", "CMS_VALUE[43]", "CMS_VAR[45]", "CMS_VALUE[45]" ,
"CMS_VAR[47]", "CMS_VALUE[47]", "CMS_VAR[49]", "CMS_VALUE[49]" ,
"CMS_VAR[51]", "CMS_VALUE[51]", "CMS_VAR[54]", "CMS_VALUE[54]" ,
"CMS_VAR[57]", "CMS_VALUE[57]", "CMS_VAR[60]", "CMS_VALUE[60]" ,
"CMS_VAR[62]", "CMS_VALUE[62]", "CMS_VAR[65]", "CMS_VALUE[65]" ,
"CMS_VAR[68]", "CMS_VALUE[68]", "CMS_VAR[71]", "CMS_VALUE[71]" ,
"CMS_VAR[74]", "CMS_VALUE[74]", "CMS_VAR[77]", "CMS_VALUE[77]");
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'";
$db->query($query);
while ($db->next_record()) {
//$knurpsel replaces old $filename
$knurpsel[$db->f("idupl")] = $db->f("filename");
} // end while
function d_checked($which) {
if ($which != "") {
return "checked";
}
} // end function
echo "<table width=\"350\" cellspacing=\"1\" cellpadding=\"4\" border=\"0\" bgcolor=\"#000000\">
<tr bgcolor=\"#cccccc\" align=\"center\">
<td class=text>Aktiv</td>
<td class=text>Datei wählen</td>
</tr>";
for ( $i = 0; $i < 19; $i++ ){
echo "<tr bgcolor=\"#ffffff\" align=\"center\">
<td><input name=\"$werte[$wert]\" value=\"on\"";
$wert++;
echo "type=\"checkbox\" ".d_checked("$werte[$wert]")."></td>
<td>";
$wert++;
echo "<select name=\"$werte[$wert]\">";
$wert++;
if (is_array($knurpsel)) {
foreach ($knurpsel as $key => $value) {
if ("$werte[$wert]" == $key) {
echo "<option selected=\"selected\" value=\"". $key ."\">". $value ."</option>";
} else {
echo "<option value=\"". $key ."\">". $value ."</option>";
} // end if
} // end foreach
} // end if
echo " </select></td></tr>";
$wert++;
} // for ende
echo "</table>";
OUTPUT:
<?php
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
if ("CMS_VALUE[1]" == "on") {
$s = "CMS_VALUE[3]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr><td colspan=\"2\" heigth=\"1\" bgcolor=\"#FFFF99\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFF99\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFF99\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\" ></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[4]" == "on") {
$s = "CMS_VALUE[6]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFcc\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFcc\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\" ></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[7]" == "on") {
$s = "CMS_VALUE[9]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFff\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFff\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\" ></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[10]" == "on") {
$s = "CMS_VALUE[12]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFF99\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFF99\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\" ></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[13]" == "on") {
$s = "CMS_VALUE[15]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFcc\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFcc\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[16]" == "on") {
$s = "CMS_VALUE[18]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFff\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFff\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\" ></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[19]" == "on") {
$s = "CMS_VALUE[21]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFF99\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFF99\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\" ></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[22]" == "on") {
$s = "CMS_VALUE[24]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFcc\" class=\"text11bn\" width=\"\"><a class=\"main\" target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFcc\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\" ></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[25]" == "on") {
$s = "CMS_VALUE[27]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFff\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFff\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[30]" == "on") {
$s = "CMS_VALUE[32]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFF99\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFF99\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[35]" == "on") {
$s = "CMS_VALUE[37]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFCC\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFCC\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[39]" == "on") {
$s = "CMS_VALUE[41]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFff\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFff\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[43]" == "on") {
$s = "CMS_VALUE[45]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFF99\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFF99\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[47]" == "on") {
$s = "CMS_VALUE[49]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFcc\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFcc\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[51]" == "on") {
$s = "CMS_VALUE[54]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFff\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFff\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[57]" == "on") {
$s = "CMS_VALUE[60]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFF99\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFF99\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[62]" == "on") {
$s = "CMS_VALUE[65]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFcc\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFcc\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[68]" == "on") {
$s = "CMS_VALUE[71]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFFff\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFFff\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
if ("CMS_VALUE[74]" == "on") {
$s = "CMS_VALUE[77]";
$query = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE filetype = 'pdf'"." AND idupl = '$s'";
$db->query($query);
$db->next_record();
$file = $db->f("filename");
$href = $cfgClient[$client]["htmlpath"]["frontend"] . $cfgClient[$client]["upload"]. $db->f("dirname") . $db->f("filename");
$description = $db->f("description");
echo "<tr height=\"20\">
<td style=\"padding-left:20px\" width=\"460\" bgcolor=\"#FFFF99\" class=\"text11bn\" width=\"\"><a class=main target=\"_blank\" href=\"$href\">$file</a><BR>$description</td>
<td align=\"center\" width=\"20\" bgcolor=\"#FFFF99\"><a target=\"_blank\" href=\"$href\"><img src=\"images/icons/diskette_out.gif\" border=\"0\"></a></td>
</tr>";
echo "<tr><td colspan=\"2\" heigth=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
} // end if
echo "</table><br><br>";
?>