<%@ page language="C#" validaterequest="false" masterpagefile="MyShop.master" enableeventvalidation="false" autoeventwireup="true" inherits="Shop_Manage_shop_style, mallz" title="店铺风格" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle">店铺模板风格管理</div>
<div class="tips_onclick"><p>店长您好！在这里您可以选择喜欢的店铺模板哦。不同的风格，适合不同的商品。买家看着舒心，您的生意也会更旺哦！</p></div>
   <table  class="SearchTableStyle" style="width:98%">
        <tr>
           <td style="width:150px; text-align:right;">选择店铺风格：</td>
           <td>
               <asp:DropDownList ID="DropShopSkin" runat="server" />
           </td>         
        </tr>
        <tr>
           <td colspan="2" style="text-align:center;"><asp:Button ID="Button1" runat="server" Text=" 确 定 " OnClick="BouSaveShopStyle_Click" /></td>
        </tr>      
  </table>
   <table class="SearchTableStyle" style="width:auto; margin-left:7px; display:inline">
      <tr>
        <td style="text-align:center; font-weight:bold;"><span id="shop_preview_name">风格预览</span></td>        
      </tr>    
      <tr>
        <td><img id="shop_preview_img" border="0" height="203px" width="150px"  src="/UploadFile/Preview/Shop_preview_blue.jpg" onerror="this.src='/Images/NofinePic.gif'" /></td>
      </tr>
    </table> 
<script type="text/javascript">
function changePreview(){
  var p_img = document.getElementById("shop_preview_img");
  var p_name = document.getElementById("shop_preview_name");
  var p_select = document.getElementById("ctl00_ContentPlaceHolder1_DropShopSkin");
  if(p_select.options[p_select.selectedIndex].value!="-1")
    p_img.src=p_select.options[p_select.selectedIndex].tips;
  else
    p_img.src="#";
  p_name.innerHTML=p_select.options[p_select.selectedIndex].text;

}
changePreview();
</script>
             
</asp:Content>

