<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_Commodity_Search, 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>
    <script type="text/javascript" language="javascript" src="js/ryjs.js"></script>
     <script type="text/javascript" src="../images/js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="js/checked.js"></script>
    <script type="text/javascript" src="../images/js/Ajax.js"></script>
    <link rel="stylesheet" type="text/css" href="css/css.css"/>
    <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;
        }
        
        function brand(){
            document.getElementById(); 
        }
        function selectBrand(){
              document.getElementById("brandName").value = document.getElementById("brand").value;
        }
        function _init(id){
            doRequest("Handler.ashx?typeId="+id);
        }
    </script>
</head>
<body onload="_init('kkkk')">
    <form id="form1" runat="server">
        <input type="hidden" name="hidsort" id="hidsort" />
         <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><a href="Commodity_Add.aspx"><span>商品添加</span></a></li>
            <li><a href="Commodity_sort.aspx"><span>商品推荐</span></a></li>
            <li class="current"><a href="Commodity_Search.aspx"><span>商品高级搜索</span></a></li>
        </ul>
    </div>
    <div class="tab-mainbody">
        <div class="tab-mainbody2">
        <div class="functionHandleArea clearfix">
            <input type="image" border="0" title=" 提交 " src="images/bt_app.gif" align="absmiddle" id="Image1" runat="server" onserverclick="imgSub_ServerClick">
            <input type="image" name="Submit" title=" 重置 " onclick="reset();return false;" src="images/bt_res.gif"
                align="absmiddle">
            <input type="image" border="0" title=" 返回 " runat="server" src="images/bt_bak.gif" onclick="history.back();return false;"  align="absmiddle" id="Image2">
        </div>
        <div id="datalist">
                <table cellpadding="0" cellspacing="0" width="100%" id="list">
                    <tr>
                        <th colspan="2">
                            商品高级搜索</th>
                    </tr>
                    <tr>
                        <td width="15%" >
                            商品名称：
                        </td>
                        <td >
                            <input type="text" runat="server" id="Cname" class="input" />
                        </td>
                    </tr>
                    <tr >
                        <td >
                            所属类别：
                        </td>
                        <td   >
                            <asp:TextBox ID="txtHeadID" Enabled="false" runat="server" class="input" MaxLength="150"
                                AutoPostBack="True" ReadOnly="True">默认为全部</asp:TextBox>
                            <asp:HiddenField ID="hftxtHeadID" runat="server" Value="0" />
                            <input id="btnGetCatagory" type="button" onclick="openDi('txtHeadID')"
                                value="" class="btn-choose"/>
                        </td>
                    </tr>
                    <tr >
                        <td >
                            所属品牌：
                        </td>
                        <td  style="width: 30px;">
                        <div id="serverResponse"></div>
                        </td>
                    </tr>
                    <tr >
                        <td  style="height: 26px">
                            所属店铺：
                        </td>
                        <td  style="height: 26px">
                           <select id="shop" onchange="select()">
                           <option value="0">---请选择---</option>
                            <% 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>
                        </td>
                    </tr>
                    <tr >
                        <td >
                            商品状态：
                        </td>
                        <td  >
                            <input type="radio" checked id="sj" name="zhuangtai" runat="server"/>上架&nbsp;<input type="radio" id="xj" name="zhuangtai" runat="server"/>下架&nbsp;
                        </td>
                    </tr>
                    <tr >
                        <td  style="height: 26px">
                            上架日期：
                        </td>
                        <td  style="height: 26px">
                            <input type="text" runat="server" id="sjtime" class="texttime" style="width:100px;"  value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',skin:'whyGreen',autoPickDate:'null'})" />&nbsp;-&nbsp;<input type="text"
                                runat="server" id="xjtime" class="texttime" size="12" style="width:100px;" value=""  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',skin:'whyGreen',autoPickDate:'null'})"/>
                        </td>
                    </tr>
                    <tr >
                        <td  >
                            销售数量：
                        </td>
                        <td >
                            <select id="selectSales" runat="server">   
                                <option value="=">等于</option>
                                <option value=">">大于</option>
                                <option value="<">小于</option>
                            </select>
                            <input type="text" runat="server" id="CSales_num" class="input" size="5" value="" onkeyup="value=value.replace(/[^\d]/g,'')"
                                onblur="value=value.replace(/[^\d]/g,''),checktxtOrder();" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>&nbsp;件
                        </td>
                    </tr>
                    <tr >
                        <td >
                            浏览次数：
                        </td>
                        <td >
                            <input type="text" runat="server" id="clickCount1" size="5" class="input" value="" onkeyup="value=value.replace(/[^\d]/g,'')"
                                onblur="value=value.replace(/[^\d]/g,''),checktxtOrder();" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>&nbsp;至&nbsp;<input
                                type="text" size="5" runat="server" id="clickCount2" class="input" value="" onkeyup="value=value.replace(/[^\d]/g,'')"
                                onblur="value=value.replace(/[^\d]/g,''),checktxtOrder();" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/> &nbsp;次
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="list-foot" >
                            <input type="image" border="0" title=" 提交 " runat="server"
                                src="images/bt_app.gif" onclick="selectBrand();" align="absmiddle" id="imgSub" onserverclick="imgSub_ServerClick">
                        </td>
                    </tr>
                </table>
                <script type="text/javascript">tdshowm("list");</script>
            </div>
            <div style="display:none">
                <input type="hidden" id="shopId" runat="server" value="0"/>
                <input type="hidden" id="brandName" runat="server" value="0" />
            </div>
            </div>
        </div>
    </form>
</body>
</html>
