<%@ Page Title="" Language="C#" MasterPageFile="Step.Master" AutoEventWireup="true" CodeBehind="step1.aspx.cs" Inherits="Survery.admin.step1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 <table width="90%">
 <tr valign="top">
 <td  valign="top"  style=" width:200px; height:1000px; color:#ffffff; background-image:url(images/wrap_bg.jpg)">


<div class="side_bar">
		 
				 <ul>
				<li >使用说明</li>
				<li class="currentitem">定义标题</li>
				<li >定义选项</li>
				 
			</ul>
 </div>
 </td>

<td valign="top">

<div style=" margin-left:50px; margin-top:10px;">
<br /><br /> 
<b>Step2.请输入表单名称</b>

 
   
 



 
   
   <table  class="table">
       <tr>
           <td width=150px>
               表单名称
           </td>
           <td>
<asp:TextBox ID="title" Width="400" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="title" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
   
           </td>
       </tr>

   <tr>
   <td>表单所属的部门:</td>
       <td>
    
       <asp:DropDownList runat="server" Width="200" ID="txt_classname"></asp:DropDownList>
   </td>
   </tr>
        

   <tr>
   <td >表单流水号前缀:</td>
   <td>
   
    <asp:TextBox runat="server"  onkeyup="upperCase(this)"  Width="200px" ID="txt_prefix"></asp:TextBox> ( 如 HR-001-)
   </td>
   </tr>
       <tr>
           <td>
             表单简介  
           </td>

            <td>
                   <asp:TextBox ID="intro" Height="60" TextMode="MultiLine" Width="400" runat="server"></asp:TextBox>
            </td>
       </tr>

   </table>
   
       

   </div>
                
          
                
                <br /><br />  
    <div style=" text-align:right;  width:600px">
        
 <asp:Button ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"  Text="下一步" CssClass="btn btn-primary"></asp:Button>


        <asp:Button runat="server" ID="btn_del" CssClass="btn btn-danger" Text="删除表单" OnClick="btn_del_Click" />
</div>



                </td>
                </tr>
                </table>

        <div style="display:none">
   投票开始时间： <asp:TextBox ID="txt_startdate" Width="200" runat="server"   ></asp:TextBox> 为空表示不限制<br />
   投票结束时间： <asp:TextBox ID="txt_enddate" Width="200" runat="server"    ></asp:TextBox> 为空表示不限制<br />
        允许用户多次参与： <asp:CheckBox ID="cb_allowmultivote"  Checked="true"  ClientIDMode="Static" runat="server" /> 
           自定义列表作为表单： <asp:CheckBox runat="server" ID="cb_showinmyform" Checked="true"  ClientIDMode="Static"  /> 
   
   </div>

               <script>



                   function upperCase(x) {
                       var y = $(x).val();
                       $(x).val(y.toUpperCase());
                     }

                    


                     function InitTxt() {
                       
                         if ($("#cb_showinmyform").prop("checked")) {

                             $("#div_class").show();
                         }
                         else {
                              
                             $("#div_class").hide();
                         }
                      }

                    


               </script>


</asp:Content>
