<%@ page language="C#" validaterequest="false" masterpagefile="../ShopMasterPage/MyShop.master" enableeventvalidation="false" autoeventwireup="true" inherits="Shop_Manage_shop_style, HoWaveVGO" title="店铺风格" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle">店铺模板风格管理</div>
<div class="tips_onclick"  style="width:94%">店长您好！在这里您可以选择喜欢的店铺模板哦。不同的风格，适合不同的商品。买家看着舒心，您的生意也会更旺哦！</div>
   <table  class="SearchTableStyle" style="width:98%">
        <tr>
           <td width="100px" valign="top">选择店铺模板：</td>
           <td width="200px" valign="top">
           <asp:DropDownList ID="DropShopTem" runat="server"  Width="180px"  AppendDataBoundItems="True"/></td>           
        </tr>
        <tr>
           <td>选择店铺风格：</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"/></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="../UploadFile/Preview/Shop_preview_"+p_select.options[p_select.selectedIndex].value+".jpg";
  else
    p_img.src="../UploadFile/Preview/Shop_preview_blue.jpg";  
  p_name.innerHTML=p_select.options[p_select.selectedIndex].text;

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

