<%@ page language="C#" autoeventwireup="true" inherits="ShopDetail, App_Web_w7a7wpou" masterpagefile="~/shopdetail/MasterPage.master" enableviewstate="true" enableEventValidation="false" %>
<%@ Register src="~/inc/ParamPageNavigator.ascx" tagname="ParamPageNavigator" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<meta name="description" content="<%= details.companyname %> <%= Utils.GetShortText(Utils.FilterHtml(Utils.GetFileData(details.descrfile)) + Convert.ToString("*网站 *作品 *个人写真摄影 *官方网站 *作品大全 *艺术照").Replace("*",details.companyname),100) %>" />
<meta name="keywords" content="<%= details.companyname %> <%= Convert.ToString("*网站 *作品 *个人写真摄影 *官方网站 *作品大全 *艺术照").Replace("*",details.companyname) %> <%= Utils.GetKeywordsByBcid(details.cid,details.city)%>" />
    
<script type="text/javascript">
    $(function() {
        $("#validateimg").bind("click", function() {
            $("#validateimg img").attr("src", "/inc/aspx/ValidateCode.aspx?t=" + new Date().getTime());
        });
        
        <% if(Message!=null && Message!=""){ %>
            alert("<%= Message %>");
            $("#<%= txtCheckcode.ClientID %>").get()[0].focus();
        <%} %>
        
        <% if(Request.QueryString["msg"]!=null){ %>
            alert("<%= Request.QueryString["msg"] %>");
        <%} %>
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<% if (ImageLinks != "&bcastr_link=")
   { %>
<div class="sblock activitylist mg_top">
    <div class="tit">商家最新活动</div>
    <div class="cnt">
        <div class="left">
            <div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=scriptmain name=scriptmain codebase="http://download.macromedia.com/pub/shockwave/cabs/
        flash/swflash.cab#version=6,0,29,0" width="500" height="200">
            <param name="movie" value="/flash/bcastr.swf?bcastr_flie=<%= ImageLinks %>">
            <param name="quality" value="high">
            <param name=scale value=noscale>
            <param name="LOOP" value="false">
            <param name="menu" value="false">
            <param name="wmode" value="transparent">
            <embed src="/flash/bcastr.swf?bcastr_flie=<%= ImageLinks %>" width="500" height="200" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent"></embed>
          </object></div>
        </div>
        <div class="right">
            <asp:Repeater ID="rptActivitys" runat="server">
            <HeaderTemplate>
            <ul>
            </HeaderTemplate>
            <ItemTemplate>
                <li><a href="/vip/<%= buid %>/act_<%# DataBinder.Eval(Container.DataItem, "activityid")%>.html"><%# Utils.FormatNumberString(Utils.GetShortText(DataBinder.Eval(Container.DataItem, "activityname"), 40)) %></a><span><%# Utils.GetSmallShortDate(DataBinder.Eval(Container.DataItem, "startdate"))%> 至 <%# Utils.GetSmallShortDate(DataBinder.Eval(Container.DataItem, "enddate")) %></span></li>
            </ItemTemplate>
            <FooterTemplate>
            </ul>
            </FooterTemplate>
            </asp:Repeater>
            <%if(rptActivitys.Items.Count==0){ %>
            <div class="nodata">暂无活动</div>
            <%} %>
        </div>
        <div class="clear"></div>
    </div>
</div>
<%} %>
<div class="sblock mg_top">
    <div class="tit"><a id="mark_descr">商家简介</a></div>
    <div class="cnt"><%= Utils.GetFileData(details.descrfile) %></div>
</div>

<div class="sblock mg_top albumlist">
    <div class="tit">商家相册</div>
    <div class="cnt">
        <asp:Repeater ID="rptAlbums" runat="server">
        <HeaderTemplate>
        <ul>
        </HeaderTemplate>
        <ItemTemplate>
        <li>
            <div class="img"><a href="/vip/<%= buid %>/photos_<%# DataBinder.Eval(Container.DataItem, "albumid")%>.html"><img onload="middleimage(this);" src="<%# DataBinder.Eval(Container.DataItem, "picurl").ToString() == "" ? "/images/nopic.gif" : "/uploadfiles/" + DataBinder.Eval(Container.DataItem, "picurl").ToString() + "_200x200.jpg" %>" /></a></div>
            <div class="name"><a href="/vip/<%= buid %>/photos_<%# DataBinder.Eval(Container.DataItem, "albumid")%>.html"><%# DataBinder.Eval(Container.DataItem, "albumname")%></a></div></li>
        </ItemTemplate>
        <FooterTemplate>
        </ul>
        </FooterTemplate>
        </asp:Repeater>
        <%if (rptAlbums.Items.Count == 0)
          { %>
            <div class="nodata">暂无相册</div>
            <%} %>
    </div>
    <div class="clear"></div>
</div>

<% if(details.pricesfile!=""){ %>
<div class="sblock mg_top">
    <div class="tit"><a id="mark_price">服务报价</a></div>
    <div class="cnt"><%= Utils.GetFileData(details.pricesfile) %></div>
</div>
<%} %>

<% if (details.solutionsfile != "")
   { %>
<div class="sblock mg_top">
    <div class="tit"><a id="mark_solu">网友案例</a></div>
    <div class="cnt"><%= Utils.GetFileData(details.solutionsfile) %></div>
</div>
<%} %>

<div class="sblock mg_top leavewords">
    <div class="tit"><a id="mark_l">留言咨询</a></div>
    <div class="cnt">
        <asp:Repeater ID="rptLevewords" runat="server">
        <HeaderTemplate>
        <table class="inputs" width="100%">
        </HeaderTemplate>
        <ItemTemplate>
        <tr>
            <td class="poster">留言：<br /><%# DataBinder.Eval(Container.DataItem, "postuname")%></td>
            <td>
                <div class="ask_tit"><%# DataBinder.Eval(Container.DataItem, "postuname")%> 问：[<%# DataBinder.Eval(Container.DataItem, "postdate")%>]</div>
                <div class="ask_cnt">
                    <%# Utils.HtmlEncode(DataBinder.Eval(Container.DataItem, "content").ToString()) %>
                </div>
                <div class="ans" <%# DataBinder.Eval(Container.DataItem, "ask").ToString() == "" ? "style='display:none;'" : "" %>>
                    <div class="ans_tit">商家回复：[<%# DataBinder.Eval(Container.DataItem, "askdate")%>]</div>
                    <div class="ans_cnt"><%# DataBinder.Eval(Container.DataItem, "ask")%></div>
                </div>
            </td>
        </tr>
        </ItemTemplate>
        <FooterTemplate>
        </table>
        </FooterTemplate>
        </asp:Repeater>
        <%if (rptLevewords.Items.Count == 0)
          { %>
            <div class="nodata">暂无留言 赶快来说一句吧</div>
            <%} %>
            
        <div class="right"><uc2:ParamPageNavigator ID="ParamPageNavigator1" runat="server" RewriteExpression="/vip/*.html" /></div>
    </div>
    
    <div class="clear"></div>
    
    <div class="submiting">
        <div class="tits">请在下方提出问题，[<%= details.companyname %>]会尽快给您回复 <span>（*以下联系信息保密）</span></div>
        <div class="clear">
            <div class="inputs left">
                <table>
                    <tr><td width="100">您的姓名：*</td><td colspan="3"><asp:TextBox ID="txtpostuname" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入您的姓名" ControlToValidate="txtpostuname"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr><td>QQ：</td><td><asp:TextBox ID="txtqq" runat="server"></asp:TextBox></td><td>MSN：</td><td><asp:TextBox ID="txtmsn" runat="server"></asp:TextBox></td></tr>
                    <tr><td>Email：</td><td ><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                    <td width="100">联系电话：</td><td><asp:TextBox ID="txttel" runat="server"></asp:TextBox></td></tr>
                    <tr><td>咨询内容：*</td><td colspan="3"><asp:TextBox ID="txtcontent" runat="server" Width="400px" MaxLength="255" TextMode="MultiLine" Height="50"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="请输入咨询内容" ControlToValidate="txtcontent"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td></tr>
                    <tr><td>验证码：*</td><td colspan="3"><asp:TextBox ID="txtCheckcode" runat="server" Width="40px"></asp:TextBox>  &nbsp;
                                      <span id="validateimg"><img src="/inc/aspx/ValidateCode.aspx?" align="absmiddle" style="cursor:pointer;" /><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="请输入验证码" ControlToValidate="txtCheckcode"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td>
                                      </tr>
                </table>
                <div class="button">
                    <asp:LinkButton ID="btnSubmit" runat="server" CssClass="okbtn" 
                        onclick="btnSubmit_Click">提交</asp:LinkButton></div>
            </div>
            <div class="right">
                文明上网，理性发言。
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>
</asp:Content>

