<?php
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/functions.php");
include "../".LoadLang("pub/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
$editor=1;
is_login($logininid,$loginin,$loginrnd);
$sql=$empire->query("select bqname,bqsay,funname,bq,issys,bqgs from {$dbtbpre}enewsbq where isclose=0 order by bqid");
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>帝国网站管理系统标签说明</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
  <table width="100%" border="0" cellspacing="1" cellpadding="3">
    <tr> 
      <td id='bqnav'></td>
    </tr>
  </table>
<br>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
  <tr bgcolor="#FFFFFF"> 
    <td width="50%"> 
      <table width="100%" border="0">
        <tr bgcolor="dbeaf5"> 
          <td width="20%">操作类型</td>
          <td width="80%">说明</td>
        </tr>
      </table>
    </td>
    <td> 
      <table width="100%" border="0">
        <tr bgcolor="dbeaf5"> 
          <td width="20%">操作类型</td>
          <td width="80%">说明</td>
        </tr>
      </table>
	  </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td> 
      <table width="100%" border="0">
        <tr> 
          <td width="20%" height="20"><div align="center">0</div></td>
          <td width="80%">各栏目最新</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">1</div></td>
          <td>各栏目热门</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">2</div></td>
          <td>各栏目推荐</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">9</div></td>
          <td>各栏目评论排行</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">12</div></td>
          <td>各栏目头条信息</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">15</div></td>
          <td>各栏目下载排行</td>
        </tr>
      </table></td>
    <td> 
      <table width="100%" border="0">
        <tr> 
          <td width="20%" height="20"><div align="center">3</div></td>
          <td width="80%">所有信息最新(默认表)</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">4</div></td>
          <td>所有信息热门(默认表)</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">5</div></td>
          <td>所有信息推荐(默认表)</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">10</div></td>
          <td>所有信息评论排行(默认表)</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">13</div></td>
          <td>所有信息头条(默认表)</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">16</div></td>
          <td>所有信息下载排行(默认表)</td>
        </tr>
      </table></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td> 
      <table width="100%" border="0">
        <tr> 
          <td width="20%" height="20"><div align="center">6</div></td>
          <td width="80%">专题最新信息</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">7</div></td>
          <td>专题热门信息</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">8</div></td>
          <td>专题推荐信息</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">11</div></td>
          <td>专题评论排行</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">14</div></td>
          <td>专题头条</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">17</div></td>
          <td>各专题下载排行</td>
        </tr>
      </table></td>
    <td> 
      <table width="100%" border="0">
        <tr> 
          <td width="20%" height="20"><div align="center">18</div></td>
          <td width="80%">各表最新</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">19</div></td>
          <td>各表热门</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">20</div></td>
          <td>各表推荐</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">21</div></td>
          <td>各表评论排行</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">22</div></td>
          <td>各表头条信息</td>
        </tr>
        <tr> 
          <td height="20"><div align="center">23</div></td>
          <td>各表下载排行</td>
        </tr>
      </table></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td> 
      <table width="100%" border="0">
        <tr> 
          <td width="20%" height="20" rowspan="2"><div align="center">24</div></td>
          <td width="80%">按sql查询(栏目ID='sql语句')</td>
        </tr>
        <tr>
          <td><font color="#666666">数据表前缀可用：“[!db.pre!]&quot;表示</font></td>
        </tr>
      </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
<?
$bqnav="";
while($r=$empire->fetch($sql))
{
	$bqnav.="<option value='".$r['bq']."'>".$r['bqname']."(".$r['bq'].")</option>";
?>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="<?=$r[bq]?>">
  <tr>
    <td class="header"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="3">
        <tr>
          <td width="14%">标签名称：</td>
          <td width="86%"><b><?=$r[bqname]?>&nbsp;(<?=$r[bq]?>)</b></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
        <tr> 
          <td width="14%">格式：</td>
          <td width="86%"><input type=text name="text" size=80 value="<?=stripSlashes($r[bqgs])?>"></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
        <tr>
          <td>参数说明：</td>
        </tr>
        <tr> 
          <td><?=stripSlashes($r[bqsay])?></td>
        </tr>
      </table></td>
  </tr>
</table>
<br>
<?
}
$bqnav="<select name='bq' id='bq' onchange=window.location='#'+this.options[this.selectedIndex].value><option value='' selected style='background-color:#cccccc'>标签导航</option>".$bqnav."</select>";
?>
<script>
window.bqnav.innerHTML="<?=$bqnav?>";
</script>
</body>
</html>
<?
db_close();
$empire=null;
?>
