<?php /* Smarty version 2.6.19, created on 2014-03-07 03:36:43
         compiled from ../templates/category.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'db_fetchrow', '../templates/category.tpl', 1, false),array('function', 'db_fetchrows', '../templates/category.tpl', 3, false),array('modifier', 'date_format', '../templates/category.tpl', 15, false),)), $this); ?>
﻿<?php echo smarty_function_db_fetchrow(array('table' => 'categories','items' => "*",'condition' => "f_id='".($this->_tpl_vars['categoryId'])."'",'varname' => 'category'), $this);?>

<?php if ($this->_tpl_vars['category']['f_haveChild']): ?>
<?php echo smarty_function_db_fetchrows(array('table' => 'categories','items' => "f_id, f_name, f_englishName, f_haveChild",'condition' => "f_parentId='".($this->_tpl_vars['categoryId'])."'",'orderby' => "f_order ASC, f_id ASC",'varname' => 'arrCategories'), $this);?>

<?php else: ?>
<?php echo smarty_function_db_fetchrows(array('table' => 'categories','items' => "f_id, f_name, f_englishName, f_haveChild",'condition' => "f_id='".($this->_tpl_vars['categoryId'])."'",'orderby' => "f_order ASC, f_id ASC",'varname' => 'arrCategories'), $this);?>

<?php endif; ?>
<?php $this->assign('now', time()); ?>
<!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=utf-8" />
  <title><?php echo $this->_tpl_vars['category']['f_name']; ?>
 - <?php echo $this->_tpl_vars['siteName']; ?>
</title>
  <meta name="keywords" content="<?php if ($this->_tpl_vars['category']['f_keywords']): ?><?php echo $this->_tpl_vars['category']['f_keywords']; ?>
<?php else: ?><?php echo $this->_tpl_vars['category']['f_name']; ?>
<?php endif; ?>" />
  <meta name="description" content="<?php if ($this->_tpl_vars['category']['f_description']): ?><?php echo $this->_tpl_vars['category']['f_description']; ?>
<?php else: ?><?php echo $this->_tpl_vars['category']['f_name']; ?>
<?php endif; ?>" />
  <meta name="cacheTime" content="<?php echo ((is_array($_tmp=$this->_tpl_vars['now'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
"/>
  <link href="../common/category.css" rel="stylesheet" type="text/css" />
  <script src="../common/external.js" type="text/javascript"></script>
  <script src="../common/mail.js" type="text/javascript"></script>
  <base target="_blank" />
</head>
<body>
<div id="wrap">
    <div id="header">
        <div id="elogin">
            <form name=gomail onsubmit="return clickMail()" action="" method=post id=FrLgn>
                <input type=hidden name=url>
                <input type=hidden name=username>
                <input type=hidden name=type>
                <input type=hidden name=password>
                <input type=hidden name=domain>
                <input name=.intl value=cn type=hidden>
                <input value=ym name=.src type=hidden>
                <input type=hidden name=user>
                <input type=hidden name=pass>
                <input type=hidden value=true name=enterVip>
                <input type=hidden name=UserName>
                <input type=hidden name=Password>
                <input type=hidden name=u>
                <input type=hidden name=psw>
                <input type=hidden name=login>
                <input type=hidden name=LoginName>
                <input type=hidden name=usr>
                <input type=hidden name=func>
                <input type=hidden name=login_name>
                <input type=hidden name=login_password>
                <input type=hidden name=BackURL>
                <input type=hidden value=http://mail.google.com/mail?ui=html&amp;zy=l name=continue>
                <input type=hidden name=Email>
                <input type=hidden name=domainname>
                <input type=hidden value=false name=firstlogin>
                <input type=hidden name=starttime>
                <input type=hidden name=p2>
                <input type=hidden name=passwd>
                <input type=hidden name=id>
                <input type=hidden name=m>
                <input type=hidden name=mpass>
                <input type=hidden name=loginid>
                <input type=hidden name=appid>
                <input type=hidden name=ru>
                <input type=hidden name=eru>
                <input type=hidden name=fl>
                <input type=hidden name=ct>
                <input type=hidden name=vr>
                <input type=hidden name=sg>
                <input type=hidden name=vwriter>
                <input type=hidden name=email>
                <input type=hidden name=passport_51_user>
                <input type=hidden name=passport_51_password>
                <input type=hidden name=gourl>
                <input type=hidden name=Passwd>
                <input type=hidden name=vpassword>
                用户名：
                <input tabIndex=1 size=15 name=uName>
                邮箱：
                <select tabIndex=2 size=1 name=domains>
                    <optgroup label="请选择邮箱">
                    <option value=gmail>@gmail.com</option>
                    <option value=163>@163.com 网易</option>
                    <option value=sina>@sina.com 新浪</option>
                    <option value=126>@126.com 网易</option>
                    <option value=yahoo>@yahoo.com.cn</option>
                    <option value=21cn>@21cn.com</option>
                    <option value=sohu>@sohu.com 搜狐</option>
                    <option value=tom>@tom.com</option>
                    <option value=188>@188.com</option>
                    <option value=yahoocn>@yahoo.cn</option>
                    <option value=yeah>@yeah.net</option>
                    </optgroup>
                    <optgroup label="请选择其他服务">
                    <option value=baidu>百度账号</option>
                    <option value=chinaren>ChinaRen校友录</option>
                    <option value=xiaonei>校内网</option>
                    <option value=51com>51.com</option>
                    </optgroup>
                </select>
                密码：
                <input tabIndex=3 type=password size=12 name=uPw>
                <input   tabIndex=4 type=submit value=" 登录 " name=sub>
                <input type=hidden value=submit name=cmd>
            </form>
            <div class="r"><img src="http://www.2345.org/images/home.png"><a href="javascript://" target="_self" onClick="javascript:if(document.all){this.style.behavior='url(#default#homepage)';this.setHomePage('http://'+document.location.host+'/'); }else{setHomePage('http://'+document.location.host+'/')}">设为主页</a> | <img src="http://www.2345.org/images/shoucang.png"><a href="javascript:addBookmark(bookmarkname,'http://'+document.location.host+'/');" target="_self">加入收藏</a></div>
        </div>
        <div id="banner">
            <div id="logo">
                <h1><a href="../" title="<?php echo $this->_tpl_vars['siteName']; ?>
" id="logourl" target="_self"></a></h1>
            </div>
            <div id="divSearch">
                 <br>
                 <p align="right"><a href="http://s.click.taobao.com/t_9?p=mm_25720049_0_0&l=http%3A%2F%2Fmall.taobao.com%2F&eventid=101766"><img src="http://www.2345.org/images/taobao4.gif" ></a>&nbsp;<script type='text/javascript'>
alimama_pid='mm_25720049_0_0';
alimama_type='g';
alimama_tks={};
alimama_tks.style_i=1;
alimama_tks.lg_i=0;
alimama_tks.w_i=572;
alimama_tks.h_i=45;
alimama_tks.btn_i=1;
alimama_tks.txt_s='';
alimama_tks.hot_i=0;
alimama_tks.hc_c='#0065FF';
alimama_tks.c_i=0;
alimama_tks.cid_i=0;
</script>
<script type='text/javascript' src='http://a.alimama.cn/inf.js'></script>
</p>
            </div>
        </div>
    </div>
    <div id="main">
        <div class="path"><em><a href="javascript://" onclick="javascript:CopyToClipBoard();" target="_self">如果您喜欢,请告诉您身边的朋友,谢谢!</a></em>您目前的位置：<a href="../" target="_self" title="网址导航"><font color="red">首页</font></a> » <?php echo $this->_tpl_vars['category']['f_name']; ?>
</div>
        <div>
            <div id="leftContainer">
                <div id="siteclass" class="bd"> 
                    <center><a href="http://s.click.taobao.com/t_9?p=mm_25720049_0_0&l=http%3A%2F%2Fmall.taobao.com%2F&eventid=101766" target="_blank"><img src="http://www.2345.org/images/taobao2.gif"></a></center>
                    <?php echo smarty_function_db_fetchrows(array('table' => 'categories','items' => "f_id, f_name",'condition' => "f_parentId='0' AND f_autoList='1'",'orderby' => "f_order ASC, f_id ASC",'varname' => 'arrBigCategories'), $this);?>

                    <?php unset($this->_sections['secCategories']);
$this->_sections['secCategories']['name'] = 'secCategories';
$this->_sections['secCategories']['loop'] = is_array($_loop=($this->_tpl_vars['arrBigCategories'])) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['secCategories']['show'] = true;
$this->_sections['secCategories']['max'] = $this->_sections['secCategories']['loop'];
$this->_sections['secCategories']['step'] = 1;
$this->_sections['secCategories']['start'] = $this->_sections['secCategories']['step'] > 0 ? 0 : $this->_sections['secCategories']['loop']-1;
if ($this->_sections['secCategories']['show']) {
    $this->_sections['secCategories']['total'] = $this->_sections['secCategories']['loop'];
    if ($this->_sections['secCategories']['total'] == 0)
        $this->_sections['secCategories']['show'] = false;
} else
    $this->_sections['secCategories']['total'] = 0;
if ($this->_sections['secCategories']['show']):

            for ($this->_sections['secCategories']['index'] = $this->_sections['secCategories']['start'], $this->_sections['secCategories']['iteration'] = 1;
                 $this->_sections['secCategories']['iteration'] <= $this->_sections['secCategories']['total'];
                 $this->_sections['secCategories']['index'] += $this->_sections['secCategories']['step'], $this->_sections['secCategories']['iteration']++):
$this->_sections['secCategories']['rownum'] = $this->_sections['secCategories']['iteration'];
$this->_sections['secCategories']['index_prev'] = $this->_sections['secCategories']['index'] - $this->_sections['secCategories']['step'];
$this->_sections['secCategories']['index_next'] = $this->_sections['secCategories']['index'] + $this->_sections['secCategories']['step'];
$this->_sections['secCategories']['first']      = ($this->_sections['secCategories']['iteration'] == 1);
$this->_sections['secCategories']['last']       = ($this->_sections['secCategories']['iteration'] == $this->_sections['secCategories']['total']);
?>
                    <h4><?php echo $this->_tpl_vars['arrBigCategories'][$this->_sections['secCategories']['index']]['f_name']; ?>
</h4>
                    <ul class="con">
                        <?php $this->assign('parentId', $this->_tpl_vars['arrBigCategories'][$this->_sections['secCategories']['index']]['f_id']); ?>
                        <?php echo smarty_function_db_fetchrows(array('table' => 'categories','items' => "f_id, f_name, f_englishName, f_url",'condition' => "f_parentId='".($this->_tpl_vars['parentId'])."'",'orderby' => "f_order ASC, f_id ASC",'varname' => 'arrSubCategories'), $this);?>

                        <?php unset($this->_sections['secSubCategories']);
$this->_sections['secSubCategories']['name'] = 'secSubCategories';
$this->_sections['secSubCategories']['loop'] = is_array($_loop=($this->_tpl_vars['arrSubCategories'])) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['secSubCategories']['show'] = true;
$this->_sections['secSubCategories']['max'] = $this->_sections['secSubCategories']['loop'];
$this->_sections['secSubCategories']['step'] = 1;
$this->_sections['secSubCategories']['start'] = $this->_sections['secSubCategories']['step'] > 0 ? 0 : $this->_sections['secSubCategories']['loop']-1;
if ($this->_sections['secSubCategories']['show']) {
    $this->_sections['secSubCategories']['total'] = $this->_sections['secSubCategories']['loop'];
    if ($this->_sections['secSubCategories']['total'] == 0)
        $this->_sections['secSubCategories']['show'] = false;
} else
    $this->_sections['secSubCategories']['total'] = 0;
if ($this->_sections['secSubCategories']['show']):

            for ($this->_sections['secSubCategories']['index'] = $this->_sections['secSubCategories']['start'], $this->_sections['secSubCategories']['iteration'] = 1;
                 $this->_sections['secSubCategories']['iteration'] <= $this->_sections['secSubCategories']['total'];
                 $this->_sections['secSubCategories']['index'] += $this->_sections['secSubCategories']['step'], $this->_sections['secSubCategories']['iteration']++):
$this->_sections['secSubCategories']['rownum'] = $this->_sections['secSubCategories']['iteration'];
$this->_sections['secSubCategories']['index_prev'] = $this->_sections['secSubCategories']['index'] - $this->_sections['secSubCategories']['step'];
$this->_sections['secSubCategories']['index_next'] = $this->_sections['secSubCategories']['index'] + $this->_sections['secSubCategories']['step'];
$this->_sections['secSubCategories']['first']      = ($this->_sections['secSubCategories']['iteration'] == 1);
$this->_sections['secSubCategories']['last']       = ($this->_sections['secSubCategories']['iteration'] == $this->_sections['secSubCategories']['total']);
?>
                        <li><a href="<?php if ($this->_tpl_vars['arrSubCategories'][$this->_sections['secSubCategories']['index']]['f_url']): ?><?php echo $this->_tpl_vars['arrSubCategories'][$this->_sections['secSubCategories']['index']]['f_url']; ?>
<?php else: ?><?php if ($this->_tpl_vars['arrSubCategories'][$this->_sections['secSubCategories']['index']]['f_englishName']): ?><?php echo $this->_tpl_vars['arrSubCategories'][$this->_sections['secSubCategories']['index']]['f_englishName']; ?>
<?php else: ?><?php echo $this->_tpl_vars['arrSubCategories'][$this->_sections['secSubCategories']['index']]['f_id']; ?>
<?php endif; ?>.html<?php endif; ?>" target="_self"><?php echo $this->_tpl_vars['arrSubCategories'][$this->_sections['secSubCategories']['index']]['f_name']; ?>
</a></li>
                        <?php endfor; endif; ?>
                    </ul>
                    <?php endfor; endif; ?> </div>
            </div>
            <div id="rightContainer">
                <div class="adbox"> <?php echo smarty_function_db_fetchrow(array('table' => 'ads','items' => 'f_code','condition' => "f_id='2'",'varname' => 'adInfo'), $this);?>

                    <?php echo $this->_tpl_vars['adInfo']['f_code']; ?>
 </div>
                <div class="cbox" id="mclass">
                    <h3><span class="focu">分类导航</span><span onclick="document.getElementById('mclass').style.display='none';document.getElementById('mhistory').style.display='block';">浏览记录</span></h3>
                    <ul>
                        <?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=($this->_tpl_vars['arrCategories'])) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loop']['show'] = true;
$this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
$this->_sections['loop']['step'] = 1;
$this->_sections['loop']['start'] = $this->_sections['loop']['step'] > 0 ? 0 : $this->_sections['loop']['loop']-1;
if ($this->_sections['loop']['show']) {
    $this->_sections['loop']['total'] = $this->_sections['loop']['loop'];
    if ($this->_sections['loop']['total'] == 0)
        $this->_sections['loop']['show'] = false;
} else
    $this->_sections['loop']['total'] = 0;
if ($this->_sections['loop']['show']):

            for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
                 $this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
                 $this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
$this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
$this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
$this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
$this->_sections['loop']['first']      = ($this->_sections['loop']['iteration'] == 1);
$this->_sections['loop']['last']       = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
?>
                        <li ><a href="<?php if ($this->_tpl_vars['arrCategories'][$this->_sections['loop']['index']]['f_haveChild']): ?><?php if ($this->_tpl_vars['arrCategories'][$this->_sections['loop']['index']]['f_englishName']): ?><?php echo $this->_tpl_vars['arrCategories'][$this->_sections['loop']['index']]['f_englishName']; ?>
<?php else: ?><?php echo $this->_tpl_vars['arrCategories'][$this->_sections['loop']['index']]['f_id']; ?>
<?php endif; ?>.html<?php else: ?>#<?php echo $this->_tpl_vars['arrCategories'][$this->_sections['loop']['index']]['f_id']; ?>
<?php endif; ?>" target="_self"><?php echo $this->_tpl_vars['arrCategories'][$this->_sections['loop']['index']]['f_name']; ?>
</a></li>
                        <?php endfor; endif; ?>
                    </ul>
                </div>
                <div class="cbox" id="mhistory" style="display:none">
                    <h3><em><img border="0" src="../images/del.gif" onclick="ClearHistory()" alt="清理浏览记录" style="cursor:hand" /></em><span onclick="document.getElementById('mhistory').style.display='none';document.getElementById('mclass').style.display='block';">分类导航</span><span class="focu">浏览记录</span></h3>
                    <ul id="history">
                    </ul>
                </div>
                  <div class="adbox"> <?php echo smarty_function_db_fetchrow(array('table' => 'ads','items' => 'f_code','condition' => "f_id='3'",'varname' => 'adInfo'), $this);?>

                    <?php echo $this->_tpl_vars['adInfo']['f_code']; ?>
 </div>
                <div class="cbox cmbox"> <?php if ($this->_tpl_vars['category']['f_haveChild']): ?>
                    <?php echo smarty_function_db_fetchrows(array('table' => 'sites','items' => "f_name, f_url",'condition' => "(f_categoryId='".($this->_tpl_vars['categoryId'])."') AND (f_expireTime='0' OR f_expireTime>'".($this->_tpl_vars['now'])."')",'orderby' => "f_order ASC, f_id ASC",'varname' => 'arrSites'), $this);?>

                    <?php if ($this->_tpl_vars['arrSites']): ?>
                    <ul id="pagelist">
                        <?php unset($this->_sections['secSites']);
$this->_sections['secSites']['name'] = 'secSites';
$this->_sections['secSites']['loop'] = is_array($_loop=($this->_tpl_vars['arrSites'])) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['secSites']['show'] = true;
$this->_sections['secSites']['max'] = $this->_sections['secSites']['loop'];
$this->_sections['secSites']['step'] = 1;
$this->_sections['secSites']['start'] = $this->_sections['secSites']['step'] > 0 ? 0 : $this->_sections['secSites']['loop']-1;
if ($this->_sections['secSites']['show']) {
    $this->_sections['secSites']['total'] = $this->_sections['secSites']['loop'];
    if ($this->_sections['secSites']['total'] == 0)
        $this->_sections['secSites']['show'] = false;
} else
    $this->_sections['secSites']['total'] = 0;
if ($this->_sections['secSites']['show']):

            for ($this->_sections['secSites']['index'] = $this->_sections['secSites']['start'], $this->_sections['secSites']['iteration'] = 1;
                 $this->_sections['secSites']['iteration'] <= $this->_sections['secSites']['total'];
                 $this->_sections['secSites']['index'] += $this->_sections['secSites']['step'], $this->_sections['secSites']['iteration']++):
$this->_sections['secSites']['rownum'] = $this->_sections['secSites']['iteration'];
$this->_sections['secSites']['index_prev'] = $this->_sections['secSites']['index'] - $this->_sections['secSites']['step'];
$this->_sections['secSites']['index_next'] = $this->_sections['secSites']['index'] + $this->_sections['secSites']['step'];
$this->_sections['secSites']['first']      = ($this->_sections['secSites']['iteration'] == 1);
$this->_sections['secSites']['last']       = ($this->_sections['secSites']['iteration'] == $this->_sections['secSites']['total']);
?>
                        <li><a href="<?php echo $this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_url']; ?>
"><?php echo $this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_name']; ?>
</a><?php if ($this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_isRecommend']): ?><span style="color:#f00">√</span><?php endif; ?></li>
                        <?php endfor; endif; ?>
                    </ul>
                    <?php endif; ?>      
                    <?php endif; ?>
                    <?php unset($this->_sections['secCategories']);
$this->_sections['secCategories']['name'] = 'secCategories';
$this->_sections['secCategories']['loop'] = is_array($_loop=($this->_tpl_vars['arrCategories'])) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['secCategories']['show'] = true;
$this->_sections['secCategories']['max'] = $this->_sections['secCategories']['loop'];
$this->_sections['secCategories']['step'] = 1;
$this->_sections['secCategories']['start'] = $this->_sections['secCategories']['step'] > 0 ? 0 : $this->_sections['secCategories']['loop']-1;
if ($this->_sections['secCategories']['show']) {
    $this->_sections['secCategories']['total'] = $this->_sections['secCategories']['loop'];
    if ($this->_sections['secCategories']['total'] == 0)
        $this->_sections['secCategories']['show'] = false;
} else
    $this->_sections['secCategories']['total'] = 0;
if ($this->_sections['secCategories']['show']):

            for ($this->_sections['secCategories']['index'] = $this->_sections['secCategories']['start'], $this->_sections['secCategories']['iteration'] = 1;
                 $this->_sections['secCategories']['iteration'] <= $this->_sections['secCategories']['total'];
                 $this->_sections['secCategories']['index'] += $this->_sections['secCategories']['step'], $this->_sections['secCategories']['iteration']++):
$this->_sections['secCategories']['rownum'] = $this->_sections['secCategories']['iteration'];
$this->_sections['secCategories']['index_prev'] = $this->_sections['secCategories']['index'] - $this->_sections['secCategories']['step'];
$this->_sections['secCategories']['index_next'] = $this->_sections['secCategories']['index'] + $this->_sections['secCategories']['step'];
$this->_sections['secCategories']['first']      = ($this->_sections['secCategories']['iteration'] == 1);
$this->_sections['secCategories']['last']       = ($this->_sections['secCategories']['iteration'] == $this->_sections['secCategories']['total']);
?>
                    <h3><em><a href="#" target="_self">返回顶部↑</a></em><?php echo $this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_name']; ?>
<a name="<?php echo $this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_id']; ?>
"></a></h3>
                    <ul>
                        <?php if ($this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_haveChild']): ?>
                        <?php $this->assign('categoryId', $this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_id']); ?>
                        <?php echo smarty_function_db_fetchrows(array('table' => 'categories','items' => "f_id, f_name, f_englishName",'condition' => "f_parentId='".($this->_tpl_vars['categoryId'])."' AND f_name!=''",'orderby' => "f_order ASC, f_id ASC",'varname' => 'arrSubCategories'), $this);?>

                        <?php unset($this->_sections['secSites']);
$this->_sections['secSites']['name'] = 'secSites';
$this->_sections['secSites']['loop'] = is_array($_loop=($this->_tpl_vars['arrSubCategories'])) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['secSites']['show'] = true;
$this->_sections['secSites']['max'] = $this->_sections['secSites']['loop'];
$this->_sections['secSites']['step'] = 1;
$this->_sections['secSites']['start'] = $this->_sections['secSites']['step'] > 0 ? 0 : $this->_sections['secSites']['loop']-1;
if ($this->_sections['secSites']['show']) {
    $this->_sections['secSites']['total'] = $this->_sections['secSites']['loop'];
    if ($this->_sections['secSites']['total'] == 0)
        $this->_sections['secSites']['show'] = false;
} else
    $this->_sections['secSites']['total'] = 0;
if ($this->_sections['secSites']['show']):

            for ($this->_sections['secSites']['index'] = $this->_sections['secSites']['start'], $this->_sections['secSites']['iteration'] = 1;
                 $this->_sections['secSites']['iteration'] <= $this->_sections['secSites']['total'];
                 $this->_sections['secSites']['index'] += $this->_sections['secSites']['step'], $this->_sections['secSites']['iteration']++):
$this->_sections['secSites']['rownum'] = $this->_sections['secSites']['iteration'];
$this->_sections['secSites']['index_prev'] = $this->_sections['secSites']['index'] - $this->_sections['secSites']['step'];
$this->_sections['secSites']['index_next'] = $this->_sections['secSites']['index'] + $this->_sections['secSites']['step'];
$this->_sections['secSites']['first']      = ($this->_sections['secSites']['iteration'] == 1);
$this->_sections['secSites']['last']       = ($this->_sections['secSites']['iteration'] == $this->_sections['secSites']['total']);
?>
                        <li><a href="<?php if ($this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_englishName']): ?><?php echo $this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_englishName']; ?>
<?php else: ?><?php echo $this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_id']; ?>
<?php endif; ?>.html#<?php echo $this->_tpl_vars['arrSubCategories'][$this->_sections['secSites']['index']]['f_id']; ?>
" target="_self"><?php echo $this->_tpl_vars['arrSubCategories'][$this->_sections['secSites']['index']]['f_name']; ?>
</a></li>
                        <?php endfor; endif; ?>
                        <?php else: ?>
                        <?php $this->assign('categoryId', $this->_tpl_vars['arrCategories'][$this->_sections['secCategories']['index']]['f_id']); ?>
                        <?php echo smarty_function_db_fetchrows(array('table' => 'sites','items' => "f_id, f_name, f_color, f_isRecommend, f_url",'condition' => "(f_categoryId='".($this->_tpl_vars['categoryId'])."') AND (f_expireTime='0' OR f_expireTime>'".($this->_tpl_vars['now'])."')",'orderby' => "f_order ASC, f_id ASC",'varname' => 'arrSites'), $this);?>

                        <?php unset($this->_sections['secSites']);
$this->_sections['secSites']['name'] = 'secSites';
$this->_sections['secSites']['loop'] = is_array($_loop=($this->_tpl_vars['arrSites'])) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['secSites']['show'] = true;
$this->_sections['secSites']['max'] = $this->_sections['secSites']['loop'];
$this->_sections['secSites']['step'] = 1;
$this->_sections['secSites']['start'] = $this->_sections['secSites']['step'] > 0 ? 0 : $this->_sections['secSites']['loop']-1;
if ($this->_sections['secSites']['show']) {
    $this->_sections['secSites']['total'] = $this->_sections['secSites']['loop'];
    if ($this->_sections['secSites']['total'] == 0)
        $this->_sections['secSites']['show'] = false;
} else
    $this->_sections['secSites']['total'] = 0;
if ($this->_sections['secSites']['show']):

            for ($this->_sections['secSites']['index'] = $this->_sections['secSites']['start'], $this->_sections['secSites']['iteration'] = 1;
                 $this->_sections['secSites']['iteration'] <= $this->_sections['secSites']['total'];
                 $this->_sections['secSites']['index'] += $this->_sections['secSites']['step'], $this->_sections['secSites']['iteration']++):
$this->_sections['secSites']['rownum'] = $this->_sections['secSites']['iteration'];
$this->_sections['secSites']['index_prev'] = $this->_sections['secSites']['index'] - $this->_sections['secSites']['step'];
$this->_sections['secSites']['index_next'] = $this->_sections['secSites']['index'] + $this->_sections['secSites']['step'];
$this->_sections['secSites']['first']      = ($this->_sections['secSites']['iteration'] == 1);
$this->_sections['secSites']['last']       = ($this->_sections['secSites']['iteration'] == $this->_sections['secSites']['total']);
?>
                        <li><a href="<?php echo $this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_url']; ?>
" id="<?php echo $this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_id']; ?>
"><?php if ($this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_color']): ?><span style="color:<?php echo $this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_color']; ?>
"><?php echo $this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_name']; ?>
</span><?php else: ?><?php echo $this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_name']; ?>
<?php endif; ?></a><?php if ($this->_tpl_vars['arrSites'][$this->_sections['secSites']['index']]['f_isRecommend']): ?><span style="color:#f00">√</span><?php endif; ?></li>
                        <?php endfor; endif; ?>
                        <?php endif; ?>
                    </ul>
                    <?php endfor; endif; ?> </div>
                    <a href="http://s.click.taobao.com/t_9?p=mm_25720049_0_0&l=http%3A%2F%2Fmall.taobao.com%2F&eventid=101766"><img src="http://cb.alimama.cn/tbkunion/images/mall/images/760x90.gif" width="760px" height="90px" border="0" ></a>
            </div>
            <div style="clear:both"></div>
        </div>
    </div>    
    <div id="opt"><a href="../" target="_self"> <img src="../images/btn_back.jpg"></a> <a href="javascript:closeWin();" target="_self"><img src="../images/btn_close.jpg"></a></div>
    <div id="footer">
        <div class="link"><a href="../apps/about.html">关于我们</a> | <a href="../apps/about.html#contact">联系我们</a> | <a href="../apps/about.html#ad">广告招商</a> | <a href="../apps/about.html#add">网站提交</a> | <script src="http://s21.cnzz.com/stat.php?id=2956699&web_id=2956699" language="JavaScript"></script>
</div>
        <div>Copyright 2010 <a href="http://www.2345.org" target="_blank" title="2345网址大全">2345</a>&nbsp;&nbsp;All rights reserved. &nbsp;<a href="http://www.2345.org/code/" target="_blank">网址导航源码下载</a></div>
    </div>
    <script language="javascript">history_show();</script>
</div>
</body>
</html>