PHP-Code:
function get_kat_referenzen(){
Global $link_number; // hauptnavi 1-7
Global $number; // u_navi 1-4
Global $select; //nimmt parameter von auf und übergibt sie nach more.php
Global $navi;
$id_language=get_language();
echo '<tr width="479" height="35" align="left" valign="top">';
echo '<td width="30" align="left" valign="top">
<img src="images/spacer.gif width="1" height="1" border="0" />
</td>
<td width="18" align="right" valign="top">
<img src="images/punkt.gif" width="14" height="9" border="0" />
</td>
<td width="348" align="left" valign="top" class="normfett">';
switch($id_language):
case 1: echo '<div class="normueber">Referenzliste</div>';
break;
case 2: echo '<div class="normueber">References</div>';
break;
default:echo '<div class="normueber">chinese</div>';
endswitch;
echo '</td><td width="10"> </td><td width="73" align="left" valign="top">
<img src="images/spacer.gif width="1" height="1" border="0" />';
echo '</td></tr>';
echo '<tr width="479" height="82" align="left" valign="top">';
echo '<td width="30" align="left" valign="top">
<img src="images/spacer.gif width="1" height="1" border="0" />
</td>
<td width="18" align="right" valign="top">
<img src="images/spacer.gif" width="14" height="9" border="0" />
</td>
<td width="348" align="left" valign="top" class="normfett">';
echo '<ul style="list-style:url(images/punkt_norm.gif) outside">';
$tab = "kat_referenzen";
$result = MYSQL_QUERY("SELECT * FROM ".$tab." where id_language = '".$id_language."'") or die (mysql_error());
while ($zeile=mysql_fetch_array($result)){
foreach ($zeile as $key => $value) {
$$key = nl2br(htmlentities(stripslashes($value)));
}
echo "<li><a href=\"main.php?link=referenzen&id=".$id."&select=".$select."&navi=".$navi."&tab=".$tab."&id_language=".$id_language."\" class=\"more\" onfocus=\"this.blur()\" target=\"_self\">".$kat."</a><br></li>";
}
echo '</ul>';
echo '</td><td width="10"> </td><td width="73" align="left" valign="top">
<img src="images/spacer.gif width="1" height="1" border="0" />';
echo '</td></tr>';
mysql_free_result($result);
}
please help!
Kommentar