<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    动软中国-Maticsoft
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        var GB_ROOT_DIR = "/greybox/";
    </script>

    <script type="text/javascript" src="/greybox/AJS.js"></script>

    <script type="text/javascript" src="/greybox/AJS_fx.js"></script>

    <script type="text/javascript" src="/greybox/gb_scripts.js"></script>

    <link href="/greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%= Html.Encode(ViewData["Message"]) %></h2>
    <p>
        <table cellspacing="0" cellpadding="0" width="549" border="0">
            <tbody>
                <tr>
                    <td valign="bottom" width="549" height="40">
                        <img height="25" src="images/cpzs1.gif" width="549">
                    </td>
                </tr>
                <tr>
                    <td valign="center" height="160">
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tbody>
                                <tr>
                                    <td align="middle" width="27%">
                                        <!-- 滚动图片控制-->
                                        <marquee scrollamount='2' scrolldelay='2' direction='left' width="96%" id="xiaoqing"
                                            onmouseover="xiaoqing.stop()" onmouseout="xiaoqing.start()">
                                        <TABLE style="BORDER-COLLAPSE: collapse; HEIGHT: 100%" id="uctrlNotification_lstMain" cellSpacing=0 cellPadding=2 border=0>
                                        
                                        <TR>
                                        <TD vAlign=middle noWrap>                                                                   
                                       
                                        <%                                             
                                            foreach (KeyValuePair<string, object> itemv in ViewData)
                                            {
                                                if (itemv.Key != "Productlist")
                                                {
                                                    continue;
                                                }                                               
                                        %>
                                        <%                                                
                                            foreach (Maticsoft.Model.Product item in (List<Maticsoft.Model.Product>)itemv.Value)
                                            {                                                                                         
                                        %>
                                         <a href="/ProductImages/<%=item.Image %>" title="商品信息" rel="gb_page_center[660, 500]">
                                        
                                           <img height=130 alt="<%=item.Name %>" src="/ProductImages/<%=item.Image %>" width=150 border=0 />
                                        </a>
                                        <% } %>
                                        <% } %>                                          
                                          </TD>
                                          </TR>
                                          </TABLE></marquee>
                                        <!--滚动图片控制end-->
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <table cellspacing="0" cellpadding="0" width="530" border="0">
                            <tbody>
                                <tr>
                                    <td align="right">
                                        <a href="/Product/Index">
                                            <img height="9" src="images/more.gif" width="38" border="0"></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <table cellspacing="0" cellpadding="0" width="549" border="0">
            <tbody>
                <tr>
                    <td width="549">
                        <img height="28" src="images/shouye_r1_c2.gif" width="559">
                    </td>
                </tr>
                <tr>
                    <td height="6">
                    </td>
                </tr>
                <tr>
                    <td valign="top" background="images/shouye_r4_c2.gif" height="120">
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tbody>
                                <tr align="middle">
                                    <td valign="top" width="51%">
                                        <!--新闻-->
                                        <% foreach (KeyValuePair<string, object> itemv in ViewData)
                                           {
                                               if (itemv.Key != "Newslist")
                                               {
                                                   continue;
                                               }                                               
                                        %>
                                        <% foreach (Maticsoft.Model.News item in (List<Maticsoft.Model.News>)itemv.Value)
                                           {                                                                                         
                                        %>
                                        <table width="87%" cellpadding="0" border="0" cellspacing="0">
                                            <tr>
                                                <td height="25" align="left">
                                                    <a class="0" href="/News/Details/<%=item.NewsId %>" title="新闻信息" >
                                                        <%=item.Heading%>
                                                    </a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td background="images/shouye_r8_c4.gif" height="1">
                                                </td>
                                            </tr>
                                        </table>
                                        <% } %>
                                        <% } %>
                                        <div style="text-align: right; width: 87%">
                                            <a href="/Home/News">
                                                <img height="9" src="images/more.gif" width="38" border="0"></a>
                                        </div>
                                    </td>
                                    <td valign="top" width="49%">
                                        <!--产品-->
                                        <% foreach (KeyValuePair<string, object> itemv in ViewData)
                                           {
                                               if (itemv.Key != "Productlist")
                                               {
                                                   continue;
                                               }                                               
                                        %>
                                        <% foreach (Maticsoft.Model.Product item in (List<Maticsoft.Model.Product>)itemv.Value)
                                           {                                                                                         
                                        %>
                                        <table width="87%" cellpadding="0" border="0" cellspacing="0">
                                            <tr>
                                                <td height="25" align="left">
                                                    <a class="0" href="/Product/Details/<%=item.ProductId %>" title="产品信息">
                                                        <%=item.Name %>
                                                    </a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td background="images/shouye_r8_c4.gif" height="1">
                                                </td>
                                            </tr>
                                        </table>
                                        <% } %>
                                        <% } %>
                                        <div style="text-align: right; width: 87%">
                                            <a href="/Product/Index">
                                                <img height="9" src="images/more.gif" width="38" border="0"></a>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </p>
    <p>
        要了解更详细信息，请访问 <a href="http://www.maticsoft.com/" target="_blank" title="动软官方网站">http://www.maticsoft.com/</a>.
    </p>
</asp:Content>
