|
<style>3 V* Y: o6 G, l7 H
.subject{font-weight:bold;}
% t% m/ R# x& Q9 _; glegend{font-weight:bold;color:red}9 ~" `- ?# f z/ k4 v
</style>* \1 S. e8 }" Q! k7 e9 F9 d3 W" O
<input type="hidden" name="insdevBId" id="insdevBId" value="28008">
, v4 J6 o' `" K* _<input type="hidden" name="insdevSId" id="insdevSId" value="6217">1 w! @; ~/ A, w
<input type="hidden" name="userInfo" id="userInfo">0 c' ?; P& {; R* s8 X
<fieldset>" {" c- c* S6 m" n
<legend>社区调查问卷</legend>& n: X1 L. D$ F- A0 Y8 W
本站的各位朋友,大家好:<br>
; ]. o6 O: J6 V. G 请大家花2分钟的时间,填写一下下面的问卷调查,这有助于帮我们了解自己社区的情况,更好的建设我们自己的家园。谢谢大家的参与!:)
+ Z$ U9 d. g! E- W <br><p>
- g8 T% z" D- g: Z6 u0 N <label class="subject">1.请问您的性别是?</label><br>
! K: W3 e! k: A/ ] <input type="radio" id="sexMale" value="1" name="data[sex]"><label name="forSex"> 男</label>
. |! B5 z. ]& Z$ Y* k0 `# Y. `& T <input type="radio" id="sexFemale" value="2" name="data[sex]"><label name="forSex"> 女</label>: \1 |* I+ _* Z
</p>
9 y: s6 o7 R( d; ^) C <p>
- B2 l! p# [5 G' v/ W$ f <label class="subject">2.请问您是否结婚?</label><br>- K6 z0 |# \7 A4 U4 f
<input type="radio" id="married" value="1" name="data[marry]"><label id="forMarry"> 未婚</label>, l2 f: E, P& ~5 f: u
<input type="radio" id="unmarried" value="2" name="data[marry]"><label id="forMarry"> 已婚</label>/ C; h/ H. U$ k6 S& D$ s
</p>) g' t' o5 ? Q+ _, S# p. S
<p>
% B0 i% n4 J8 t5 ?% l- O2 _6 W! @ <label class="subject">3.请问您的年龄是?</label><br>$ F- j. ~' ~! Y7 l) c4 w
<input type="radio" name="data[age]" value="1"> 18岁以下<br>
+ o; P0 E7 j1 U# c3 E. F <input type="radio" name="data[age]" value="2"> 18-24岁<br>/ u4 \8 b' h- Y" H% [2 i6 P; M
<input type="radio" name="data[age]" value="3"> 25-30岁<br>6 R( ^0 Q* W. s! q/ T' r. W
<input type="radio" name="data[age]" value="4"> 31-35岁<br>
/ m- S: ?# n) q <input type="radio" name="data[age]" value="5"> 36-40岁<br>
& Y2 K$ n4 c8 t: P N4 ` <input type="radio" name="data[age]" value="6"> 41-50岁<br>
" N! }! U. |7 Y; S! b <input type="radio" name="data[age]" value="7"> 50岁以上<br>9 Q# h' J* m* d* e
</p>. i1 v/ r# ]2 c: o
<p>. P% o8 k# C) N# S! }) C d0 s+ j
<label class="subject">4.请问您现在的居住地(日常工作/生活的地方)?</label><br>1 Q! z. H7 j0 t- J! L$ W
<select name="data[province]" id="province">8 U" ^/ f% F7 l2 d6 I* T. p
<option value="0">请选择居住地</option>
# S* c% Y# ~1 {" H; L. G! Z <option value="beijing">北京</option>$ m; @7 _6 Q3 h" ]8 z! X. ?
<option value="tianjin">天津</option>% P& h9 L& P! q4 j% ?
<option value="hebei">河北</option>+ c' Z7 G& F- r' h; ]
<option value="shanxi">山西</option>- D% Z: O5 p: L" A O) [
<option value="neimenggu">内蒙古</option>; k( m0 \2 G; m2 {* |
<option value="liaoning">辽宁</option>
1 w+ _% q: y1 }: O7 ~ <option value="jilin">吉林</option>4 _& b4 ?' V0 u/ L1 K/ `
<option value="heilongjiang">黑龙江</option>
# E6 }, J9 \3 V$ `& L <option value="shanghai">上海</option>5 w* Q% G" f$ m2 |* e* Y
<option value="jiangsu">江苏</option>4 @$ a/ T9 \9 l) I0 }0 Q, F
<option value="zhejiang">浙江</option>
+ \+ o8 u8 R/ i! ]: A <option value="anhui">安徽</option>4 H" }$ u3 m% I3 I
<option value="fujian">福建</option>. p* t: G0 E' n/ k6 D3 w, H
<option value="jiangxi">江西</option>! p/ F0 P- l5 E* w' E8 }' _1 Y
<option value="shandong">山东</option>
4 \. d. |# ?% T <option value="henan">河南</option>8 }: j6 u- n- ]0 C9 ^, K$ \
<option value="hubei">湖北</option>$ z. u( d. w7 E% s' d! v
<option value="hunan">湖南</option>9 J: C) ] b% Q
<option value="guangdong">广东</option>
# e4 g6 w$ L+ J <option value="guangxi">广西</option>
$ F9 C. l6 s. r1 F$ T5 w Z+ b% J& W <option value="hainan">海南</option>
9 _1 i$ f4 H* x0 C. V( ?' ~& _8 f <option value="chongqing">重庆</option>& H$ G1 e- L! [
<option value="sichuan">四川</option>
* h9 r n& U) x# T& i4 {8 F: E7 z; \6 I. T <option value="guizhou">贵州</option>3 E/ D5 J& u1 p
<option value="yunnan">云南</option>
. p1 N; P3 y: `1 J7 ? <option value="xizang">西藏</option>
2 K' \6 s/ } L5 p3 N9 D <option value="shanxi3">陕西</option>! R v* d R' J, ?) {7 m
<option value="gansu">甘肃</option>0 _8 W: i& m. f* r# ^& w
<option value="qinghai">青海</option>5 A& Q6 A4 f$ \
<option value="ningxia">宁夏</option>
/ w* V: b4 l0 h- w- |0 H. ` <option value="xinjiang">新疆</option>
% l* X8 w5 K ], h7 M <option value="hongkong">香港</option>
; n3 b9 D# g& i. E9 r) p <option value="macao">澳门</option>
# P# I! L5 ^) s- c/ r. D/ P <option value="taiwan">台湾</option> x+ ^- P3 u _: Q$ k) T6 F
</select>. O9 T! k! E5 Q, Z, Q1 y
</p>
3 E2 E6 l) k6 `6 I' R: I <p>4 I8 a& m# p/ j6 Q( B+ a- d
<label class="subject">5.请问您的最高学历是?</label><br>- R6 x( Z# f9 V; r4 A( N0 \- y2 W
<input type="radio" name="data[education]" value="1"> 初中以下<br> J( G7 `9 x! y; o2 l, b+ t X
<input type="radio" name="data[education]" value="2"> 初中<br>
/ O8 e, H1 h9 e! W7 r8 U4 l; ~5 C2 z <input type="radio" name="data[education]" value="3"> 高中<br>
# U( o* y. T* R3 t ` <input type="radio" name="data[education]" value="4"> 大学专科/本科<br>3 ~2 j1 B R! t6 f; ^" h+ J
<input type="radio" name="data[education]" value="5"> 硕士及以上<br>
* p5 ^3 ^2 D, Z* }6 R1 p </p>
, M1 W$ N8 J0 {2 r) ?# V <p># p7 `3 ?3 {* X7 `& I- A: h5 b1 I# \) J
<label class="subject">6.请问您目前的职业情况是?</label><br>; M7 o/ T( m+ X! p* J+ w9 R( o
<input type="radio" name="data[career]" value="1"> 企业管理者<br>/ ^9 W X8 u. e p
<input type="radio" name="data[career]" value="2"> 企业员工、白领<br>5 {/ n! i, g7 n* E
<input type="radio" name="data[career]" value="3"> 官员、政府公务员<br>3 F3 C" D- d% S
<input type="radio" name="data[career]" value="4"> 专业人士(如演员、律师、分析师、咨询师、教师、工程师、技术人员等)<br># s1 p: |/ m) Q9 C
<input type="radio" name="data[career]" value="5"> 在校学生<br>
4 z; _. j! S1 I" U# A0 F( o0 V <input type="radio" name="data[career]" value="6"> 城市自由职业者<br># Z; X9 ?3 d( n- [! P
<input type="radio" name="data[career]" value="7"> 农民或农村务工者<br># Z! k) G% Z4 k6 \0 |8 }- T
<input type="radio" name="data[career]" value="8"> 无业<br>$ S" k. |' J* ?, R
</p>! P0 o; C+ U6 }+ z
<p>
7 d, b; p. E( X$ M <label class="subject">7.请问您的个人月收入是?</label><br>1 M% n. V0 Y5 L+ w2 T+ Q8 Y
<input type="radio" name="data[salary]" value="1"> 无收入<br>
) A' m- X7 E0 Y, q; m <input type="radio" name="data[salary]" value="2"> 1000元以下<br>$ T# [: f; v% M' U$ g
<input type="radio" name="data[salary]" value="3"> 1001-3000元<br># I) ~1 {+ f+ S" ]; D0 v
<input type="radio" name="data[salary]" value="4"> 3001-5000元<br>
" m- w2 f6 G* p' ?7 w <input type="radio" name="data[salary]" value="5"> 5001-8000元<br>- H/ e: v( s3 n. f, X" h" V
<input type="radio" name="data[salary]" value="6"> 8000-10000元<br>* C& k' v. x2 V [( M
<input type="radio" name="data[salary]" value="7"> 10000-20000元<br>0 y) _- K8 J" j: [/ n) N
<input type="radio" name="data[salary]" value="8"> 20000元以上<br>
. e0 F. Z" Y- Q$ s D9 Z </p>
" g) }( b' P) _, M <p>
7 O8 a# h2 D$ }/ |, d <label class="subject">8.请问您每月手机通话费约为?</label><br>
d9 P3 B/ x0 o9 v+ P <input type="radio" name="data[costMobile]" value="1"> 非手机用户<br>* z( R7 R) e3 @6 M! f
<input type="radio" name="data[costMobile]" value="2"> 100元以下<br>
. }4 y5 G g; w/ ` w2 e# E <input type="radio" name="data[costMobile]" value="3"> 101-200元<br>
+ g, K5 l7 c. `( s8 t* G" f) K6 C! V <input type="radio" name="data[costMobile]" value="4"> 201-300元<br>3 V, ?7 O5 r5 r
<input type="radio" name="data[costMobile]" value="5"> 301-400元<br>
% L+ ~) l6 I* i1 }$ J: a' V <input type="radio" name="data[costMobile]" value="6"> 401-500元<br>5 ~' w( r( S4 c$ ?9 ?/ S3 Z: k. X
<input type="radio" name="data[costMobile]" value="7"> 500元以上<br>$ ]* ]$ e. L, A5 `) t) d W
</p>* W& k1 G: v# g% f
<p> q# f9 W3 c: k) P
<label class="subject">9.请问您是否已经购房或拥有独立住房?</label><br>
% i* ^; d( U* `/ W <input type="radio" id="noHouse" value="1" name="data[house]"><label name="forHouse"> 否</label>
; g# q) q! o+ G3 V <input type="radio" id="haveHouse" value="2" name="data[house]"><label name="forHouse"> 是</label>
1 P2 @$ X; V0 }; G5 g3 N6 Q2 d1 g# k </p>
[3 }. a7 S5 Z+ w6 B <p>! W0 e" \6 I4 _6 x& w
<label class="subject">10.请问您是否已经购车或拥有私人汽车?</label><br>/ @8 R3 n; W* w$ i7 K
<input type="radio" id="noCar" value="1" name="data[car]"><label name="forCar"> 否</label>
" [+ b8 x* v& e8 y' {6 O8 M9 C1 `& A <input type="radio" id="haveCar" value="2" name="data[car]"><label name="forCar"> 是</label>
: |8 D o2 _+ T </p>/ O( C% y: {" V3 L
<p>
6 c$ ]( p5 K' k <label class="subject">11.您一周浏览论坛的时间有多少?</label><br>" T0 w6 G3 h; _, a
<input type="radio" name="data[bbsTime]" value="1"> 1小时以下<br>
0 \. _: j2 I+ C: o8 F <input type="radio" name="data[bbsTime]" value="2"> 1-3小时<br>
. ^" f0 e- B( B4 n' K <input type="radio" name="data[bbsTime]" value="3"> 3-6小时<br>
, t' R& b- K, W2 h- F2 D <input type="radio" name="data[bbsTime]" value="4"> 6-8小时<br>
" v. P4 {$ v* Z <input type="radio" name="data[bbsTime]" value="5"> 8小时以上<br>
, `5 W8 U% Z. m# p </p>
, l: v( e7 l+ C6 t+ b. l( }# V <center><input type="button" value="投 票" onclick="pollValidate();"></center>
1 K2 c# ?& D) k, O8 ] </fieldset>
: Z6 P7 z7 C+ o% w- ^<script type="text/javascript">
* j4 H. d; _/ k' Sfunction checkRadio(name){
j4 G: M& w' Q2 o+ X var o = document.getElementsByName(name);, s1 U% R: m, ^' x
var n = o.length;, e! N& `5 k ?" Z+ f
var m = 0;! a( \9 J5 S+ I- Z3 h! `$ s/ M1 q2 a
for (var h=0;h<n;h++){' r+ C/ B3 P' e. [( K
if (o[h].checked==true){
; @$ r+ }8 H. L3 g' P% S' Y m += o[h].value;
9 D' M5 W8 d* k; E7 I! `2 ` }
v; s, m2 Y( c7 R7 w% X) K7 a }
- D0 _; A( S8 x& c% d. p) f- X return m;( O5 C: R" |# v9 i0 o
}6 t/ g3 Z+ A, q% l5 n O* J5 }
9 |6 a: I! b) K' m' `function pollValidate(){
; Y2 k* w* R1 d; [$ H. x6 L var link = "http://api.insenz.com/poll_response.php?";( I9 ^( ~2 E5 H) O: P& C
if (checkRadio("data[sex]")==0){5 z8 S& A2 U6 u# G* u |5 y2 y
alert("请选择性别");
* n4 p Z4 w; x. C/ D return false;
9 o6 `! I: n; l4 c, j* K } else {
! S( J5 _: m0 [/ X link += "sex="+checkRadio("data[sex]");
: d1 C4 H5 \/ [* f }
4 f( m4 S) U+ M* ^, s) W# D% k if (checkRadio("data[marry]")==0){
2 e7 t7 e0 A3 f3 ?4 b0 ~ alert("请选择婚姻状况");; ~" _% Y: w" c1 g- b8 s$ s+ @8 n
return false;
8 B3 q, g, Y, F" S3 b' i+ ]+ ? } else {
! l. q" f V: T8 v2 L* S link += "&marry="+checkRadio("data[marry]");2 n2 W7 Y! u# V) }7 u2 W
}
% y* z8 o+ i/ p/ X! p- a, W if (checkRadio("data[age]")==0){
! P6 J/ C3 [4 p A% _9 t1 | alert("请选择年龄");7 _4 Z6 G# E1 b$ C0 K4 w
return false;. t4 T Q2 i8 J- K; \
} else {! G2 t- \1 o7 V7 B p+ h" b
link += "&age="+checkRadio("data[age]");8 M3 F' M7 o) Q6 k2 a2 f
}, n4 I, M6 ~& ]! t# I4 ~. K8 i2 j% U
if (document.getElementById("province").value=="0"){
6 S$ O+ S# s- }( o$ e% ~6 j alert("请选择居住地");! \# B: C3 j/ r* X: j( g" A( Y. f7 b' W
return false;
9 o% N0 e+ K* f; p& M8 b! S } else {
( b' G% U, |& P* r' O link += "&province="+document.getElementById("province").value;
* ]; n9 }* W y9 a4 `# P. g) D }
+ u) O" F1 Q& C+ H3 u* x if (checkRadio("data[education]")==0){
/ E& p! L: \8 j5 ]! d* M alert("请选择教育经历");
; p$ F" T( g# c- ^ n0 W+ w6 _/ f return false;
7 `$ V$ V3 h2 E, O } else {
+ |. c. D8 N1 Z link += "&education="+checkRadio("data[education]");" [2 p k0 g6 e# O4 p3 N
}9 ?6 z3 s! J( q
if (checkRadio("data[career]"==0)){
! J+ t. u3 Q* A; A7 s alert("请选择职业");1 q* C" V ~; t) O5 g
return false;# z6 v# K! @! C4 w
} else {
8 r% \8 B5 D! x$ G" Q link += "&career="+checkRadio("data[career]");# X' a! q8 V. R; b4 ] A0 R
}
2 G0 g/ o/ N3 f( K# h H9 U if (checkRadio("data[salary]")==0){
/ \4 q+ m ?1 k0 U# X( g, u7 ^0 S alert("请选择工资状况");9 g1 d i9 o% K+ G
return false;4 J, q- _; n2 Y
} else {0 @$ X$ X( V6 ?: d
link += "&salary="+checkRadio("data[salary]");
) p7 o% l# u* v$ q1 e2 t }
# l! l& b( i: Q. f/ D if (checkRadio("data[costMobile]")==0){% B* A3 M) Y$ R( w; _
alert("请选择每个月的手机话费");
% _7 Z. p( \0 o& f& O0 n, W return false;5 u7 q, W/ |4 E% G( K
} else {
+ h4 B- |) x, k1 z link += "&costMobile="+checkRadio("data[costMobile]");# J7 S/ _: ]5 ^8 z3 I! y
}/ Y4 w) i' T" w1 { J7 |
if (checkRadio("data[house]") == 0){
e2 z% U* G0 o' V0 n alert("请选择您拥有住房情况");1 E6 h, [: N/ v
return false;4 b: D5 P2 ~- T I3 X( B$ p
} else {
% P! A/ k2 F3 M$ e link += "&house="+checkRadio("data[house]");! C# i [5 i( J7 h
}# ]# s; E1 ]" ?6 Z6 {
if (checkRadio("data[car]")==0){
* O& x A5 K8 o# D* [- g alert("请选择拥有汽车情况");6 B, b! d5 e" o- Y# W: e% ]5 x
return false;
' S% M$ g6 p* V* y+ e; M } else {
5 Z! _: H0 z7 n& `" J link += "&car="+checkRadio("data[car]");9 A D {3 |' V! w
}
3 Z7 q3 q/ \3 x5 P8 h" j3 k if (checkRadio("data[bbsTime]")==0){
1 L3 S' J- H& P5 m3 B alert("请选择每周浏览论坛的时间长度");
% V S. S9 d, z7 H return false;, t( v0 d( i+ |3 p
} else {
; @, t; C* u- P8 X link += "&bbsTime="+checkRadio("data[bbsTime]");6 L5 i c( v( o8 I
}
# G" M1 r& }' X* T- v) h location.href= link + "&userInfo="+encodeURI(getUserInfo()) + "&bId="+document.getElementById("insdevBId").value+"&sId="+document.getElementById("insdevSId").value;: K0 k+ x1 A2 b4 l
}4 @6 z2 D& u5 T% k0 i; e
function getUserInfo(){
# k# a" f" E: E+ u0 l1 S3 I var aObj = document.getElementsByTagName("a");% ?+ a2 T7 l# B# j( b6 _
var l = aObj.length;
c, U/ W2 y! S* X6 v) h; @- v+ P for(var j=0;j<l;j++){
: h+ _ \* B& J& L- \ var hrefPatrn = /^space.php\?uid=(.*)$/gi;
Y. y2 k* K+ W. n5 f var href = aObj[j].getAttribute("href");. o7 i9 F0 q2 w7 e1 c; _& K. |1 x
if (hrefPatrn.test(href)){- [+ H7 \8 k& G
arr = href.split("=");
: D; p/ [! ]* H+ i6 N) ^3 B uId = arr[1];
j" \# d' _ p$ L7 t uName = document.getElementById(aObj[j].getAttribute("id")).innerHTML;! G2 d/ v/ |7 M$ c( ~
return uId+":"+uName;9 J2 m: k# k; G: j
break;0 b/ X$ B* p- r& _) L" @ D G7 U
}, x9 X, T9 d) n9 C$ z/ b: x. J
}
+ w4 m1 z7 R2 @ }
6 p. [* T. w ?7 p2 E* m) S</script>
9 i: i& h7 K4 O" ^4 K) a |
|