diff --git a/UserFiles/Image/1.jpg b/UserFiles/Image/1.jpg new file mode 100644 index 0000000..aa71218 Binary files /dev/null and b/UserFiles/Image/1.jpg differ diff --git a/UserFiles/Image/2.jpg b/UserFiles/Image/2.jpg new file mode 100644 index 0000000..6484439 Binary files /dev/null and b/UserFiles/Image/2.jpg differ diff --git a/UserFiles/Image/200864104847114.jpg b/UserFiles/Image/200864104847114.jpg new file mode 100644 index 0000000..b285e90 Binary files /dev/null and b/UserFiles/Image/200864104847114.jpg differ diff --git a/UserFiles/Image/4I`$S1~SPBQOL`V(5%WBVAO(1).jpg b/UserFiles/Image/4I`$S1~SPBQOL`V(5%WBVAO(1).jpg new file mode 100644 index 0000000..6484439 Binary files /dev/null and b/UserFiles/Image/4I`$S1~SPBQOL`V(5%WBVAO(1).jpg differ diff --git a/UserFiles/Image/4I`$S1~SPBQOL`V(5%WBVAO.jpg b/UserFiles/Image/4I`$S1~SPBQOL`V(5%WBVAO.jpg new file mode 100644 index 0000000..6484439 Binary files /dev/null and b/UserFiles/Image/4I`$S1~SPBQOL`V(5%WBVAO.jpg differ diff --git a/UserFiles/default.jsp b/UserFiles/default.jsp new file mode 100644 index 0000000..d196283 --- /dev/null +++ b/UserFiles/default.jsp @@ -0,0 +1,30 @@ +<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + + + + + + + + + + <% + response.sendRedirect(path+"/error.jsp"); + %> + + + + diff --git a/UserFiles/index.jsp b/UserFiles/index.jsp new file mode 100644 index 0000000..d196283 --- /dev/null +++ b/UserFiles/index.jsp @@ -0,0 +1,30 @@ +<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + + + + + + + + + + <% + response.sendRedirect(path+"/error.jsp"); + %> + + + + diff --git a/member/default.jsp b/member/default.jsp new file mode 100644 index 0000000..844f9ab --- /dev/null +++ b/member/default.jsp @@ -0,0 +1,30 @@ +<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + My JSP 'default.jsp' starting page + + + + + + + + + + + + <% + response.sendRedirect(path+"/error.jsp"); + %> + + diff --git a/member/iframe/default.jsp b/member/iframe/default.jsp new file mode 100644 index 0000000..b834f92 --- /dev/null +++ b/member/iframe/default.jsp @@ -0,0 +1,30 @@ +<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + + + + + + + + + + <% + response.sendRedirect(basePath+"error.jsp"); + %> + + + + diff --git a/member/iframe/foot.jsp b/member/iframe/foot.jsp new file mode 100644 index 0000000..23655dd --- /dev/null +++ b/member/iframe/foot.jsp @@ -0,0 +1,49 @@ +<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + + +<% + String member=(String)session.getAttribute("member"); + String type=(String)session.getAttribute("type"); + if(member==null||type==null){ + response.sendRedirect(path+"/error.jsp"); + }else{ +%> +member/images/MainBg.gif topMargin=0 scroll=no marginheight="0" marginwidth="0"> + + + +
+ + + +
+ + + + + +
+
× 关闭左栏
+ + +<%} %> + diff --git a/member/iframe/help.jsp b/member/iframe/help.jsp new file mode 100644 index 0000000..c15dfd8 --- /dev/null +++ b/member/iframe/help.jsp @@ -0,0 +1,30 @@ +<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + +<% + String member=(String)session.getAttribute("member"); + String type=(String)session.getAttribute("type"); + if(member==null||type==null){ + response.sendRedirect(path+"/error.jsp"); + } + else{ +%> +member/images/MainBg.gif topMargin=0 scroll=no marginheight="0" marginwidth="0"> + + + + +
+ +<%} %> + diff --git a/member/iframe/index.jsp b/member/iframe/index.jsp new file mode 100644 index 0000000..b834f92 --- /dev/null +++ b/member/iframe/index.jsp @@ -0,0 +1,30 @@ +<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + + + + + + + + + + <% + response.sendRedirect(basePath+"error.jsp"); + %> + + + + diff --git a/member/iframe/left.jsp b/member/iframe/left.jsp new file mode 100644 index 0000000..f0a80b8 --- /dev/null +++ b/member/iframe/left.jsp @@ -0,0 +1,139 @@ +<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + +会员管理中心 + + + + + + +<% + String member=(String)session.getAttribute("member"); + String type=(String)session.getAttribute("type"); + if(member==null||type==null){ + response.sendRedirect(path+"/error.jsp"); + } + else{ + String url="info.jsp"; + if(type.trim().equals("co"))url="coinfo.jsp"; +%> +member/images/MainBg.gif topMargin=0 scroll=no marginheight="0" marginwidth="0"> + + + + + + +
+ + + +
+ 管理首页
+ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
  返回网站首页
+
+ + + + +
  修改登陆密码
+
+ + + + +
 修改详细资料
+
+ + + + +
 我的购物车
+
+ + + + +
 已提交订单
+
+ + + + +
 已发货订单
+
+ + + + +
 退出登陆状态
+ +
+
+
+ +<%} %> + diff --git a/member/iframe/main.jsp b/member/iframe/main.jsp new file mode 100644 index 0000000..ef45e4b --- /dev/null +++ b/member/iframe/main.jsp @@ -0,0 +1,46 @@ +<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%> + + +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + +会员管理中心 + + + + + + +<% +String message = (String)request.getAttribute("message"); + if(message == null){ + message = ""; + } + if (!message.trim().equals("")){ + out.println(""); + } + request.removeAttribute("message"); +%> +<% + String member=(String)session.getAttribute("member"); + String type=(String)session.getAttribute("type"); + if(member==null||type==null){ + response.sendRedirect(path+"/error.jsp"); + } + else{ + +%> + +member/images/MainBg.gif topMargin=0 scroll=no marginheight="0" marginwidth="0"> +




+ 欢迎您,尊敬的会员:<%=member %> + +<%} %> + diff --git a/member/iframe/top.jsp b/member/iframe/top.jsp new file mode 100644 index 0000000..9e9b595 --- /dev/null +++ b/member/iframe/top.jsp @@ -0,0 +1,101 @@ +<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%> + +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + +<% + String member=(String)session.getAttribute("member"); + String type=(String)session.getAttribute("type"); + if(member==null||type==null){ + response.sendRedirect(path+"/error.jsp"); + } + else{ + List list = sn.getSiteInfo(); + String str = list.get(0).toString(); +%> + +member/images/MainBg.gif topMargin=0 scroll=no marginheight="0" marginwidth="0"> + + + + +

网站会员中心

+<% + } +%> + diff --git a/member/images/Admin_Style.css b/member/images/Admin_Style.css new file mode 100644 index 0000000..ff30bf8 --- /dev/null +++ b/member/images/Admin_Style.css @@ -0,0 +1,141 @@ +A { + TEXT-DECORATION: none +} +A:link { + COLOR: #000000 +} +A:visited { + COLOR: #000000 +} +A:hover { + COLOR: #ff0000; TEXT-DECORATION: underline +} +A:active { + COLOR: #ff0000 +} +TD { + FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none +} +BODY { + SCROLLBAR-FACE-COLOR: #ecf3fb; FONT-SIZE: 9pt; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #cccccc; COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: buttonface; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #eaf0f5; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; TEXT-DECORATION: none +} +.HeaderSelect { + BORDER-RIGHT: #336699 1px inset; BORDER-TOP: #336699 1px inset; BACKGROUND: url(../Images/TopButton/SelectedBg.gif); BORDER-LEFT: #336699 1px inset; CURSOR: default; COLOR: #ffff00; BORDER-BOTTOM: #336699 1px inset +} +.HeaderStyle { + BORDER-RIGHT: buttonshadow 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: buttonhighlight 1px solid; PADDING-LEFT: 5px; FONT-SIZE: 12px; BACKGROUND: url(../Images/TopButton/bg.gif); BORDER-LEFT: buttonhighlight 1px solid; COLOR: #000000; BORDER-BOTTOM: buttonshadow 1px solid; FONT-STYLE: normal; FONT-FAMILY: "宋体" +} +.TdOver { + BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; CURSOR: default; BORDER-BOTTOM: #999999 1px solid +} +.TdDown { + BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; CURSOR: default; COLOR: red; BORDER-BOTTOM: #ffffff 1px solid +} +.TdOut { + BORDER-RIGHT: #336699 1px inset; BORDER-TOP: #336699 1px inset; BORDER-LEFT: #336699 1px inset; CURSOR: default; BORDER-BOTTOM: #336699 1px inset +} +.MenuBg { + BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #ffffff 1px solid; BACKGROUND-COLOR: #ffffff +} +.LeftMouseOver { + TEXT-DECORATION: underline +} +.LeftMouseOut { + TEXT-DECORATION: none +} +.HighlightItem { + PADDING-LEFT: 10px; FONT-SIZE: 9pt; WIDTH: 100%; CURSOR: default; COLOR: white; LINE-HEIGHT: 25px; BACKGROUND-COLOR: highlight +} +.sort { + BORDER-RIGHT: buttonshadow 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: buttonhighlight 1px solid; PADDING-LEFT: 5px; BACKGROUND: #e0eefd; BORDER-LEFT: buttonhighlight 1px solid; BORDER-BOTTOM: buttonshadow 1px solid +} +.sortbutton { + BORDER-RIGHT: buttonshadow 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: buttonhighlight 1px solid; PADDING-LEFT: 1px; BACKGROUND: #e0eefd; BORDER-LEFT: buttonhighlight 1px solid; BORDER-BOTTOM: buttonshadow 1px solid +} +.topdashed { + BACKGROUND: #e0eefd; BORDER-BOTTOM: #000000 1px dashed +} +.buttonstyle { + BORDER-RIGHT: buttonshadow 0px solid; PADDING-RIGHT: 5px; BORDER-TOP: buttonhighlight 0px solid; PADDING-LEFT: 5px; FONT-SIZE: 9pt; BACKGROUND: url(../Images/Button.gif); BORDER-LEFT: buttonhighlight 0px solid; WIDTH: 60px; BORDER-BOTTOM: buttonshadow 0px solid; HEIGHT: 24px +} +.button { + BORDER-RIGHT: #a7a7a7 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #a7a7a7 1px solid; PADDING-LEFT: 12px; FONT-SIZE: 9pt; BACKGROUND: url(../Images/bg_Button.gif); PADDING-BOTTOM: 1px; BORDER-LEFT: #a7a7a7 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #a7a7a7 1px solid; HEIGHT: 20px +} +.upfile { + BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid +} +.Default { + BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FONT-SIZE: 12px; BORDER-LEFT: black 1px solid; CURSOR: default; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif +} +.Selected { + BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FONT-SIZE: 12px; BACKGROUND: url(../Images/PageButton.gif); BORDER-BOTTOM-COLOR: black; BORDER-LEFT: black 1px solid; CURSOR: default; FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif +} +.ToolBarButtonLine { + BORDER-LEFT-COLOR: black; BORDER-TOP-COLOR: black; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif; BORDER-RIGHT-COLOR: black +} +.FolderItem { + CURSOR: default +} +.FolderSelectItem { + CURSOR: default; COLOR: white; BACKGROUND-COLOR: highlight +} +.hr { + BORDER-TOP: #000000 1px solid; BORDER-BOTTOM: #ffffff 1px solid +} +.textbox { + BORDER-RIGHT: #666 1px solid; BORDER-TOP: #666 1px solid; FONT-SIZE: 12px; BACKGROUND: #ffffff; BORDER-LEFT: #666 1px solid; COLOR: #000; BORDER-BOTTOM: #666 1px solid +} +.FolderSelected { + FILTER: Alpha(Opacity=50) +} +TD.TableRow1 { + PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-TOP: 5px; BACKGROUND-COLOR: #eeeee6 +} +.HeaderTDStyle { + BORDER-RIGHT: buttonshadow 0px solid; PADDING-RIGHT: 6px; BORDER-TOP: buttonhighlight 0px solid; PADDING-LEFT: 6px; BACKGROUND: #73a2d6; BORDER-LEFT: buttonhighlight 0px solid; BORDER-BOTTOM: buttonshadow 0px solid +} +.HeaderFontStyle { + FONT-SIZE: 12px; COLOR: #ffffff; FONT-STYLE: normal; FONT-FAMILY: "宋体" +} +.body { + FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000; TEXT-DECORATION: none +} +TD.forumHeaderBackgroundAlternate { + COLOR: #ffffff; BACKGROUND-COLOR: #9395c0 +} +A.TableTitleLink { + COLOR: #ffffff; TEXT-DECORATION: none +} +A.TableTitleLink:hover { + COLOR: #ffffff; TEXT-DECORATION: underline +} +TD.Border1 { + BACKGROUND-COLOR: #f3f3fa +} +TD.forumRow { + BACKGROUND-COLOR: #f3f3fa +} +TD.forumRowHighlight { + BACKGROUND-COLOR: #eaeaf3 +} +.tableBorder { + BORDER-RIGHT: #b1b4d1 1px solid; BORDER-TOP: #b1b4d1 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: #b1b4d1 1px solid; LINE-HEIGHT: normal; BORDER-BOTTOM: #b1b4d1 1px solid; FONT-STYLE: normal; BACKGROUND-COLOR: #ffffff; FONT-VARIANT: normal +} +TD.TableBody1 { + BACKGROUND-COLOR: #f3f3fa +} +.tableBorder1 { + BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: #f3f3fa +} +.Title { + FONT-WEIGHT: normal; BACKGROUND: #009ae8; COLOR: #ffffff +} +.tdbg { + BACKGROUND: #eef8fe +} +.tdbgmouseover { + BACKGROUND: #ffffff +} +.border { + BORDER-RIGHT: #449ae8 1px solid; BORDER-TOP: #449ae8 1px solid; BACKGROUND: #ffffff; BORDER-LEFT: #449ae8 1px solid; BORDER-BOTTOM: #449ae8 1px solid +} diff --git a/member/images/Common.js b/member/images/Common.js new file mode 100644 index 0000000..21bbc7f --- /dev/null +++ b/member/images/Common.js @@ -0,0 +1,1386 @@ +//验证会员中心发布二手信息 +function checkold() +{ + if(document.form1.oldname.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写物品名称!"); + document.form1.oldname.focus(); + return false; + } + if(document.form1.classtype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.classtype.value=="请选择") + { + alert("请选择所属类型!"); + document.form1.classtype.focus(); + return false; + } + if(document.form1.price.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写价格!"); + document.form1.price.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系电话!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.file_1.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_1.value.substring(form1.file_1.value.length-4,form1.file_1.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_1.focus(); + return false; + } + if(document.form1.description_1.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_1.focus(); + return false; + } + } + if(document.form1.file_2.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_2.value.substring(form1.file_2.value.length-4,form1.file_2.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_2.focus(); + return false; + } + if(document.form1.description_2.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_2.focus(); + return false; + } + } + if(document.form1.file_3.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_3.value.substring(form1.file_3.value.length-4,form1.file_3.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_3.focus(); + return false; + } + if(document.form1.description_3.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_3.focus(); + return false; + } + } +} + //上传图片缩略图 +function showPic1(){ + var obj = document.getElementById("file_1") ; + var url = obj.value ; + var imgObj = document.getElementById("image_1") ; + var img_tableObj = document.getElementById("image_table_1") ; + imgObj.src=url; + img_tableObj.style.display="" ; + imgObj.style.display="" ; + } + function showPic2(){ + var obj = document.getElementById("file_2") ; + var url = obj.value ; + var imgObj = document.getElementById("image_2") ; + var img_tableObj = document.getElementById("image_table_2") ; + imgObj.src=url; + img_tableObj.style.display=""; + imgObj.style.display="" ; + } + function showPic3(){ + var obj = document.getElementById("file_3") ; + var url = obj.value ; + var imgObj = document.getElementById("image_3") ; + var img_tableObj = document.getElementById("image_table_3") ; + imgObj.src=url; + img_tableObj.style.display="" ; + imgObj.style.display="" ; + } + +//会员中心发布求职信息数据验证 +function checkaddjob2() +{ + if(document.form1.job2.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求职职位!"); + document.form1.job2.focus(); + return false; + } + if(document.form1.pay.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写工资待遇!"); + document.form1.pay.focus(); + return false; + } + if(document.form1.school.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.school.value=="请选择") + { + alert("请选择学历!"); + document.form1.school.focus(); + return false; + } + if(document.form1.age.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写年龄!"); + document.form1.age.focus(); + return false; + } + if(document.form1.sheng.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.sheng.value=="请选择") + { + alert("请选择省!"); + document.form1.sheng.focus(); + return false; + } + if(document.form1.city.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.city.value=="-请选择-") + { + alert("请选择市!"); + document.form1.city.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系电话!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.email.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系邮箱!"); + document.form1.email.focus(); + return false; + } + if(document.form1.yxq.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写有效期!"); + document.form1.yxq.focus(); + return false; + } + if(document.form1.intro.value.replace(/\s+$|^\s+/g,"").length>500) + { + alert("详细资料请限制在500字以内!"); + document.form1.intro.focus(); + return false; + } +} +//会员中心发布招聘信息数据验证 +function checkaddjob() +{ + if(document.form1.need.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写招聘职位!"); + document.form1.need.focus(); + return false; + } + if(document.form1.num.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写招聘人数!"); + document.form1.num.focus(); + return false; + } + if(document.form1.danwei.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写招聘单位!"); + document.form1.danwei.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系电话!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.place.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写工作单位!"); + document.form1.place.focus(); + return false; + } + if(document.form1.pay.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写工资待遇!"); + document.form1.pay.focus(); + return false; + } + if(document.form1.yxq.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写信息有效期!"); + document.form1.yxq.focus(); + return false; + } + if(document.form1.otherneed.value.replace(/\s+$|^\s+/g,"").length>500) + { + alert("招聘要求请限制在500字以内!"); + document.form1.otherneed.focus(); + return false; + } +} +//验证出售房屋信息数据 +function checksalehouse() +{ + if(document.form1.place.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.place.value=="请选择") + { + alert("请选择房产所在方位!"); + document.form1.place.focus(); + return false; + } + if(document.form1.wide.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产所在小区或地段!"); + document.form1.wide.focus(); + return false; + } + if(document.form1.address.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产详细地址!"); + document.form1.address.focus(); + return false; + } + if(document.form1.housetype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.housetype.value=="请选择") + { + alert("请选择房产类型!"); + document.form1.housetype.focus(); + return false; + } + if(document.form1.roomtype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.roomtype.value=="请选择") + { + alert("请选择房产户型!"); + document.form1.roomtype.focus(); + return false; + } + if(document.form1.ceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写所在楼层!"); + document.form1.ceng.focus(); + return false; + } + if(document.form1.build.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.build.value=="请选择") + { + alert("请选择装修程度!"); + document.form1.build.focus(); + return false; + } + if(document.form1.buildsam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写建筑面积!"); + document.form1.buildsam.focus(); + return false; + } + if(document.form1.usesam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写使用面积!"); + document.form1.usesam.focus(); + return false; + } + if(document.form1.price.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房屋价格!"); + document.form1.price.focus(); + return false; + } + if(document.form1.age.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.age.value=="请选择") + { + alert("请选择建筑年代!"); + document.form1.age.focus(); + return false; + } + if(document.form1.intro.value.replace(/\s+$|^\s+/g,"").length>200) + { + alert("房屋简介填写请限制在200字以内!"); + document.form1.intro.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.widetel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话区号!"); + document.form1.widetel.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话号码!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.handset.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写手机号码!"); + document.form1.handset.focus(); + return false; + } + if(document.form1.befortime.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写有效期!"); + document.form1.befortime.focus(); + return false; + } + if(document.form1.file_1.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_1.value.substring(form1.file_1.value.length-4,form1.file_1.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_1.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_1.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_1.focus(); + return false; + } + } + if(document.form1.file_2.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_2.value.substring(form1.file_2.value.length-4,form1.file_2.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_2.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_2.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_2.focus(); + return false; + } + } + if(document.form1.file_3.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_3.value.substring(form1.file_3.value.length-4,form1.file_3.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_3.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_3.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_3.focus(); + return false; + } + } +} + +//验证楼盘信息数据 +function checknewbuild() +{ + if(document.form1.place.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.place.value=="请选择") + { + alert("请选择房产所在方位!"); + document.form1.place.focus(); + return false; + } + if(document.form1.wide.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产所在小区或地段!"); + document.form1.wide.focus(); + return false; + } + if(document.form1.builder.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写开发商名称!"); + document.form1.builder.focus(); + return false; + } + if(document.form1.address.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写详细地址!"); + document.form1.address.focus(); + return false; + } + if(document.form1.saleaddress.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写销售地址!"); + document.form1.saleaddress.focus(); + return false; + } + if(document.form1.housetype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.housetype.value=="请选择") + { + alert("请选择楼盘类型!"); + document.form1.housetype.focus(); + return false; + } + if(document.form1.construct.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.construct.value=="请选择") + { + alert("请选择楼盘结构!"); + document.form1.construct.focus(); + return false; + } + if(document.form1.smianji.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写楼盘面积!"); + document.form1.smianji.focus(); + return false; + } + if(document.form1.emianji.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写楼盘面积!"); + document.form1.emianji.focus(); + return false; + } + if(document.form1.sceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写楼盘层数!"); + document.form1.sceng.focus(); + return false; + } + if(document.form1.eceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写楼盘层数!"); + document.form1.eceng.focus(); + return false; + } + if(document.form1.sprice.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写楼盘价格!"); + document.form1.sprice.focus(); + return false; + } + if(document.form1.eprice.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写楼盘价格!"); + document.form1.eprice.focus(); + return false; + } + if(document.form1.intro.value.replace(/\s+$|^\s+/g,"").length>200) + { + alert("楼盘简介填写请限制在200字以内!"); + document.form1.intro.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.widetel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话区号!"); + document.form1.widetel.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话号码!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.handset.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写手机号码!"); + document.form1.handset.focus(); + return false; + } + if(document.form1.befortime.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写有效期!"); + document.form1.befortime.focus(); + return false; + } + if(document.form1.file_1.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_1.value.substring(form1.file_1.value.length-4,form1.file_1.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_1.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_1.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_1.focus(); + return false; + } + } + if(document.form1.file_2.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_2.value.substring(form1.file_2.value.length-4,form1.file_2.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_2.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_2.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_2.focus(); + return false; + } + } + if(document.form1.file_3.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_3.value.substring(form1.file_3.value.length-4,form1.file_3.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_3.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_3.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_3.focus(); + return false; + } + } +} + +//验证出租房屋信息数据 +function checkrentout() +{ + if(document.form1.place.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.place.value=="请选择") + { + alert("请选择房产所在方位!"); + document.form1.place.focus(); + return false; + } + if(document.form1.wide.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产所在小区或地段!"); + document.form1.wide.focus(); + return false; + } + if(document.form1.address.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产详细地址!"); + document.form1.address.focus(); + return false; + } + if(document.form1.housetype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.housetype.value=="请选择") + { + alert("请选择房产类型!"); + document.form1.housetype.focus(); + return false; + } + if(document.form1.roomtype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.roomtype.value=="请选择") + { + alert("请选择房产户型!"); + document.form1.roomtype.focus(); + return false; + } + if(document.form1.ceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写所在楼层!"); + document.form1.ceng.focus(); + return false; + } + if(document.form1.build.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.build.value=="请选择") + { + alert("请选择装修程度!"); + document.form1.build.focus(); + return false; + } + if(document.form1.buildsam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写建筑面积!"); + document.form1.buildsam.focus(); + return false; + } + if(document.form1.usesam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写使用面积!"); + document.form1.usesam.focus(); + return false; + } + if(document.form1.renttime.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写租期!"); + document.form1.renttime.focus(); + return false; + } + if(document.form1.rentmoney.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写租金!"); + document.form1.rentmoney.focus(); + return false; + } + if(document.form1.promoney.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写租房押金!"); + document.form1.promoney.focus(); + return false; + } + if(document.form1.intro.value.replace(/\s+$|^\s+/g,"").length>200) + { + alert("房屋简介填写请限制在200字以内!"); + document.form1.intro.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.widetel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话区号!"); + document.form1.widetel.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话号码!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.handset.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写手机号码!"); + document.form1.handset.focus(); + return false; + } + if(document.form1.befortime.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写有效期!"); + document.form1.befortime.focus(); + return false; + } + if(document.form1.file_1.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_1.value.substring(form1.file_1.value.length-4,form1.file_1.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_1.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_1.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_1.focus(); + return false; + } + } + if(document.form1.file_2.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_2.value.substring(form1.file_2.value.length-4,form1.file_2.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_2.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_2.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_2.focus(); + return false; + } + } + if(document.form1.file_3.value.replace(/\s+$|^\s+/g,"").length>0) + { + var fileext=form1.file_3.value.substring(form1.file_3.value.length-4,form1.file_3.value.length); + fileext=fileext.toLowerCase(); + if(!(fileext=='.jpg')&&!(fileext=='.gif')) + { + alert("对不起,文件格式不对,必须为jpg或gif格式文件!"); + form1.file_3.focus(); + return false; + } + /** + var filestr = document.form1.file_1.value; + var fso,f; + fso=new ActiveXObject("Scripting.FileSystemObject"); + f=fso.GetFile(filestr); + if(f.size>500*1024) + { + alert("对不起,图片过大(500K以上),请裁剪后再上传!"); + form1.file_1.focus(); + return false; + } + */ + if(document.form1.description_3.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写图片说明!"); + form1.description_3.focus(); + return false; + } + } +} +//验证求租房屋信息数据 +function checkrentinhouse() +{ + if(document.form1.place.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.place.value=="请选择") + { + alert("请选择房产所在方位!"); + document.form1.place.focus(); + return false; + } + if(document.form1.wide.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产所在小区或地段!"); + document.form1.wide.focus(); + return false; + } + if(document.form1.address.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产详细地址!"); + document.form1.address.focus(); + return false; + } + if(document.form1.housetype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.housetype.value=="请选择") + { + alert("请选择房产类型!"); + document.form1.housetype.focus(); + return false; + } + if(document.form1.roomtype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.roomtype.value=="请选择") + { + alert("请选择房产户型!"); + document.form1.roomtype.focus(); + return false; + } + if(document.form1.sceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租楼层!"); + document.form1.sceng.focus(); + return false; + } + if(document.form1.eceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租楼层!"); + document.form1.eceng.focus(); + return false; + } + if(document.form1.ssam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租面积!"); + document.form1.ssam.focus(); + return false; + } + if(document.form1.esam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租面积!"); + document.form1.esam.focus(); + return false; + } + if(document.form1.build.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.build.value=="请选择") + { + alert("请选择装修程度!"); + document.form1.build.focus(); + return false; + } + if(document.form1.renttime.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写租期!"); + document.form1.renttime.focus(); + return false; + } + if(document.form1.rentmoney.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写租金!"); + document.form1.rentmoney.focus(); + return false; + } + if(document.form1.livetime.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请选择入住时间!"); + return false; + } + if(document.form1.otherneed.value.replace(/\s+$|^\s+/g,"").length>200) + { + alert("其他要求填写请限制在200字以内!"); + document.form1.otherneed.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.widetel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话区号!"); + document.form1.widetel.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话号码!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.handset.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写手机号码!"); + document.form1.handset.focus(); + return false; + } +} +//验证求购房屋信息数据 +function checkbuyhouse() +{ + if(document.form1.place.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.place.value=="请选择") + { + alert("请选择房产所在方位!"); + document.form1.place.focus(); + return false; + } + if(document.form1.wide.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产所在小区或地段!"); + document.form1.wide.focus(); + return false; + } + if(document.form1.address.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写房产详细地址!"); + document.form1.address.focus(); + return false; + } + if(document.form1.housetype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.housetype.value=="请选择") + { + alert("请选择房产类型!"); + document.form1.housetype.focus(); + return false; + } + if(document.form1.roomtype.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.roomtype.value=="请选择") + { + alert("请选择房产户型!"); + document.form1.roomtype.focus(); + return false; + } + if(document.form1.sceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租楼层!"); + document.form1.sceng.focus(); + return false; + } + if(document.form1.eceng.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租楼层!"); + document.form1.eceng.focus(); + return false; + } + if(document.form1.ssam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租面积!"); + document.form1.ssam.focus(); + return false; + } + if(document.form1.esam.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写求租面积!"); + document.form1.esam.focus(); + return false; + } + if(document.form1.build.value.replace(/\s+$|^\s+/g,"").length<=0||document.form1.build.value=="请选择") + { + alert("请选择装修程度!"); + document.form1.build.focus(); + return false; + } + if(document.form1.price.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写交易价格!"); + document.form1.price.focus(); + return false; + } + if(document.form1.age.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写建筑年代!"); + document.form1.age.focus(); + return false; + } + if(document.form1.otherneed.value.replace(/\s+$|^\s+/g,"").length>200) + { + alert("其他要求填写请限制在200字以内!"); + document.form1.otherneed.focus(); + return false; + } + if(document.form1.linkman.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写联系人!"); + document.form1.linkman.focus(); + return false; + } + if(document.form1.widetel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话区号!"); + document.form1.widetel.focus(); + return false; + } + if(document.form1.tel.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写电话号码!"); + document.form1.tel.focus(); + return false; + } + if(document.form1.handset.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写手机号码!"); + document.form1.handset.focus(); + return false; + } + if(document.form1.befortime.value.replace(/\s+$|^\s+/g,"").length<=0) + { + alert("请填写有效期限!"); + document.form1.befortime.focus(); + return false; + } +} +// +function ResumeError() + { + return true; + } +window.onerror = ResumeError; + +// +/* +if (window.Event) +document.captureEvents(Event.MOUSEUP); +function nocontextmenu() +{ +event.cancelBubble = true +event.returnValue = false; +return false; +} +function norightclick(e) +{ +if (window.Event) +{ +if (e.which == 2 || e.which == 3) +return false; +} +else +if (event.button == 2 || event.button == 3) +{ +event.cancelBubble = true +event.returnValue = false; +return false; +} +} +document.oncontextmenu = nocontextmenu; // for IE5+ +document.onmousedown = norightclick; // for all others +*/ +function OnclikeTable(tr){ + + var frm = document.form1[0]; + var vlu = new Array(); + for( i = 0 ; i < 7 ; i++ ){ + vlu[i] = tr.childNodes[i].childNodes[0].nodeValue; + if(vlu[i]==null){ + vlu[i] = ""; + } + } + form1.username.value = vlu[1]; + form1.username.readonly=true; + //alert(vlu[3]); + form1.isuse.value = vlu[3]; + form1.add.checked=false; + form1.add.disabled=true; + form1.update.checked=true; + form1.update.disabled=false; +} +function OnclikeTableitem(tr){ + + var frm = document.form1[0]; + var vlu = new Array(); + for( i = 0 ; i < 2 ; i++ ){ + vlu[i] = tr.childNodes[i].childNodes[0].nodeValue; + if(vlu[i]==null){ + vlu[i] = ""; + } + } + + form1.id.value = vlu[0]; + form1.itemname.value = vlu[1]; +} + +function OnclikeTableitemClass(tr){ + + var frm = document.form1[0]; + var vlu = new Array(); + for( i = 0 ; i < 2 ; i++ ){ + vlu[i] = tr.childNodes[i].childNodes[0].nodeValue; + if(vlu[i]==null){ + vlu[i] = ""; + } + } + + form1.id.value = vlu[0]; + form1.classname.value = vlu[1]; +} + // +function changecheck() +{ + form1.add.checked=true; + form1.update.checked=false; +} +function changecheck2() +{ + form1.add.checked=false; + form1.update.checked=true; +} + +function is_zw(str) +{ + //exp=/[0-9a-zA-Z_.,#@!$%^&*()-+=|\?/<>]/g; + //if(str.search(exp) != -1) + //{ + // return false; + //} + //return true; +} +// +function CheckBadChar(Obj,AlertStr) +{ + exp=/[,]/g; + if(Obj.value.search(exp) != -1) + { alert(AlertStr); + Obj.value=""; + Obj.focus(); + return false; + } + return true; +} +// +function IsExt(FileName, AllowExt){ + var sTemp; + var s=AllowExt.toUpperCase().split("|"); + for (var i=0;i=255||CharAscii<=31) + { + ErrorStr=ErrorStr+TempStr.charAt(i); + } + else + { + if (!CheckErrorStr(CharAscii)) + { + ErrorStr=ErrorStr+TempStr.charAt(i); + } + } + } + if (ErrorStr!='') + { + alert("\n\n"+DescriptionStr+''+ErrorStr); + Obj.focus(); + return false; + } + if (!(((TempStr.charCodeAt(0)>=48)&&(TempStr.charCodeAt(0)<=57))||((TempStr.charCodeAt(0)>=65)&&(TempStr.charCodeAt(0)<=90))||((TempStr.charCodeAt(0)>=97)&&(TempStr.charCodeAt(0)<=122)))) + { + alert(DescriptionStr); + Obj.focus(); + return false; + } + } + return true; +} +function CheckErrorStr(CharAsciiCode) +{ + var TempArray=new Array(34,47,92,42,58,60,62,63,124); + for (var i=0;i' + +'

' + +' ' + +'按下面任意或全部条件进行搜索' + +' ' + +'全部或部分关键字' + +'' + +' 搜索范围' + +' ' + +'搜索类型' + +'' + +' 什么时候修改的?' + +' 开始日期' + +' ' + +' 结束日期' + +' ' + +' ' + +'
' + +' 使用说明:' + +' ① 您可以利用本搜索助理来搜索文章、图片、下载Flash、专题、标签、JS等,但不能搜索(目录)诸如频道名称、栏目名称,标签目录等' + +' ② 按 Ctrl+F 可以快速进行打开或关闭搜索小助理' + +'' + var str="" + +"" + + "
"; +//关闭; +function CloseSearchBox(el) +{ if (el.id=='Close') + { var twin = el.parentNode.parentNode; + var shad = twin.nextSibling; + twin.style.display = "none"; + shad.style.display = "none"; + openTF=false; + SearchBodyStr=null; + str=null; + } +} +function initial() +{ +if (!openTF) + { + document.body.insertAdjacentHTML("beforeEnd",str); + openTF=true; + } +} +//初始化; +function initializeSearch(SearchArea) +{ + initial(); + initialSearchAreaOption(SearchArea); +if (document.all.SearchBox.style.display=='none') + { + document.all.SearchBox.style.display=''; + if (document.forms[0].disabled==false) document.forms[0].focus(); + } + else + document.all.SearchBox.style.display='none'; +} +function initialSearchAreaOption(SearchArea) +{ var EF=false; + var TextArr=new Array('文章中心','图片中心','下载中心','动漫中心','商城中心','影视中心','供求信息','专题中心','友情链接站点','系统函数标签','自定义函数标签','自定义静态标签','系统 JS','自由 JS','管理员') + var valueArr=new Array('Article','Picture','DownLoad','Flash','Shop','Movie','Supply','Special','Link','SysLabel','DIYFunctionLabel','FreeLabel','SysJS','FreeJS','Manager') + for(var i=0;i'; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + for(var i = 0; i < 7; i++) { + mvAry[mvAry.length] = ' '; + } + mvAry[mvAry.length] = ' '; + for(var i = 0; i < 6;i++){ + mvAry[mvAry.length] = ' '; + for(var j = 0; j < 7; j++) { + if (j == 0){ + mvAry[mvAry.length] = ' '; + } else if(j == 6) { + mvAry[mvAry.length] = ' '; + } else { + mvAry[mvAry.length] = ' '; + } + } + mvAry[mvAry.length] = ' '; + } + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = '
' + Calendar.language["weeks"][this.lang][i] + '
'; + //mvAry[mvAry.length] = ' '; + mvAry[mvAry.length] = ' '; + this.panel.innerHTML = mvAry.join(""); + + var obj = this.getElementById("prevMonth"); + obj.onclick = function () {calendar.goPrevMonth(calendar);} + obj.onblur = function () {calendar.onblur();} + this.prevMonth= obj; + + obj = this.getElementById("nextMonth"); + obj.onclick = function () {calendar.goNextMonth(calendar);} + obj.onblur = function () {calendar.onblur();} + this.nextMonth= obj; + + + + obj = this.getElementById("calendarClear"); + obj.onclick = function () {calendar.dateControl.value = "";calendar.hide();} + this.calendarClear = obj; + + obj = this.getElementById("calendarClose"); + obj.onclick = function () {calendar.hide();} + this.calendarClose = obj; + + obj = this.getElementById("calendarYear"); + obj.onchange = function () {calendar.update(calendar);} + obj.onblur = function () {calendar.onblur();} + this.calendarYear = obj; + + obj = this.getElementById("calendarMonth"); + with(obj) + { + onchange = function () {calendar.update(calendar);} + onblur = function () {calendar.onblur();} + }this.calendarMonth = obj; + + obj = this.getElementById("calendarToday"); + obj.onclick = function () { + var today = new Date(); + calendar.date = today; + calendar.year = today.getFullYear(); + calendar.month = today.getMonth(); + calendar.changeSelect(); + calendar.bindData(); + calendar.dateControl.value = today.format(calendar.dateFormatStyle); + calendar.hide(); + } + this.calendarToday = obj; + + /* + //this.form = document.forms["calendarForm"]; + this.form.prevMonth.onclick = function () {calendar.goPrevMonth(this);} + this.form.nextMonth.onclick = function () {calendar.goNextMonth(this);} + + this.form.prevMonth.onblur = function () {calendar.onblur();} + this.form.nextMonth.onblur = function () {calendar.onblur();} + + this.form.calendarClear.onclick = function () {calendar.dateControl.value = "";calendar.hide();} + this.form.calendarClose.onclick = function () {calendar.hide();} + this.form.calendarYear.onchange = function () {calendar.update(this);} + this.form.calendarMonth.onchange = function () {calendar.update(this);} + + this.form.calendarYear.onblur = function () {calendar.onblur();} + this.form.calendarMonth.onblur = function () {calendar.onblur();} + + this.form.calendarToday.onclick = function () { + var today = new Date(); + calendar.date = today; + calendar.year = today.getFullYear(); + calendar.month = today.getMonth(); + calendar.changeSelect(); + calendar.bindData(); + calendar.dateControl.value = today.format(calendar.dateFormatStyle); + calendar.hide(); + } + */ + } + + //年份下拉框绑定数据 + Calendar.prototype.bindYear = function() { + //var cy = this.form.calendarYear; + var cy = this.calendarYear; + cy.length = 0; + for (var i = this.beginYear; i <= this.endYear; i++){ + cy.options[cy.length] = new Option(i + Calendar.language["year"][this.lang], i); + } + } + + //月份下拉框绑定数据 + Calendar.prototype.bindMonth = function() { + //var cm = this.form.calendarMonth; + var cm = this.calendarMonth; + cm.length = 0; + for (var i = 0; i < 12; i++){ + cm.options[cm.length] = new Option(Calendar.language["months"][this.lang][i], i); + } + } + + //向前一月 + Calendar.prototype.goPrevMonth = function(e){ + if (this.year == this.beginYear && this.month == 0){return;} + this.month--; + if (this.month == -1) { + this.year--; + this.month = 11; + } + this.date = new Date(this.year, this.month, 1); + this.changeSelect(); + this.bindData(); + } + + //向后一月 + Calendar.prototype.goNextMonth = function(e){ + if (this.year == this.endYear && this.month == 11){return;} + this.month++; + if (this.month == 12) { + this.year++; + this.month = 0; + } + this.date = new Date(this.year, this.month, 1); + this.changeSelect(); + this.bindData(); + } + + //改变SELECT选中状态 + Calendar.prototype.changeSelect = function() { + //var cy = this.form.calendarYear; + //var cm = this.form.calendarMonth; + var cy = this.calendarYear; + var cm = this.calendarMonth; + for (var i= 0; i < cy.length; i++){ + if (cy.options[i].value == this.date.getFullYear()){ + cy[i].selected = true; + break; + } + } + for (var i= 0; i < cm.length; i++){ + if (cm.options[i].value == this.date.getMonth()){ + cm[i].selected = true; + break; + } + } + } + + //更新年、月 + Calendar.prototype.update = function (e){ + //this.year = e.form.calendarYear.options[e.form.calendarYear.selectedIndex].value; + //this.month = e.form.calendarMonth.options[e.form.calendarMonth.selectedIndex].value; + this.year = e.calendarYear.options[e.calendarYear.selectedIndex].value; + this.month = e.calendarMonth.options[e.calendarMonth.selectedIndex].value; + this.date = new Date(this.year, this.month, 1); + this.changeSelect(); + this.bindData(); + } + + //绑定数据到月视图 + Calendar.prototype.bindData = function () { + var calendar = this; + var dateArray = this.getMonthViewArray(this.date.getYear(), this.date.getMonth()); + var tds = this.getElementById("calendarTable").getElementsByTagName("td"); + for(var i = 0; i < tds.length; i++) { + //tds[i].style.color = calendar.colors["td_word_light"]; + tds[i].style.backgroundColor = calendar.colors["td_bg_out"]; + tds[i].onclick = function () {return;} + tds[i].onmouseover = function () {return;} + tds[i].onmouseout = function () {return;} + if (i > dateArray.length - 1) break; + tds[i].innerHTML = dateArray[i]; + if (dateArray[i] != " "){ + tds[i].onclick = function () { + if (calendar.dateControl != null){ + calendar.dateControl.value = new Date(calendar.date.getFullYear(), + calendar.date.getMonth(), + this.innerHTML).format(calendar.dateFormatStyle); + } + calendar.hide(); + } + tds[i].onmouseover = function () { + this.style.backgroundColor = calendar.colors["td_bg_over"]; + } + tds[i].onmouseout = function () { + this.style.backgroundColor = calendar.colors["td_bg_out"]; + } + if (new Date().format(calendar.dateFormatStyle) == + new Date(calendar.date.getFullYear(), + calendar.date.getMonth(), + dateArray[i]).format(calendar.dateFormatStyle)) { + //tds[i].style.color = calendar.colors["cur_word"]; + tds[i].style.backgroundColor = calendar.colors["cur_bg"]; + tds[i].onmouseover = function () { + this.style.backgroundColor = calendar.colors["td_bg_over"]; + } + tds[i].onmouseout = function () { + this.style.backgroundColor = calendar.colors["cur_bg"]; + } + //continue; //若不想当天单元格的背景被下面的覆盖,请取消注释 + }//end if + + //设置已被选择的日期单元格背影色 + if (calendar.dateControl != null && calendar.dateControl.value == new Date(calendar.date.getFullYear(), + calendar.date.getMonth(), + dateArray[i]).format(calendar.dateFormatStyle)) { + tds[i].style.backgroundColor = calendar.colors["sel_bg"]; + tds[i].onmouseover = function () { + this.style.backgroundColor = calendar.colors["td_bg_over"]; + } + tds[i].onmouseout = function () { + this.style.backgroundColor = calendar.colors["sel_bg"]; + } + } + } + } + } + + //根据年、月得到月视图数据(数组形式) + Calendar.prototype.getMonthViewArray = function (y, m) { + var mvArray = []; + var dayOfFirstDay = new Date(y, m, 1).getDay(); + var daysOfMonth = new Date(y, m + 1, 0).getDate(); + for (var i = 0; i < 42; i++) { + mvArray[i] = " "; + } + for (var i = 0; i < daysOfMonth; i++){ + mvArray[i + dayOfFirstDay] = i + 1; + } + return mvArray; + } + + //扩展 document.getElementById(id) 多浏览器兼容性 from meizz tree source + Calendar.prototype.getElementById = function(id){ + if (typeof(id) != "string" || id == "") return null; + if (document.getElementById) return document.getElementById(id); + if (document.all) return document.all(id); + try {return eval(id);} catch(e){ return null;} + } + + //扩展 object.getElementsByTagName(tagName) + Calendar.prototype.getElementsByTagName = function(object, tagName){ + if (document.getElementsByTagName) return document.getElementsByTagName(tagName); + if (document.all) return document.all.tags(tagName); + } + + //取得HTML控件绝对位置 + Calendar.prototype.getAbsPoint = function (e){ + var x = e.offsetLeft; + var y = e.offsetTop; + while(e = e.offsetParent){ + x += e.offsetLeft; + y += e.offsetTop; + } + return {"x": x, "y": y}; + } + + //显示日历 + Calendar.prototype.show = function (dateObj, popControl) { + if (dateObj == null){ + throw new Error("arguments[0] is necessary") + } + this.dateControl = dateObj; + + //if (dateObj.value.length > 0){ + //this.date = new Date(dateObj.value.toDate()); + //this.date = new Date(dateObj.value.toDate(this.dateFormatStyle));//带入用户指定的 style + this.date = (dateObj.value.length > 0) ? new Date(dateObj.value.toDate(this.dateFormatStyle)) : new Date() ;// 若为空则显示当前月份 + this.year = this.date.getFullYear(); + this.month = this.date.getMonth(); + this.changeSelect(); + this.bindData(); + //} + if (popControl == null){ + popControl = dateObj; + } + var xy = this.getAbsPoint(popControl); + this.panel.style.left = xy.x -25 + "px"; + this.panel.style.top = (xy.y + dateObj.offsetHeight) + "px"; + + // 把 visibility 变为 display,并添加失去焦点的事件 + //this.setDisplayStyle("select", "hidden"); + //this.panel.style.visibility = "visible"; + //this.container.style.visibility = "visible"; + this.panel.style.display = ""; + this.container.style.display = ""; + + dateObj.onblur = function(){calendar.onblur();} + this.container.onmouseover = function(){isFocus=true;} + this.container.onmouseout = function(){isFocus=false;} + } + + //隐藏日历 + Calendar.prototype.hide = function() { + //this.setDisplayStyle("select", "visible"); + //this.panel.style.visibility = "hidden"; + //this.container.style.visibility = "hidden"; + this.panel.style.display = "none"; + this.container.style.display = "none"; + isFocus=false; + } + + //焦点转移时隐藏日历 + Calendar.prototype.onblur = function() { + if(!isFocus){this.hide();} + } + + + /**//* + //设置控件显示或隐藏 + Calendar.prototype.setDisplayStyle = function(tagName, style) { + var tags = this.getElementsByTagName(null, tagName) + for(var i = 0; i < tags.length; i++) { + if (tagName.toLowerCase() == "select" && + (tags[i].name == "calendarYear" || + tags[i].name == "calendarMonth")){ + continue; + } + //tags[i].style.visibility = style; + tags[i].style.display = style; + } + } + */ + //document.write('