<%@ page language="C#" autoeventwireup="true" inherits="shop_info, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="shop_head" TagPrefix="UC" Src="~/shop/head.ascx" %>
<!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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>店铺动态_<%=ShopName %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <asp:Literal ID="HidePublicHead" runat="server"></asp:Literal>
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />   
        <div class="box pt5">
            <form id="form1" runat="server" autocomplete="off">
            <UC:shop_head ID="shop_head1" runat="server" />
            <asp:Literal ID="LiteralHeadBg" runat="server"></asp:Literal>
            <asp:Panel ID="Panel1" runat="server" CssClass="shop_c2 mt5" Visible="false">
                <div class="shop_b2">
                    <div class="fl"></div>
                    <div class="con"><asp:Literal ID="Literal1" runat="server">添加新动态</asp:Literal></div>
                    <div class="fr"></div>
                    <div class="clear"></div>
                </div>
                <div class="shop_v2">
                    <div class="shop_do1">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td1">信息标题：
                                    <script type="text/javascript">
                                        function self_check1(){
                                            if(document.getElementById("TextBox1").value==""){alert("信息标题不能为空！");return false;}
                                        }
                                    </script>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox1" runat="server" Width="393" MaxLength="80" CssClass="inp4"></asp:TextBox><span
                                        style="margin-left: 10px"><span class="msgon">请填写信息标题，例如最新的促销活动或公告信息！</span></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td1">幻灯图片：</td>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0" style="cursor: default">
                                        <tr>
                                            <td>
                                                <div class="abs" style="*display: none">
                                                    <table width="400" border="0" cellspacing="0" cellpadding="0" height="24">
                                                        <tr>
                                                            <td id="upimg1_txt" width="322" style="border: solid 1px #ccc">&nbsp;</td>
                                                            <td>&nbsp;</td>
                                                            <td width="72" style="border: solid 1px #ccc" class="ce" style="color: #333">浏览...</td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <asp:FileUpload ID="upimg1" runat="server" size="55" CssClass="inp4 self_inp4" ToolTip="jpg,jpeg,gif,bmp,png" />
                                            </td>
                                            <td style="padding-left: 8px">
                                                <div id="thumbnailviewbox"><asp:Literal ID="thumbnailview" runat="server"></asp:Literal></div>
                                                <asp:HiddenField ID="thumbnail" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                    <style type="text/css">
                                        .self_inp4{width: 393px; *width:400px;height:20px;*height:24px;filter:-moz-opacity:0;opacity:0;font-size:12px;}
                                        #CustomArea td{padding-top: 5px;}
                                        #CustomArea .self_custom_inp{font-size: 12px;padding-left: 6px;}
                                    </style>
                                    <script type="text/javascript">
                                         if (navigator.userAgent.indexOf('Firefox') >= 0){document.getElementById("upimg1").style.width="400px";  document.getElementById("upimg1").style.height="24px";}
                                    </script>
                                </td>
                            </tr>
                            <tr>
                                <td class="td1">详细内容：</td>
                                <td>
                                    <%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                                    <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/s/tool/fck/" Height="400" ToolbarSet="Edit1" Width="800"></FCKeditorV2:FCKeditor>
                                </td>
                            </tr>
                            <tr>
                                <td class="td1">&nbsp;</td>
                                <td>
                                    <asp:Button ID="ButtonSubmit" runat="server" Text="确定提交" CssClass="shop_but1" OnClick="ButtonSubmit_Click" OnClientClick="return self_check1()" /><asp:Literal
                                        ID="Literal2" runat="server" Visible="false"><input type="button" value="确定发布" class="shop_but1" onclick="alert('您的店铺还未审核，无法发布商家动态，请联系本站客服人员！');" /></asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
                <div class="shop_c2 mt5">
                    <div class="shop_v2 shop_v2_job">
                        <div class="shop_info_list_box">
                            <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                            <asp:Panel ID="Panel_Nodata" runat="server" Visible="false"><div class="tip_nodata" id="tip_nodata" style="background-position: 12px 13px">No data!&nbsp;(暂无商家动态)</div></asp:Panel>
                            <asp:Panel ID="Panel_List" runat="server">
                                <asp:Repeater ID="Repeater1" runat="server">
                                    <HeaderTemplate>
                                        <div class="shop_info_list">
                                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                <tr>
                                                    <th><div class="al" style="padding-left: 12px">信息标题(活动主题)</div></th>
                                                    <th width="70"><div class="ce">点击率</div></th>
                                                    <th width="150"><div class="ar" style="padding-right: 12px">发布时间</div></th>
                                                </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <div class="al">
                                                    <%#get1(Eval("id").ToString()) %><%#WMcompare.IsEmpty(Eval("thumbnail").ToString(), "", "<a href=\"" + Eval("thumbnail").ToString() + "\" target=\"_blank\"><img alt=\"此信息含有幻灯图片\" src=\"/skin/public/pic.gif\" align=\"absmiddle\" /></a>")%><a href="/shop/info_view.htm?id=<%=ShopID %>&infoid=<%#Eval("id")%>" target="_blank"><%#WM.E(Eval("title"), 80, true)%></a>
                                                </div>
                                            </td>
                                            <td>
                                                <div class="ce"><%#Eval("click")%>次</div>
                                            </td>
                                            <td>
                                                <div class="ar" style="padding-right: 12px"><%#WMtime.FormatDateTime(Eval("time").ToString(),"yyyy-MM-dd HH:mm")%></div>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate></table></div></FooterTemplate>
                                </asp:Repeater>
                            </asp:Panel>
                            <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                                <div id="DataPager">
                                    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                                        <tr>
                                            <td>
                                                <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                                    UrlPagingTarget="_self" PageSize="20" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                                    NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                                    CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                                    SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                                    NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                                </DataPager:AspNetPager>
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="clear" style="height: 8px"></div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            </form>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
