<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Property_SetProperty, QianboCMS" EnableEventValidation="false" %>
<!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>
<script type="text/javascript" src="../../Js/jquery.js"></script>
<script type="text/javascript" src="../../Js/lhgdialog/lhgdialog.min.js?self=true"></script>
<script language="javascript" type="text/javascript" src="../../Js/Common.js"></script>
<link rel="stylesheet" type="text/css" href="../Css/layout.css" />
<script language="javascript">
function EWEBeditor_Create(s_ID, s_Style){
    document.write('<input type="hidden" name="'+s_ID+'" value="">'
        +'<iframe id="'+s_ID+'__Iframe" src="../../Editor/eWebEditor.htm?id='+s_ID+'&style='+s_Style+'" width="0" height="0" style="display: none;" frameborder="0" scrolling="no"></iframe>');
}
function EWEBeditor_ShowDialog(s_ID, s_Type, s_Mode, s_LinkID_SavePathFileName, s_LinkID_SaveFileName, s_LinkID_OriginalFileName){
    var editor = document.getElementById(s_ID+'__Iframe').contentWindow;
    editor.openUploadDialog(s_Type, s_Mode, s_LinkID_SavePathFileName, s_LinkID_SaveFileName, s_LinkID_OriginalFileName)
}
EWEBeditor_Create("eWebEditor1", "standard650");
</script>
</head>

<body>
<form id="form1" runat="server">
  <div>
    <table width="99%" cellspacing="1" cellpadding="0" class="wzdh" align="center">
      <tr>
        <td style="padding-left: 10px;"><img src="../Images/Skin/Default/you.gif" align="absmiddle" /> 您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="PropertyManager.aspx">属性管理</a> &gt;&gt;
          <asp:Literal ID="ltInfo" runat="server" Text="添加属性"></asp:Literal></td>
      </tr>
    </table>
    <table width="99%" cellspacing="1" cellpadding="0" class="border" align="center">
      <tr class="wzlist">
        <td><asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="SetProperty.aspx">添加属性</asp:HyperLink> | <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="PropertyManager.aspx">属性列表</asp:HyperLink> | <a href="#" onclick="javascript:window.history.back();">返回</a></td>
      </tr>
    </table>
    <table width="99%" align="center" class="border" cellspacing="1" cellpadding="0">
      <tr>
        <td class="bqleft">所属属性：</td>
        <td class="bqright"><asp:DropDownList ID="ddlProperty" runat="server"></asp:DropDownList></td>
      </tr>
      <tr>
        <td class="bqleft">属性中文名：</td>
        <td class="bqright"><asp:TextBox ID="txtPropertyCName" runat="server"></asp:TextBox>
          <span style="color: red;">*</span></td>
      </tr>
      <tr>
        <td class="bqleft">属性英文名：</td>
        <td class="bqright"><asp:TextBox ID="txtPropertyEName" runat="server"></asp:TextBox>
          <span style="color: red;">*</span></td>
      </tr>
      <tr>
        <td class="bqleft">属性扩展名：</td>
        <td class="bqright"><asp:RadioButtonList ID="rdoPropertyExtName" runat="server" RepeatDirection="Horizontal">
            <asp:ListItem Value="1" Selected="true">.html</asp:ListItem>
            <asp:ListItem Value="2">.htm</asp:ListItem>
            <asp:ListItem Value="3">.shtml</asp:ListItem>
            <asp:ListItem Value="4">.aspx</asp:ListItem>
          </asp:RadioButtonList></td>
      </tr>
<script type="text/javascript">
var jq = jQuery.noConflict();
jQuery(function(){
    jQuery('#TemplatePath').click(function(){
        jQuery.dialog({
            id: 'txtTemplatePath',
            lock: true,
            title: '选择模板',
            content: "url:../Common/SelectFile.aspx?ControlId=" + escape('txtTemplatePath') + "&StartPath=" + escape('/Template') + "",
            width: 800,
            height: 500
        });
    });
});
</script>
      <tr>
        <td class="bqleft">属性模板：</td>
        <td class="bqright"><asp:TextBox ID="txtTemplatePath" MaxLength="255" runat="server" Width="300px" Text="" />
          <input type="button" value="选择模板" id="TemplatePath" class="btn" />
          <span style="color: red;">*</span></td>
      </tr>
      <tr>
        <td class="bqleft">属性图片：</td>
        <td class="bqright"><asp:TextBox ID="txtPic" runat="server" Width="300px"></asp:TextBox>
          <input id="btnUploadPic" class="btn" type="button" value="选择图片" onclick="EWEBeditor_ShowDialog('eWebEditor1', 'image', '0', 'txtPic', '', '')" />
          <asp:HyperLink ID="hyViewImg" runat="server" Visible="false">查看图片</asp:HyperLink>
          <br />
          <input id="FilePicPath" type="text" style="display: none;" value="special_img|0" /></td>
      </tr>
      <tr class="tdbg">
        <td class="bqleft">属性Meta关键词：</td>
        <td class="bqright"><asp:TextBox ID="txtPropertyKeyword" MaxLength="100" runat="server" Width="300px"></asp:TextBox></td>
      </tr>
      <tr class="tdbg">
        <td class="bqleft">属性Meta网页描述：</td>
        <td class="bqright"><asp:TextBox ID="txtPropertyContent" Height="60px" runat="server" Width="300px" TextMode="MultiLine"></asp:TextBox></td>
      </tr>
      <tr>
        <td class="bqleft">属性存放结构：</td>
        <td class="bqright"><asp:DropDownList ID="ddlPropertyDir" runat="server">
            <asp:ListItem Value="1">Property/模型/属性名.htm</asp:ListItem>
            <asp:ListItem Value="2">Property/模型/属性名/Index.htm</asp:ListItem>
            <asp:ListItem Value="3">Property/模型/年份/属性名.htm</asp:ListItem>
            <asp:ListItem Value="4">Property/模型/年份/属性名/Index.htm</asp:ListItem>
          </asp:DropDownList></td>
      </tr>
      <tr>
        <td class="bqleft">属性排序值：</td>
        <td class="bqright"><asp:TextBox ID="txtOrderValue" runat="server" Text="0"></asp:TextBox></td>
      </tr>
      <tr>
        <td class="bqleft"></td>
        <td class="bqright"><asp:Button ID="bntSetProperty" runat="server" Text="添加属性" CssClass="btn" OnClick="bntSetProperty_Click" /></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>