<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="loginProjectEdit.aspx.cs" Inherits="Web.dc.admin.loginProjectEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="/css/admincss/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
    </style>
</head>


<body>
 <form id="form1" runat="server" defaultfocus ="tbAddField" defaultbutton ="btAddProject">
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td   class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31px"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">创建问卷</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  <tr>
    <td style ="background :url(/css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >
    <table style ="width :100%">
    <tr>
    <td><b>问卷：<asp:Label ID="lbTitle" runat="server"></asp:Label></b>
     <asp:Label ID="lbTitleid" runat="server" Visible="False"></asp:Label>
       <asp:Label ID="lbProjectid" runat="server" Visible="False"></asp:Label>
        </td>
    <td style =" text-align :right ">
        &nbsp;</td>
    </tr>
    </table>


<!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">

      <tr>
        <td colspan="2">            
                                  
        <div style ="margin-top:15px">
                <table style ="width :100%">
                <tr>
                  <td class =" td_rightnoborder " style = "width :80px;">题干：</td>
                    <td >
                            <asp:TextBox ID="tbAddField" runat="server" Width ="600px" 
                                Height="40px" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="不能为空。" ValidationGroup="AddField" ForeColor="Red"></asp:RequiredFieldValidator>
                                  </td>

                  

                </tr>
                <tr>  <td class =" td_rightnoborder ">
                    是否必填：</td>
                <td>
                    <asp:RadioButtonList ID="rblNecessary" runat="server"  
                        RepeatDirection="Horizontal" TextAlign="Left">
                        <asp:ListItem>是</asp:ListItem>
                        <asp:ListItem Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                    </td></tr>
                <tr>  <td class =" td_rightnoborder ">
                    是否可重复：</td>
                <td>
                    <asp:RadioButtonList ID="rblRepeat" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True">是</asp:ListItem>
                        <asp:ListItem>否</asp:ListItem>
                    </asp:RadioButtonList>
                    </td></tr>
                                        <tr>  <td class =" td_rightnoborder ">填写说明：</td><td>
                            <asp:TextBox ID="tbRemarks" runat="server" Width ="600px" 
                                Height="40px" TextMode="MultiLine"></asp:TextBox>

                        </td></tr>
                    
                    <tr> <td class =" td_rightnoborder ">题型：</td><td>
                        <asp:Label ID="lbType" runat="server" ></asp:Label>
                
                    
              
                        </td></tr>
                    
                    <tr><td>&nbsp;</td><td>
                  <asp:Button ID="btAddProject" runat="server" Text="修改选题" ValidationGroup="AddField" onclick="btAddProject_Click" />   
                    <asp:Label ID="lbAddMessage" runat="server" ForeColor="Red"></asp:Label>                      
                        </td></tr></table>
            <table class="auto-style1">


                <tr>  
                <td>
                
                    
              
                        <asp:Panel ID="PlItems" runat="server" Visible ="false" >
                            <asp:DataList ID="DataList1" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemCommand="DataList1_ItemCommand">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <div class ="space-10 ">
                       <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>.
                        <asp:Label ID="lbItem" runat="server"  Text='<%# Bind("lbItem") %>' ></asp:Label>
                        <asp:Label ID="lbItemId" runat="server" Visible ="false" Text='<%# Bind("lbItemId") %>'></asp:Label>
                       <asp:TextBox ID="tbItem" runat="server"  Text='<%# Bind("tbItem") %>'></asp:TextBox>
                       <asp:Button ID="btEditItem" runat="server" Text="修改" />
               
                       </div>
                       
                   </ItemTemplate>
                    
                </asp:DataList>
      <div>如需修改，在文本框中填入新内容，如需要删除，将文本框清空。</div> 
