<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="Vote.aspx.cs" Inherits="SocoShop.Web.Admin.Vote" %>
<%@ 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">
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>投票列表</div>
<ul class="listHead">	
	<li style="width:5%">ID</li>
    <li style="width:40%; text-align:left;text-indent:8px;">标题</li>
    <li style="width:20%">类型</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:40%; text-align:left;text-indent:8px;"><%# Eval("Title") %></li>
            <li style="width:20%"><%#ShopCommon.GetVoteString(Eval("VoteType")) %></li>
            <li style="width:10%"><%#Eval("ItemCount")%></li>    
            <li style="width:20%">
                <a href="javascript:pop('VoteItem.aspx?VoteID=<%# Eval("ID")%>',600,400,'选项管理','VoteItem<%# Eval("ID") %>')"><img src="Style/Images/list.gif" alt="选项管理" title="选项管理" /></a>  
                <a href="javascript:pop('VoteRecord.aspx?VoteID=<%# Eval("ID")%>',800,600,'投票记录','VoteRecord<%# Eval("ID") %>')"><img src="Style/Images/passport.gif" alt="投票记录" title="投票记录" /></a>
                <a href="javascript:pop('VoteAdd.aspx?ID=<%# Eval("ID") %>',600,300,'投票修改','VoteAdd<%# Eval("ID") %>')"><img src="Style/Images/edit.gif" alt="修改" title="修改" /></a> 
            </li>
            <li style="width:5%"><input type="checkbox" name="SelectID" value="<%# Eval("ID") %>" /></li> 
		</ul>
	</ItemTemplate>
</asp:Repeater>
<div class="listPage">
    <SkyCES:CommonPager ID="MyPager" runat="server" />
</div>
<div class="action">
    <input type="button"  value=" 添 加 " class="button" onclick="pop('VoteAdd.aspx',600,300,'投票添加','VoteAdd')"/>&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>  
</asp:Content>
