<%@ page language="C#" autoeventwireup="true" inherits="admin_auto_table, App_Web_auto_table.aspx.fdf7a39c" smartnavigation="true" %>

<%@ Register Src="yanz.ascx" TagName="yanz" TagPrefix="uc1" %>

<!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 id="Head1" runat="server">
    <title>表单管理</title>
    <link href="images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<script language="javascript" type="text/javascript"> 
function selcheck(id) {
   var e =document.getElementById(id);
   var objs = e.getElementsByTagName("input");
   if (e.checked){
      e.checked = false;
      for(var i=0; i<objs.length; i++) {
         if(objs[i].type.toLowerCase() == "checkbox" )
         objs[i].checked = false;
      }
   }   else   {
      e.checked = true;
      for(var i=0; i<objs.length; i++) {
         if(objs[i].type.toLowerCase() == "checkbox" )
         objs[i].checked = true;
      }
   }
}
</script>

     <div id="frame_Toolbar" class="toolbarBg"> 
         <uc1:yanz ID="Yanz1" runat="server" />
		<a href="javascript:self.history.back();" class="icoBtn_ct"><span class="btnIco btnBack"></span><span class="btnTxt">返回</span></a><a href="javascript:self.location.reload();" class="icoBtn_ct"><span class="btnIco btnReload"></span><span class="btnTxt">刷新</span></a> 
         
         <span class="split ftSplit" ></span>
	    <div id="guide">您现在的位置：内容管理 >> <a href="Class_Table.aspx?Model_id=<%=Request.QueryString["Model_id"].ToString() %>">表单管理</a></div>
		
	    <div class="pageInfo right light_gray">[<a href='auto_table_add.aspx?Model_id=<%=Request.QueryString["Model_id"].ToString() %>' class="light_bOrange">添加信息</a>]
            &nbsp;
            <asp:TextBox  ID="TextBox1" runat="server"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" CssClass="button" OnClick="Button1_Click1"
                Text="查找" /></div>
		
    </div>
	<div id="content">
     <asp:Literal
                        ID="Literal2" runat="server"></asp:Literal>
    <div id="cEndToolbar" class="toolbarBg">
        <div class="pageList">
		 <asp:Literal ID="Literal1" runat="server"></asp:Literal>
	    </div>
	    <div class="pageSelect"><span class="iptSl"><input type="checkbox" name="chkall" onclick="selcheck('content')" /></span><a href="javascript:selcheck('content');"><span class="btnTxt">选择</span><span class="btnIco btnDown"></span></a></div>
	    <span class="split cpSplit" ></span>
	    <div class="pageBtnDo">
	        <div class="icoBtn_do"><input type="image" name="Delete_Button" id="Delete_Button" class="btnIco btnDel" src="images/Empty.gif" onclick="chk1()" style="border-width:0px;" /></div>
	    </div>
	   
	</div>	
    </div>
<script type="text/javascript">
function chk1()
{
    var boxes = document.getElementsByName("chk"); 
    var t2=0;
    var t1="";
    for (var i = 0; i < boxes.length; i++)   
    {
     if (boxes[i].checked)   
     {
        t2=t2+1;
        if(t2==1)
        {
        t1=t1+boxes[i].value;
        }
        else
        {
        t1=t1+","+boxes[i].value;
        }
     }
    }
    window.location="auto_table_add.aspx?Model_id=<%=Request.QueryString["Model_id"].ToString() %>&type=del&id="+t1;

}

        </script> 
</form>
</body>
</html>


