<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="spidermodellist.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.spidermodellist" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>采集管理-搜易站内搜索引擎系统</title>
<link href="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js" type="text/javascript"></script>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：</span> </div>
<br />
<ul id="sdcms_sub_title">
	<li class="sub"><a>采集模型</a></li>
</ul>
<div id="sdcms_right_b">
  <asp:DataGrid runat="server" ID="dgSpiderModelList" AutoGenerateColumns="false" 
            BorderWidth="0" HorizontalAlign="Center" CellPadding="3" CellSpacing="1" 
            CssClass="table_b" HeaderStyle-CssClass="title_bg" 
            FooterStyle-BackColor="#ffffff" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="false" ShowHeader="true" 
            DataKeyField="ModelGuid" onitemcommand="dgSpiderModelList_ItemCommand" 
        onitemcreated="dgSpiderModelList_ItemCreated" 
        oncancelcommand="dgSpiderModelList_CancelCommand" 
        oneditcommand="dgSpiderModelList_EditCommand" 
        onupdatecommand="dgSpiderModelList_UpdateCommand">
     <Columns>
        <asp:TemplateColumn HeaderText="模型名称" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "ModelName")%>
           </ItemTemplate>
           <EditItemTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txtEditModelName" Text='<%# DataBinder.Eval(Container.DataItem, "ModelName")%>' />
           </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="存储表名称" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "TableName")%>
           </ItemTemplate>
           <EditItemTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txtEditTableName" Text='<%# DataBinder.Eval(Container.DataItem, "TableName")%>' />
           </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="模型描述" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "Description")%>
           </ItemTemplate>
           <EditItemTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txtEditDescription" Text='<%# DataBinder.Eval(Container.DataItem, "Description")%>' />
           </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="模型文件名" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "ModelGuid")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:EditCommandColumn CancelText="取消" EditText="编辑" UpdateText="保存" HeaderText="编辑" ItemStyle-HorizontalAlign="Center"  />
        <asp:TemplateColumn HeaderText="管理操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
                <a href="spidermodelcolumn.aspx?usn=<%# DataBinder.Eval(Container.DataItem, "ModelGuid")%>">字段</a> |
                <a href="spidersitelist.aspx?usn=<%# DataBinder.Eval(Container.DataItem, "ModelGuid")%>">采集点</a> |
                <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument="DeleteInfo" Text="删除" />
             </ItemTemplate>
        </asp:TemplateColumn>
     </Columns>
  </asp:DataGrid>
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
   <tr>
     <td colspan="9" class="tdbg">
      模型名称：<asp:TextBox CssClass="input" runat="server" ID="txtModelName" Text='' Width="160px" />  
      表名称：<asp:TextBox CssClass="input" runat="server" ID="txtTableName" Text='' Height="20px" Width="160px" />  
      描述：<asp:TextBox CssClass="input" runat="server" ID="txtDescription" Text='' Height="20px" Width="200px" />    
         &nbsp;<asp:Button CssClass="bnt" ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" />
     </td>
   </tr>
  </table>
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
  <tr>
     <td colspan="9" class="tdbg">
      备注：<br />
     </td>
  </tr>
  </table>
</div>
</form>
</body>
</html>
