<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.allowparticipatescore" Codebehind="global_allowparticipatescore.aspx.cs" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title>允许评分范围列表</title>
		<LINK href="../styles/datagrid.css" type="text/css" rel="stylesheet">
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">  
		<script language="javascript" src="../js/common.js"></script>
</HEAD>

	<body>
		<form id="Form1" method="post" runat="server">
			<script>
showhint(0, '您所编辑的字段必段是在[<a href=../global/global_scoreset.aspx>积分设置</a>]中指定了积分字段的名称, 未指定项无效');
showhint(1, '您所编辑的评分最小值字段可以为负值, 如-5即扣5分.');

</script>
		<br />
		    &nbsp;
		    <A href="<%=Request.Params["pagename"]%>.aspx?groupid=<%=Request.Params["groupid"]%>" class="TextButton" >返 回</A>
						
		   <br />
		    <cc1:datagrid id="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
				OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update">
				<Columns>
        			<asp:BoundColumn DataField="id"   HeaderText="id [递增]" Visible="false"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="参与评分">
					<HeaderStyle Width="7%" />
					        <ItemTemplate>
                                <%# GetImgLink(DataBinder.Eval(Container.DataItem,"available").ToString())%>
                            </ItemTemplate>

							<EditItemTemplate>
							    <div align=center><asp:CheckBox id="available" runat="server" Checked='<%# GetAvailable(DataBinder.Eval(Container, "DataItem.available").ToString())%>'></asp:CheckBox></div>
						    </EditItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="ScoreCode"  HeaderText="积分代号" ReadOnly=true><HeaderStyle Width="15%" /></asp:BoundColumn>
					<asp:BoundColumn DataField="ScoreName"  HeaderText="积分名称" ReadOnly=true><HeaderStyle Width="25%" /></asp:BoundColumn>
					<asp:BoundColumn DataField="Min"  HeaderText="评分最小值"><HeaderStyle Width="15%" /></asp:BoundColumn>
					<asp:BoundColumn DataField="Max"  HeaderText="评分最大值"><HeaderStyle Width="15%" /></asp:BoundColumn>
					<asp:BoundColumn DataField="MaxInDay"  HeaderText="24小时最大评分数"><HeaderStyle Width="15%" /></asp:BoundColumn>
					</Columns>
			</cc1:datagrid>
		</form>
		<%=footer%>
	</body>
</HTML>
