<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>ActorList</title>
    <style type="text/css">
        body
        {
            font-size:11pt;  
            line-height:13px;  
        }
        .tdBorder
        {
            border:1px solid #cccccc;
            border-right-width:0px;
            border-bottom-width:0px;
            padding:6px;
        }
        .text
        {
            width:150px;
            height: 22px;
            text-align:left;
            border: #A2A2A2 1px solid;
            font-size:12px;
            padding-left:3px;    
        }
        .select
        {
            width:158px;
            height: 22px;
            line-height:22px;
            text-align:left;
            border: #A2A2A2 1px solid;
            font-size:12px;
            padding-left:3px;   
        }
    </style>
    <script src="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Scripts/Common.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var typID = $("#TypID").val();
            $("#TypeList").val(typID);
        });
        function Search() {
            $("#f1").submit();
        }
    </script>
</head>
<body>
    <div>
        <form id="f1" action="" method="post">
        <table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="tdBorder" style="border-right-width:1px; border-bottom-width:1px;">
                    <table width="600" border="0" cellpadding="3" cellspacing="0">
                        <tr>
                            <td width="20%" align="right">展位号：</td>
                            <td width="30%" align="left"><input type="text" class="text" id="Code" name="Code" value="<%=ViewData["Code"] %>" /></td>
                            <td width="20%" align="right">展商名称：</td>
                            <td width="30%" align="left"><input type="text" class="text" id="Name" name="Name" value="<%=ViewData["Name"] %>" /></td>
                        </tr>
                        <tr>
                            <td align="right">产品类别：</td>
                            <td align="left">
                                <%--<input type="text" class="text" id="Type" name="Type" value="<%=ViewData["Type"] %>" />--%>

                                <select class="select" id="TypeList" name="TypeList" style="">
                                    <option value="">--请选择--</option>
                    <% 
                        System.Data.DataTable dtType = ViewData["TypeList"] as System.Data.DataTable;
                        if (dtType.Rows.Count > 0)
                        {
                            foreach (System.Data.DataRow drType in dtType.Rows)
                            {
                    %>
                                    <option value="<%=drType["TypID"] %>"><%=drType["TypName"] %></option>
                    <%
                            }
                        }
                    %>
                                </select>
                                <input type="hidden" id="TypID" name="TypID" value="<%=ViewData["TypID"] %>" />
                            </td>
                            <td align="right">产品关键字：</td>
                            <td align="left"><input type="text" class="text" id="Key" name="Key" value="<%=ViewData["Key"] %>" /></td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center">
                                <a href="javascript:Search();">查询</a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr><td>&nbsp;</td></tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="center" width="20%" class="tdBorder">展位号</td>
                            <td align="center" width="50%" class="tdBorder">展商名称</td>
                            <td align="center" width="30%" class="tdBorder" style="border-right-width:1px;">产品关键字</td>
                        </tr>
                    <% 
                        System.Data.DataTable dt = ViewData["Data"] as System.Data.DataTable;
                        if (dt.Rows.Count > 0)
                        {
                            foreach (System.Data.DataRow dr in dt.Rows)
                            {  
                    %>
                        <tr>
                            <td align="left" class="tdBorder"><%=Server.HtmlEncode(dr["BthCode"].ToString()) %></td>
                            <td align="left" class="tdBorder">
                                <a href="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/WebShow/ActorInfo/<%=dr["AtrID"] %>" target="_self">
                                <%=Server.HtmlEncode(dr["AtrName"].ToString()) %>
                                </a>
                            </td>
                            <td align="left" class="tdBorder" style="border-right-width:1px;"><%=Server.HtmlEncode(dr["ProductKey"].ToString())%></td>
                        </tr>
                    <%
                            }
                    %>
                        <tr>
                            <td colspan="3" class="tdBorder" style="border-right-width:1px; border-bottom-width:1px;">
                                <script type="text/javascript">
                                    PagerPost.Display("<%=ViewData["Page"] %>","<%=ViewData["PageSize"] %>","<%=ViewData["TotalNum"] %>","f1");
                                </script>
                            </td>
                        </tr>
                    <%
                        }
                        else
                        { 
                    %>
                        <tr>
                            <td colspan="3" style="height:40px; text-align:center; vertical-align:middle; border-right-width:1px; border-bottom-width:1px;" class="tdBorder">暂无相关信息</td>
                        </tr>
                    <%    
                        }
                    %>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <input type="hidden" id="ExhID" name="ExhID" value="<%=ViewData["ExhID"] %>" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
