small new features for tomorrow ;)

main
hecht 13 years ago
parent ef0154121b
commit 0d5ad3e6e3

@ -83,6 +83,14 @@ function generateUserLinkByID($userid, $showClanTags = TRUE){
}
function generateAttackLinkByID($attackid) {
$sql = 'SELECT * from attacken WHERE id = ' .$attackid;
$qry = mysql_query($sql);
$row = mysql_fetch_assoc($qry);
return '<a href="index.php?as=info/attacken&p=1&at_id='.$attackid.'">'.$row['name'].'</a>';
}
function displayClanLink($clanid, $clanname = NULL){
if($clanname === NULL) {
$qry = mysql_query('SELECT clanname FROM clan WHERE id = ' . $clanid);

@ -61,8 +61,7 @@ if ($char_id == null) {
foreach ($attacks_learned as $item) {
?>
<tr>
<td><b><?php echo $item['name']; ?> </b>
</td>
<th align="left"><?php echo generateAttackLinkByID($item['id']); ?></th>
<td align="center">-</td>
<td align="center"><?php echo $item['benutzt'].'x'; ?>
</td>
@ -75,7 +74,7 @@ if ($char_id == null) {
foreach ($attacks_unlearned as $item) {
?>
<tr>
<td><b><?php echo $item['name']; ?> </b></td>
<th align="left"><?php echo generateAttackLinkByID($item['id']); ?></th>
<td align="center"><?php if($item['levelups']) {
echo $item['levelups'];
} else
@ -93,7 +92,7 @@ if ($char_id == null) {
</td>
<td><?php if(isset($item['req'])) {
foreach($item['req'] as $requirenment) {
echo $requirenment['name'].'<br>';
echo generateAttackLinkByID($requirenment['id']) .'<br>';
}
} else
echo ' ';

Loading…
Cancel
Save