<asp:Button ID="btAddItem" runat="server" Text="增加选项" OnClick="btAddItem_Click" />
                        </asp:Panel>

                    <asp:Panel ID="plMatrix" runat="server" Visible ="false" >
                        <div>行选项（左侧）：</div>
                            <asp:DataList ID="DataListRows" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemCommand="DataListRows_ItemCommand" >
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <div class ="space-10 ">
                                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>.
                        <asp:Label ID="lbItem" runat="server"  Text='<%# Bind("lbItem") %>' ></asp:Label>
                        <asp:Label ID="lbItemId" runat="server" Visible ="false" Text='<%# Bind("lbItemId") %>'></asp:Label>
                       <asp:TextBox ID="tbItem" runat="server"  Text='<%# Bind("tbItem") %>'></asp:TextBox>
                       <asp:Button ID="btEditItem" runat="server" Text="修改" />
                   
                       </div>
                       
                   </ItemTemplate>
                    
                </asp:DataList>
                        <div>如需修改，在文本框中填入新内容，如需要删除，将文本框清空。</div> 
<asp:Button ID="btMatrixRows" runat="server" Text="增加选项" OnClick="btMatrixRows_Click"  />
                            <div>列选项（上部）：</div>
                                <asp:DataList ID="DataListColumns" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemCommand="DataListColumns_ItemCommand" >
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <div class ="space-10 ">
                                           <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>.
                        <asp:Label ID="lbItem" runat="server" Text='<%# Bind("lbItem") %>' ></asp:Label>
                        <asp:Label ID="lbItemId" runat="server" Visible ="false" Text='<%# Bind("lbItemId") %>'></asp:Label>
                       <asp:TextBox ID="tbItem" runat="server" Text='<%# Bind("tbItem") %>'></asp:TextBox>
                       <asp:Button ID="btEditItem" runat="server" Text="修改" />
                       </div>
                       
                   </ItemTemplate>
                    
                </asp:DataList>
          <div>如需修改，在文本框中填入新内容，如需要删除，将文本框清空。</div> 
<asp:Button ID="btMatrixColumns" runat="server" Text="增加选项" OnClick="btMatrixColumns_Click"  />

                        </asp:Panel>
    <asp:Panel ID="plPic" runat="server" Visible ="false" >
                            <asp:DataList ID="DataList2" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemCommand="DataList2_ItemCommand" OnItemDataBound="DataList2_ItemDataBound" OnSelectedIndexChanged="DataList2_SelectedIndexChanged">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <div>
                      <div><asp:Label ID="lbId" runat="server" Text='<%# Bind("id") %>'></asp:Label>.<asp:Label ID="lbItemId" runat="server" Text='<%# Bind("lbItemId") %>' Visible ="false" ></asp:Label><asp:Label ID="lbPid" runat="server" Text='<%# Bind("pId") %>' Visible ="false" ></asp:Label>
                           <asp:ImageButton ID="imgbtn" runat="server" Visible ="false"  Width ="192" Height ="108" CommandName ="img" AlternateText ='<%# Bind("lbItem") %>'/></div> 
                       <asp:FileUpload ID="FileUpload1" runat="server" /> 
                       <asp:Button ID="btUp" runat="server" Text="上传" CausesValidation="False" CommandName="up"></asp:Button>
                       <asp:HyperLink ID="hlImg" runat="server" Target="_blank"  CssClass="button" ></asp:HyperLink>
                 
                  
                      
                      
                
                       </div>
                       
                   </ItemTemplate>
                    
                </asp:DataList>
<asp:Button ID="btAddItemPic" runat="server" Text="增加选项" OnClick="btAddItemPic_Click" />
                        </asp:Panel>                
           
                    </td></tr>

            </table>  
                </div>
     </td>
      </tr>
    
    </table>
<!-- 一组内容模块结束 -->
          

   
    </td>
    <td  style =" background-image:url(/css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
<td  class ="buttom_bg_left "></td>
  <td   style="text-align :center ;" >
      <asp:Button ID="back" runat="server" Text="返回" OnClick="back_Click" />
      </td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
