<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.givemedals" Codebehind="global_givemedals.aspx.cs" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title>givemedals</title>
        <LINK href="../styles/dntmanager.css" type=text/css rel=stylesheet >
        <script language=javascript src="../js/common.js"></script>
        <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="../js/modalpopup.js"></script>
</HEAD>
<body>
<form id=Form1 method=post runat="server">
<div class="ManagerForm">
		<fieldset>
		<legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">授予/收回勋章</legend>
<table class=table1 cellSpacing=0 cellPadding=4 width="100%" align=center bgColor=#cccccc border=0>
  <tr>
    <td colspan="3">当前用户: <asp:literal id=givenusername runat="server"></asp:Literal></td>
   </tr>
  <tr>
    <td class=td2>勋章图片</td>
    <td class=td2>名称</td>
    <td class=td2><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">授予该勋章</td>
   </tr>
    <cc1:repeater id="medallist" runat="server">
		<ItemTemplate>
				<tr>
					<td class="td1"><img src="../../images/medals/<%# DataBinder.Eval(Container.DataItem,"image").ToString()%>"  height="25px"></td>
					<td class="td1"><%# DataBinder.Eval(Container.DataItem,"name").ToString()%></td>
					<td class="td1"><%# BeGivenMedal(DataBinder.Eval(Container.DataItem,"isgiven").ToString(),DataBinder.Eval(Container.DataItem,"medalid").ToString())%></td>
				</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
				<tr>
					<td class="td2"><img src="../../images/medals/<%# DataBinder.Eval(Container.DataItem,"image").ToString()%>" height="25px"></td>
					<td class="td2"><%# DataBinder.Eval(Container.DataItem,"name").ToString()%></td>
					<td class="td2"><%# BeGivenMedal(DataBinder.Eval(Container.DataItem,"isgiven").ToString(),DataBinder.Eval(Container.DataItem,"medalid").ToString())%></td>
				</tr>
			</AlternatingItemTemplate>	
		</cc1:Repeater>
	</table>
<table cellspacing="0" cellpadding="4" width="100%" align="center" border="0">
  <tr>
    <td class=td2 colspan="2">变更理由 </td>
   </tr>
  <tr>
    <td class=td1 width="30%">授予/收回勋章的理由:</td>
	<td class="td1">
		<cc1:TextBox id="reason" runat="server" HintTitle="提示" HintInfo="如果您修改了用户的勋章资料, 请输入操作理由, 系统将把理由记录在勋章授予记录中, 以供日后查看" TextMode="MultiLine" RequiredFieldType="暂无校验" Width="80%"
			Height="112px"></cc1:TextBox>
	</td></tr></table>
</fieldset>
<cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
<div class="Navbutton"><cc1:Button id="GivenMedal" runat="server" Text="提 交"></cc1:Button></div>
				</div>
				</form>
	<%=footer%>
	</body>
</HTML>
