<%@ Page Title="主页" Language="C#"  AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Mall._Default" %>

<%@ Register Src="UserControl/Top.ascx" TagName="uchead" TagPrefix="headuc" %>
<%@ Register Src="UserControl/Footer.ascx" TagName="ucfooter" TagPrefix="footeruc" %>
<%

    MODEL.MAD model_ad = new MODEL.MAD();
    List<MODEL.MAD> listmad = list_mad;
    BLL.Models.MAdModels models_ad = new BLL.Models.MAdModels();
     %>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>MCShop 微维网上商城系统竭诚为您提供完整的网上商城解决方案</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META 
content= "" name=Description>
<META content= name=Keywords><LINK media=screen 
href="/content/images/mkl/global.css" 
type=text/css rel=stylesheet>
<LINK media=screen 
href="/content/images/mkl/hp4v1.css" 
type=text/css rel=stylesheet>
<SCRIPT 
src="/content/images/mkl/jquery-1.3.2.min.js" 
type=text/javascript></SCRIPT>
 
 
 
<META content="MSHTML 6.00.6000.17080" name=GENERATOR></HEAD>
<BODY id=hp>
<headuc:uchead ID="headuc" runat="server" />


 <DIV class=wrap>
<DIV class=clearfix>
<DIV class=main>
 
	
<DIV class=slides name="__DT">
<UL class=slide-pic>
  

 
<%=str_htm_index_ad_midhuan%>
  
  </UL>
<UL class="slide-li op">
  <LI></LI>
  <LI class=cur></LI>
  <LI></LI>
  <LI></LI>
  <LI></LI></UL>
<UL class="slide-li slide-txt">
  
  <%=str_html_index_adtext_minhua%>
  </UL></DIV>
 
	
 
</DIV>
<DIV class=sidenew>
<DIV class="Promotions bor1 relative mb5" style="OVERFLOW: hidden;height:100px;" >
<DIV class=promh>今日特惠</DIV>
<DIV class="pbox clearfix" style="OVERFLOW: hidden;height:100px;">
<UL class="prolist fl" style="OVERFLOW: hidden;height:100px;WIDTH: 238px">
<%=str_html_index_tehui%>
  
  
  </UL>
 
<SCRIPT type=text/javascript>    var newTime = new Date(); var newTime = newTime.getTime(); var $imgTmp = $('#topromotion').find('img:first'); var osrc = $imgTmp.attr('src'); $imgTmp.attr('src', osrc + '?' + newTime);</SCRIPT>
 
 
</DIV>
<DIV class=parrow><A class=left href="#">向左</A><A class=right 
href="#">向右</A></DIV>
</DIV><%model_ad = models_ad.GetAdByClassId(listmad, "6"); %>
<DIV class="mb5 bor1" id=topromotion><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG class=block alt="" 
src="<%=model_ad.Adpic %>" height="113" width="238"></A></DIV>
<%model_ad = models_ad.GetAdByClassId(listmad, "7"); %>
<DIV class="mb5 bor1" id=topromotion style=" height:108px; overflow:hidden"><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG class=block alt="" 
src="<%=model_ad.Adpic %>" height="113" width="238" ></A></DIV>
</DIV></DIV>
<div style="clear:both:></div>
<DIV class="clearfix mt10  bor1"><p style=" color:White; ">m*c*v*r*l*a*b</p>
<DIV class=hcata-title><A class="fr morelink blod  ml20" 
href="#" 
target=_blank></A><A class="fr morelink blod" 
href="/AllMC3ClassMpa.aspx" 
target=_blank>查看所有分类&gt;&gt;</A><A class="blod f14 hcatalink" 
href="/AllMC3ClassMpa.aspx" 
target=_blank>商品分类</A></DIV>
 
<DIV class=clearfix id=hcata  >
<DIV class=fl style="width:100%">
 
 
<%=str_html_class%>
 
 
 
</DIV>
</DIV>
</DIV>
<DIV class=clearfix>
<DIV class=main>
<DIV class="mainbox clearfix">
<DIV class="clearfix mb10">
<H3  style="BACKGROUND: url(/content/images/mkl/xpkd.gif) no-repeat 5px 5px; width:70% "><A 
href="/list?action=new" 
target=_blank>新品速递</A></H3>
<DIV class="fl mt15" style="float:right; width:18%; display:block; margin-right:18px"><A class=morelink 
href="/list.aspx?action=new" 
target=_blank>查看所有</A></DIV></DIV>
<UL class=item id=newwrap>

 
<%=str_html_Product_new%>
 
 
 
 
 </UL>
 <div style=" clear:both;"></div>
</DIV>
<DIV class="mainbox clearfix">
<DIV class="clearfix mb10">
<H3 class=sub2 style="BACKGROUND: url(/content/images/mkl/cxjp.gif) no-repeat 5px 5px; width:70%"><A 
href="/list.aspx?action=hot" 
target=_blank>畅销精品</A></H3>
<DIV class="fl mt15" style="float:right; width:16%; margin-right:18px"><A class=morelink 
href="/list.aspx?action=hot" 
target=_blank>查看所有</A></DIV></DIV>
<UL class=item id=salewrap>
 
 <%=str_html_product_hot%>
 
 </UL>
  <div style=" clear:both;"></div>
</DIV></DIV>
<DIV class=side>
<DIV class="catalog bor1 mb5" id=catalog name="__ML">
<DIV class=h5>精品推荐</DIV>
<UL class="imgbox clearfix">
 
 <%model_ad = models_ad.GetAdByClassId(listmad, "8"); %>
  <LI style="width:100%"><A 
  href="<%=model_ad.Adurl %>" 
  target=_blank><IMG alt="" 
  src="<%=model_ad.Adpic %>"></A> 
  </LI>
 
 
 </UL>
