<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.Mobile.Admin.Weixin.KS_ShopList" Codebehind="KS.ShopList.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <link href="/admin/weixin/images/style.css" rel="stylesheet" />

<script>

    function SelectShopPage(FieldID) {

        top.openWin("商品", "weixin/KS.GetShop.aspx?action=<%=action%>&id=<%=sendId%>&nowIndex=" + parent.nowIndex + "&fieldID=" + FieldID, false, 1000, 500); 


    }
  
   
</script>
    <script type="text/javascript">
        $(function () {
            var tempstr = $("#ShowTxtShop<%=sendId%>", parent.document).val();
            if (tempstr.length > 10) {
                $("#myshoppic<%=sendId%>").html(tempstr);
            }
        });
        //iframe 自适应高度
        $(window.parent.document).find("#iframemain<%=sendId%>").load(function () {
            // alert(12);
            autoIframeHeight();
        });

        function autoIframeHeight() {
            var main = $(window.parent.document).find("#iframemain<%=sendId%>");
            var thisheight = $(document).height() + 30;
            if (thisheight < 300) thisheight = 300;
            main.height(thisheight);
            $(window.parent.document).find("#iframemain<%=sendId%>").parent().height($(window.parent.document).find("#main").contents().find("body").height() + 30); //设置Iframe外层高度

        }
		</script> 
<asp:Panel ID="Panel11" runat="server">

 <div class="tab_cont_cover jsMsgSendTab" data-index="0" style="display: block;">
                       <div class="media_cover">
                       <div style="display:none"><asp:TextBox ID="txtSite" runat="server"  CssClass="inp245" Width="50%" ></asp:TextBox></div>

			            <span class="create_access" id="myshoppic<%=sendId%>" onclick="SelectShopPage('<%=this.txtSite.ClientID%>');">
			               
                                <i class="icon36_common add_gray"></i>
                          <input type="button" class="button" onMouseOver="this.className='button_on';" onMouseOut="this.className='button';"/>
                           <strong>从商品中选择</strong>
						   
                                
                           
			            </span>
                    </div>
			      
			    </div>
<div class="tuwenbutton"> <asp:Button ID="Button3" runat="server" Text="保存" onclick="Button3_Click"  Visible="false"  /></div>

</asp:Panel>

<asp:Panel ID="Panel2" runat="server">
<div id="msgSender_media_1_10" ><div class="appmsg " >
    <div class="appmsg_content">
        
		 <div class="appmsg_thumb_wrp"><img src="<%=DefaultPic %>" alt="" class="appmsg_thumb"></div>
		 <div class="article_info">
            <h4 class="appmsg_title js_title"><a href="<%=Kesion.HtmlTags.BasicField.GetItemUrl(ChannelID,InfoID)  %>"  target="_blank"><%=title %></a></h4>
            <div class="appmsg_info">
                <em class="appmsg_date"><%=addDate %></em>
            </div>
            <p class="appmsg_desc">￥<%=Price_Member %></p>
            <p class="appmsg_intro"><%=Intro%></p>
		 </div>
		 
         <%=GetDeteleButton()%>
         <div style="clear:both;"></div>
    </div>
    
    
</div>
<br /><br />






</div>
</asp:Panel>

</asp:Content>
