<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Site_Tag" %>

<!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>
    <title>Tag管理</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Site_Tag.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">    
	<!-- Tag列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico7 F B">Tag管理</span></div>
            </div>
        <!-- end 标 -->
        
        <div class="clear-8"></div>
            <a href="Site_Tag_Control.aspx?com=add" class="bule-btn m_right6 W f_left text_centent">添加Tag</a>
            <span class="tbox_form"><input type="text" id="keySerach_txt" value="<%=key %>" class="input162 f_left m_right6" /></span>
            <a href="#" id="keySerach_Btn" rel="<%=getFormUrl %>" class="bule-btn W f_left text_centent">Tag查找</a>

            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>
        
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="30%" class="text_left">Tag名称 <span class="X NoB">[Tag数量:<%=_pageCount %>]</span></th>
                    <th width="12%">是否属搜索Tag</th>
                    <th width="50%">Tag链接地址</th>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody id="article_Tbody">
            <%if (_tagListDat.Rows.Count > 0) %>
            <%{ %>
                <%for (int i = 0; i < _tagListDat.Rows.Count; i++) %>
                <%{ %>
            	    <tr>
                        <td class="text_left"><span style="<%=_tagListDat.Rows[i]["color"].ToString()==""?"":"color:"+_tagListDat.Rows[i]["color"].ToString()+""%>;<%=_tagListDat.Rows[i]["isbold"].ToString()=="True"?"font-weight:bold":""%>"><%=_tagListDat.Rows[i]["name"].ToString()%></span></td>
                        <td>
                    	    <%=_tagListDat.Rows[i]["issearch"].ToString()=="True"?"是":"否"%>
                        </td>
                        <td>
                    	    <%=_tagListDat.Rows[i]["url"].ToString()%>
                        </td>
                        <td>
                    	    <a href="Site_Tag_Control.aspx?com=alter&tagname=<%=_tagListDat.Rows[i]["name"].ToString()%>&tagid=<%=_tagListDat.Rows[i]["id"].ToString() %>" class="Q underline">[编辑]</a>
                            <br />
                            <a href="<%=_tagListDat.Rows[i]["id"].ToString() %>" rev="<%=_tagListDat.Rows[i]["name"].ToString() %>" rel="del" class="R underline">[删除]</a>
                        </td>
                    </tr>
                <%} %>  
            <%} %>
            <%else %>
            <%{ %>
            <tr>
                <td  colspan="3" class="text_left"><span class="V">暂无数据</span> <a class="Q B underline" href="Site_Tag_Control.aspx?com=add">[马上添加]</a></td>
            </tr>
            <%} %>
            </tbody>
            <tfoot>
            	<tr>
                    <th width="100%" colspan="3" class="text_left">
                    <a href="Site_Tag_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加Tag</a>
                    <p class="PageBox">
                        <%=getPagesInfo%>
                    </p>
                    <div class="clear-16"></div>
                    </th>
                </tr>
            </tfoot>
        </table>
        <!-- end 通用table -->
    <!-- end Tag列表管理 -->
</div>

</body>
</html>
