<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"  CodeBehind="MakeVote.aspx.cs" Inherits="BiceSurvey.MakeVote" Title="佰思超强自定义调查问卷软件 - 调查管理" %>
<%@ Register assembly="DropDownCheckList" namespace="UNLV.IAP.WebControls" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" src="Images/BiceClip.js"></script>
<%=Scr%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<br>
				<table height="96%" cellSpacing="0" cellPadding="0" width="96%" align="center" border="0">
					<tr>
						<td vAlign="top" align="center" bgColor="#f4f4f4">
							<table id="TABLE1" width="96%" align="center" border="0" runat="server">
								<tr>
									<td width="80%" align="left">&nbsp;<span class="BannerFont" title="现有系统内存在的所有问卷调查列表">现有调查列表</span>
									</td>
									<td><font color="#3c3c3c"><asp:label id="Label11" runat="server"></asp:label></font></td>
								</tr>
								<tr>
									<td colSpan="2" align="left"><asp:datagrid id="DataGrid1" runat="server" 
                                            Width="100%" AutoGenerateColumns="False" BorderWidth="1px" 
                                            onitemcommand="DataGrid1_ItemCommand" 
                                            oncancelcommand="DataGrid1_CancelCommand" oneditcommand="DataGrid1_EditCommand" 
                                            onupdatecommand="DataGrid1_UpdateCommand">
											<AlternatingItemStyle BackColor="#F9F9FF"></AlternatingItemStyle>
											<ItemStyle Height="25px"></ItemStyle>
											<HeaderStyle HorizontalAlign="Center" Height="30px" BackColor="AliceBlue"></HeaderStyle>
											<Columns>
												<asp:BoundColumn Visible="False" DataField="N_SysId" ReadOnly="True" HeaderText="编号"></asp:BoundColumn>
												<asp:BoundColumn DataField="C_Title" HeaderText="投票名称"></asp:BoundColumn>
												<asp:TemplateColumn HeaderText="到期日期">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<asp:Label id="Label10" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DT_OverDate", "{0:d}") %>'>
														</asp:Label>
													</ItemTemplate>
													<EditItemTemplate>
                                                        <asp:TextBox ID="Calendar1" runat="server"  onclick="calendar(this)" Text='<%# DataBinder.Eval(Container, "DataItem.DT_OverDate", "{0:d}") %>'></asp:TextBox> 
                                                        													</EditItemTemplate>
												</asp:TemplateColumn>
												<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更  新" HeaderText="编辑文字" CancelText="取  消" EditText="编辑文字">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:EditCommandColumn>
												<asp:ButtonColumn Text="编辑选项" HeaderText="编辑选项" CommandName="Add">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="生成/查看" HeaderText="生成/查看" CommandName="Build">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="设  定" HeaderText="一般设定" CommandName="Option">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:HyperLinkColumn DataNavigateUrlField="N_SysId" 
                                                    DataNavigateUrlFormatString="MakeLogic.aspx?SysId={0}" HeaderText="制作逻辑问卷" 
                                                    Text="逻辑问卷">
                                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                </asp:HyperLinkColumn>
												<asp:ButtonColumn Text="发 布" HeaderText="发布调查" CommandName="PreView">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="&lt;span onClick=&quot;return confirm('你确定要清空投票吗？');&quot;&gt;清 零&lt;/span&gt; "
													HeaderText="清理数据" CommandName="Clear">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="&lt;div onclick=&quot;JavaScript:return   confirm('删除是不可恢复的,确定删除吗？')&quot;&gt;删 除&lt;/div&gt; "
													HeaderText="删除调查" CommandName="Del">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
											</Columns>
										</asp:datagrid><br/>
											<span class="BannerFont">
												<asp:label id="Label8" runat="server">添加一个新调查：</asp:label>
											</span><br/>
										
										<asp:textbox id="TextBox1" runat="server"></asp:textbox>&nbsp;
										<asp:imagebutton id="ImageButton1" runat="server" ImageUrl="Images/dd.gif" onclick="ImageButton1_Click"></asp:imagebutton>&nbsp;
                                        <asp:DropDownList ID="DropDownList3" runat="server" DataTextField="C_Title" 
                                            DataValueField="N_SysId">
                                        </asp:DropDownList>
