<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userrank.aspx.cs" Inherits="Kcms.UI.admin.userrank" %>
<!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>
    <title></title>
    <link href="skins/work-style.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
    <style type="text/css">
    .rank li{ float:left; width:33%;}
    .rank li em{ display:inline-block; margin:0px 15px 0px 5px;width:50px;}
    .rank li em.rk{width:30px;}
    .rankType em{ display:inline-block;}
    .rankType em.nm{width:80%;}
    .rankType.def{ background-color:Teal; color:White;}
    .rankType.def a{color:White;}
    </style>
</head>
<body>
    <form id="form2" runat="server">
<div class="container">
 <div class="path clearfix"><div class="l"><h4><img src="skins/icon/remarkmanagement_summ.gif" align="absmiddle" />等级方案</h4></div><div class="r"><asp:Literal ID="litAdv" runat="server"></asp:Literal></div></div>
 <div class="mbox clearfix">
  <div class="left">
    <a href="userrank.aspx" class="on">等级方案</a>
    <a href="userscore.aspx">等级积分</a>
  </div>
  <div class="right">
  <div>添加等级方案：<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ControlToValidate="txtRankTypeName" ErrorMessage="*" ValidationGroup="g1"></asp:RequiredFieldValidator>
      <asp:TextBox ID="txtRankTypeName" runat="server" Columns="38"></asp:TextBox>
      <asp:Button ID="Button1" runat="server" CssClass="btn0" Text="添加方案" 
          onclick="Button1_Click" ValidationGroup="g1" />
      <asp:HiddenField ID="hidEditRankTypeId" runat="server" />
      </div>
      <br />
      <asp:Repeater ID="rptBig" runat="server" onitemdatabound="rptBig_ItemDataBound" 
          onitemcommand="rptBig_ItemCommand">
      <ItemTemplate>
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
  <td class="rankType<%#(bool)Eval("isdefault")==true?" def":"" %>">
  <em class="nm"><b><asp:Literal ID="litRankTypeName" runat="server" Text='<%#Eval("ranktypename") %>'></asp:Literal></b><asp:Literal ID="Literal1" runat="server" Visible='<%#(bool)Eval("isdefault")==true %>'> [ 默认方案 ]</asp:Literal><asp:HiddenField ID="hidRankTypeId" Value='<%#Eval("id") %>' runat="server" /></em>
  <em>
      <asp:LinkButton ID="LinkButton3" CommandName="default" Visible='<%#!(bool)Eval("isdefault")==true %>' runat="server">设为默认</asp:LinkButton> <asp:LinkButton ID="LinkButton4" CommandName="edit" runat="server">改名</asp:LinkButton> <asp:LinkButton ID="LinkButton5" CommandName="del" runat="server" Visible='<%#!(bool)Eval("isdefault")==true %>' OnClientClick="return confirm('确定删除?将删除方案和方案下的等级设置')">删除?</asp:LinkButton></em>
  </td>
</tr>
<tr>
  <td>添加头衔：<asp:TextBox ID="txtRankName" runat="server"></asp:TextBox> <asp:Button ID="btnSave" runat="server" CommandName="btnSave" Text="添加" CssClass="btn0" /><asp:HiddenField ID="hidRankId" runat="server"></asp:HiddenField><asp:HiddenField ID="hidRank" runat="server"></asp:HiddenField></td>
</tr>
<tr>
  <td>
  <ul class="rank clearfix">
      <asp:Repeater ID="rptSmall" runat="server" onitemcommand="rptSmall_ItemCommand">
      <ItemTemplate>
    <li onMouseOver="this.className='over'" onMouseOut="this.className=''"><asp:HiddenField ID="hidId" Value='<%#Eval("id") %>' runat="server" />
        <em><asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="edit">改</asp:LinkButton>　<asp:LinkButton ID="LinkButton2" runat="server" Visible="<%#Container.ItemIndex+1==smallRecordCount %>" CausesValidation="false" CommandName="del" OnClientClick="return confirm('确定删除?')">删?</asp:LinkButton></em><em class="rk"><%#Eval("rank") %>级</em><asp:Literal ID="litRankName" runat="server" Text='<%#Eval("rankname") %>'></asp:Literal></li>
      </ItemTemplate>
      </asp:Repeater>
  </ul>
  </td>
</tr>
</table>
<br />
      </ItemTemplate>
      </asp:Repeater>
  </div>
 </div>
</div>
</form>
</body>
</html>