<?php /* Smarty version 2.6.25, created on 2012-07-06 00:18:03
         compiled from top_bar.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'urlencode', 'top_bar.tpl', 61, false),array('modifier', 'count', 'top_bar.tpl', 105, false),array('modifier', 'escape', 'top_bar.tpl', 111, false),array('modifier', 'trim', 'top_bar.tpl', 111, false),)), $this); ?>
<?php echo '<script type="text/javascript">'; ?><?php echo '

var view1 = 0;
var view2 = 0;

'; ?><?php echo '</script><div id="menu"><ul><li><div class="split"></div></li><li><a href=""onclick ="return false;"onmouseover="document.getElementById(\'bar1\').style.display=\'block\';"onmouseout="if(view1==0) document.getElementById(\'bar1\').style.display=\'none\';"><span class="dropdown">提交</span></a><div id="bar1" style="display: none;" onmouseover="this.style.display=\'block\'; view1++;" onmouseout="this.style.display=\'none\';  view1--;"><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/submit.php'; ?><?php if (! empty ( $this->_tpl_vars['category']['ID'] ) && $this->_tpl_vars['category']['ID'] > 0): ?><?php echo '?c='; ?><?php echo $this->_tpl_vars['category']['ID']; ?><?php echo ''; ?><?php endif; ?><?php echo '">&raquo;&nbsp;&nbsp;Link</a><br/><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/submit_article.php'; ?><?php if (! empty ( $this->_tpl_vars['category']['ID'] ) && $this->_tpl_vars['category']['ID'] > 0): ?><?php echo '?c='; ?><?php echo $this->_tpl_vars['category']['ID']; ?><?php echo ''; ?><?php endif; ?><?php echo '" style="border-top: 1px dotted #A4A4A4;">&raquo;&nbsp;&nbsp;文章</a></div></li><li><div class="split"></div></li><li><a href=""onclick ="return false;"onmouseover="document.getElementById(\'bar2\').style.display=\'block\';"onmouseout="if(view2==0) document.getElementById(\'bar2\').style.display=\'none\';"><span class="dropdown">Latest</span></a><div id="bar2" style="display: none;" onmouseover="this.style.display=\'block\'; view1++;" onmouseout="this.style.display=\'none\';  view1--;"><a href="'; ?><?php if (! @ENABLE_REWRITE): ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/index.php?list=latest'; ?><?php else: ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/latest-links.html'; ?><?php endif; ?><?php echo '">&raquo;&nbsp;&nbsp;最新链接</a><a href="'; ?><?php if (! @ENABLE_REWRITE): ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/index.php?list=latestarticles'; ?><?php else: ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/latest-articles.html'; ?><?php endif; ?><?php echo '"  style="border-top: 1px dotted #A4A4A4;">&raquo;&nbsp;&nbsp;最新文章</a></div></li><li><div class="split"></div></li><li><a href="'; ?><?php if (! @ENABLE_REWRITE): ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/index.php?list=top'; ?><?php else: ?><?php echo ''; ?><?php echo @DOC_ROOT; ?><?php echo '/top-hits.html'; ?><?php endif; ?><?php echo '" title="浏览最受欢迎链接"><span>最高点击率</span></a></li><li><div class="split"></div></li><li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/contact.php">联系</a></li></ul></div></div><div class="right"></div><a class="rss" href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/rss.php?'; ?><?php if (! empty ( $this->_tpl_vars['search'] )): ?><?php echo 'search='; ?><?php echo urlencode($this->_tpl_vars['search']); ?><?php echo ''; ?><?php elseif ($this->_tpl_vars['list']): ?><?php echo 'list='; ?><?php echo $this->_tpl_vars['list']; ?><?php echo ''; ?><?php else: ?><?php echo 'c='; ?><?php echo $this->_tpl_vars['category']['ID']; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['sort']): ?><?php echo '&amp;s='; ?><?php echo $this->_tpl_vars['sort']; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['p']): ?><?php echo '&amp;p='; ?><?php echo $this->_tpl_vars['p']; ?><?php echo ''; ?><?php endif; ?><?php echo '"><img src="'; ?><?php echo @DOC_ROOT; ?><?php echo '/templates/'; ?><?php echo @USE_TEMPLATE; ?><?php echo '/images/rss.jpg" alt="RSS" /></a></div></div></div><div id="contentwrapper"><div id="content"><div id="contentTop"></div><div class="clear"></div><div id="contentMiddle">'; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "left_side.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo '<div id="main"><ul id="main_container" style="list-style-type: none; padding: 0px; margin: 0;"><li>'; ?><?php if (! $this->_tpl_vars['uid'] & ! $this->_tpl_vars['search'] & empty ( $this->_tpl_vars['category']['ID'] ) & ! $this->_tpl_vars['list'] & $this->_tpl_vars['scriptname'] == 'index'): ?><?php echo ''; ?><?php $_from = $this->_tpl_vars['widgets']['MAIN_ON_HOMEPAGE']['TOP']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?><?php echo ''; ?><?php if ($this->_tpl_vars['v']['SETTINGS']['DISPLAY_IN_BOX'] == 'Yes'): ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "widget_central_top.tpl", 'smarty_include_vars' => array('TITLE' => $this->_tpl_vars['v']['SETTINGS']['TITLE'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php echo $this->_tpl_vars['v']['CONTENT']; ?><?php echo ''; ?><?php if ($this->_tpl_vars['v']['SETTINGS']['DISPLAY_IN_BOX'] == 'Yes'): ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "widget_central_bot.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php endforeach; endif; unset($_from); ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php $_from = $this->_tpl_vars['widgets']['MAIN_NOT_ON_HOMEPAGE']['TOP']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?><?php echo ''; ?><?php if ($this->_tpl_vars['v']['SETTINGS']['DISPLAY_IN_BOX'] == 'Yes'): ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "widget_vertical_top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php echo $this->_tpl_vars['v']['CONTENT']; ?><?php echo ''; ?><?php if ($this->_tpl_vars['v']['SETTINGS']['DISPLAY_IN_BOX'] == 'Yes'): ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "widget_vertical_bot.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php endforeach; endif; unset($_from); ?><?php echo ''; ?><?php endif; ?><?php echo '</li></ul>'; ?><?php echo ''; ?><?php if (count($this->_tpl_vars['path']) > 1): ?><?php echo '<div class="path">'; ?><?php $this->assign('current_path', ""); ?><?php echo ''; ?><?php $_from = $this->_tpl_vars['path']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['path'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['path']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['cat']):
        $this->_foreach['path']['iteration']++;
?><?php echo ''; ?><?php $this->assign('current_path', ($this->_tpl_vars['current_path']).($this->_tpl_vars['cat']['TITLE_URL'])."/"); ?><?php echo ''; ?><?php if (! ($this->_foreach['path']['iteration'] == $this->_foreach['path']['total'])): ?><?php echo '<a href="'; ?><?php if (@ENABLE_REWRITE): ?><?php echo ''; ?><?php echo $this->_tpl_vars['current_path']; ?><?php echo ''; ?><?php else: ?><?php echo 'index.php?c='; ?><?php echo $this->_tpl_vars['cat']['ID']; ?><?php echo ''; ?><?php endif; ?><?php echo '" '; ?><?php if (($this->_foreach['path']['iteration'] <= 1)): ?><?php echo 'id="firstPath"'; ?><?php endif; ?><?php echo '>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['cat']['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</a>'; ?><?php else: ?><?php echo '<span>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['cat']['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</span>'; ?><?php endif; ?><?php echo ''; ?><?php endforeach; endif; unset($_from); ?><?php echo '</div>'; ?><?php endif; ?><?php echo ''; ?>


<?php if ($this->_tpl_vars['uLevel'] == 1): ?>
 <?php echo '
 <style type="text/css">
     .placeholder {
         border: 1px solid #FCEFA1;
         background: #FDFADF; 
         color: #363636;
         width: 187px;
         height: 60px;
         margin: 14px;
     }
     
     .placeholder_central {
         border: 1px solid #FCEFA1;
         background: #FDFADF; 
         color: #363636;
         width: 496px;
         height: 60px;
         margin: 16px;
     }
 </style>
 
 <script type="text/javascript">
 
 jQuery(function($) {
 
         $("#sortable_left").sortable({
             placeholder: "placeholder",
             connectWith: "#sortable_right",
             opacity: 0.6,
             cursor: "move",
             stop: function() {
                 var left_hash = \'\';
                 var right_hash = \'\';
                 $(\'#sortable_left li\').each(function(i){
                     if ($(this).attr(\'id\'))
                     left_hash += $(this).attr(\'id\') + \',\';
                 });
                 $(\'#sortable_right li\').each(function(i){
                     if ($(this).attr(\'id\'))
                     right_hash += $(this).attr(\'id\') + \',\';
                 });
                 $.ajax({
                     url: "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/admin/frontend_edit_widget.php",
                     cache: false,
                     data: {
                         action: "ORDER",
                         left_hash: left_hash,
                         right_hash: right_hash,
                         zone: "left"
                     },
                 });
             }
         });
         
         $("#sortable_right").sortable({
             placeholder: "placeholder",
             connectWith: "#sortable_left",
             opacity: 0.6,
             cursor: "move",
             stop: function() {
                 var left_hash = \'\';
                 var right_hash = \'\';
                 $(\'#sortable_left li\').each(function(i){
                     if ($(this).attr(\'id\'))
                     left_hash += $(this).attr(\'id\') + \',\';
                 });
                 $(\'#sortable_right li\').each(function(i){
                     if ($(this).attr(\'id\'))
                     right_hash += $(this).attr(\'id\') + \',\';
                 });
                 $.ajax({
                     url: "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/admin/frontend_edit_widget.php",
                     cache: false,
                     data: {
                         action: "ORDER",
                         left_hash: left_hash,
                         right_hash: right_hash,
                         zone: "left"
                     },
                 });
             }
         });
         
         $("#sortable_central").sortable({
             placeholder: "placeholder_central",
             connectWith: "#main_container",
             opacity: 0.6,
             cursor: "move",
             stop: function() {
                 var central_hash = \'\';
                 $(\'#sortable_central li\').each(function(i){
                     if ($(this).attr(\'id\'))
                     central_hash += $(this).attr(\'id\') + \',\';
                 });
                 $.ajax({
                     url: "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/admin/frontend_edit_widget.php",
                     cache: false,
                     data: {
                         action: "ORDER",
                         central_hash: central_hash
                     },
                 });
             }
         }); 
 
 });
 
 </script>
 '; ?>

 
 <?php endif; ?>