&nbsp;
                                        <asp:ImageButton ID="ImageButton6" runat="server" 
                                            ImageUrl="~/images/ccvote.gif" onclick="ImageButton6_Click" />
                                        &nbsp;&nbsp; </td>
								</tr>
							</table>
							
								<br/>
							
							<br>
							<table id="TABLE2" width="96%" align="center" border="0" runat="server">
								<tr>
									<td width="80%" align="left" class="BannerFont">该调查已有题目</td>
									<td class="BannerFont" align="center"><A href="MakeVote.aspx">返 回</A></td>
								</tr>
								<tr>
									<td colSpan="2" align="left"><asp:datagrid id="DataGrid2" runat="server" 
                                            Width="100%" AutoGenerateColumns="False" BorderWidth="1px" 
                                            onitemcommand="DataGrid2_ItemCommand" 
                                            oncancelcommand="DataGrid2_CancelCommand" oneditcommand="DataGrid2_EditCommand" 
                                            onupdatecommand="DataGrid2_UpdateCommand">
											<AlternatingItemStyle BackColor="#F9F9FF"></AlternatingItemStyle>
											<ItemStyle Height="25px"></ItemStyle>
											<HeaderStyle Height="30px" BackColor="AliceBlue"></HeaderStyle>
											<Columns>
												<asp:BoundColumn Visible="False" DataField="N_SubId" ReadOnly="True" HeaderText="题目编号"></asp:BoundColumn>
												<asp:BoundColumn DataField="C_SubTitle" HeaderText="题目名称">
													<HeaderStyle Width="200px"></HeaderStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="N_OrderId" HeaderText="排序"></asp:BoundColumn>
												<asp:TemplateColumn HeaderText="是否必答">
													<ItemTemplate>
														<asp:Label id=Label7 runat="server" Text='<%# Need(DataBinder.Eval(Container, "DataItem.N_Need"))%>'>
														</asp:Label>
													</ItemTemplate>
													<EditItemTemplate>
														<asp:DropDownList id="DropDownList2" runat="server">
															<asp:ListItem Value="0" Selected="True">非必答</asp:ListItem>
															<asp:ListItem Value="1">必答</asp:ListItem>
														</asp:DropDownList>
													</EditItemTemplate>
												</asp:TemplateColumn>
												<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑文字" CancelText="取消" EditText="编辑文字"></asp:EditCommandColumn>
												<asp:ButtonColumn Text="编辑选项" HeaderText="编辑选项" CommandName="Add"></asp:ButtonColumn>
												<asp:ButtonColumn Text="删除题目" HeaderText="删除题目" CommandName="Del"></asp:ButtonColumn>
											</Columns>
										</asp:datagrid><asp:label id="Label1" runat="server" Visible="False"></asp:label><br>
										<span class="BannerFont">添加调查的题目	题目名称：
										<asp:textbox id="TextBox2" runat="server"></asp:textbox>&nbsp;
										<asp:imagebutton id="ImageButton2" runat="server" ImageUrl="Images/ddsubject.gif" onclick="ImageButton2_Click"></asp:imagebutton>&nbsp;<asp:DropDownList 
                                            ID="DropDownList4" runat="server" DataTextField="C_SubTitle" 
                                            DataValueField="N_SubId">
                                        </asp:DropDownList>
                                        <asp:ImageButton ID="ImageButton5" runat="server" 
                                            onclick="ImageButton5_Click" ImageUrl="~/images/ccsub.gif" />
                                    </td>
								</tr>
							</table>
							<br>
							&nbsp;&nbsp;&nbsp;
							<br>
						</td>
					</tr>
				</table>
				<br>
			
</asp:Content>
