<%@ page language="C#" autoeventwireup="true" inherits="RegShop1, LebiMall" %>

<%@ 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 id="Head1" runat="server">
     <title><%=model.Title %>-网上开店</title>
    <meta name="description" content=<%=model.Description %> />
    <meta name="keywords" content=<%=model.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <link href="images/css/shopcss.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(images/css/ie6.css); /* ]]> */</style><![endif]-->
    <!--[if gte IE 7]><STYLE type=text/css media=screen>@import url(images/css/ie7.css);</STYLE><![endif]-->
    <script type="text/javascript">
    var fileIsValidate = false;
    function valfile2(imgFile)
    {
        if(!imgFile.value.match(/.jpg|.gif|.png|.bmp/i))
        {
            alert('图片类型必须是: .jpg, .gif, .bmp or .png !');
            fileIsValidate = false;
            return false;
        }
        var image=new Image();        
        image.dynsrc=imgFile.value;
        fileIsValidate = true;     
    }
    function val_on(){
        var banner=document.forms[0].elements["<%=flbanner.ClientID %>"].value
        if(banner=="" || banner==null)
        {   
            document.getElementById("msg_banner").innerHTML="<span class='msg_submit'>请上传banner！<span>";
            return false;
        }
        else
        {
           return true;
        }
    }
    function GetRdio()
    {
        var rdios=document.getElementsByName("rdios");
        var rdioname="";
        for(var i=0;i<rdios.length;i++)
        {
            if(rdios[i].checked)
            {
                rdioname=rdios[i].value.toString(); 
            }
        }
        document.getElementById("hiddenId").value= rdioname;
    }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>
</head>
<body>

    <div id="top-menu02">
        <div id="top-menu">
            <div class="right">
                <script type="text/javascript">indexhead();</script>
            </div>
        </div>
    </div>
    <div id="top">
        <div id="logo">
            <a href="http://<%=Request.Url.Host %><%=model.WebPath %>/">
                <img src="Upload/WebAdminImages/<%=model.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
        <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
        <p>
            <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
    </div>

    <div id="contenter2">
        <div id="contenter">
            <form id="form1" runat="server" onsubmit="return val_on();" enctype="multipart/form-data">
                <div id="right">
                    <div class="page-title">
                        <a class="back" href="#" onclick="javascript:window.history.back();"><span>返回上一页</span></a>
                        <h2 class="shop clearfix">
                            店铺后台管理
                        </h2>
                    </div>
                    <div class="contenter2">
                        <div class="rtitle">
                            店标设置</div>
                        <div class="rbody">

                            店铺Banner上的Flash：
                            <div class="flash_body2">
                                <input type="hidden" name="hidden" id="hiddenId" value="1.swf" />
                                <asp:Repeater runat="server" ID="rpFlash">
                                    <ItemTemplate>
                                        <div class="flash_body">
                                            <embed src='images/flash/<%#Eval("Flash_name") %>' class="flash_img" style="width: 240px;
                                                height: 120px; border: solid 1px #ccc;"></embed>
                                            <br />
                                            <input type="radio" id="rdio" name="rdios" value='<%#Eval("Flash_name") %>' onclick="GetRdio();" />
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <div style="clear: left; margin: 10px 0px 10px 10px;">
                                    <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                                        runat="server" RecordCount="228" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                                        PrevPageText="上一页" PageSize="12" UrlPaging="True" NumericButtonCount="10" Width="500px">
                                    </webdiyer:AspNetPager>
                                </div>
                            </div>
                            <table>
                                <tr>
                                    <td style="height: 24px">
                                        店铺Logo：</td>
                                    <td style="height: 24px">
                                        <input type="file" id="File1" runat="server" /></td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td style="height: 24px">
                                        店铺Banner：</td>
                                    <td style="height: 24px">
                                        <input type="file" id="flbanner" onchange="valfile2(this)" runat="server" />&nbsp;&nbsp;<span id="msg_banner"></span></td>
                                </tr>
                            </table>
                            <asp:Button ID="btnSubmit" runat="server" Text="上传" OnClick="btnSubmit_Click" CssClass="btn_submit" />
                        </div>
                    </div>
                </div>
            </form>
                <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="copyright" runat="server" id="copr"></div>
        </div>
    </div>
</body>
</html>
