-
Notifications
You must be signed in to change notification settings - Fork 0
/
talent.php
50 lines (41 loc) · 1.28 KB
/
talent.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
require ('info/wowdb.php');
/*
this si an example talent return array...
*/
$mysql = $wowdb->connect('localhost', 'root', '', 'wowapi');
$db = mysql_select_db('wowapi');
if(!$mysql) die("Can�t connect to MySql!<br>".mysql_error()." ".mysql_errno());
if(!$db) die("Can�t connect to MySql Database!<br>".mysql_error()." ".mysql_errno());
require('info/talentbuilder.php');
$talents = new talents();
$x = $talents->show_talents('3','0300000000000000000032032113012223122132200000000000000000');
echo '<style>
table{color:FFFFFF}
</style>';
echo '<table ><tr>';
foreach ($x['talent']['trees'] as $tree => $tre)
{
//print_r($tre);
echo '<td width="200"><table background="http://wowroster.net/Interface/TalentFrame/'.$tre['ICON'].'.png" width="100%"><tr><td colspan=4>'.$tre['NAME'].'</td></tr>';
//for ($start;$start<=$stop;$start++)
for( $r = 1; $r < 7 + 1; $r++ )
{
echo '<tr>';
for( $c = 1; $c < 4 + 1; $c++ )
{
echo '<td width="15" height="15">';
if (isset($tre['talents'][$r][$c]['RANK']))
{
echo ''.$tre['talents'][$r][$c]['RANK'].'<img src="http://wowroster.net/Interface/Icons/'.$tre['talents'][$r][$c]['ICON'].'.png" width="32" height="32"></a>';
}
echo '</td>';
}
echo '</tr>';
}
echo '</table></td>';
}
echo '</table>';
echo '<pre>';
print_r($x);
?>