|
<style>
: q" c4 O8 M4 z( A! @9 x* R.subject{font-weight:bold;}
( U5 ^$ ]3 ?$ z6 N Zlegend{font-weight:bold;color:red}) ^/ d: Z; z8 B' u3 g
</style>* ?0 m2 M* [% ?( [4 W
<input type="hidden" name="insdevBId" id="insdevBId" value="28008">
& r4 A& k2 S3 W( y5 l5 ?<input type="hidden" name="insdevSId" id="insdevSId" value="6217">9 w: q" H+ m8 O, C5 w$ |0 A
<input type="hidden" name="userInfo" id="userInfo">
4 x) }. h, M, A* ^1 o <fieldset>
' ` d" P! w& t( N" n <legend>社区调查问卷</legend>8 j) N n5 n$ T- Z$ i
本站的各位朋友,大家好:<br>
5 ^9 d, b1 W8 F- g: i 请大家花2分钟的时间,填写一下下面的问卷调查,这有助于帮我们了解自己社区的情况,更好的建设我们自己的家园。谢谢大家的参与!:)
6 \7 G) u- ]( S# F* k <br><p>
# D1 Y7 v- a9 _" U9 I1 r3 r <label class="subject">1.请问您的性别是?</label><br>6 J5 H$ U7 w. H) ^/ f* K3 I
<input type="radio" id="sexMale" value="1" name="data[sex]"><label name="forSex"> 男</label>, h; c$ g) k& f1 m1 w' f
<input type="radio" id="sexFemale" value="2" name="data[sex]"><label name="forSex"> 女</label>
1 \* d* w0 r. u2 o/ k* S; G </p>
7 w: ^# ]% q# c/ b+ q <p>
9 }6 |& Y! [6 Q$ G& u/ e! s <label class="subject">2.请问您是否结婚?</label><br>' ?" Z7 L% o" Z. {
<input type="radio" id="married" value="1" name="data[marry]"><label id="forMarry"> 未婚</label>
# X2 ~% z2 y. W) ]0 S T- W <input type="radio" id="unmarried" value="2" name="data[marry]"><label id="forMarry"> 已婚</label>
, ^2 ~( l+ ~3 m& q, ? </p>. Z5 [: q) |! @; P) G9 o2 d
<p>7 q- u7 S* g1 M; S! G9 x
<label class="subject">3.请问您的年龄是?</label><br>6 ^, H4 ^, R' p4 E; A" p
<input type="radio" name="data[age]" value="1"> 18岁以下<br>0 h8 [6 ?. D D. B, w7 I- k
<input type="radio" name="data[age]" value="2"> 18-24岁<br>$ q* M; |5 B3 Y
<input type="radio" name="data[age]" value="3"> 25-30岁<br>
1 p ^7 i! z9 ` <input type="radio" name="data[age]" value="4"> 31-35岁<br>6 z! ^5 k3 n8 O. Z% t+ i
<input type="radio" name="data[age]" value="5"> 36-40岁<br>
6 G3 D" u+ o# A A3 F% I) v <input type="radio" name="data[age]" value="6"> 41-50岁<br>- z. A2 q* D6 r4 l; J
<input type="radio" name="data[age]" value="7"> 50岁以上<br>
1 ~: B N; |; ~ </p>
9 o n3 z; R m% }- ? <p>* h* i! H) i3 ^' M
<label class="subject">4.请问您现在的居住地(日常工作/生活的地方)?</label><br>
$ B3 A D3 G. T8 G <select name="data[province]" id="province">; x4 f5 a" \: M" k+ k
<option value="0">请选择居住地</option>+ s. [: \0 \5 w3 O) G4 l9 {
<option value="beijing">北京</option>
4 f- P' k$ P; j( | <option value="tianjin">天津</option>
* H6 k4 s, `1 a5 s4 z% J* j/ v <option value="hebei">河北</option>- E2 o Q) g2 ^
<option value="shanxi">山西</option>
" Y$ w3 A/ D5 f2 c8 V# O! M <option value="neimenggu">内蒙古</option>
/ k4 f! U# k* c+ t$ @9 V: A <option value="liaoning">辽宁</option>6 r' D H/ k4 s# q6 n# O: F
<option value="jilin">吉林</option>
& X1 _6 J4 y* z, H( \ <option value="heilongjiang">黑龙江</option>7 N6 X( V4 I, }/ y% O, {
<option value="shanghai">上海</option>6 c) \$ X' m1 {) O+ h9 T
<option value="jiangsu">江苏</option>0 [; T) v6 F: {) l' z
<option value="zhejiang">浙江</option>4 X4 }$ T u* a/ }+ C
<option value="anhui">安徽</option>& I g' R& k; j4 z% I3 x# E! ?+ T& u
<option value="fujian">福建</option>
# ]1 _- O5 g$ ~. Q/ @% P <option value="jiangxi">江西</option>5 \ P c- o2 M+ Z! I
<option value="shandong">山东</option>/ `/ P/ c5 m! S1 m4 A- R2 R' r" j
<option value="henan">河南</option>3 e/ l: m) n! e) c
<option value="hubei">湖北</option>
, y8 ?$ u V, O( U v7 w <option value="hunan">湖南</option>+ P# f* m; \! x
<option value="guangdong">广东</option>
6 v% S% e/ @8 B/ [) x; B1 w$ } <option value="guangxi">广西</option>) ?. q! h$ _' \1 h
<option value="hainan">海南</option>
. s. y V' ] Q1 T C) m <option value="chongqing">重庆</option>( i6 q. F, `' ^+ Z$ |& p: ]
<option value="sichuan">四川</option>
" T* P& }8 ^' G0 U <option value="guizhou">贵州</option>: I8 n! ]2 E& [- C [
<option value="yunnan">云南</option>
8 o$ Z5 B$ N) M2 o$ I+ w$ g <option value="xizang">西藏</option>6 V3 N! \& I9 T" Y$ T; E: @ W2 w' G
<option value="shanxi3">陕西</option>: T" E0 T; _) S: C
<option value="gansu">甘肃</option># R( p* `. I1 U
<option value="qinghai">青海</option>
2 R+ ^/ j/ b! w# i8 W <option value="ningxia">宁夏</option>
, x5 g; V4 J* n+ G4 J <option value="xinjiang">新疆</option>5 L: T5 S! x( R
<option value="hongkong">香港</option>
1 v* K; d- v3 e( c% v, d# P% h j <option value="macao">澳门</option>& }% Q- S% m* A: \" |
<option value="taiwan">台湾</option>: a# y1 _0 ?4 ]) _3 }
</select>: c$ t" O) k: i8 g
</p>$ `% g% @: m4 _
<p>
" m n: K- E! b6 C7 }8 M6 V <label class="subject">5.请问您的最高学历是?</label><br>* u, n) i2 Z* Q$ x% J% N# z
<input type="radio" name="data[education]" value="1"> 初中以下<br>
0 p2 a, o& c, J# O' j <input type="radio" name="data[education]" value="2"> 初中<br>8 P/ k/ Q3 ^9 F; p' N- T
<input type="radio" name="data[education]" value="3"> 高中<br>; k `+ L1 M' s* n1 F" L
<input type="radio" name="data[education]" value="4"> 大学专科/本科<br>
7 m/ `5 ~4 W3 l; H8 p4 W1 o9 n% x <input type="radio" name="data[education]" value="5"> 硕士及以上<br>0 A/ V2 Z' {' F- L; j
</p>
3 g$ Y4 d9 e# T3 w3 q6 J @ <p>1 P- e2 ?. z9 Y( ^1 Z* ^# ?9 s9 W
<label class="subject">6.请问您目前的职业情况是?</label><br>( ^6 u' F1 f6 w" ~" d1 U0 C
<input type="radio" name="data[career]" value="1"> 企业管理者<br>
8 @9 J; [" `) r$ Z/ k <input type="radio" name="data[career]" value="2"> 企业员工、白领<br>
$ e8 H, N, ?! o* h" m <input type="radio" name="data[career]" value="3"> 官员、政府公务员<br>8 D' O% p* ?( Q: ^( K
<input type="radio" name="data[career]" value="4"> 专业人士(如演员、律师、分析师、咨询师、教师、工程师、技术人员等)<br>; H) L9 ?3 R" r/ l/ P
<input type="radio" name="data[career]" value="5"> 在校学生<br>
! a/ o* C+ T/ B( e8 e, n, @7 I <input type="radio" name="data[career]" value="6"> 城市自由职业者<br>
6 J. ~. Z+ [* r G- m | <input type="radio" name="data[career]" value="7"> 农民或农村务工者<br>
- U& E$ R* z( a! c n) L/ | <input type="radio" name="data[career]" value="8"> 无业<br>* N0 T; l$ R1 T' v5 ^" h6 {3 y
</p>) q& G7 E% J6 Q# _ w( g2 f/ D
<p>
; z5 R/ z8 ^. V. p <label class="subject">7.请问您的个人月收入是?</label><br>- Y# h/ N3 F5 s! H! Z+ K
<input type="radio" name="data[salary]" value="1"> 无收入<br>
}0 y: |. e; p% j8 S <input type="radio" name="data[salary]" value="2"> 1000元以下<br>3 G: B( w3 D" A
<input type="radio" name="data[salary]" value="3"> 1001-3000元<br>
. V+ E; z% V* Y. k. p! p <input type="radio" name="data[salary]" value="4"> 3001-5000元<br> ^; W4 k. Z. O, e' ~/ P" K% R; u5 G
<input type="radio" name="data[salary]" value="5"> 5001-8000元<br>/ c& o$ w3 k t! `& g v; F
<input type="radio" name="data[salary]" value="6"> 8000-10000元<br>/ q6 f& N1 i/ d$ p0 D
<input type="radio" name="data[salary]" value="7"> 10000-20000元<br>/ z0 w& z9 Q9 n' n% ]
<input type="radio" name="data[salary]" value="8"> 20000元以上<br>( v) x" ?; x4 w h9 x1 P1 e; c
</p>5 Z. H7 I3 U8 V; E! E
<p>
0 C6 ]+ [- Q; M8 O3 i$ z1 f J/ M <label class="subject">8.请问您每月手机通话费约为?</label><br>
. ^8 A& [0 i4 l$ H! v% y; H# u <input type="radio" name="data[costMobile]" value="1"> 非手机用户<br>" x- Z- O6 X. b& ]) [0 K& R" i" k; O7 h
<input type="radio" name="data[costMobile]" value="2"> 100元以下<br>. m6 `1 t; Y! y8 j* w
<input type="radio" name="data[costMobile]" value="3"> 101-200元<br>! i& A E2 A9 U& |: R7 P
<input type="radio" name="data[costMobile]" value="4"> 201-300元<br>4 J2 }0 F5 \* T7 C9 R7 ^
<input type="radio" name="data[costMobile]" value="5"> 301-400元<br>
: Y |& A T3 o <input type="radio" name="data[costMobile]" value="6"> 401-500元<br>
: T; `5 |7 v9 w$ V2 c; c <input type="radio" name="data[costMobile]" value="7"> 500元以上<br>' m& z" [9 B6 n4 x
</p>
( j6 A" p% ]4 D <p>" W' W. w7 t9 |3 c5 v
<label class="subject">9.请问您是否已经购房或拥有独立住房?</label><br>) S( j- Q, S0 M, l6 u+ ]5 W/ N
<input type="radio" id="noHouse" value="1" name="data[house]"><label name="forHouse"> 否</label>
" w( e: T2 |+ M7 `; ~ <input type="radio" id="haveHouse" value="2" name="data[house]"><label name="forHouse"> 是</label>
* F& h* k6 |1 h9 B/ H </p>
) d& y: M+ M. G& ~7 h <p>
4 }( X6 w4 M) h, W* ] <label class="subject">10.请问您是否已经购车或拥有私人汽车?</label><br>
0 n- P% p$ ^4 L% p8 j <input type="radio" id="noCar" value="1" name="data[car]"><label name="forCar"> 否</label>) q9 M1 b9 h% r6 K
<input type="radio" id="haveCar" value="2" name="data[car]"><label name="forCar"> 是</label>
# f1 M( M' y; T! J </p>5 D# D* v* {5 x! q1 Y
<p>6 c O5 i) o h: B" U' ~5 g0 ~- |
<label class="subject">11.您一周浏览论坛的时间有多少?</label><br># q% R( Y0 |( [' Q$ z6 s' n3 L
<input type="radio" name="data[bbsTime]" value="1"> 1小时以下<br>
) O- N! a! @! Y* f! U' x0 L <input type="radio" name="data[bbsTime]" value="2"> 1-3小时<br>2 Y1 x/ f2 K9 I6 }( z/ T
<input type="radio" name="data[bbsTime]" value="3"> 3-6小时<br> B3 T/ \% N$ F8 y) F4 x' u
<input type="radio" name="data[bbsTime]" value="4"> 6-8小时<br>
3 u- s# ?1 y% e9 O \) Y! I8 x <input type="radio" name="data[bbsTime]" value="5"> 8小时以上<br>
; }! G3 t% O7 R: p; t- j2 P& t </p>
4 o3 w3 X* }) l& D+ K1 q& i <center><input type="button" value="投 票" onclick="pollValidate();"></center>6 e8 x7 L, [' X. {
</fieldset>
9 m% F7 {" P! q" e<script type="text/javascript">
) a: S6 |1 [# d6 m. a& ~ n; Mfunction checkRadio(name){9 S2 Q9 @: Z! q/ ^# y$ g
var o = document.getElementsByName(name);
% m8 q) y/ Y6 i9 X8 g var n = o.length;( o6 A# B7 C7 A6 F2 z4 M
var m = 0;, `/ t' p- H& `' F% y
for (var h=0;h<n;h++){
) m0 [6 I" F% R6 H! e* @ if (o[h].checked==true){
) ?+ s* W R4 F) V3 M: i m += o[h].value;
3 X+ F: L7 l, x }
3 ]+ c. \- z; F/ d2 K& K }$ r) `% n# _9 o5 Z& V) X: W/ c7 j
return m;
& C. w( E. e% b+ C: g& e. g- n6 J}# R; H W8 T- X. }4 h! C, q
* y9 Z4 O1 s% {( o- ~7 Ifunction pollValidate(){' u0 K# Y' s$ c F6 y
var link = "http://api.insenz.com/poll_response.php?";
4 ]$ H6 Q2 |' f1 X if (checkRadio("data[sex]")==0){) c" g; V& _$ j }* k, T
alert("请选择性别");
3 y7 f$ R, `* q$ |1 Z$ X return false;
% D5 {; J ~' [9 Q* k8 z } else {$ Z0 e9 D% i/ V* T0 v' [- i K3 B4 Y
link += "sex="+checkRadio("data[sex]");
4 R" ?+ r# T6 W6 j$ N4 j4 _ }
) I6 p) \/ d: k: k6 M if (checkRadio("data[marry]")==0){
+ L1 |, x4 i! l# T; i: F4 b# U alert("请选择婚姻状况");" m% y% C. G4 |
return false;9 L# |# M% V! l- w4 C* n
} else {
& M$ o# i% V1 C$ S link += "&marry="+checkRadio("data[marry]");
; E8 I+ C) v2 t7 m# S }
- }9 t) }0 r% |3 ?3 E if (checkRadio("data[age]")==0){8 I7 y% G9 @( r2 \2 q1 ~4 k
alert("请选择年龄");
1 q9 C6 h; \! z9 c7 U$ O1 x, F return false;9 g3 D: x, d! H. \! Y1 {) n
} else {
+ b( A# P& C- h. `* h5 L link += "&age="+checkRadio("data[age]");
7 z+ m/ m% ]; b6 E/ `$ s }
9 I" U% s' L1 S. _$ O if (document.getElementById("province").value=="0"){
/ q: n$ ?0 Z4 {; M- D- h- @: s* K alert("请选择居住地");* G7 q& K$ R+ x4 I8 I; `* }. O
return false;* g6 n5 g& ~0 Y; m
} else {
/ o) @ w" i6 v- h link += "&province="+document.getElementById("province").value; K. O( p' H3 s- q7 d; V: M4 c6 @
}) Q3 @5 [# j$ g% ^1 _
if (checkRadio("data[education]")==0){5 s, w& T% \; y s$ i4 a6 t2 l* D5 t
alert("请选择教育经历");
1 {: P& r& t5 ], J return false;
, V, b" p' @% L, h } else {; O7 H% {; P; d9 h% C, N/ P
link += "&education="+checkRadio("data[education]");
' a( s* }1 z2 b$ x }' V0 g: t9 w! U2 Z) V9 w' L4 i: ]
if (checkRadio("data[career]"==0)){
6 ?, a8 s4 r: H3 E, U+ K9 b alert("请选择职业");
) j( O4 D9 J9 D/ H! L4 [( O return false;4 A1 l+ ^5 c8 m9 N& z
} else {5 G, O& y6 V7 i
link += "&career="+checkRadio("data[career]");
( E0 r5 N/ g" B+ _- {( o- P }/ ^6 {* ~0 C {5 z" c& u4 B
if (checkRadio("data[salary]")==0){) D4 x2 w; E$ c) Q+ ?1 X2 E
alert("请选择工资状况");) T5 p5 L. e% P/ D1 M, d0 w
return false;
r# T v8 Z. Y. F } else {
9 ?, g. h2 H5 J% d: P ~ link += "&salary="+checkRadio("data[salary]");
( ?: _. o. n2 Q# L }
5 {8 R! t! V, v9 Q if (checkRadio("data[costMobile]")==0){5 c# `/ Q$ [3 H' u, L) e R1 w
alert("请选择每个月的手机话费");
2 {8 D( \, c7 y return false;' e, F( b! M4 A0 A; ]6 [
} else {
, F* t) k7 \# @7 I3 x1 ` link += "&costMobile="+checkRadio("data[costMobile]");- x) T Q5 ^' _# W( t7 e& o( ]. d
}
* A4 \: R8 s1 ^+ d4 x5 G if (checkRadio("data[house]") == 0){
& b/ o0 e/ X# X6 o3 }0 u5 w5 Y alert("请选择您拥有住房情况");' I$ h" \2 ^2 t! C
return false;) i# X6 Q" q( |% U. K8 m
} else {
& d- b$ `# q# Q7 n link += "&house="+checkRadio("data[house]");5 X' I' V7 s: F) i
}
) Q! Q* H3 I7 C$ G if (checkRadio("data[car]")==0){7 c" F% a. Q/ ?7 C
alert("请选择拥有汽车情况");! x7 W& d- @% ~, @, b
return false;# t& j$ B' F6 g! v( u$ X6 \
} else {, e4 U0 y- H7 N# ?' C+ v
link += "&car="+checkRadio("data[car]");
* v. \) I- H- S }
- J* p0 f( `9 Z if (checkRadio("data[bbsTime]")==0){6 z" g, y* X+ ]' h" ]4 O- }
alert("请选择每周浏览论坛的时间长度");# H, ]6 T" L% a7 ?' {8 h
return false;# T' ^( d' @. a3 ~# v- h* `( f
} else {' r. P8 `# M0 u3 S# r7 [) C/ W
link += "&bbsTime="+checkRadio("data[bbsTime]");
% K( K3 P) g; d }
* ]) m/ R& X) t, c8 k location.href= link + "&userInfo="+encodeURI(getUserInfo()) + "&bId="+document.getElementById("insdevBId").value+"&sId="+document.getElementById("insdevSId").value;3 h" M& a# _4 s3 D
}, ? F' }; {" A( ]% ]
function getUserInfo(){9 q, ]& b. }. |/ M: m0 N7 c8 A
var aObj = document.getElementsByTagName("a");5 q2 h% ]# k* D U" `% ?$ K
var l = aObj.length;
8 g1 w. _1 [! j for(var j=0;j<l;j++){0 H, I$ c! l4 p* X& |9 t- o
var hrefPatrn = /^space.php\?uid=(.*)$/gi;
/ b4 F' |) l z% |' E) X/ s var href = aObj[j].getAttribute("href"); k+ C! x4 D& A- T7 y8 U8 H
if (hrefPatrn.test(href)){4 A8 e# d7 p: E3 L
arr = href.split("=");4 |% E- B$ u8 e6 [) E* J& r! x
uId = arr[1];: c0 ?. _' [/ g
uName = document.getElementById(aObj[j].getAttribute("id")).innerHTML;' ~2 k+ \7 _5 d% m& h7 |6 c
return uId+":"+uName;
T% s& R! t2 e" o1 ?9 ^* p break;
( J9 L3 l0 V. q0 W) y; ?+ Q }5 ?1 w/ o6 _# H0 S3 F( `
}
+ f4 W( d. n* B7 x$ g/ n9 { }) x. {7 b( { v/ g- t; |# Z
</script>5 i. P6 Z0 {- n7 I
|
|