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

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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 id="Head1" runat="server">
    <title><%=model_t.Title%>-修改产品</title>
    <meta name="description" content=<%=model_t.Description %> />
    <meta name="keywords" content=<%=model_t.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css2.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css3.css" rel="stylesheet" type="text/css" />   
    <link href="images/css/shopcss.css" rel="stylesheet" type="text/css" />      
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript" src="images/js/upload_img.js"></script>
    <script type="text/javascript" src="images/js/addc2.js"></script>
    <script type="text/javascript">
        function ischeck(){
            var list=document.getElementsByName("tcc");
            var value_='<%=strlist %>';
            var list_value=value_.split('|');
            for(var x=0;x<list_value.length;x++){
                for(var y=0;y<list.length;y++){
                    if(list_value[x]==list[y].value){
                       list[y].checked=true;
                    }
                }
            }
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>
</head>
<body>
    <div id="top-menu02">
        <div id="top-menu">
            <div class="right">
                <script type="text/javascript">indexhead();</script>
            </div>
        </div>
    </div>
    <div id="top">
        <div id="logo">
            <a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">
                <img src="Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
       <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
        <p>
            <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
    </div>
    
    <div id="contenter2">
        <div id="contenter">
            <script type="text/javascript">
                shopLeft();
            </script>
            <div id="right">
                <div class="page-title">
                    <a class="back" href="#" onclick="javascript:window.history.back();"><span>返回上一页</span></a>
                    <h2 class="shop clearfix">
                        商品修改</h2>
                </div>
                <div class="contenter">
                    <form id="form1" runat="server" onsubmit="return val2();">
                         <div style="margin-bottom: 5px;">
                            1. 宝贝基本信息</div>
                        <table>
                            <tr>
                                <td class="td_title">
                                    品牌：
                                </td>
                                <td class="td_content">
                                    <select id="Select1" runat="server" onchange='document.getElementById("hi_brand").value=this.value;'>
                                    </select>&nbsp; 其他品牌：<input id="txt_brand" type="text" runat="server" class="addtext" />
                                    <span class="red">*</span>
                                    <input type="hidden" runat="server" id="hi_brand" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    产品标题：
                                </td>
                                <td class="td_content">
                                    <input id="txt_title" class="addtext2" type="text" runat="server" />
                                    <span class="red">*</span><span id="title_msg" class="red"></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    价 格：
                                </td>
                                <td class="td_content">
                                    <input id="txt_price" class="addtext5" type="text" runat="server" />&nbsp;元<span
                                        class="red">*</span><span id="price_msg" class="red"></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    减 款：
                                </td>
                                <td class="td_content">
                                    <input id="txt_jk" class="addtext5" type="text" runat="server" value=0 />&nbsp;元
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    商家编码：
                                </td>
                                <td class="td_content">
                                    <input id="txt_no" class="addtext" type="text" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    数 量：
                                </td>
                                <td class="td_content">
                                    <input id="txt_num" class="addtext4" type="text" value="1" onkeyup="value=value.replace(/[^\d]/g,'')"
                                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"
                                        runat="server" />
                                    <select id="Select2" runat="server" onchange='document.getElementById("hidden_u").value=this.value;'>
                                    </select>
                                    <span class="red">*</span><span id="num_msg" class="red"></span>
                                    <input type="hidden" id="hidden_u" runat="server" value="1" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title2">
                                    图片：
                                </td>
                                <td class="td_content3">
                                    <div id="preview_wrapper" style="float: left;">
                                        <div id="preview_fake">
                                            <img id="preview" onload="onPreviewLoad(this)" src="Upload/commodity/<%=dsc.Tables[0].Rows[0]["Cmin_img"] %>" />
                                        </div>
                                    </div>
                                    <div class="add_upload_">
                                    <input id="upload_img" type="file" onchange="onUploadImgChange(this)" runat="server" /><br />
                                    图片应小于120k，jpg或gif格式。建议为500x500像素</div>
                                </td>
                            </tr>
                            <tr><td class="td_content3">产品大图</td><td class="td_content3">
                                 <textarea id="cpic" name="cpic" disabled="disabled" class="txtarea_" runat="server"  cols="30" rows="4" ></textarea>
                                 <input type="hidden" id="hidcpic" runat="server"/>
                                 <iframe src="admin/upload1.aspx" frameBorder=0 width="290" height="70px" scrolling=no allowtransparency="true"></iframe>&nbsp;<label style="color:Red;">*</label><span id="txt_maxpic"></span>
                            </td></tr>
                            <tr>
                                <td class="td_title">
                                    规 格：
                                </td>
                                <td class="td_content3">
                                    <textarea id="txt_guige" class="txtarea_" cols="30" rows="3" runat="server"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    描 述：
                                </td>
                                <td class="td_content4">
                                    <div style="float: left;"><FCKeditorV2:FCKeditor ID="fck" runat="server" BasePath="~/images/js/fckeditor/"
                                        Height="250px" Width="600px">
                                    </FCKeditorV2:FCKeditor></div>
                                    <div class="red" style="float: left;">
                                        *</div>
                                        <div class=both></div>
                                    <span id="inc_msg" class="red"></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    备 注：
                                </td>
                                <td class="td_content4">
                                    <textarea id="txt_remark" class="txtarea_" cols="30" rows="3" runat="server"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title2">
                                    店铺类目：</td>
                                <td class="td_content">
                                    <div runat="server" id="shop_div">
                                    </div>
                                    <input type="hidden" id="hid_stypeid" runat="server" />
                                </td>
                            </tr>
                        </table>
                        <div style="margin-bottom: 5px;">
                             2. 其他信息</div>
                        <table>
                            <tr>
                                <td class="td_title3">
                                    运 费：</td>
                                <td class="td_content">
                                    <input id="Radio1" name="yfradio" type="radio" onclick="document.getElementById('yf').style.display='none';"
                                        runat="server" />卖家承担运费<br />
                                    <input id="Radio2" name="yfradio" type="radio" onclick="document.getElementById('yf').style.display='block';"
                                        runat="server" />买家承担运费
                                </td>
                            </tr>
                            <tr id="yf" runat="server">
                                <td class="td_title2">
                                </td>
                                <td class="td_content4">
                                    平邮：<input id="txt_py" class="addtext3" type="text" runat="server" />元&nbsp;&nbsp; 
                                    快递：<input id="txt_kd" class="addtext3" type="text" runat="server" />元&nbsp;&nbsp; 
                                    EMS：<input id="txt_ems" class="addtext3" type="text" runat="server" />元
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    排 序：</td>
                                <td class="td_content">
                                    <input id="txt_sort" class="addtext3" type="text" value="0" runat="server" onkeyup="value=value.replace(/[^\d]/g,'')"
                                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    橱窗推荐：</td>
                                <td class="td_content">
                                    <input id="Checkbox1" type="checkbox" runat="server" />是
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    放入仓库：</td>
                                <td class="td_content">
                                    <input id="Checkbox2" type="checkbox" runat="server" />是
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    发 票：</td>
                                <td class="td_content">
                                    <input id="Radio3" name="fradio" type="radio" checked runat="server" />无<input runat="server"
                                        name="fradio" id="Radio4" type="radio" />有
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    保 修：</td>
                                <td class="td_content">
                                    <input id="Radio5" name="bradio" type="radio" checked runat="server" />无<input runat="server"
                                        name="bradio" id="Radio6" type="radio" />有
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    货到付款：</td>
                                <td class="td_content">
                                    <input id="Radio7" name="hradio" type="radio" checked runat="server" />无<input runat="server"
                                        name="hradio" id="Radio8" type="radio" />有
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="td_content3" style="padding-left:90px;">
                                    <input id="Button1" type="button" value="确 定" runat="server" onclick="val();" onserverclick="Button1_ServerClick" />
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>

             <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="copyright" runat="server" id="copr"></div>
        </div>
    </div>
    <div style="float: right; width: 0; height: 0; overflow: hidden;">
        <img id="preview_size_fake" /></div>
 </body>
</html>
