Modul Fliesstext mit Bild und !Link!
Verfasst: Do 17. Okt 2002, 14:06
Hi Forum,
ich habe folgendes Problem:
Ich hab das Modul Fliesstext mit Bild und möchte in diesem Text 5 Links unterbringen. Meiner Meinung nach würde das so aussehen.
Text, Link, Text, Link, Text, Link,usw. statt nur eines T für Text.
Geht das? Mir ist schon klar, dass ich dann aufsteigende Nummern für den Link nehmen muss.
Hier mal das Modul:
Input:
echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\">
<tr valign=\"top\">
<td width=\"202\">".$mod["font"].":</td>
<td><select name=\"CMS_VAR[0]\" size=\"1\">";
if ("CMS_VALUE[0]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=10; $i++) {
if ($i != "CMS_VALUE[0]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td>
</tr></table>
<input type=\"hidden\" name=\"CMS_VAR[1]\" value=\"".$value."\">";
Output:
$tmp_img1 = "CMS_IMG[1]";
$tmpImgDescr1 = "CMS_IMGDESCR[1]";
echo "<table width=100% border=0><tr><td align=left>";
echo "<H5>CMS_HEAD[1]</H5>";
echo "<div style=\"float:left; border:none 3px; border-with: 3px; text-align:left; margin-right:10px; margin-bottom:10px \">";
if ($tmp_img1) {echo "<IMG SRC=\"CMS_IMG[1]\" ";
if(!eregi("a href","CMS_IMGDESCR[1]")){echo "ALT=\"CMS_IMGDESCR[1]\">";}
else {echo ">";};
};
if ($tmpImgDescr1 !="") {
echo ("<br> <span id=font12> CMS_IMGDESCR[1] </span></div>");
}
else {
echo "CMS_IMGDESCR[1]</div>";
}
echo "<p><span id=\"fontCMS_VALUE[0]\">CMS_TEXT[1]<br style=clear:all></span></p>";
echo "</td></tr></table>";
Danke schön
Patrick
ich habe folgendes Problem:
Ich hab das Modul Fliesstext mit Bild und möchte in diesem Text 5 Links unterbringen. Meiner Meinung nach würde das so aussehen.
Text, Link, Text, Link, Text, Link,usw. statt nur eines T für Text.
Geht das? Mir ist schon klar, dass ich dann aufsteigende Nummern für den Link nehmen muss.
Hier mal das Modul:
Input:
echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\">
<tr valign=\"top\">
<td width=\"202\">".$mod["font"].":</td>
<td><select name=\"CMS_VAR[0]\" size=\"1\">";
if ("CMS_VALUE[0]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=10; $i++) {
if ($i != "CMS_VALUE[0]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td>
</tr></table>
<input type=\"hidden\" name=\"CMS_VAR[1]\" value=\"".$value."\">";
Output:
$tmp_img1 = "CMS_IMG[1]";
$tmpImgDescr1 = "CMS_IMGDESCR[1]";
echo "<table width=100% border=0><tr><td align=left>";
echo "<H5>CMS_HEAD[1]</H5>";
echo "<div style=\"float:left; border:none 3px; border-with: 3px; text-align:left; margin-right:10px; margin-bottom:10px \">";
if ($tmp_img1) {echo "<IMG SRC=\"CMS_IMG[1]\" ";
if(!eregi("a href","CMS_IMGDESCR[1]")){echo "ALT=\"CMS_IMGDESCR[1]\">";}
else {echo ">";};
};
if ($tmpImgDescr1 !="") {
echo ("<br> <span id=font12> CMS_IMGDESCR[1] </span></div>");
}
else {
echo "CMS_IMGDESCR[1]</div>";
}
echo "<p><span id=\"fontCMS_VALUE[0]\">CMS_TEXT[1]<br style=clear:all></span></p>";
echo "</td></tr></table>";
Danke schön
Patrick