<%@ page language="C#" autoeventwireup="true" inherits="Admin_channel_YX_News, App_Web_270qha-a" %>

<%@ Register Src="../Admin_Btm.ascx" TagName="ChangHope_btm" TagPrefix="Chp" %>
<%@ Register TagPrefix="ChangHope" TagName="NewsClass" Src="~/Admin/channel/Article_Class.ascx" %>
<%@ Register TagPrefix="ChangeHope" TagName="News" Src="~/Admin/NewsClass.ascx" %>
<%@ Register TagPrefix="ChangeHope" TagName="Chklogin" Src="~/Admin/YX_CheckLogin.ascx" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<ChangeHope:Chklogin _Column="9" ID="chk1" runat="server" />
<!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 id="Head1" runat="server">
    <title>无标题页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../style/style.css" type="text/css" />

    <script language="javascript" type="text/javascript" src="../style/JScript.js"></script>

</head>
<body>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
        <tr>
            <td>
                <img src="../images/r_1.gif" alt="" />
            </td>
            <td width="100%" background="../images/r_0.gif">
            </td>
            <td>
                <img src="../images/r_2.gif" alt="" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <form id="form1" runat="server">
                <table align="center" cellpadding="4" cellspacing="1" border="0" width="100%" class="toptable grid">
                    <tr>
                        <td height="25" class="category t2" width="100">
                            文章管理
                        </td>
                        <td class="category">
                            <asp:HyperLink ID="HyperLink1" runat="server">[文章管理]</asp:HyperLink>
                            <asp:HyperLink ID="HyperLink2" runat="server">[添加文章]</asp:HyperLink>
                        </td>
                    </tr>
                </table>
                <asp:Panel ID="Panel1" runat="server" Width="100%">
                    <table width="100%" height="446" border="0" align="center" cellpadding="1" cellspacing="1"
                        id="TABLE1">
                        <tr>
                            <td class="topbg B" style="width: 114px">
                                设置名称
                            </td>
                            <td height="25" class="topbg B" style="width: 660px">
                                基本参数设置
                            </td>
                            <td width="10%" class="topbg B">
                                设置说明
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#F6F6F6" style="width: 114px">
                                所属分类：
                            </td>
                            <td height="25" align="left" bgcolor="#F6F6F6" style="width: 660px">
                                <ChangHope:NewsClass ID="news" runat="server" />
                            </td>
                            <td bgcolor="#F6F6F6">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#F6F6F6" style="width: 114px; height: 25px;">
                                标题：
                            </td>
                            <td align="left" bgcolor="#F6F6F6" style="height: 25px; width: 660px;">
                                <asp:TextBox ID="CH2" runat="server" Width="395px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="CH2"
                                    ErrorMessage="该项必须填写"></asp:RequiredFieldValidator>
                            </td>
                            <td bgcolor="#F6F6F6" style="height: 25px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#F6F6F6" style="width: 114px">
                                标识：
                            </td>
                            <td height="25" align="left" bgcolor="#F6F6F6" style="width: 660px">
                                <input id="CH14" type="checkbox" runat="server" style="border: 0" name="CH5" />热点
                                <input id="CH16" type="checkbox" runat="server" style="border: 0" name="CH5" />置顶
                                <input id="CH15" type="checkbox" runat="server" style="border: 0" name="CH5" />推荐
                                <input id="Checkbox2" type="checkbox" runat="server" style="border: 0" name="CH5" />首页图片
                            </td>
                            <td bgcolor="#F6F6F6">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#F6F6F6" style="width: 114px">
                                首页图片：
                            </td>
                            <td height="25" align="left" valign="middle" bgcolor="#F6F6F6" style="width: 660px">
                                <table>
                                    <tr>
                                        <td>
                                            <input name="imgUrl" type="text" id="imgUrl" runat="server" style="width: 163px" />
                                        </td>
                                        <td>
                                            <iframe id="upfile" src="../YX_Product/YX_UpFile.aspx" scrolling="no" frameborder="0"
                                                width="300px" height="25"></iframe>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td bgcolor="#F6F6F6">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#F6F6F6" style="height: 300px; width: 114px;">
                                新闻内容：
                            </td>
                            <td bgcolor="#F6F6F6" style="height: 264px; width: 660px;">
                                <textarea id="content1" name='content1' cols="20" rows="2" style="display: none"
                                    runat="server"></textarea>
                                <FTB:FreeTextBox ID="FreeTextBox1" ToolbarType="OfficeXP" runat="server" Width="600px"
                                    HelperFilesPath="../../YX_UpFile" ImageGalleryPath="YX_UpFile">
                                </FTB:FreeTextBox>
                            </td>
                            <td bgcolor="#F6F6F6" style="height: 264px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#f6f6f6" style="height: 27px; width: 114px;">
                                审核：
                            </td>
                            <td align="left" bgcolor="#f6f6f6" style="height: 27px; width: 660px;">
                                <asp:CheckBox ID="CheckBox1" runat="server" Text="审核" />
                                <asp:HiddenField ID="HiddenField1" runat="server" />
                            </td>
                            <td bgcolor="#f6f6f6" style="height: 27px">
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#F6F6F6" style="width: 114px">
                            </td>
                            <td height="25" bgcolor="#F6F6F6" align="center" style="width: 660px">
                                &nbsp;<asp:Button onmousemove="showBtnOver(this)" onmouseout="showBtnOut(this)" CssClass="submitMiniGreen"
                                    ID="Button1" runat="server" Text="添   加" OnClick="Button1_Click" />
                                <input type="button" onmousemove="showBtnOver(this)" onmouseout="showBtnOut(this)"
                                    class="submitMiniGreen" value="返回上一级" onclick="history.back()" />
                            </td>
                            <td bgcolor="#F6F6F6">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="3">
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="Panel2" runat="server" Width="100%">
                    <table width="100%" height="25" border="0" cellpadding="2" cellspacing="2">
                        <tr>
                            <td height="25" class="category" width="100">
                                搜索
                            </td>
                            <td align="right" class="style3" style="width: 100px">
                                &nbsp;&nbsp;&nbsp;按类别查询：
                            </td>
                            <td align="left" class="style3" style="width: 100px">
                                <ChangHope:NewsClass ID="c5hnews" runat="server" />
                            </td>
                            <td align="right" class="style3" style="width: 50px">
                                &nbsp;&nbsp;&nbsp;状态：
                            </td>
                            <td align="left" class="style3" style="width: 50px">
                                <select name="stat" id="stat" runat="server">
                                    <option value="1">全部</option>
                                    <option value="2">热点</option>
                                    <option value="3">置顶</option>
                                    <option value="4">推荐</option>
                                    <option value="5">审核</option>
                                </select>
                            </td>
                            <td align="right" class="style3" style="width: 100px">
                                &nbsp;&nbsp;&nbsp;按标题查询：
                            </td>
                            <td align="left" class="style3" style="width: 100px">
                                <asp:TextBox ID="sj" runat="server" />
                            </td>
                            <td align="left" class="style3">
                                <asp:Button ID="Button3" runat="server" Text="查　询" onmousemove="showBtnOver(this)"
                                    onmouseout="showBtnOut(this)" CssClass="submitMiniGreen" OnClick="Button3_Click" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                        <tr>
                            <td width="100%">
                                <asp:DataGrid ID="dg1" AutoGenerateColumns="False" PageSize="20" runat="server" Width="100%"
                                    AllowPaging="True" OnItemDataBound="dg1_ItemDataBound" CellPadding="0" CellSpacing="0">
                                    <HeaderStyle Height="30px" CssClass="topbg" HorizontalAlign="Center" />
                                    <ItemStyle Height="25px" HorizontalAlign="Center" />
                                    <Columns>
                                        <asp:TemplateColumn HeaderText="选   择">
                                            <ItemTemplate>
                                                <input id="YX_CH" name="YX_CH" type="checkbox" style="border: 0" value="<%# DataBinder.Eval(Container.DataItem,"YX_ID") %>" />
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="I  D">
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem,"YX_ID") %>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="所属分类">
                                            <ItemTemplate>
                                                <%# Ret_name(Convert.ToInt16(DataBinder.Eval(Container.DataItem, "YX_NewsClass")))%>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="新闻标题">
                                            <ItemTemplate>
                                                <a href="YX_EditNews.aspx?YX_MID=<%#DataBinder.Eval(Container.DataItem, "YX_ID")%>&ChannelID=<%#Eval("YX_ChannelID") %>">
                                                    <%# ChangeHope.ChangeHope_fc.newstr(Eval("YX_NewsTitle").ToString(),15)%></a>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="状　　态">
                                            <ItemTemplate>
                                                <%#Ret_stat(Convert.ToInt16(Eval("YX_Stat1")), "热点")%>
                                                <%#Ret_stat(Convert.ToInt16(Eval("YX_Stat2")), "置顶")%>
                                                <%#Ret_stat(Convert.ToInt16(Eval("YX_Stat3")), "推荐")%>
                                                <%#Ret_stat(Convert.ToInt16(Eval("YX_NewsSH")), "审核")%>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="添加时间">
                                            <ItemTemplate>
                                                <%#DataBinder.Eval(Container.DataItem, "YX_AddTime")%>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="操　　作">
                                            <ItemTemplate>
                                                <a href="YX_EditNews.aspx?YX_MID=<%#DataBinder.Eval(Container.DataItem, "YX_ID")%>&ChannelID=<%#Eval("YX_ChannelID") %>">
                                                    <img src="../../images/icon_edit.gif" style="border: 0" alt="编辑" /></a>
                                                <a href="../<%# Ret_url(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "YX_ID")),Convert.ToString(DataBinder.Eval(Container.DataItem, "YX_AddTime")))%>">
                                                    <img src="../../images/icon_view.gif" style="border: 0" alt=" 预览" /></a>
                                                <a href="?YX_FS=Del&YX_MID=<%#DataBinder.Eval(Container.DataItem, "YX_ID")%>&ChannelID=<%#Eval("YX_ChannelID") %>"
                                                    onclick="return isdel()">
                                                    <img src="../../images/no.gif" style="border: 0" alt=" 删除" /></a>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                    </Columns>
                                    <PagerStyle Visible="False" />
                                </asp:DataGrid>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table align="center" cellpadding="4" cellspacing="1" border="0" width="100%" class="toptable grid">
                                    <tr bgcolor="#ffffff">
                                        <td align="center" bgcolor="#ffffff" style="width: 900px; color: 000000; text-align: left;">
                                            <asp:Label ID="Label1" CssClass="font1" runat="server" Text="Label"></asp:Label>
                                            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                                            &nbsp;
                                            <asp:HyperLink ID="start" runat="server" ForeColor="#000000">首　页</asp:HyperLink>
                                            &nbsp;
                                            <asp:HyperLink ID="prev" runat="server" ForeColor="#000000"> 上一页</asp:HyperLink>
                                            &nbsp;
                                            <asp:HyperLink ID="next" runat="server" ForeColor="#000000">下一页</asp:HyperLink>
                                            &nbsp;
                                            <asp:HyperLink ID="max" runat="server" ForeColor="#000000">末　页</asp:HyperLink>
                                            <span class="font1">转向</span>
                                            <asp:DropDownList ID="iPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="sic">
                                            </asp:DropDownList>
                                            <input id="chkall" type="checkbox" onclick="CheckAll(this.form)" style="border: 0" />全选
                                            <asp:DropDownList ID="DropDownList1" runat="server">
                                                <asp:ListItem Value="0">-批量审核-</asp:ListItem>
                                                <asp:ListItem Value="10">-批量解除审核-</asp:ListItem>
                                                <asp:ListItem Value="1">-批量删除-</asp:ListItem>
                                                <asp:ListItem Value="4">-批量热点-</asp:ListItem>
                                                <asp:ListItem Value="5">-批量解除热点-</asp:ListItem>
                                                <asp:ListItem Value="2">-批量置顶-</asp:ListItem>
                                                <asp:ListItem Value="3">-批量解除置顶-</asp:ListItem>
                                                <asp:ListItem Value="6">-批量推荐-</asp:ListItem>
                                                <asp:ListItem Value="7">-批量解除推荐-</asp:ListItem>
                                                <asp:ListItem Value="8">-全部删除-</asp:ListItem>
                                                <asp:ListItem Value="9">-全部审核-</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:Button ID="Button2" runat="server" Text="执行操作" onmousemove="showBtnOver(this)"
                                                onmouseout="showBtnOut(this)" CssClass="submitMiniGreen" OnClientClick="return isExc()"
                                                OnClick="Button2_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                </form>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <img src="../images/r_4.gif" alt="" />
            </td>
            <td>
            </td>
            <td>
                <img src="../images/r_3.gif" alt="" />
            </td>
        </tr>
    </table>
    <Chp:ChangHope_btm ID="chp1" runat="server" />
</body>
</html>
