<%@ page language="C#" masterpagefile="MyShop.master" enableeventvalidation="false" autoeventwireup="true" inherits="Shop_Manage_shop_setup, WebApp_deploy" title="店铺设置" validaterequest="false" %>
<%@ Register Src="../UserControls/HowaveProvinceCity.ascx" TagName="HowaveProvinceCity"  TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript">
function view(){
    var showview = document.getElementById("showview");
    var Announce = document.getElementById("ctl00_ContentPlaceHolder1_TxtShopAnnouncement");
    var ShopAnnounceContent = document.getElementById("ShopAnnounceContent");
    ShopAnnounceContent.style.display = "";
    showview.innerHTML = Announce.value;
    return false;
}
function viewimg(obj)
{
var upload =document.getElementById("ctl00_ContentPlaceHolder1_FileUpload1");
    document.getElementById(obj).innerHTML ='预览<br><img src=\''+upload.value+'\' width=100px height=100px align=absmiddle>';
}
function viewimg2(obj)
{
var upload =document.getElementById("ctl00_ContentPlaceHolder1_FileUpload2");
    document.getElementById(obj).innerHTML ='预览<br><img src=\''+upload.value+'\' width=600px height=80px  align=absmiddle>';
}
</script>

<div class="pageTitle">基本设置</div>
<script type="text/javascript" src="../Js/howave_time.js"></script>
 <div class="tips_onclick"  style="width:94%">店长您好！在这里您可以随时装修您的店铺。店标，公告不要空哦，让买家感觉到你的用心，自然愿意多逛逛。</div>

<table class="ShopOrderStyle">  
 <caption>店铺信息</caption> 
    <tr>
        <td class="OrderTitle">店 铺 名：</td>
        <td><asp:TextBox  MaxLength="30" ID="TxtShopName" runat="server" Width="500px"/></td>      
    </tr>
    <tr>
        <td class="OrderTitle">店铺类别：</td>
        <td><asp:DropDownList ID="DropShopClass" runat="server" Width="500px"/></td>
    </tr>
       <tr>
        <td class="OrderTitle">二级域名：</td>
        <td>
            <asp:TextBox ID="txt_SecUrl" runat="server" /></td>      
    </tr> 
     <tr>
       <td class="OrderTitle">店铺状态：</td>
        <td>
            <div style="float:left;"><asp:RadioButtonList ID="ShopStatus" runat="server" RepeatDirection="Horizontal">
               <asp:ListItem Text="正常" Value="1" />
               <asp:ListItem Text="暂停营业" Value="0"/>
            </asp:RadioButtonList></div>
        <div style="float:left; padding-left:20px;"><a href="#" onmouseover="showHelp('help1');" onmouseout="hidenHelp('help1');" ><img src="../Images/tooltip.png" border="0" /></a>
        </div></td>       
    </tr>   
    <tr>
        <td class="OrderTitle"> 主营项目：</td>
        <td><asp:TextBox ID="TxtOperatorItem" runat="server" Height="50px" Width="500px" TextMode="MultiLine"/></td>
    </tr>   
    <tr>
       <td class="OrderTitle">店铺介绍：</td>
        <td> 
            <asp:TextBox runat="server" ID="TxtShopIntro"  style="display:none;" />
            <iframe src="../Editor/Editor.aspx?ID=ctl00_ContentPlaceHolder1_TxtShopIntro" width="100%" height="200" frameborder="0" scrolling="auto"></iframe>
        </td>       
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
 </table>
<table class="ShopOrderStyle">   
    <tr>
        <td class="OrderTitle">店 &nbsp; 标：</td>
        <td>
          <div style="width:100%; position:relative">
           <div style="float:left; width:350px;">
              <div style="width:100%"><asp:FileUpload ID="FileUpload1" runat="server" width="320px" /></div>
                 <div id="previewImage" style="height:100px; width:100px; border:solid 1px gray; text-align:center;">
                    <asp:Image ID="ImageURL" runat="server" Height="100px" Width="100px" ImageUrl="~/Images/nopicture.gif"/>
                  </div> 
                  <br />
                 (仅支持gif和jpg，建议规格为100px*100px,若上传后店标为原有店标为浏览器图片缓存所影响！) 
           </div>
           <div style="float:right;width:150px; text-align:right;">
             <img src="/images/shop_21.gif" style="width: 128px; height: 181px" />
            </div>
          </div>           
           
        </td>       
    </tr>
     <tr>
        <td class="OrderTitle">横 &nbsp; 幅：</td>
        <td>
          <div style="width:100%; position:relative">
              <div style="width:100%"><asp:FileUpload ID="FileUpload2" runat="server" width="320px" /></div>
              <div id="previewImage2" style="height:100px; width:95%; margin:0 auto; border:solid 1px gray; text-align:center;">
                    <asp:Image ID="ImageBanner" runat="server" Height="100px" Width="600px" ImageUrl="~/Images/nopicture.gif"/>
                  </div> 
                  <br />(仅支持gif和jpg，建议规格为950px*120px,若上传后横幅为原有横幅为浏览器图片缓存所影响！) 
          </div>           
           
        </td>       
    </tr>
    <tr>
        <td class="OrderTitle">公 &nbsp; 告：</td>
        <td>
        <asp:TextBox runat="server" ID="TxtShopAnnouncement" style="display:none;" />
        <iframe src="../Editor/Editor.aspx?ID=ctl00_ContentPlaceHolder1_TxtShopAnnouncement" width="100%" height="200" frameborder="0" ></iframe>
        <div align="center">
            <input id="Button1" onclick="return view()" value="公告预览" type="button" />
         </div>
         <div id="ShopAnnounceContent" style="border:solid 1px gray;background-color:white; display:none;">
             <marquee id="showview" direction="up" onmouseout="this.start()" onmouseover="this.stop()"scrollamount="1" style="position: relative; left: 0px; width: 505px; top: 0px; height: 142px;">
              
              </marquee>
            </div>
            <div id="VipCardTitle" style="display: none"></div>   
        </td>
     </tr>    
     <tr>
        <td colspan="2" style="text-align: center" > 
            <asp:Button ID="ButSaveBaseShop" runat="server" Text=" 提 交 " Width="48px" OnClick="ButSaveBaseShop_Click" />
        </td>
    </tr>
</table>
 

 
 
 
 <div style="clear:both; height:3px; overflow:hidden"></div>
 <div id="help1" style="position:absolute;z-index:1; border:solid 1px black; padding:10px; background:white; display:none;" onmouseover="this.style.display='';" onmouseout="this.style.display='none'">
      <ul>
         <li><b>正常：</b>店铺正常营业，会员可以正常浏览店铺和购买卖家的商品</li><li><b>关闭：</b>店铺停止营业，会员浏览该店铺时显示关闭状态，所有出售中的商品会即时下架</li><li><b>暂停营业：</b>店铺暂时停止营业，会员浏览该店铺显示暂时关闭状态，出售中的商品不会下架</li></ul>
      <iframe src="#" frameborder="0" style="position:absolute; visibility:inherit; top:0px; left:0px; width:400px; height:80px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';" ></iframe>
   </div>
</asp:Content>

