<%
    //-----------------------------------------------------------
    // 文件名称: Article_Article_OperateLink.aspx
    // 页面名称: 外部文章添加/编辑
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-08-21
    //-----------------------------------------------------------
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Article_Article_OperateLink, V5Shop.Shop.Article" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!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 runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />

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

</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【外部文章添加】" />
                <asp:Label ID="lblEdit" runat="server" Text="【外部文章编辑】" />
                <asp:HyperLink ID="lkReturn" runat="server" Text="返回列表" />
            </div>
        </div>
        <div style="text-align:center;">
            <asp:Panel runat="server" ID="PanelShow" Width="100%">
                <div>
                    <table id="OperateTable" style="width:100%;border:0px;text-align:center;" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width:20%;height:30pt;text-align:right"><asp:Label ID="Label1" runat="server" Text="标题：" /></td>
                            <td style="width:80%;text-align:left;color:red"><asp:TextBox ID="txtTitle" runat="server" Width="60%" MaxLength="250" />
                                *
                                <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="txtTitle"
                                    Display="Dynamic" ErrorMessage="必须输入。"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 20%; height: 30pt; text-align: right">
                                <asp:Label ID="Label3" runat="server" Text="新闻地址："></asp:Label></td>
                            <td style="width: 80%; color: red; text-align: left">
                                <asp:TextBox ID="txtUrl" runat="server" Width="300px" MaxLength="250"></asp:TextBox>
                                *
                                <asp:RequiredFieldValidator ID="rfvUrl" runat="server" ControlToValidate="txtUrl"
                                    Display="Dynamic" ErrorMessage="必须输入。"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td style="width:20%;height:30pt;text-align:right">
                                <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="所属类别" HideSelects="False" ImageURL="images/help.gif" Text="选择一个文章的分类。" />
                                <asp:Label ID="Label4" runat="server" Text="所属类别：" /></td>
                            <td style="width:80%;text-align:left;color:red">
                                <asp:DropDownList ID="ddlCategory" runat="server" Width="155px">
                                    <asp:ListItem Value="-1">请选择</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="width:20%;height:30pt;text-align:right"><asp:Label ID="Label5" runat="server" Text="作者/发布人：" /></td>
                            <td style="width:80%;text-align:left;color:red"><asp:TextBox ID="txtAuther" runat="server" MaxLength="250" /></td>
                        </tr>
                        <tr>
                            <td style="width:20%;height:30px;text-align:right;">
                                <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="导航图片" HideSelects="False" ImageURL="images/help.gif" Text="显示在管理列表里的图片。" />
                                <asp:Label ID="Label7" runat="server" Text="导航图片：" /></td>
                            <td style="width:80%;text-align:left;color:red">
                                <cc1:ImageBox ID="imgSrcList" runat="server" ShowSelect="true" Text="选择导航图片" BoxWidth="60%" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width:20%;text-align:right;">
                                <cc1:HelpCtrl ID="HelpCtrl4" runat="server" FontColor="red" Header="文章导读" HideSelects="False" ImageURL="images/help.gif" Text="文章导读信息。" />
                                <asp:Label ID="Label10" runat="server" Text="文章导读：" /></td>
                            <td style="width:80%;text-align:left;color:red">
                                <asp:TextBox ID="txtArticleReview" runat="server" Height="60px" TextMode="MultiLine" Width="60%" CausesValidation="True" />
                                *
                                <asp:RegularExpressionValidator ID="revArticleReview" runat="server" ControlToValidate="txtArticleReview" ErrorMessage="长度必须在250以内" ValidationExpression=".{0,250}" Display="Dynamic" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width:20%;height:30px;text-align:right;"><asp:Label ID="Label14" runat="server" Text="排序号：" /></td>
                            <td style="width:80%;text-align:left;color:red">
                                <cc1:NumberBox ID="txtOrderID" runat="server" IsInt="True" MaxLength="8" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width:20%;height:30px;text-align:right;"><asp:Label ID="Label15" runat="server" Text="文章属性：" /></td>
                            <td style="width:80%;text-align:left;color:red">
                                <asp:CheckBoxList ID="cblArticlePropertyCode" runat="server" CssClass="input2"
                                RepeatDirection="Horizontal" CellPadding="1" CellSpacing="1"/>
                            </td>
                        </tr>
                        <tr>
                            <td style="width:20%;height:30px;text-align:right;"></td>
                            <td style="width:80%;text-align:left;color:red">
                                <asp:CheckBox ID="chkIsShow" runat="server" CssClass="input3" Text="在前台显示" />
                                <asp:CheckBox ID="chkIsTop" runat="server" CssClass="input3" Text="置顶" /></td>
                        </tr>
                        <tr>
                            <td align="center" style="text-align: center;" colspan="2">
                                <br />
                                <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click" Text="确定" CssClass="button" />
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                                <asp:Button id="btnReturn" onclick="btnReturn_Click" runat="server" Text="返回列表" CssClass="button" CausesValidation="false" />
                                <br />
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <uc2:PageBottom ID="PageBottom" runat="server" />
        </div>
        <div id="hiddenfield">
            <asp:HiddenField ID="OldOrderID" runat="server" Value="-1" />
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="IsEdit" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
            <uc1:HiddenField ID="Alert" runat="server" />
        </div>
    </form>        
	<script type="text/javascript">
    //加TABLE样式
    InitTrClass();
	</script>
</body>
</html>