</DIV>

<DIV class="bor1 tc mt5">
<DIV class=mb5  style="width:100%">
<%model_ad = models_ad.GetAdByClassId(listmad, "9"); %>
<A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG class=vm  
src="<%=model_ad.Adpic %>" ></A></DIV></DIV>
<%model_ad = models_ad.GetAdByClassId(listmad, "10"); %>

<DIV class=mt5  style="width:100%"><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG 
src="<%=model_ad.Adpic %>"></A></DIV></DIV></DIV>
 <div style=" clear:both;  "></div>
 <%=str_htm_product_main%>
  <div style=" clear:both;  "></div>
 <%model_ad = models_ad.GetAdByClassId(listmad, "11"); ; %>
<DIV class=banner name="__TL"  style="width:100%"><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG alt="" 
src="<%=model_ad.Adpic %>"  ></A>
  
</DIV>
<DIV class=banner1  style="width:100%">
<%model_ad = models_ad.GetAdByClassId(listmad, "14"); ; %>
<DIV class=mr5 name="__ZB01"  ><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG 
src="<%=model_ad.Adpic %>"></A></DIV>
<%model_ad = models_ad.GetAdByClassId(listmad, "13"); ; %>
<DIV class=mr5 name="__ZB02" style=" float:left;"><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG 
src="<%=model_ad.Adpic %>"></A></DIV>
<%model_ad = models_ad.GetAdByClassId(listmad, "12"); ; %>
<DIV name="__ZB03" style=" float:left"><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG 
src="<%=model_ad.Adpic %>"></A></DIV></DIV>
<div style=" clear:both;"></div>
<DIV class=clearfix name="__WZ">
<div class=fl style="width:220px; padding-right:4px; overflow:hidden" >
    <div class="affiche mr5" style="height:316px">
      <div class=h5><a 
href="/newscenter.aspx?id=87" 
target=_blank>更多»</a>商城公告</div>
      <ul    >
<%=str_html_index_gonggao%>
      </ul>
    </div>
  </div>
  <DIV class=fl style="float:left; width:490px;" >
<DIV class="comment clearfix" id=commentbox name="__PL" style="width:490">
<DIV class=h5><A class="hl2 f14 fb" 
href="/list.aspx?action=new" 
target=_blank>查看更多»</A>特价商品</DIV>
<div>
<%=str_htm_purduct_tejia_button %>
 </div>
  <div style="clear:both; "></div>
  </DIV></DIV>
<DIV class=fr  style="float:right; width:215px;" >
<DIV class="affiche mr5" style="height:316px; float:right;width:215px;">
<DIV class=h5><A href="/newscenter.aspx?id=88" 
target=_blank>更多»</A>新闻中心</DIV>
<UL>
<!--溢出时隐藏(如果边的范围超过总高度，那总高以外的数据隐藏)，总高为22px，行高为22px-->
<div style="overflow:hidden;height:280px;line-height:22px">
<!--调用marqueebox对象，行高22px，字体14px-->
<div id=marqueebox style="line-height:22px;font-size:12px">
<!--连接地址 窗口打开方式 显示文字-->
<div>
 
 
<%=str_html_index_news%>
</div>
</div></div>
<script>
    function startmarquee(lh, speed, delay) {   //函数 函数名(变量1,变量2,变量3)
        var p = false; //定义变量 p为假;
        var t; //定义变量t了
        var o = document.getElementById("marqueebox"); //定义变量o为document.getElementById("marqueebox")对象
        o.innerHTML += o.innerHTML; //设置变量o的innerHTML对象为自加
        o.style.marginTop = 0; //o的属性，设置或获取对象的上边距宽度
        o.onmouseover = function () { p = true; } //光标在滚动字幕范围内暂停滚动
        o.onmouseout = function () { p = false; } //光标在滚动字幕范围外也就是离开的时候继续滚动

        function start() { //“开始”函数
            t = setInterval(scrolling, speed); //给前面定义的变量t赋值=自动（滚动，速度）
            if (!p) o.style.marginTop = parseInt(o.style.marginTop) - 1 + "px"; //当P为空，属性o的上边距宽度为数字[把变量o上边距宽度转为integer类型，其中parseInt功能为转换]
        }

        function scrolling() { //“滚动”函数
            if (parseInt(o.style.marginTop) % lh != 0) { //如果对象o的上边距宽度为空，则为0（parseInt为转换作用）
                o.style.marginTop = parseInt(o.style.marginTop) - 1 + "px"; //上边距宽度为数字[把变量o上边距宽度转为integer类型，其中parseInt功能为转换]
                if (Math.abs(parseInt(o.style.marginTop)) >= o.scrollHeight / 2) o.style.marginTop = 0; //如果计算出来的上边距宽度大于或者等于滚动的高度除以2 则o的上边距宽度为0
            } else { //否则
                clearInterval(t); //指定T为空
                setTimeout(start, delay); //指定暂停时间(开始，延迟)
            } //相当于end if，表示结束如果
        } //相当于end if，表示结束如果

        //新的开始，不包含在前面的如果里面
        setTimeout(start, delay); //指定暂停时间(开始，延迟)
    }
    startmarquee(22, 20, 0); //滚动属性(滚动高度,速度,延迟)
</script>
 
 
 
 
 
 
  </UL></DIV>
</DIV>
</DIV></DIV>
<footeruc:ucfooter ID="footeruc" runat="server" />


<SCRIPT 
src="/content/images/mkl/hp1.js" 
type=text/javascript></SCRIPT>
<SCRIPT 
src="/content/images/mkl/comm.js" 
type=text/javascript></SCRIPT>
</BODY></HTML>

