From 0d5ad3e6e31c77ae7a3ed214c309ad197fa8b879 Mon Sep 17 00:00:00 2001 From: hecht Date: Thu, 12 Jan 2012 00:57:12 +0000 Subject: [PATCH] small new features for tomorrow ;) --- ag/include/designfunctions.inc.php | 8 ++++++++ ag/info/lern.php | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ag/include/designfunctions.inc.php b/ag/include/designfunctions.inc.php index 954bf7d..73a2542 100644 --- a/ag/include/designfunctions.inc.php +++ b/ag/include/designfunctions.inc.php @@ -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 ''.$row['name'].''; +} + + function displayClanLink($clanid, $clanname = NULL){ if($clanname === NULL) { $qry = mysql_query('SELECT clanname FROM clan WHERE id = ' . $clanid); diff --git a/ag/info/lern.php b/ag/info/lern.php index 17da0f9..dec5c39 100644 --- a/ag/info/lern.php +++ b/ag/info/lern.php @@ -61,8 +61,7 @@ if ($char_id == null) { foreach ($attacks_learned as $item) { ?> - - + - @@ -75,7 +74,7 @@ if ($char_id == null) { foreach ($attacks_unlearned as $item) { ?> - + '; + echo generateAttackLinkByID($requirenment['id']) .'
'; } } else echo ' ';