<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="editbuy.aspx.cs" Inherits="HeyuanHouse.Web.member.editbuy" %>
<%@ Register src="../siteheader.ascx" tagname="siteheader" tagprefix="uc1" %>
<%@ Register src="../sitefooter.ascx" tagname="sitefooter" tagprefix="uc2" %>
<%@ Register src="membernav.ascx" tagname="membernav" tagprefix="uc3" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>河房网 - 专业的房产信息交易平台 - www.0762h.com</title>
<link href="../images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../editor/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../editor/xheditor-zh-cn.js"></script>
<script type="text/javascript" src="../editor/xheditor_plugins/ubb.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$('#txtdetail').xheditor(true,{plugins:{Code:{c:'btnCode',t:'插入代码',e:function(){
			var _this=this;
			var htmlCode='<div><select id="xheCodeType"><option value="html">HTML/XML</option><option value="javascript">JavaScript</option><option value="css">CSS</option><option value="php">PHP</option><option value="csharp">C#</option><option value="cpp">C++</option><option value="java">Java</option><option value="perl">Perl</option><option value="python">Python</option><option value="ruby">Ruby</option><option value="vb">Visual Basic</option><option value="delphi">Delphi</option><option value="as3">Action Script 3</option><option value="sql">SQL</option><option value="plain">其它</option></select></div><div><textarea id="xheCodeValue" wrap="soft" spellcheck="false" style="width:300px;height:100px;" /></div><div style="text-align:right;"><input type="button" id="xheSave" value="确定" /></div>';
			var jCode=$(htmlCode),jType=jSave=$('#xheCodeType',jCode),jValue=jSave=$('#xheCodeValue',jCode),jSave=$('#xheSave',jCode);
			jSave.click(function(){
				_this.focus();
				_this.pasteText('[code='+jType.val()+']\r\n'+jValue.val()+'\r\n[/code]');
				_this.hidePanel();
				return false;	
			});
			_this.showDialog(jCode);
		}}},
		tools:'FontSize,FontColor,Bold,Italic,Underline,Removeformat,Separator,Align,Link,Unlink,Separator,Blocktag',forcePtag:false,showBlocktag:false,beforeSetSource:ubb2html,beforeGetSource:html2ubb,emots:{'qq':{'name':'QQ','count':55,'width':25,'height':25,'line':11}},emotMark:true});
}
//function submitForm(){$('#frmDemo').submit();}
</script>
</head>
<body>
<form id="form1" runat="server">
<uc1:siteheader ID="siteheader1" runat="server" />
<div id="sitenav">您现在的位置：<a href="/">河房网</a> &gt;&gt; <a href="/member/">会员中心</a></div>
<div class="main">
  <div class="boxright">
    <uc3:membernav ID="membernav1" runat="server" />
</div>
  <div class="boxlefts">
<div id="myistit"><span>修改求购信息</span> (<font color="red">*</font>号必须填写)</div>
<div id="myissay">
<table width="100%" border="0" cellpadding="8" cellspacing="0" class="usertables">
              <tr>
				<td align="right"><em>*</em>房屋类型：</td>
				<td>
				<asp:DropDownList runat="server" ID="ddlhouseclass" DataValueField="cid" DataTextField="name" />
				<span class="menber_right_post_span">（1-7层为普通住宅，8-12层为小高层，13层以上为高层）</span></td>
			  </tr>
              <tr>
				<td align="right"><em>*</em>标题：</td>
				<td><asp:TextBox runat="server" ID="txttitle" Width="250px" MaxLength="25" /><span class="menber_right_post_span">（25个字以内，例如:求购1室1厅）<asp:RequiredFieldValidator 
                        ID="rfvfortitle" runat="server" ControlToValidate="txttitle" Display="None" 
                        ErrorMessage="请填写标题"></asp:RequiredFieldValidator>
                    </span></td>
			  </tr>
			  <tr>
				<td width="15%" align="right"><em>*</em>所在区域：</td>
				<td>
				<asp:DropDownList runat="server" ID="ddlarea" DataValueField="aid" DataTextField="name" />
				</td>
			  </tr>
			  <tr>
				<td align="right">靠近地段：</td>
				<td><asp:TextBox runat="server" ID="txtaddress" Width="250px" MaxLength="25" /><span class="menber_right_post_span">（25个字以内，可填写小区名、靠近路段以及标志性建筑）</span></td>
			  </tr>
			  <tr>
				<td align="right"><em>*</em>有效期：</td>
				<td>
				<asp:DropDownList runat="server" ID="ddldateendlevel">
				  <asp:ListItem Text="一个月" Value="1" />
				  <asp:ListItem Text="二个月" Value="2" />
				  <asp:ListItem Text="三个月" Value="3" />
				  <asp:ListItem Text="半年" Value="6" />
				  <asp:ListItem Text="一年" Value="12" />
				</asp:DropDownList>
				</td>
			  </tr>
			  <tr>
				<td align="right">价格要求：</td>
				<td>
				<asp:TextBox runat="server" ID="txtsellmoney" MaxLength="6" />万元
				</td>
			  </tr>
			  <tr>
				<td align="right" valign="top">房屋详细描述：</td>
				<td><span class="menber_right_post_span">
                    房屋朝向、联系时间、周围环境和设施、求租方式，个人情况介绍等<br /></span></td>
			  </tr>
			  <tr>
			    <td></td>
			    <td colspan="1" align="center" valign="top">
			    <div>
			    <!--编辑器-->
			    <asp:TextBox runat="server" ID="txtdetail" Rows="12" Columns="80" Width="100%" TextMode="MultiLine" />
			    </div></td>
		      </tr>
		       <tr>
				<td colspan="2"><h2>您的联系方式</h2></td>
			  </tr>
			  <tr>
				<td align="right"><em>*</em>联系人：</td>
				<td><asp:TextBox runat="server" ID="txtlinkman" MaxLength="20" /><span class="menber_right_post_span">
                    <asp:RequiredFieldValidator ID="rfvlinkman" runat="server" 
                        ControlToValidate="txtlinkman" Display="None" ErrorMessage="请填写联系人"></asp:RequiredFieldValidator>
                    </span></td>
			  </tr>
			  <tr>
				<td align="right"><em>*</em>联系电话：</td>
				<td><asp:TextBox runat="server" ID="txtlinktel" MaxLength="20" /><span class="menber_right_post_span">
                    <asp:RequiredFieldValidator ID="rfvlinktel" runat="server" 
                        ControlToValidate="txtlinktel" Display="None" ErrorMessage="请填写联系电话"></asp:RequiredFieldValidator>
                    </span></td>
			  </tr>
			  
			  <tr>
			    <td align="center" valign="top">&nbsp;</td>
		        <td valign="top">
		        <asp:Button runat="server" ID="btnPost" CssClass="member_right_posted" 
                        Text="修改完成,我要保存" onclick="btnPost_Click" />
		        <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="请按下面提示填写信息再发布" 
                        ShowMessageBox="True" ShowSummary="False" />
		        </td>
			  </tr>
		  </table>
</div>
<!-- -->
    
  </div>
  
  
</div>
<uc2:sitefooter ID="sitefooter1" runat="server" />
</form>
<script language="javascript" type="text/javascript">
$("#txtsellmoney").bind("keypress", function(e){if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;});
</script>
</body>
</html>
