<%@ Register TagPrefix="uc1" TagName="FooterControl" Src="UserControls/FooterControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HeaderControl" Src="UserControls/HeaderControl.ascx" %>
<%@ Page language="c#" Codebehind="PollBuilder.aspx.cs" AutoEventWireup="True" Inherits="DataIllusion.NetPolls.WebAdmin.PollBuilder" %>
<%@ Register TagPrefix="uc1" TagName="PollListControl" Src="UserControls/PollListControl.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
    <title>NetPolls - The free poll engine</title>
<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><LINK href="css/netpollsadmin.css" type=text/css rel=stylesheet >
  </HEAD>
<body leftMargin=0 topMargin=0 marginheight="0" 
marginwidth="0">
<form id=Form1 method=post runat="server">
<p align=center><br>
<table class=TableLayoutContainer cellSpacing=0 cellPadding=0>
  <tr>
    <td><uc1:headercontrol id=PollHeader runat="server"></uc1:headercontrol></td></tr>
  <tr>
    <td class=contentCell vAlign=top><asp:label id=MessageLabel runat="server" Visible="False" ForeColor="Green"></asp:label>
      <TABLE class=Innertext>
        <tr>
          <td colSpan=2>
            <table>
              <tr>
                <td width="99%"><font class=titleFont 
                  ><asp:literal id=SurveyInformationTitle 
                   runat="server" Text="Add a new question" 
                  EnableViewState="False"></asp:literal></font></td>
                <td align=right><uc1:polllistcontrol id=PollList runat="server"></uc1:polllistcontrol></td></tr></table><IMG src="images/linebreak.gif" > </td></tr>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <tr>
                <td><asp:TextBox id=QuestionTextBox runat="server" Columns="60" TextMode="MultiLine" Rows="10"></asp:TextBox>
				</td>
                </tr></TABLE><asp:DropDownList id=QuestionLayoutDropDownList runat="server"></asp:DropDownList>
		</TD></TR></TABLE><BR><asp:button id=AddQuestionButton runat="server" Text="Add question" onclick="AddQuestionButton_Click"></asp:button><BR><BR 
      ><br>
      <TABLE class=Innertext>
        <TR>
          <TD colSpan=2><FONT class=Titlefont 
            >Poll questions</FONT> <BR 
            ><IMG src="Images/Linebreak.Gif" > </TD></TR>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <TBODY>
              <tr>
                <td>
			<asp:repeater id=QuestionsRepeater runat="server">
			<HeaderTemplate>
			<table border="0" cellspacing="1" bgcolor="#aaaaaa" cellpadding="3" width="100%" class="smallText" >
			</HeaderTemplate>
			<ItemTemplate>
				<tr bgcolor="#ffffff"><td width="450">
<b><%#DataBinder.Eval(Container.DataItem,"Text").ToString()%></b></td><td>
<a href='QuestionEditor.aspx?pollid=<%#DataBinder.Eval(Container.DataItem,"PollId")%>&questionid=<%#DataBinder.Eval(Container.DataItem,"Id")%>'>edit</a> |
<asp:LinkButton id="Linkbutton1" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Id")%>' runat="server">delete</asp:LinkButton>
</td></tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
				<tr bgcolor="#F4F9FA"><td>
<b><%#DataBinder.Eval(Container.DataItem,"Text").ToString()%></b></td><td>
<a href='QuestionEditor.aspx?pollid=<%#DataBinder.Eval(Container.DataItem,"PollId")%>&questionid=<%#DataBinder.Eval(Container.DataItem,"Id")%>'>edit</a> |
<asp:LinkButton id="Linkbutton2" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Id")%>' runat="server">delete</asp:LinkButton>

</td></tr>
			</AlternatingItemTemplate>
			<FooterTemplate>
				</TABLE>
			</FooterTemplate>
			</asp:repeater>

</TD></TR>
</TABLE></td></tr></table></TD></TR><uc1:footercontrol id=Footer runat="server"></uc1:footercontrol></TBODY></TABLE></p></form>

</body>
</HTML>
