<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RelateNews.aspx.cs" Inherits="WstWeb.Admin.SpecSubject.RelateNews" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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" />
      <link rel="stylesheet" type="text/css" href="../css/style.css" />
   <script src="../Js/jquery-1.6.min.js" type="text/javascript"></script>
   <script src="../Js/easyui/jquery.easyui.min.js" type="text/javascript"></script>
   <script src="../Js/easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../Js/PublicComm.js" type="text/javascript"></script>
    <script src="../Js/WinFuns.js" type="text/javascript"></script>
    <script src="../Js/pageloader.js" type="text/javascript"></script>

    <script type="text/javascript">
        //刷新
        var RefreshPage = function(v_istop) {
            if (v_istop) $("#hdnIsTop").val("1");
            else $("#hdnIsTop").val("0");
            __doPostBack("lbtnRefresh", "");
        }
        var CloseChildPage = function(v_istop) {
            new WinFuns().CloseNewWindow("wincomm");
            setTimeout(function() { RefreshPage(v_istop); }, 200);
        }
         var EditInfo = function(v_id) {
            if (v_id == "-1") {
                top.IndexNewWindow("News/NewsAdd.aspx?from=main&id=" + v_id, "添加新闻", top.document.documentElement.clientWidth-100, top.document.documentElement.clientHeight - 20);
            }
            else {
                top.IndexNewWindow("News/NewsAdd.aspx?from=main&id=" + v_id, "编辑新闻", top.document.documentElement.clientWidth - 100, top.document.documentElement.clientHeight - 20);

            }
        }
        </script>
</head>
<body>
    <form id="form1" runat="server">
      <div class="ctright">
    
 <div class="formclum">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
<tr>
<td width="100" align="right">
指定关联ID：
</td>
<td align="left">
    <asp:TextBox ID="txtIds" runat="server"></asp:TextBox>多个值用"|"分隔
&nbsp;&nbsp;<asp:Button ID="btn_cx" runat="server" Text="添加" onclick="btn_cx_Click"  />
</td>

</tr>

  <tr> <td colspan="2" height="1" bgcolor="#5298B6"></td></tr>

  </tbody>
</table>
</div>

<div class="clear"></div>

  <div class="form" style="margin-top:10px;">
<asp:GridView ID="GridView1"  runat="server" AutoGenerateColumns="False"  CssClass="gridView"  CellPadding="0" CellSpacing="0">
<Columns>
<asp:HyperLinkField DataTextField="Title"   ControlStyle-CssClass="bluelk"  DataNavigateUrlFields="Id" DataNavigateUrlFormatString="../uc/tranfer.aspx?id={0}&action=news" HeaderText="标题" Target="_blank" />
<asp:BoundField DataField="IssueTime" HeaderText="发布时间" DataFormatString="{0:yyyy-MM-dd}" ItemStyle-Width="80"/>
<asp:TemplateField HeaderText="点击量" ItemStyle-Width="60">
<ItemTemplate>
<%#Eval("Hits")%>/<%#Eval("RealHits")%>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="图片新闻" ItemStyle-Width="60">
<ItemTemplate>
<%#Eval("IsPicNews").ToString() == "1" ? "是" : "否"%>
</ItemTemplate>
</asp:TemplateField>
               
<asp:TemplateField HeaderText="删除"  ItemStyle-Width="60">
<ItemTemplate>
<asp:LinkButton ID="lbtn_sc"  CssClass="bluelk" CommandArgument='<%# Eval("Id") %>' Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>" runat="server" OnCommand="lbtn_sc_Command"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>            
</Columns>
</asp:GridView>

        </div>
    </div> 

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

