<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="VoteItem.aspx.cs" Inherits="SocoShop.Web.Admin.VoteItem" %>
<%@ Import Namespace="SocoShop.Business" %>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Register Assembly="SkyCES.EntLib" Namespace="SkyCES.EntLib" TagPrefix="SkyCES" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script type="text/javascript" src="/Admin/Pop/lhgdialog_ex.js"></script>	
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>选项列表</div>
<ul class="listHead">	
	<li style="width:5%">ID</li>
    <li style="width:60%; text-align:left;text-indent:8px;">投票选项</li>
    <li style="width:10%">投票数量</li>    	   
    <li style="width:20%">管理</li>
    <li style="width:5%">选择</li> 
</ul>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>
		<ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">		
			<li style="width:5%"><%# Eval("ID")%></li>
            <li style="width:60%; text-align:left;text-indent:8px;"><%# Eval("ItemName") %></li>
            <li style="width:10%"><%#Eval("VoteCount") %></li>            	   
            <li style="width:20%">            
                <a href="?Action=Up&VoteID=<%# Eval("VoteID")%>&ItemID=<%# Eval("ID") %>"><img src="Style/Images/moveUp.gif" alt="上移" title="上移" /></a> 
                <a href="?Action=Down&VoteID=<%# Eval("VoteID")%>&ItemID=<%# Eval("ID") %>"><img src="Style/Images/moveDown.gif" alt="下移" title="下移" /></a>
                <a href='VoteItem.aspx?ID=<%# Eval("ID") %>&VoteID=<%# Eval("VoteID")%>'><img src="Style/Images/edit.gif" alt="修改" title="修改" /></a> 
            </li>
            <li style="width:5%"><%#ShowCheckBox(Convert.ToInt32(Eval("ID")),Convert.ToInt32(Eval("VoteCount")))%></li> 
		</ul>
	</ItemTemplate>
</asp:Repeater>
<div class="action">
    <input type="button"  value=" 添 加 " class="button"  onclick="window.location.href='VoteItem.aspx?VoteID=<%=voteID %>'"/>&nbsp;<asp:Button CssClass="button" ID="DeleteButton" Text=" 删 除 " OnClientClick="return checkSelect()" runat="server"  OnClick="DeleteButton_Click"/>&nbsp;<input type="checkbox" name="All" onclick="selectAll(this)" />全选/取消
</div>
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>选项<%=ShopCommon.GetAddUpdate()%></div>
<div class="add">
	<ul>
		<li class="left">选项：</li>
		<li class="right"><SkyCES:TextBox ID="ItemName" CssClass="input" runat="server" Width="400px" CanBeNull="必填" /></li>
	</ul>
</div>
<div class="action">
    <asp:Button CssClass="button" ID="SubmitButton" Text=" 确 定 " runat="server"  OnClick="SubmitButton_Click" />
</div>
</asp:Content>
