<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="VoteManage.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.VoteManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextVoteInfo")%>
			-
			<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function imgHelp_onclick() {
			popUpWin("DSHelp/VoteManage.html","Help",100,100,800,600);
			}
			
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
			<table cellSpacing="0" cellPadding="0" width="97%" border="0" align="center">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff" height="300"><FONT face="宋体"><asp:panel id="Pan1" runat="server">
											<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TR>
													<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextOtherTools")%>
															--&gt;<%=myLanguagesDeal.GetMyString("TextVoteInfo")%>
														</SPAN><IMG language=javascript id=imgHelp 
                  style="CURSOR: pointer" onclick="return imgHelp_onclick()" 
                  alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                  src="../Images/Admin/helpicon.gif"></TD>
													<TD>
														<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="btAddNew_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("VoteTextAddNew")%><!--新增投票--></TD>
												</TR>
											</TABLE>
											<HR noShade SIZE="1">
											<asp:datagrid id="dgList" runat="server" DataKeyField="TopicID" Width="100%" AutoGenerateColumns="False"
												AllowPaging="True" PageSize="10" CssClass="table-shangxia">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="VoteTitle" HeaderText="标题">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="SelectType" HeaderText="选择类型">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="PubTime" HeaderText="发布时间">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="结果公开">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:CheckBox id="ckOpen" runat="server" Checked= '<%# DataBinder.Eval(Container.DataItem, "IsOpen")%>'>
															</asp:CheckBox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="显示">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:CheckBox id="ckShow" runat="server" Checked= '<%# DataBinder.Eval(Container.DataItem, "IsShow")%>'>
															</asp:CheckBox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="操作">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Button id="btUpdate" Text="更新" CssClass="go-wenbenkuang" CommandName="Update" Runat="server"></asp:Button>
															<asp:Button id="btEdit" Text="修改" CssClass="go-wenbenkuang" CommandName="Edit" Runat="server"></asp:Button>
															<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
														</ItemTemplate>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
											</asp:datagrid>
											<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
												<TR align="center" bgColor="#f1f1f1">
													<TD>
														<asp:button id="btFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btFirst_Click"></asp:button>&nbsp;
														<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btPre_Click"></asp:button>&nbsp;
														<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btNext_Click"></asp:button>&nbsp;
														<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btLast_Click"></asp:button>&nbsp;
														<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
														<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
														<asp:textbox id="txtPageNum" runat="server" Width="30px" CssClass="wenbenkuang" MaxLength="3"></asp:textbox>
														<asp:CompareValidator id="CompareValidator2" runat="server" ErrorMessage="输入数字" Display="Dynamic" ControlToValidate="txtPageNum"
															Type="Integer" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
														<asp:button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:button></TD>
												</TR>
											</TABLE>
										</asp:panel></FONT><asp:panel id="Pan2" runat="server" Visible="False">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD style="WIDTH: 711px">
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextOtherTools")%>--&gt;
																	<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN><IMG 
                        language=javascript id=imgHelp1 style="CURSOR: pointer" 
                        onclick="return imgHelp_onclick()" 
                        alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                        src="../Images/Admin/helpicon.gif"></TD>
															<TD align="right" width="50"><!--BUTTON_BEGIN-->
																<TABLE>
																	<TR>
																		<TD vAlign="bottom" noWrap>
																			<asp:ImageButton id="ibtReturn" runat="server" ImageUrl="../Images/Admin/fb-cancel.gif" CausesValidation="False" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%>
																		</TD>
																	</TR>
																</TABLE> <!--BUTTON_END--></TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<HR noShade SIZE="1">
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("VoteTextTitle")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--标题：--></TD>
												<TD class="pad" width="70%">
													<asp:textbox id="txtTitle" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="25"></asp:textbox>
													<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请输入标题" Display="Dynamic"
														ControlToValidate="txtTitle" ForeColor="#FF0000"></asp:requiredfieldvalidator></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("VoteTextSelectType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--投票类型：--></TD>
												<TD class="pad"></FONT>
													<asp:RadioButtonList id="rblSelect" runat="server" Width="160px" RepeatDirection="Horizontal">
														<asp:ListItem Value="0">多项选择</asp:ListItem>
														<asp:ListItem Value="1" Selected="True">单项选择</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("VoteTextResult")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--投票结果：--></TD>
												<TD class="pad"></FONT>
													<asp:RadioButtonList id="rblOpen" runat="server" Width="126px" RepeatDirection="Horizontal">
														<asp:ListItem Value="0">不公开</asp:ListItem>
														<asp:ListItem Value="1" Selected="True">公开</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextIsShow")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--是否显示：--></TD>
												<TD class="pad">
													<asp:checkbox id="ckSelShow" runat="server" Text="显示" Checked="True"></asp:checkbox></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextPublishTime")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--发布时间：--></TD>
												<TD class="pad">
													<asp:TextBox id="txtPubTime" runat="server" CssClass="wenbenkuang"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>yyyy-mm-dd 
													hh:mm:ss)
													<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="请输入指定格式时间" Display="Dynamic"
														ControlToValidate="txtPubTime" ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextContent")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad"><%=myLanguagesDeal.GetMyString("TextTaxis")%>
													<asp:textbox id="txtItemOrder" runat="server" Width="30px" CssClass="wenbenkuang" MaxLength="2"></asp:textbox>
													<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="请输入排序号" Display="Dynamic"
														ControlToValidate="txtItemOrder" ForeColor="#FF0000"></asp:requiredfieldvalidator>
													<asp:CompareValidator id="CompareValidator3" runat="server" ErrorMessage="请输入整数" Display="Dynamic" ControlToValidate="txtItemOrder"
														Type="Integer" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextContent")%>
													<asp:textbox id="txtItemContent" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox>
													<asp:button id="btAddItem" runat="server" CssClass="go-wenbenkuang" Text="添加" onclick="btAddItem_Click"></asp:button>
													<asp:datagrid id="dgVoteItem" runat="server" DataKeyField="ItemID" Width="100%" AutoGenerateColumns="False">
														<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
														<Columns>
															<asp:TemplateColumn HeaderText="排序">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:textbox id="txtOrderPart" Text='<%# DataBinder.Eval(Container.DataItem, "ItemOrder")%>' runat="server" Width="30px" CssClass="wenbenkuang" MaxLength="20">
																	</asp:textbox>
																	<asp:RequiredFieldValidator id="Requiredfieldvalidator3" runat="server" ErrorMessage="请输入排序号" Display="Dynamic"
																		ControlToValidate="txtOrderPart" ForeColor="#FF0000"></asp:requiredfieldvalidator>
																	<asp:CompareValidator id="Comparevalidator1" runat="server" ErrorMessage="请输入整数" Display="Dynamic" ControlToValidate="txtOrderPart"
																		Type="Integer" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="内容">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:textbox id="txtContentPart" Text='<%# DataBinder.Eval(Container.DataItem, "ItemContent")%>' runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="20">
																	</asp:textbox>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="操作">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:Button id="btItemDel" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
																</ItemTemplate>
															</asp:TemplateColumn>
														</Columns>
													</asp:datagrid></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="20%"></TD>
												<TD class="pad">&nbsp;
													<asp:button id="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit_Click"></asp:button>
													<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息" onclick="btSave_Click"></asp:button>&nbsp;&nbsp;
												</TD>
											</TR>
										</TABLE>
										<P align="center">
											<asp:Label id="lbInfo" runat="server" ForeColor="Red"></asp:Label></P>
									</asp:panel></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
