<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="EditProduct.aspx.cs" Inherits="KstCMS.KstCMS_Manager.WebContent.products.pro.EditProduct" %>
<html>
<head   runat="server">
    <title></title>
    <style>

.ActiveBtn{border:1px groove ButtonHighlight; background-color:ActiveCaption; cursor:pointer; font-weight:bold}
.ActiveBtn1{border:1px outset ButtonHighlight; background-color:ButtonFace; cursor:pointer}

</style>

<script type="text/javascript" src="../../../xheditor1.1.6/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../../../xheditor1.1.6/xheditor-1.1.6-zh-cn.min.js"></script>
        <script type="text/javascript" language="javascript">



            function ClickBtn(OBJ, x) {
                var os = new Array(x);
                for (var i = 0; i < x; i++) {
                    os[i] = document.getElementById("btn" + i);
                    if (OBJ == os[i]) {
                        os[i].className = "ActiveBtn";
                        document.getElementById("desc" + i).style.display = "";
                    } else {
                        os[i].className = "ActiveBtn1";
                        document.getElementById("desc" + i).style.display = "none";
                    }
                }

            }

   

        </script>
</head>
<body>    
    <form id="form1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>

    <div class="MainBox">
      <table class="PageTitle" width="98%"><tr><td>
       <img src="<%=SysRootUrl %>/KstCMS_Manager/images/sms_type13.gif" align="absmiddle" /> <b> 录入产品</b> </td></tr></table>
         <table width="98%" border="0" cellspacing="0" cellpadding="5">


        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td width="8%" nowrap class="Line">所属分类：</td>
          <td width="92%" class="Line">
           <asp:DropDownList ID="drp_SiteList" runat="server" AutoPostBack="true">
           </asp:DropDownList>
           <asp:DropDownList ID="drp_MenuList" runat="server" AutoPostBack="true">
           </asp:DropDownList>
           <asp:DropDownList ID="drp_ProLBList" runat="server" AutoPostBack="true">
           </asp:DropDownList>
          </td>
        </tr>
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td width="8%" nowrap class="Line">产品编码：</td>
          <td width="92%" class="Line">
              <asp:TextBox ID="txt_ProNo" Width="300" MaxLength="50" runat="server" CssClass="input_text"></asp:TextBox> <span style="color:Red">*</span>
          </td>
        </tr>
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td width="8%" nowrap class="Line">产品名称：</td>
          <td width="92%" class="Line">
              <asp:TextBox ID="txt_ProName" Width="300" MaxLength="50" runat="server" CssClass="input_text"></asp:TextBox> <span style="color:Red">*</span>
          </td>
        </tr>
         <asp:Literal ID="lit_Field" runat="server"></asp:Literal>
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">默认图片：</td>
          <td class="Line">
              <input type="hidden" name="OldPic3" value="<%=OldPic3 %>" />
              <input type="hidden" name="OldPic2" value="<%=OldPic2 %>" />
              <input type="hidden" name="OldPic1" value="<%=OldPic1 %>" />
              <asp:TextBox ID="txt_DefaultPic" runat="server" Width="300" Enabled="false"  BackColor="ButtonFace" CssClass="input_text"></asp:TextBox>
              <input type="button" class="uPageBtn" value="上传" onclick="OpenDialog('../../../Module/Upload/index.aspx?FromUpload=0&TextBoxId=txt_DefaultPic',400,150);" />
              </td>
        </tr>

         <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td width="8%" nowrap class="Line">产品简介：</td>
          <td width="92%" class="Line">
             <textarea name="txt_ProDoc" id="txt_ProDoc" runat="server" rows="3" style="width: 100%"></textarea>
          </td>
        </tr>

         <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td width="8%" nowrap class="Line">相关选项：</td>
          <td width="92%" class="Line">
              <asp:CheckBox ID="chk_IsNew" runat="server" />最新 
              <asp:CheckBox ID="chk_IsTj" runat="server" />推荐 
              <asp:CheckBox ID="chk_IsHot" runat="server" />热门&nbsp;&nbsp;
              更新时间:<asp:TextBox ID="txt_uTime"
                  runat="server" Width="100" MaxLength="20" CssClass="input_text"></asp:TextBox> 
             排序：<asp:TextBox ID="txt_SortNo"
                  runat="server" Width="50" CssClass="input_text"></asp:TextBox> 
          </td>
        </tr>
         <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td colspan="2" class="Line">
<table width="100" border="0" cellspacing="2" cellpadding="6">
  <tr>
    <asp:Literal ID="lit_descFildName" runat="server"></asp:Literal>
    <td id="<%=SeoField %>" align="center" nowrap="nowrap" class="ActiveBtn" onclick="ClickBtn(this,<%=btnNum %>)">SEO相关</td>
  </tr>
</table>
          </td>
        </tr>
<asp:Literal ID="lit_descFieldValue" runat="server"></asp:Literal>
<tbody id="<%=SeoFieldValue %>">
          <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">Meta关键字：</td>
          <td class="Line">
             <asp:TextBox ID="txt_MateKey" runat="server" TextMode="MultiLine" Rows="3" Width="300" ></asp:TextBox> 
          </td>
        </tr>

        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">Meta注解：</td>
          <td class="Line">
             <asp:TextBox ID="txt_MateDesc" runat="server" TextMode="MultiLine" Rows="3" Width="300" ></asp:TextBox>
          </td>
        </tr>
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">网页URL：</td>
          <td class="Line">
          <input type="hidden" id="FileName" name="FileName" runat="server" />
             <asp:TextBox ID="txt_FileName" runat="server" MaxLength="100" Width="200" CssClass="input_text"></asp:TextBox>为空默认产品编码为网页名称.
              选择模板：<asp:DropDownList ID="drp_TempList" runat="server"> 
              </asp:DropDownList>
                  <asp:CheckBox ID="chk_create" runat="server">
                  </asp:CheckBox>立即生成内容页.
          </td>
        </tr>
</tbody>
        <tr class="Linetr1" >
          <td nowrap class="Line">&nbsp;</td>
          <td nowrap class="Line">
              <asp:Button ID="OkBtn" runat="server" Text=" 确 定 " CssClass="bigButton" OnClientClick="return check();" />
              <input type="button" value="返回" class="bigButton" onclick="history.go(-1);" />
              </td>
        </tr>

        </table>


       
    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
    <ProgressTemplate>正在处理中，请稍候...</ProgressTemplate>
    </asp:UpdateProgress>
    </form>
   
</body>

</html>