<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>
<br>
<?if(IsAccess(C_LINK_WHO)){?><a href="links.php?l=<?=LANGUAGE?>&a=add"><b><?=SUBMIT_SITE?></b></a><?}?>
<br><br>
<TABLE bgcolor="<?=C_TBCOLOR?>" ALIGN=CENTER width="<?=C_WIDTH?>"  CELLSPACING="2" CELLPADDING="0">
<TR> 
  <TD bgcolor="<?=COLOR1?>" VALIGN="TOP"> 
<TABLE  bgcolor="<?=COLOR1?>" align=center border=0 width="<?=C_WIDTH?>" CELLSPACING="" CELLPADDING="12">
<tr>
<td>
<br>
<center>
  <span class=head><?=LINKS?></span>
</center>
<br>
<?while(isset($categories[$p])) { /* Categories - Begin */?>
<Table CellSpacing="0" CellPadding="0" width="<?=C_WIDTH?>"><Tr><Td width="<?=C_WIDTH?>" valign="top">
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="0" width="<?=C_WIDTH?>" class=mes>
  <Tr align="left"><Td width=50%><b style='font-size:14px;'>:: <a href="<?=GenLink('LinksCat',array(LANGUAGE,0,$cat_id[$p],$categories[$p]))?>"><?=$categories[$p]?></a> (<?=$cat_links_number[$cat_id[$p]]?>)</b></Td>  
   <Td><?$f = (CAT_NUM%2) ? floor(CAT_NUM/2)+$p+1 : floor(CAT_NUM/2)+$p;if(isset($categories[$f]) && $f) {?>
   <b style='font-size:14px;'>:: <a href="<?=GenLink('LinksCat',array(LANGUAGE,0,$cat_id[$f],$categories[$f]))?>"><?=$categories[$f]?></a> (<?=$cat_links_number[$cat_id[$f]]?>)</b>
   <?} else $p = CAT_NUM/2 - 1;?>
   </Td>
</Tr>  
</Table>  </Td></Tr></Table><br>
<?$p++;if($p == (CAT_NUM/2)) break;} /* Categories - End */?>
<br></td></tr></table></TD></TR></TABLE><br><br><br><br>
