<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_Commodity_Add, LebiMall" enableviewstate="false" %>

<!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 runat="server">
    <title>商品添加</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/Ajax.js"></script>
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script src="js/topHead.js" type="text/javascript"></script>
    <script type="text/javascript">
        var $=jQuery;
        
        function select(){
            document.getElementById("shopId").value = document.getElementById("shop").value;
            doRequest("Sax_count.ashx?shopId="+document.getElementById("shopId").value);
        }
        
        function jixu(){
            var typeId = document.getElementById("typeId").value;
            var shopId = document.getElementById("shopId").value;
            window.location.href="Commodity_Add2.aspx?typeId="+typeId+"&shopId="+shopId;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
         <script>header(2,0,"images/");</script>
    <!--面包屑-->
    <div class="blank clearfix"></div>
    
    <!--功能区-->
   <div class="tabmenus mainwidth">
            <ul>
                <li><a href="Commodity_List.aspx"><span>商品管理</span></a></li>
                <li class="current"><a href="Commodity_Add.aspx"><span>商品添加</span></a></li>
                <li><a href="Commodity_sort.aspx"><span>商品推荐</span></a></li>
                <li><a href="Commodity_Search.aspx"><span>商品高级搜索</span></a></li>
            </ul>
        </div>
    <div class="tab-mainbody">
        <div class="tab-mainbody2">
        <div class="functionHandleArea clearfix">
            <div style="float: left;">
             <input type="button" id="btnSub" border="0" title=" 继 续 " class="btn-app" align="absmiddle"  runat="server" disabled="disabled" onserverclick="btnSub_ServerClick" />
                             <input type="button" id="btn_bak" border="0" title=" 返回 " style="cursor: pointer;width:55px; height:18px; border-right-style:none; border: 0px solid #FFF; border-bottom-style:none; background-image:url(images/bt_bak.gif);"
                                align="absmiddle"  runat="server"  onclick="javascript:history.back();" />
            </div>
            <div style="float: right;">
                &nbsp;
            </div>
        </div>
        <div id="datalist">
                <table cellpadding="0" cellspacing="0" width="100%" id="list">
                    <tr>
                        <th>
                            商品添加</th>
                    </tr>
                    <tr>
                        <td style="background-color:#FFFFFF;">
                            <div id="right"  class="contenter" style="border-color: red; ">
                                <div style="border-color: red;">
                                    <div style="float: left;">
                                        <h3>
                                            请选择商铺：</h3>
                                    </div>
                                    <div style="float: left;">
                                        <select id="shop" onchange="select()">
                                              <%
                                                  for (int i = 0; i < ds.Tables[0].Rows.Count;i++ )
                                               {  %>
                                                <option value="<%=ds.Tables[0].Rows[i]["id"] %>"><%=ds.Tables[0].Rows[i]["sname"] %></option> 
                                             <%   } %>
                                        </select>
                                    </div>
                                    <div style="clear: both;">
                                    </div>
                                </div>
                                <div id="serverResponse"  runat="server" style="color:Red;"></div>
                                <div  class="contenter">
                                    &nbsp;<h3 class="shop clearfix">
                                        请选择类别&nbsp;<span class="switchnav"><span id="switchnav"></span></span></h3>
                                    <div style="display: none" id="type_div"  runat="server">
                                    </div>
                                    <ul class="postboardlist" style="border-color: #5088AA;">
                                        <li style="border-color: #5088AA;" id="block_group"></li>
                                        <li style="border-color: #5088AA;" id="block_forum"></li>
                                        <li style="border-color: #5088AA;" id="block_subforum"></li>
                                    </ul>
                                    <p runat="server" id="div_btn">
                                        <input type="hidden" id="typeId" runat="server" />
                                        <input type="hidden" id="shopId" runat="server" value="1"/>
                                        <input type="button" title="继续" class="btn-app" style="float: left;" id="enterbtn" onclick="locationforums(currentblock, currentfid);"
                                            runat="server" onserverclick="enterbtn_ServerClick" disabled="disabled" />
                                    </p>
                                    <script type="text/javascript" src="js/ryjs.js"></script>
									<script type="text/javascript">goto_page();</script>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div></div>
        </div>
    </form>
</body>
</html>
