<%@ page language="VB" autoeventwireup="false" inherits="parrot_admin_form_text, App_Web_admin_form_text.aspx.25f04327" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>自定义表单管理</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script src="js/intjs.js" type="text/javascript"></script>
<link href="css/css.css" rel="stylesheet" type="text/css">
<link href="css/body.css" rel="stylesheet" type="text/css">
<link href="css/text.css" rel="stylesheet" type="text/css">
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
document.oncontextmenu=new Function('event.returnValue=false;'); 
</script>
    <style type="text/css">
        .text_autox22_cccccc
        {}
    </style>
</head>
<body>
<form id="form1" runat="server">
	<table width="700" border="0" cellpadding="0" cellspacing="0">
  
  <tr>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="73%" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                
                <tr>
                  <td valign="top">
				 
<table width="100%" border="0" cellspacing="10" cellpadding="0">
    <tr>
      <td bgcolor="#E2E6E5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="11%" bgcolor="#FFFFFF"><img src="image/wz/wz1_3.gif" width="62" height="37"></td>
          <td valign="bottom" bgcolor="#FFFFFF"><span class="chutilansexieti24">添加表单项</span></td>
          <td valign="bottom" bgcolor="#FFFFFF"><span class="wuse12">项内容以分号（;）隔开，例如：男;女。注意分号必须是英文符号</span></td>
        </tr>
        <tr>
          <td colspan="3" background="image/wz/wz1_2.gif"><img src="image/wz/wz1_1.gif" width="62" height="5"></td>
        </tr>
        
      </table>
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    
                    <tr>
                      <td width="200%" height="68" colspan="2">
                        <table width="672" border="0" cellspacing="5" cellpadding="0">
                          <tr>
                            <td width="55" height="30" align="right" class="wuse12">项名称：</td>
                            <td width="100"><asp:TextBox ID="add_form_form_1" runat="server" 
                                    CssClass="text_autox22_cccccc" Width="100px"></asp:TextBox>
                              </td>
                            <td width="55" align="right" class="wuse12">项类别：</td>
                            <td width="80">
                                <asp:DropDownList ID="add_form_form_2" runat="server" AutoPostBack="True">
                                    <asp:ListItem>文本单行</asp:ListItem>
                                    <asp:ListItem>文本多行</asp:ListItem>
                                    <asp:ListItem>文本密码</asp:ListItem>
                                    <asp:ListItem>拉下菜单</asp:ListItem>
                                    <asp:ListItem>单选菜单</asp:ListItem>
                                    <asp:ListItem>多选菜单</asp:ListItem>
                                </asp:DropDownList> 
                                <%If add_form_form_2.Text = "拉下菜单" Or add_form_form_2.Text = "单选菜单" Or add_form_form_2.Text = "多选菜单" Then%> 
                            <td width="55" align="right"><span class="wuse12">项内容：</span></td>
                            <td ><asp:TextBox ID="add_form_form_5" runat="server" 
                                    CssClass="text_autox22_cccccc" Width="200px"></asp:TextBox></td>    
                                    <%Else%>  
                           <td width="55" align="right"><span class="wuse12">项长度：</span></td>
                            <td width="55">
                        <asp:TextBox ID="add_form_form_3" runat="server" onkeydown="intjs()" 
                                    CssClass="text_autox22_cccccc" Text='150' Width="50px" Height="19px"></asp:TextBox>
                              </td>
                            <td width="55" align="right"><span class="wuse12">项高度：</span></td>
                            <td width="55">
                        <asp:TextBox ID="add_form_form_4" runat="server" onkeydown="intjs()" 
                                    CssClass="text_autox22_cccccc" Text='22' Width="50px"></asp:TextBox>
                              </td>
                               <%End If%>  
                            <td align="center">
                                <asp:Button ID="add_form_form_up" runat="server" CssClass="btn1_mouseout" 
                                    Text="提交修改" Visible="False" Height="22px" />
                                <asp:Button ID="add_form_form_ok" runat="server" Text="提交新项" 
                                        CssClass="btn_2k3" Height="22px" /></td>
                          </tr>
                          </table>                                                </td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
      </table>      </td>
    </tr>
    <tr>
      <td bgcolor="#E2E6E5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="11%" bgcolor="#FFFFFF"><img src="image/wz/wz1_3.gif" width="62" height="37" /></td>
          <td width="89%" valign="bottom" bgcolor="#FFFFFF"><span class="chutilansexieti24">现有项目</span></td>
        </tr>
        <tr>
          <td colspan="2" background="image/wz/wz1_2.gif"><img src="image/wz/wz1_1.gif" width="62" height="5" /></td>
        </tr>
      </table>
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
         <tr>
           <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="5" cellpadding="0">
             <%  
                  If ubb.tables("select form_from from wn_form where form_id=" & ubb.query_string("admin_form_id")).rows(0).item("form_from") <> "" Then
                     Dim form_split() As String
                     form_split = ubb.tables("select form_from from wn_form where form_id=" & ubb.query_string("admin_form_id")).rows(0).item("form_from").ToString.Split("|")
                     For i = 0 To form_split.Length - 1
           %>
             <tr>
               <td width="18%" align="right" bgcolor="#FFFFFF" class="wuse12"><%=form_split(i).Split(",")(0)%>：</td>
               <td bgcolor="#FFFFFF" class="wuse12">
			   <div style="overflow:hidden;width:420px;"> 
			   <%= form_replace_text(form_split(i).Split(",")(1), form_split(i).Split(",")(2), form_split(i).Split(",")(3), form_split(i).Split(",")(4))%>
               </div>
               </td>
               <td width="25%" align="center" bgcolor="#FFFFFF" class="wuse12">

               <%If i > 0 Then%>
               <a href="?admin_form_id=<%=ubb.query_string("admin_form_id")%>&form_text_orderup=True&form_text=<%=server.urlencode(form_split(i-1))%>|<%=server.urlencode(form_split(i))%>‖<%=server.urlencode(form_split(i))%>|<%=server.urlencode(form_split(i-1))%>">上移</a> |
               <%End If%>
                <%If i < form_split.Length - 1 Then%>
               <a href="?admin_form_id=<%=ubb.query_string("admin_form_id")%>&form_text_orderup=True&form_text=<%=server.urlencode(form_split(i))%>|<%=server.urlencode(form_split(i+1))%>‖<%=server.urlencode(form_split(i+1))%>|<%=server.urlencode(form_split(i))%>">下移</a> |
               <%End If%>

               <a href="?admin_form_id=<%=ubb.query_string("admin_form_id")%>&form_text_update=True&form_text=<%=server.urlencode(form_split(i))%>">修改</a> | <a href="?admin_form_id=<%=ubb.query_string("admin_form_id")%>&form_text_delete=True&form_text=<%=server.urlencode(form_split(i))%>">删除</a></td>
             </tr>
             <%  Next
            End if 
                 %>
           </table></td>
         </tr>
       </table></td>
    </tr>
  </table>
				  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>