<%@ Page Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="Seomanage.aspx.cs" Inherits="Mvcb2b.admin.Seomanage" Title="网站SEO" %>
<%@ MasterType VirtualPath="Admin.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" src="../Comja/val_num.js"></script>
   
<div class="path">当前位置： 系统管理 >>  网站标题信息设置</div>
<h3>网站标题信息</h3>
    <asp:Literal ID="msg1" runat="server"></asp:Literal>
        <asp:GridView ID="GridView1"  HorizontalAlign="Center" Width="98%" EnableViewState="False" 
                                runat="server" AllowPaging="True" AutoGenerateColumns="False" 
                                OnPageIndexChanging="haopage" AllowSorting="True" OnRowDeleting="Haodel" 
                                OnRowEditing="haoedit" GridLines="None" DataKeyNames="id" CellPadding="4" 
                                ForeColor="#333333" >
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" HorizontalAlign="Center" />
                <Columns >
                <asp:BoundField DataField="id" HeaderText="编号" SortExpression="id" />
                    <asp:TemplateField HeaderText="SEO类型">
                        <ItemTemplate>
                            <%#Classn(DataBinder.Eval(Container.DataItem, "classid").ToString())%>                        
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="title" HeaderText="网站标题信息" />
                    <asp:CommandField HeaderText="编辑" ShowEditButton="True" ShowHeader="True" 
                        UpdateText="edit" />
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True"  ShowHeader="True" 
                        DeleteText="&lt;div onclick=&quot;return confirm('确实要删除吗?');&quot;&gt;删除&lt;/div&gt;" />
            </Columns>        
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
        </asp:GridView>  
        <div class="pagemsg"><asp:label id="Message" runat="server" ></asp:label>
				 &nbsp; 直接进入 <asp:textbox  id="gopage" Width="30px" runat="server" > </asp:textbox> 
            页 <asp:button id ="Submithao"  Text="Go" runat="server" OnClick="Submithao_Click"></asp:button>  </div>
				 <br />
				 <br />
	<table border="0" class="tableadd2"  align="center" >
    <tr>
        <td colspan="2" valign="middle" style="text-align:center;"><Label ID="Label1" runat="server">
            添加网站标题信息</Label><Label ID="Label2" runat="server" >标题信息修改</Label></td>
    </tr>
     <tr>
        <td width="270" align="right">优化页面：</td><td ><asp:DropDownList ID="classid_txt" runat="server">
        <asp:ListItem Value="1">首页信息</asp:ListItem>
        <asp:ListItem Value="2">内页信息</asp:ListItem>
         </asp:DropDownList></td>
    </tr>
    <tr>
        <td align="right">标题：</td><td ><asp:TextBox ID="title_txt" runat="server"  style="width:100%"  TextMode="MultiLine"  Height="60"></asp:TextBox></td>
    </tr>
    <tr>
        <td align="right">关键字：</td><td ><asp:TextBox ID="keywords_txt" runat="server"  style="width:100%" TextMode="MultiLine"  Height="60"></asp:TextBox>
            </td>
    </tr>
    <tr>
        <td align="right">描述：</td><td ><asp:TextBox ID="description_txt" runat="server"  style="width:100%" TextMode="MultiLine"  Height="60"></asp:TextBox>
            </td>
    </tr>
    <tr>
        <td  colspan="2"  style="text-align:center;">
            <asp:Button ID="Add" runat="server" Text="添加"  Width="80px" OnClick="Add_Click"></asp:Button>
            <asp:Button ID="Edit" runat="server"  Text="修改" Width="80px" onclick="Edit_Click"   /> 	  
            <asp:validationsummary id="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False"></asp:validationsummary>  
        </td>
    </tr>
    <tr><td></td>
        <td  >
        <h4>? 帮助：正确设置标题便于SEO.</h4>
        <ul>        
        <li>1. 标题信息中要包含“<%=Data.Bkname%>”信息.</li>
        <li>2. 首页标题只对网站首页设置，包括全部的信息.</li>
        <li>3. 内页标题只对内页公共信息进行设置，其他信息程序会自动添加.</li>
        </ul>
        </td></tr>
</table>
</asp:Content>
