<%@ page language="C#" validaterequest="false" masterpagefile="~/Shop/ShopMasterPage/ShopMasterPage.master" autoeventwireup="true" inherits="Shop_Auction_shop_request_product, HoWaveVGO" viewstateencryptionmode="Never" enableviewstatemac="false" title="发布商品求购信息" enableEventValidation="false" %>
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<%@ Register Src="../UserControls/HowaveProvinceCity.ascx" TagName="HowaveProvinceCity"   TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<link href="css/ShopSaleProduct.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript">
   var imageObject;
function ResizeImage(obj, MaxW, MaxH)
{
    if (obj != null) imageObject = obj;
    var state=imageObject.readyState;
	if(state!='complete') {
        setTimeout("ResizeImage(null,"+MaxW+","+MaxH+")",50);
		return;
    }
    var oldImage = new Image();
    oldImage.src = imageObject.src;
    var dW=oldImage.width; var dH=oldImage.height;
    if(dW>MaxW || dH>MaxH) {
        a=dW/MaxW; b=dH/MaxH;
        if(b>a) a=b;
        dW=dW/a; dH=dH/a;
    }
    if(dW > 0 && dH > 0) {
        imageObject.width=dW;
		imageObject.height=dH;
	}
}
</script>

<table  class="SellProductDetail" id="table1">
    <tr>
     <td class="p_title"><b>*</b>求购商品类别</td>
     <td class="p_cnt"><asp:Literal ID="Reuqest_Class" runat="server" /></td>
    </tr>
    <tr>
     <td class="p_title"><b>*</b>求购商品名称：</td>
     <td class="p_cnt"><asp:TextBox ID="p_name" runat="server" Width="300px"/><br />
     <span style="color:Gray">
       <br />标题请限定在20个汉字内（40个字符）。如：求购佳能a70数码相机；求购纯白t恤衬衫。请写清楚您要求购的宝贝名称，卖家才能更容易看到您的求购信息。
     </span>
     </td>
    </tr>
    <tr>
     <td class="p_title"><b>*</b>对商品的要求：</td>
     <td class="p_cnt">
      <fckeditorv2:FCKeditor ID="p_intro" runat="server"  AutoDetectLanguage="true" BasePath="../../FCKEditor/"  Height="400px" EnableViewState="false"></fckeditorv2:FCKeditor>             
      <span style="color:Gray"><br />佳能A70的新旧程度；T恤衬衫的型号，质地等等。描述得具体，卖家才能尽快提供给您合适的宝贝。</span>
      </td>
   </tr>
  </table>
  <table  class="SellProductDetail" id="table2">  
    <tr>
      <td class="p_title">上传商品图片：</td>
      <td class="p_cnt">
         <div style="float:left"><asp:FileUpload ID="FileUpload1" runat="server" /></div>
           <div id="previewImage" style="float:right; height:100px; width:100px; border:solid 1px black; text-align:center;">
                  缩微图
            </div>
      </td>
    </tr>
    <tr>
      <td class="p_title"><b>*</b>求购数量：</td>
      <td class="p_cnt"><asp:TextBox ID="p_num" runat="server" Text="1" Width="30px" MaxLength="4"/>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="p_num"
                 ErrorMessage="不能空" Display="Dynamic"/>
             <asp:RangeValidator ID="rv1" runat="server" ControlToValidate="p_num"
                 ErrorMessage="整数类型" MaximumValue="9999999" MinimumValue="1" Type="Integer" Display="Dynamic"/>
      </td>
     </tr>
     <tr>
      <td class="p_title"><b>*</b>单位：</td>
      <td class="p_cnt">
       <asp:TextBox ID="P_uint" runat="server" Width="40px" Text="件"/>  
                <select onchange='document.getElementById("ctl00$ContentPlaceHolder1$P_uint").value=this.value'  name="selectmsg">                         
                         <option value="件" selected>件</option>
                         <option value="个">个</option>
                         <option value="台">台</option>
                         <option value="批">批</option>
                         <option value="箱">箱</option>
                         <option value="本">本</option>
                         <option value="双">双</option>
                         <option value="瓶">瓶</option>
                         <option value="" >其它</option>
                 </select>   
             <asp:RequiredFieldValidator ID="rfv4" runat="server" ControlToValidate="P_uint"
                 ErrorMessage="不能空" Display="Dynamic"/>
       </td>
      <tr>
      <td class="p_title"><b>*</b>商品价格：</td>
      <td class="p_cnt"><asp:TextBox ID="p_price" runat="server" MaxLength="6" Width="50px" />
             元
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="p_price"
                 ErrorMessage="不能空" Display="Dynamic"/>
             <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="p_price"
                 ErrorMessage="数字类型" MaximumValue="999999999" MinimumValue="0" Type="Double" Display="Dynamic"/>
      </td>
      </tr>
      <tr>
      <td class="p_title"><b>*</b>求购有效期：</td>
      <td class="p_cnt"><asp:TextBox ID="p_validay" runat="server" Text="7" Width="30px" MaxLength="2"/>
             天<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="p_validay"
                 ErrorMessage="不能空"/>
             <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="p_validay"
                 ErrorMessage="整数类型" MaximumValue="9999999" MinimumValue="1" Type="Integer" Display="Dynamic"/></td>
      </tr>
      <tr>
      <td class="p_title">求购所在地：</td>
      <td class="p_cnt">
             <uc1:HowaveProvinceCity ID="HowaveProvinceCity1" runat="server" />
      </td>
      </tr>
      <tr>
      <td class="p_title">心情故事：</td>
      <td class="p_cnt"><asp:TextBox ID="p_remark" runat="server" TextMode="MultiLine" Height="100px" Width="300px" /></td>
      </tr>
      <tr>
      <td class="p_title"></td>
         <td class="p_cnt"><asp:label ID="err_tips" runat="server"/></td>
      </tr>
      <tr><td colspan="2" align="center">
        <asp:Button ID="prev_Button" runat="server" Text="预 览" Visible="false" /><asp:Button ID="submit_btn" runat="server" Text="确认无误，提交" OnClick="submit_btn_click" />
   </td>
  </tr>
</table> 

</asp:Content>

