<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>

<link href="template/<?php echo $DIRCMS['tpl_name'];?>/link/css/link.css" rel="stylesheet" type="text/css">
<title>友情链接-<?php echo $DIRCMS['site_name'];?></title>
</head>
<body>
<div class="header-bg">
  <div class="header">
    <h1><a href="<?php echo $DIRCMS['site_url'];?>"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/logo.png" width="219" height="38" alt="<?php echo $DIRCMS['site_name'];?>" title="<?php echo $DIRCMS['site_name'];?>"></a><strong><?php echo $DIRCMS['site_name'];?></strong></h1>
    <div class="h-link"><a href="<?php echo $DIRCMS['site_url'];?>">网站首页</a>|<a href="sitemaps.xml" target="_blank">RSS地图</a>|<a href="javascript:void(0);" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo $DIRCMS[site_url];?>');" title="把<?php echo $DIRCMS[site_name];?>设为首页">设为首页</a>|<a href="javascript:window.external.addFavorite('<?php echo $DIRCMS[site_url];?>','<?php echo $DIRCMS[site_name];?>');">加入收藏</a></div>
  </div>
</div>
<div class="container">
  <div class="page-wrap">
    <div class="friend-all-links">
      <dl>
        <dt><strong class="fz14 fl">友情链接</strong><span class="fr"><a href="link/index.php?action=apply">申请链接</a></span></dt>
        <dd class="border-t-no">
		  <?php $_DATA=get_sql_tag_data("SELECT * FROM dircms_linktype WHERE disabled= 0 ORDER BY orderby ASC",10,0,0,"mysql","","","","");foreach($_DATA as $no => $r)if(is_array($r)){?>
          <strong class="fri-links-sort fz14"><?php echo $r['name'];?></strong>
          <ul>
            <?php $_DATA=get_sql_tag_data("SELECT `".DB_PRE."link`.`name`,`".DB_PRE."link`.`url`,`".DB_PRE."link`.`logo`,`".DB_PRE."link`.`introduce` FROM `".DB_PRE."link` WHERE `".DB_PRE."link`.`siteid`=1 AND `".DB_PRE."link`.`disabled`=0 AND `".DB_PRE."link`.`typeid`=".intval($r[id])." ORDER BY `".DB_PRE."link`.`orderby` ASC",128);foreach($_DATA as $no => $r)if(is_array($r)){?>
			<li><a href="<?php echo $r['url'];?>" target="_blank" title="<?php if($r['introduce']) { ?><?php echo $r['introduce'];?><?php }else{ ?><?php echo $r['name'];?><?php }?>"><?php echo $r['name'];?></a></li>
			<?php }unset($_DATA); ?>
            <div class="clear"></div>
          </ul>
          <?php }unset($_DATA); ?>
        </dd>
      </dl>
    </div>
  </div>
</div>
<div class="footer">
  <ul class="foot-nav">
<?php $_DATA=get_category_data(0,0,0,0,array (
  0 => 2,
),'top',10);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
<li><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['catname'];?></a></li>
<?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
<?php if($install['link']) { ?><li><a href="<?php echo $DIRCMS['site_url'];?>link/index.php">友情链接</a></li><?php }?>
	<?php if($install['guestbook']) { ?><li><a href="<?php echo $DIRCMS['site_url'];?>guestbook/index.php">在线留言</a></li><?php }?>
	<?php if($install['notice']) { ?><li><a href="<?php echo $DIRCMS['site_url'];?>notice/index.php">网站公告</a></li><?php }?>
  </ul>
  <p class="copyright"><?php echo $DIRCMS['copyright'];?></p>
  <p class="copyright"><?php echo $DIRCMS['icpno'];?></p>
</div>
</body>
</html>