<%@ page language="C#" masterpagefile="~/SiteServer/MasterPage/PageTemplate.Master" autoeventwireup="true" inherits="SiteServer_Article_AddContent, v5star.Web" title="Untitled Page" theme="Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <aspx:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadOPTxt="添加"
        HeadTitleTxt="文章管理">
        <aspx:HeadMenuButtonItem ButtonIcon="back.gif" ButtonName="返回" ButtonPopedom="List"
            ButtonUrl="history.go(-1)" ButtonUrlType="JavaScript" ButtonVisible="True" />
    </aspx:HeadMenuWebControls>
    <aspx:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <aspx:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="文章信息">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_title" colspan="4">
                        详细信息
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        标题：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:TextBox ID="txtArticle_Title" runat="server" Width="75%" title="请输入标题，长度不超过500个汉字~200:!"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtArticle_Title"
                            ErrorMessage="必填"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        副标题：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:TextBox ID="txtArticle_SubTitle" runat="server" Width="75%" title="请输入副标题，长度不超过500个汉字~500"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        关键字：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:TextBox ID="txtArticle_Keyword" runat="server" Width="75%" title="请输入关键字，长度不超过500个汉字~500"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        标题颜色：</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:TextBox ID="txtArticle_Color" runat="server" Width="66px" title="请点击右边的图片选择颜色"></asp:TextBox>
                        <img id="Img2" src="../../Images/color1.gif" border="0" alt="选择颜色" onmouseover="src='../../Images/color2.gif'"
                            onmouseout="src='../../Images/color1.gif'" onclick='SelectColor(ctl00_PageBody_txtArticle_Color)'  style="vertical-align:middle;"/>
                    </td>
                    <td align="right" class="table_body table_body_NoWidth">
                        字体大小：</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:TextBox ID="txtArticle_Size" runat="server" title="请输入字体大小，必须为整数，不输入请保留默认。~:int!">12</asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        标题字体：</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:DropDownList ID="txtArticle_Family" runat="server" title="请选择字体~:">
                        </asp:DropDownList></td>
                    <td align="right" class="table_body table_body_NoWidth">
                        来源：</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:TextBox ID="txtArticle_Source" runat="server" title="请输入来源，长度不超过500个汉字~500:"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        是否置顶：</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:RadioButtonList ID="txtArticle_IsOnTop" runat="server" RepeatDirection="Horizontal" title="请选择置顶项"~:
                            RepeatLayout="Flow">
                            <asp:ListItem Value="True">是</asp:ListItem>
                            <asp:ListItem Selected="True" Value="False">否</asp:ListItem>
                        </asp:RadioButtonList></td>
                    <td align="right" class="table_body table_body_NoWidth">
                        是否推荐：</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:RadioButtonList ID="txtArticle_IsElite" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="True">是</asp:ListItem>
                            <asp:ListItem Selected="True" Value="False">否</asp:ListItem>
                        </asp:RadioButtonList></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        标题图片：</td>
                    <td class="table_none table_none_NoWidth">
                        <aspx:Upload ID="Upload1" runat="server" Ext=".jpg|.gif|.png|.bmp" IsShowButton="False"
                            ThumbNailHeight="0" ThumbNailWidth="0" />
                    </td>
                    <td align="right" class="table_body table_body_NoWidth">
                        个性模板：</td>
                    <td class="table_none table_none_NoWidth" style="white-space:nowrap;">
                        <asp:TextBox ID="txtArticle_Template" runat="server" title="如果选择了模板，生成页面使将以这个模板页生成文件。~200:"></asp:TextBox>
                        <input id="button4" class="cbutton" name="buttonselect" onclick="javascript:ShowTempID()"
                            type="button" value="选择模板" />
                        <input class="cbutton" onclick="javascript:ClearTempVal();" type="button" value="清除" />
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        meta关键字：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:TextBox ID="txtArticle_Metakeywords" runat="server" Width="75%" title="meta关键字是用于告诉搜索引擎此新闻的关键词。所谓的SEO。~500:"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        meta描述：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:TextBox ID="txtArticle_Metadescription" runat="server" Rows="3" TextMode="MultiLine" title="meta描述是用于告诉搜索引擎此新闻主要内容。所谓的SEO。~500:"
                            Width="75%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        简介：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:TextBox ID="txtArticle_Intro" runat="server" Rows="3" TextMode="MultiLine" Width="75%" title="当前新闻主要内容，不超过500字~500:"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        内容：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <aspx:FCKeditor ID="txtArticle_Content" runat="server" Height="300px">
                        </aspx:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        类型：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:RadioButtonList ID="txtArticle_Status" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="-1">草稿</asp:ListItem>
                            <asp:ListItem Value="0" Selected="True">正文</asp:ListItem>
                            <asp:ListItem Value="1">直接发布</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 15%">
                        是否继续添加：</td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:CheckBox ID="CheckBox1" runat="server" Text="是"/></td>
                </tr>
                <tr>
                    <td colspan="4">
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="4">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                        <input id="Reset1" class="button_bak" type="reset" value="重填" />&nbsp;
                    </td>
                </tr>
            </table>
        </aspx:TabOptionItem>
    </aspx:TabOptionWebControls>

    <script type="text/javascript">
    function SelectColor(sCtrl){  
    var url = 'SelColor.htm?color='+sCtrl.value;
    var arr = showModalDialog(url,window,'dialogWidth:280px;dialogHeight:250px;help:no;scroll:no;status:no');
    if (arr) {
        sCtrl.value=arr;       
        sCtrl.style.backgroundColor=arr;
        sCtrl.style.color=arr;
    }
}
    </script>

    <script type="text/javascript">
        function openWin(u, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l;
            s += ', toolbar=no, scrollbars=yes, menubar=no, location=no, resizable=no';
            window.open(u, 'oWin', s);
        }
         function ShowTempID() {          
            openWin("ShowTemplate.aspx", 400, 300);
        }
        function ClearTempVal() {       
            $("#<%=this.txtArticle_Template.ClientID %>").val("");      
        }
    </script>
</asp:Content>
