<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="PageTitleArea">
            <div class="PageTitle">
                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:AddArticle,IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:AddArticle,IDS_PageDesc %>"></asp:Literal>
            </div>
        </div>
        <Hishop:AddArticle ID="AddArticle" runat="server">
            <SkinTemplate>
                <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
                <div class="grdGroupFormList">
                    <Hishop:ArticleView ID="addArticle" runat="server">
                        <SkinTemplate>
<table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
      <tr>
           <td class="leftTD">
                 <asp:Label ID="lblEditArticle" runat="server" style="display:none"></asp:Label>
                 <asp:Literal ID="lblArticleType" Text='<%$Resources:ArticleView,IDS_FormField_ArticleCategory %>' runat="server"></asp:Literal>：</td>
           <td class="rightTD"><Hishop:ArticleCategoryDropDownList ID="dropArticleCategory" AllowNull="true" runat="server"></Hishop:ArticleCategoryDropDownList></td>
            <td class="rightTD">
                <div id="dropArticleCategoryTip" runat="server"></div>
                <Hishop:ValidateTarget ID="ValidateTarget1" runat="server" ContainerId="ValidatorContainer" ControlToValidate="dropArticleCategory" Description="<%$Resources:ArticleView,IDS_ErrorMessage_Category %>" Nullable="false" FocusMessage="<%$Resources:ArticleView,IDS_ErrorMessage_Category %>">
                    <Validators>
                       <Hishop:DropDownListClientValidator ErrorMessage="<%$Resources:ArticleView,IDS_ErrorMessage_Category %>" />
                    </Validators>
                </Hishop:ValidateTarget>
           </td>
      </tr>
      <tr>
            <td class="leftTD"><asp:Literal ID="lblArticleTitle" Text='<%$Resources:ArticleView,IDS_FormField_ArticleTitle %>' runat="server"></asp:Literal>：</td>
            <td class="rightTD"><asp:TextBox ID="txtArticleTitle" runat="server" CssClass="input_longest"></asp:TextBox>
              <td class="rightTD">
                 <div id="txtArticleTitleTip" runat="server"></div>
                 <Hishop:ValidateTarget ID="ValidateTarget2" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtArticleTitle" Description="<%$Resources:ArticleView,IDS_ErrorMessage_ArticleTitle_FormatError %>" Nullable="false" FocusMessage="<%$Resources:ArticleView,IDS_ErrorMessage_ArticleTitle_FormatError %>">
                     <Validators>
                         <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:ArticleView,IDS_ErrorMessage_ArticleTitle_FormatError %>" LowerBound="1" UpperBound="200" />
                     </Validators>
                  </Hishop:ValidateTarget>
              </td>
          </td>
     </tr>
     <tr>
           <td class="leftTD"><asp:Literal ID="lblShortDesc" Text='<%$Resources:ArticleView,IDS_FormField_ArticleShortDesc %>' runat="server"></asp:Literal>：</td>
          <td class="rightTD"><asp:TextBox ID="txtShortDesc" TextMode="MultiLine" CssClass="input_longest" Height="70" runat="server"></asp:TextBox>    
          </td>
          <td class="rightTD">
              <div id="txtShortDescTip" runat="server"></div>
              <Hishop:ValidateTarget ID="ValidateTarget3" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtShortDesc" Description="<%$Resources:ArticleView,IDS_ErrorMessage_ArticleShortDesc_FormatError %>" Nullable="true" FocusMessage="<%$Resources:ArticleView,IDS_ErrorMessage_ArticleShortDesc_FormatError %>">
                  <Validators>
                      <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:ArticleView,IDS_ErrorMessage_ArticleShortDesc_FormatError %>" LowerBound="1" UpperBound="1000" />
                  </Validators>
              </Hishop:ValidateTarget>
          </td>
     </tr>
     <tr>
          <td class="leftTD">
           <asp:Literal ID="lblArticleDesc" Text='<%$Resources:ArticleView,IDS_FormField_ArticleDesc %>' runat="server"></asp:Literal>：</td>
         <td colspan="2" class="rightTD">
           <fckeditorv2:fckeditor id="fcContent" runat="server" Width="99%" EnableXHTML="true" EnableSourceXHTML="true" basepath="~/FCKeditor/" height="300px" ></fckeditorv2:fckeditor>
         </td>
     </tr>
 </table>
                        </SkinTemplate>
                    </Hishop:ArticleView>
                    <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
                        <tr>
                            <td class="bottonLeftTD">
                                &nbsp;
                            </td>
                            <td class="rightTD">
                                <table>
                                    <tr>
                                        <td valign="top">
                                            <asp:Button ID="btnAddArticle" runat="server" OnClientClick="return PageIsValid();"
                                                Text="<%$ Resources:Resources, IDS_Button_Add %>" CssClass="inp_L1" />
                                        </td>
                                        <td>
                                            <div class="return_inp">
                                                <a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_articlelist")%>'>
                                                    <asp:Literal runat="server" ID="lblBack" Text="<%$ Resources:ArticleView, IDS_Label_BackArticleList %>" />
                                                </a>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="rightTD">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
            </SkinTemplate>
        </Hishop:AddArticle>
    </div>
    <br />
    <div style="text-align: center">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
    </div>
    <br />
    <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
