<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jsoutput.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.jsoutput" %>
<!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>JS外部调用管理-搜易站内搜索引擎系统</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> <a href="jsoutputedit.aspx?action=add">添加JS外部调用</a></div>
<div class="sdcms_notice">
<span style="color:Red">提示：用于实现相关度高的“相关文章”，外部专题调用数据的最便捷解决方案。非高级版无法使用。有问题请咨询<a href="http://www.searcheasy.net" target="_blank">搜易官方</a></span>
</div>
<br />
<ul id="sdcms_sub_title">
	<li class="sub"><a>JS调用</JS调用</a></li>
</ul>
<div id="sdcms_right_b">
  <asp:DataGrid runat="server" ID="dgJsList" 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="UniqueJsName" onitemcommand="dgJsList_ItemCommand" 
        onitemcreated="dgJsList_ItemCreated">
     <Columns>
        <asp:TemplateColumn HeaderText="USN" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "UniqueJsName")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="JS说明" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "JsDesc")%>  
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="搜索类型" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "Site")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="输出编码" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "EncodingName")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="管理操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
                <a href="jsoutputedit.aspx?action=edit&usn=<%# DataBinder.Eval(Container.DataItem, "UniqueJsName")%>">修改</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">
         备注：调用方式：/tools/jsoutput.aspx?usn=&q=&count=&js= (usn为调用唯一编号，q为搜索关键词，含中文需urlencode，count就是调用的数量，js是否输出js(既输出内容是否加document.write，默认为1,表示输出JS,0表示输出非JS代码)) <br />
     </td>
  </tr>
  </table>
</div>
</form>
</body>
</html>