<?php /* Smarty version Smarty-3.1.10, created on 2012-12-13 20:55:12
         compiled from "D:\APMServ\www\htdocs\themes\default\top.html" */ ?>
<?php /*%%SmartyHeaderCode:733450c9c0879009b5-76053231%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '274735642a279d4a02d6c1e66862699cff493eac' => 
    array (
      0 => 'D:\\APMServ\\www\\htdocs\\themes\\default\\top.html',
      1 => 1355403038,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '733450c9c0879009b5-76053231',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_50c9c087a9bb10_08757870',
  'variables' => 
  array (
    'instat' => 0,
    'outstat' => 0,
    'new' => 0,
    'hot' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50c9c087a9bb10_08757870')) {function content_50c9c087a9bb10_08757870($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


	<div id="mainbox" class="clearfix">
    	<div id="mainbox-left">
        	<div class="topsite" style="margin-right: 15px;">
            	<h2>入站排行榜 TOP10</h2>
                <ul class="toplist">
                   	<?php  $_smarty_tpl->tpl_vars['instat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['instat']->_loop = false;
 $_from = get_websites(0,10,false,'instat'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['instat_website']['iteration']=0;
foreach ($_from as $_smarty_tpl->tpl_vars['instat']->key => $_smarty_tpl->tpl_vars['instat']->value){
$_smarty_tpl->tpl_vars['instat']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['instat_website']['iteration']++;
?>
                   	<li><span><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['instat_website']['iteration'];?>
.</span><a href="<?php echo $_smarty_tpl->tpl_vars['instat']->value['web_link'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['instat']->value['web_name'];?>
"><?php echo $_smarty_tpl->tpl_vars['instat']->value['web_name'];?>
</a> - <em><a href="<?php echo $_smarty_tpl->tpl_vars['instat']->value['web_url'];?>
" target="_blank" onclick="clickout(<?php echo $_smarty_tpl->tpl_vars['instat']->value['web_id'];?>
)"><?php echo $_smarty_tpl->tpl_vars['instat']->value['web_url'];?>
</a></em></li>
                   	<?php } ?>
               	</ul>
            </div>
        	<div class="topsite">
            	<h2>出站排行榜 TOP10</h2>
                <ul class="toplist">
                   	<?php  $_smarty_tpl->tpl_vars['outstat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['outstat']->_loop = false;
 $_from = get_websites(0,10,false,'outstat'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['outstat_website']['iteration']=0;
foreach ($_from as $_smarty_tpl->tpl_vars['outstat']->key => $_smarty_tpl->tpl_vars['outstat']->value){
$_smarty_tpl->tpl_vars['outstat']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['outstat_website']['iteration']++;
?>
                   	<li><span><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['outstat_website']['iteration'];?>
.</span><a href="<?php echo $_smarty_tpl->tpl_vars['outstat']->value['web_link'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['outstat']->value['web_name'];?>
"><?php echo $_smarty_tpl->tpl_vars['outstat']->value['web_name'];?>
</a> - <em><a href="<?php echo $_smarty_tpl->tpl_vars['outstat']->value['web_url'];?>
" target="_blank" onclick="clickout(<?php echo $_smarty_tpl->tpl_vars['outstat']->value['web_id'];?>
)"><?php echo $_smarty_tpl->tpl_vars['outstat']->value['web_url'];?>
</a></em></li>
                   	<?php } ?>
               	</ul>
            </div>
        	<div class="topsite mag" style="margin-right: 15px;">
            	<h2>最新收录 TOP10</h2>
                <ul class="toplist">
                   	<?php  $_smarty_tpl->tpl_vars['new'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['new']->_loop = false;
 $_from = get_websites(0,10,false,'ctime'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['new_website']['iteration']=0;
foreach ($_from as $_smarty_tpl->tpl_vars['new']->key => $_smarty_tpl->tpl_vars['new']->value){
$_smarty_tpl->tpl_vars['new']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['new_website']['iteration']++;
?>
                   	<li><span><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['new_website']['iteration'];?>
.</span><a href="<?php echo $_smarty_tpl->tpl_vars['new']->value['web_link'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['new']->value['web_name'];?>
"><?php echo $_smarty_tpl->tpl_vars['new']->value['web_name'];?>
</a> - <em><a href="<?php echo $_smarty_tpl->tpl_vars['new']->value['web_url'];?>
" target="_blank" onclick="clickout(<?php echo $_smarty_tpl->tpl_vars['new']->value['web_id'];?>
)"><?php echo $_smarty_tpl->tpl_vars['new']->value['web_url'];?>
</a></em></li>
                   	<?php } ?>
               	</ul>
            </div>
        	<div class="topsite mag">
            	<h2>热门浏览 TOP10</h2>
                <ul class="toplist">
                   	<?php  $_smarty_tpl->tpl_vars['hot'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hot']->_loop = false;
 $_from = get_websites(0,10,false,'views'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['hot_website']['iteration']=0;
foreach ($_from as $_smarty_tpl->tpl_vars['hot']->key => $_smarty_tpl->tpl_vars['hot']->value){
$_smarty_tpl->tpl_vars['hot']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['hot_website']['iteration']++;
?>
                   	<li><span><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['hot_website']['iteration'];?>
.</span><a href="<?php echo $_smarty_tpl->tpl_vars['hot']->value['web_link'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['hot']->value['web_name'];?>
"><?php echo $_smarty_tpl->tpl_vars['hot']->value['web_name'];?>
</a> - <em><a href="<?php echo $_smarty_tpl->tpl_vars['hot']->value['web_url'];?>
" target="_blank" onclick="clickout(<?php echo $_smarty_tpl->tpl_vars['hot']->value['web_id'];?>
)"><?php echo $_smarty_tpl->tpl_vars['hot']->value['web_url'];?>
</a></em></li>
                   	<?php } ?>
               	</ul>
            </div>
        </div>
        <div id="mainbox-right">
            <div style="height: 250px;">
            <?php echo get_adcode(2);?>

            </div>
            <div style="margin-top: 15px;"><?php echo get_adcode(2);?>
</div>
        </div>
    </div>

<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>