)
include($_SERVER['DOCUMENT_ROOT'].'/tmpl/'.$TEMPLATE.'/header.tmpl');
print('
');
include('menu.php');
include($_SERVER['DOCUMENT_ROOT'].'/tmpl/'.$TEMPLATE.'/body_top.tmpl');
print('');
print('');
if ((!isset($_GET['bit'])) && (!isset($_GET['ico'])))
{
print('Icon Categories:
');
print('
Misc');
print('
Weapon');
print('
Armor');
print('
Implant');
print('
Nano');
print('
Utility');
print('
Tower');
print('
Spirit');
print('
Perk Action');
}
else if (isset($_GET['bit']))
{
show_list($_GET['bit'],$_GET['off']);
}
else if (isset($_GET['ico']))
{
show_icon($_GET['ico']);
}
function show_list($BIT,$OFF)
{
if (!isset($OFF)) { $OFF = -1; }
$Icons = icons_get_list($BIT,$OFF);
$totalico = icons_get_count($BIT)->total;
if ($OFF < 0) { $oset = 50; }
else { $oset = bcadd(50,$OFF); }
if (bcadd($OFF,50) > $totalico)
{
$oset = 0;
}
if ($OFF <= 0)
{
$pset = bcsub(50,$totalico);
$OFF = 0;
} else {
$pset = bcsub(50,$OFF);
}
//print('
Total Icons: '.$totalico.'
');
print('
');
print('Showing '.$OFF.' - '.bcsub($oset,1).' of '.$totalico.' total icons.
');
//href="javascript:jah(\'icons.php?bit='.$BIT.'&off='.$pset.'\',\'change\')">PREV
print('PREV || NEXT');
$ttl = sizeof($Icons);
$c = 0;
print('
');
while ($c < $ttl)
{
$c2 = $c + 1; $c3 = $c + 2; $c4 = $c + 3; $c5 = $c + 4;
$c6 = $c + 5; $c7 = $c + 6; $c8 = $c + 7; $c9 = $c + 8; $c10 = $c + 9;
$ic = 0;
print('');
while ($ic < 10)
{
$ln = $c + $ic;
$iconID = $Icons[$ln];
if ($iconID < 1)
{
$iconID = 0;
$Link[$ic] = '';
}
else { $Link[$ic] = ''; }
print(''.$Link[$ic].' | ');
$ic++;
}
print('
');
$c = $c + 10;
}
print('
');
}
function show_icon($ICO)
{
// List of items that use ICO
$result = icons_get_icon($ICO);
print('
');
print('');
print('Icon ID: '.$ICO.'
');
$c = 1;
foreach ($result as $i)
{
print($c.'. '.$i.'
');
$c++;
}
print(' >> Add Tags --------------------------------------------------
');
$Tags = meta_item_tags($ICO,8192);
print('Tags: '.$Tags.'
');
if ($_SESSION['auth'])
{
print('Add a new tag!
');
print('
');
}
else {
print('Login to add tags
');
}
print('
');
}
include('rmenu.php');
include($_SERVER['DOCUMENT_ROOT'].'/tmpl/'.$TEMPLATE.'/body_bottom.tmpl');
?>