<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AjaxArticle.aspx.cs" Inherits="LMN.Web.Admin.Shop.AjaxArticle" %>

<!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 runat="server">
<title></title>
<script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
<style type="text/css">
  * { font-size: 12px; }
  .clear { clear: both; height: 0px; line-height: 0px; overflow: hidden; }
  /*page*/
  .pager { padding: 2px 0; height: 22px; }
  .pager a, .pager span { float: left; border: 1px solid #E6E7E1; line-height: 20px; margin-right: 5px; padding: 0 6px; color: #0046D5; }
  .pager a:hover { text-decoration: none; border-color: #0046D5; }
  .pager .current { background-color: #0046D5; border-color: #0046D5; color: #fff; font-weight: bold; }
  .pager .total, .pager .total strong { color: Gray; padding: 0 3px; }
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
  <!--通过此页面返回单个或多个GoodsId-->
  <select id="category" name="category" size="1" style="float: left; margin-right: 10px;">
    <option value="0">文章分类</option>
    <%=CategoryList%>
  </select> <input type="text" runat="server" id="keyword" name="keyword" style="float: left; margin-right: 10px;" /><input type="submit" value="筛选" />
  <div class="clear">
  </div>
</div>
<ul>
  <asp:Repeater ID="repeater1" runat="server">
    <ItemTemplate>
      <li><input type="checkbox" id="id" name="id" value="<%#Eval("id") %>" /><a href="javascript:;" onclick="parent.aBox.close();parent.artiSel(<%#Eval("id") %>);"<%#Eval("color").ToString()==""?"":" style=\""+Eval("color")+"\""%>><%#Eval("title") %>(<i>alias:
      <%#Eval("alias") %>, hits:
      <%#Eval("hits") %>, recom:
      <%#Eval("isrecom")%></i>)</a></li>
    </ItemTemplate>
  </asp:Repeater>
</ul>
<input type="button" value="确认" onclick="multiSel()" style="float: left; margin-right: 10px;" /><LMN:Pager ID="Pager1" runat="server" PageSize="20" CssClass="pager">
</LMN:Pager>
<i>注意：单个产品点击产品名称选择，多个产品勾选后点击确认。</i>
</form>
<script type="text/javascript">
<!--
  function multiSel() {
    parent.aBox.close();

    if ($("input[type=checkbox]:checked").length == 0) {
      alert("没有选择任何项目！");
      return false;
    }
    var str = "";
    $("input[type=checkbox]:checked").each(function() {
      str += (str == "" ? "" : ",") + $(this).val();
    });
    parent.artiSel(str);
  }
//-->
</script>
</body>
</html>
