<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Property_PropertyManager, 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 runat="server">
<title>属性管理</title>
<script language="javascript" type="text/javascript" src="../../Js/Common.js"></script>
<link rel="stylesheet" type="text/css" href="../Css/layout.css" />
<script>
function ShowLayer(Id,type)
{
    var Layer;
    switch(type)
    {
        case 0:
        Layer=eval("Layer_Model_"+Id);
        break;
        case 1:
        Layer=eval("Layer_Form_"+Id);
        break;
        case 2:
        Layer=eval("Layer_User_"+Id);
        break;
    }
    Layer.style.display='';
}
function HiddenLayer(Id,type)
{
    var Layer;
    switch(type)
    {
        case 0:
        Layer=eval("Layer_Model_"+Id);
        break;
        case 1:
        Layer=eval("Layer_Form_"+Id);
        break;
        case 2:
        Layer=eval("Layer_User_"+Id);
        break;
    }
    Layer.style.display='none';
}
</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></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>
    <div style="margin-top: 5px; text-align: center;">
      <table width="99%" cellspacing="1" cellpadding="0" border="0" class="border">
        <tr class="title">
          <td width="30px">编号</td>
          <td>属性名称</td>
          <td width="90px">已绑定模型</td>
          <td width="120px" style="display: none;">已绑定表单</td>
          <td width="150px" style="display: none;">已绑定注册模型</td>
          <td width="60px">排序值</td>
          <td width="90px">操作</td>
        </tr>
        <asp:Repeater ID="repProperty" runat="server" OnItemCommand="rep_ItemCommand">
          <ItemTemplate>
            <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
              <td><asp:Label ID="lbPropertyId" runat="server" Text='<%# Eval("Id") %>'></asp:Label></td>
              <td align="left">
                <asp:LinkButton ID="lbtnShowHid" runat="server" Text="" CommandName="emblme" ForeColor="red"></asp:LinkButton>
                <%# Eval("PropertyCName") %></td>
              <td onmouseover='ShowLayer(<%#Eval("Id") %>,0)' onmouseout='HiddenLayer(<%#Eval("Id") %>,0)'><div id='Layer_Model_<%#Eval("Id") %>' style="position: absolute; width: 200; height: 100; z-index: 1; display: none;"><%# CheckIsModel(Eval("ModelId").ToString(), "0", Eval("Id").ToString())%></div>
                <a href="#">查看</a></td>
              <td style="display: none;" onmouseover='ShowLayer(<%#Eval("Id") %>,1)' onmouseout='HiddenLayer(<%#Eval("Id") %>,1)'><div id='Layer_Form_<%#Eval("Id") %>' style="position: absolute; width: 200; height: 100; z-index: 1; display: none;"><%# CheckIsModel(Eval("FormId").ToString(), "1", Eval("Id").ToString())%></div>
                <a href="#">查看</a></td>
              <td style="display: none;" onmouseover='ShowLayer(<%#Eval("Id") %>,2)' onmouseout='HiddenLayer(<%#Eval("Id") %>,2)'><div id='Layer_User_<%#Eval("Id") %>' style="position: absolute; width: 200; height: 100; z-index: 1; display: none;"><%# CheckIsModel(Eval("UserId").ToString(), "2", Eval("Id").ToString())%></div>
                <a href="#">查看</a></td>
              <td><%# Eval("PropertyOrder")%></td>
              <td><a href="SetProperty.aspx?id=<%# Eval("Id") %>">修改</a> | <asp:HiddenField ID="hidId" Value='<%# Eval("Id") %>' runat="server" />
                <asp:LinkButton ID="linkBtnDelete" runat="server" CommandName="DeleteOne" OnClientClick="return confirm('是否确定删除？');">删除</asp:LinkButton></td>
            </tr>
            <asp:Repeater runat="server" ID="repSubProperty" OnItemCommand="repSubProperty_ItemCommand">
              <ItemTemplate>
                <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                  <td><asp:Label ID="lbSubPropertyId" runat="server" Text='<%# Eval("Id") %>'></asp:Label></td>
                  <td align="left">..<%# Eval("PropertyCName") %></td>
                  <td onmouseover='ShowLayer(<%#Eval("Id") %>,0)' onmouseout='HiddenLayer(<%#Eval("Id") %>,0)'><div id='Layer_Model_<%#Eval("Id") %>' style="position: absolute; width: 200; height: 100; z-index: 1; display: none;"><%# CheckIsModel(Eval("ModelId").ToString(), "0", Eval("Id").ToString())%></div>
                    <a href="#">查看</a></td>
                  <td style="display: none;" onmouseover='ShowLayer(<%#Eval("Id") %>,1)' onmouseout='HiddenLayer(<%#Eval("Id") %>,1)'><div id='Layer_Form_<%#Eval("Id") %>' style="position: absolute; width: 200; height: 100; z-index: 1; display: none;"><%# CheckIsModel(Eval("FormId").ToString(), "1", Eval("Id").ToString())%></div>
                    <a href="#">查看</a></td>
                  <td style="display: none;" onmouseover='ShowLayer(<%#Eval("Id") %>,2)' onmouseout='HiddenLayer(<%#Eval("Id") %>,2)'><div id='Layer_User_<%#Eval("Id") %>' style="position: absolute; width: 200; height: 100; z-index: 1; display: none;"><%# CheckIsModel(Eval("UserId").ToString(), "2", Eval("Id").ToString())%></div>
                    <a href="#">查看</a></td>
                  <td><%# Eval("PropertyOrder")%></td>
                  <td><a href="SetProperty.aspx?id=<%# Eval("Id") %>">修改</a> |
                    <asp:HiddenField ID="hidId" Value='<%# Eval("Id") %>' runat="server" />
                    <asp:LinkButton ID="linkBtnDelete" runat="server" OnClientClick="return confirm('是否确定删除？');">删除</asp:LinkButton></td>
                </tr>
              </ItemTemplate>
            </asp:Repeater>
          </ItemTemplate>
        </asp:Repeater>
      </table>
    </div>
  </div>
</form>
</body>
</html>