<?php /* Smarty version Smarty-3.0.6, created on 2012-03-21 22:36:00
         compiled from "C:\wamp\www\yun3/tpl\admin/tag.html" */ ?>
<?php /*%%SmartyHeaderCode:152804f69e750931281-75499722%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cea8faa39f05893974a63cb6f227d809045a84d7' => 
    array (
      0 => 'C:\\wamp\\www\\yun3/tpl\\admin/tag.html',
      1 => 1320733684,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '152804f69e750931281-75499722',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template('admin/header.html', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
  <div id="content">
   
    <?php if (!$_smarty_tpl->getVariable('get')->value['showuser']){?>
     <h2>系统标签 | <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'tag','showuser'=>'yes'),$_smarty_tpl);?>
">用户标签</a></h2>
     <form action="" method="post">
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
         <tr>
           <th width="9%" scope="col">排序</th>
           <th width="91%" scope="col"><input type="text" name="sort"/></th>
         </tr>
         <tr>
           <th scope="col">标签名称</th>
           <th scope="col"><input type="text" name="cname" /></th>
         </tr>
       </table>
       <input type="submit" name="sysadd"  value="添加系统标签" />
     </form>
     
     
    <div class="nav"><?php echo $_smarty_tpl->getVariable('systagpager')->value;?>
</div>
    <form action="" method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table2">
       <tr>
         <th width="50" align="center" valign="middle" scope="col">排序</th>
         <th align="center" valign="middle"  scope="col">标签</th>
         <th width="100" align="center" valign="middle" scope="col">操作</th>
       </tr>
        <?php  $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('systag')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
?>
       <tr id="systag_<?php echo $_smarty_tpl->tpl_vars['d']->value['cid'];?>
">
         <td><input name="cate[<?php echo $_smarty_tpl->tpl_vars['d']->value['cid'];?>
][sort]" type="text"  value="<?php echo $_smarty_tpl->tpl_vars['d']->value['sort'];?>
" /></td>
         <td><input name="cate[<?php echo $_smarty_tpl->tpl_vars['d']->value['cid'];?>
][catename]"  type="text"  value="<?php echo $_smarty_tpl->tpl_vars['d']->value['catename'];?>
" /></td>
         <td align="right"><a href="javascript:void(0)" onclick="delsystag(<?php echo $_smarty_tpl->tpl_vars['d']->value['cid'];?>
)">删除</a></td>
       </tr>
       <?php }} ?>
    </table>
    <input name="syscate" type="submit" value="保存" />
    </form>
    <div class="nav"><?php echo $_smarty_tpl->getVariable('systagpager')->value;?>
</div>
    
<?php }else{ ?>

<h2><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'tag'),$_smarty_tpl);?>
">系统标签</a> | 用户标签</h2>
	  <div class="nav"><?php echo $_smarty_tpl->getVariable('usrtagpage')->value;?>
</div>
       <form action="" method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table2">
       <tr>
         <th align="center" valign="middle" scope="col">标签</th>
         <th width="150" align="center" valign="middle"  scope="col">添加人</th>
         <th width="50" align="center" valign="middle"  scope="col">活跃度</th>
         <th width="100" align="center" valign="middle"  scope="col">添加时间</th>
         <th width="100" align="center" valign="middle"  scope="col">最后调用时间</th>
         <th width="47" align="center" valign="middle" scope="col">操作</th>
       </tr>
        <?php  $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('usrtag')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
?>
       <tr id="usertag_<?php echo $_smarty_tpl->tpl_vars['d']->value['tid'];?>
">
         <td><input name="tag[<?php echo $_smarty_tpl->tpl_vars['d']->value['tid'];?>
]" type="text"  value="<?php echo $_smarty_tpl->tpl_vars['d']->value['title'];?>
" /></td>
         <td><?php echo $_smarty_tpl->tpl_vars['d']->value['user']['username'];?>
</td>
         <td><?php echo $_smarty_tpl->tpl_vars['d']->value['num'];?>
</td>
         <td><?php echo dtktime(array('time'=>$_smarty_tpl->tpl_vars['d']->value['time']),$_smarty_tpl);?>
</td>
         <td><?php echo dtktime(array('time'=>$_smarty_tpl->tpl_vars['d']->value['updates']),$_smarty_tpl);?>
</td>
         <td><a href="javascript:void(0)" onclick="delusertag(<?php echo $_smarty_tpl->tpl_vars['d']->value['tid'];?>
)">删除</a></td>
       </tr>
       <?php }} ?>
    </table>
    <input name="usercate" type="submit" value="保存" />
    </form>
    <div class="nav"><?php echo $_smarty_tpl->getVariable('usrtagpage')->value;?>
</div>
    
  <?php }?>  
    
   
  </div>
<?php $_template = new Smarty_Internal_Template('admin/footer.html', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
