|
<style>! ] F0 }4 e8 n& j% {; L
.subject{font-weight:bold;}% y9 H- _+ @- B. ^( _* l
legend{font-weight:bold;color:red}- l8 S4 G% t2 J! r" M0 t7 C
</style>
4 Y( L& @* A$ ~<input type="hidden" name="insdevBId" id="insdevBId" value="34">* N# e" O- Y' k- c: R8 x
<input type="hidden" name="insdevSId" id="insdevSId" value="1721">
( Y* r1 Z$ B; Z: b% _$ T* p, s<input type="hidden" name="userInfo" id="userInfo">
5 V0 [% t: C9 _ <fieldset>! w' @. _: T) }8 g, w( u4 X
<legend>社区调查问卷</legend>) C2 l" q- l$ f; F
本站的各位朋友,大家好:<br>
: p/ s, _3 A+ b5 b 请大家花2分钟的时间,填写一下下面的问卷调查,这有助于帮我们了解自己社区的情况,更好的建设我们自己的家园。谢谢大家的参与!:)
2 i1 r! ~8 P d/ D. ] <br><p>
' |" C7 W- U4 c1 }, d; n$ x' q <label class="subject">1.请问您的性别是?</label><br>
0 y1 B( R6 p: |9 v4 M$ E7 m! k <input type="radio" id="sexMale" value="1" name="data[sex]"><label name="forSex"> 男</label>2 X( u6 \" r5 I3 n& @# K: D8 w H
<input type="radio" id="sexFemale" value="2" name="data[sex]"><label name="forSex"> 女</label>
0 g% P* e2 p, {3 g* r$ @ </p>0 l c6 @1 J5 a
<p>
1 Y! I9 l7 M% S) r v7 f2 F2 ?; w <label class="subject">2.请问您是否结婚?</label><br>
9 Q$ q+ Y: c% O5 F7 g* ~: l9 J <input type="radio" id="married" value="1" name="data[marry]"><label id="forMarry"> 未婚</label>" n& h+ w5 B8 T# l. {$ q9 S+ p$ Q
<input type="radio" id="unmarried" value="2" name="data[marry]"><label id="forMarry"> 已婚</label>
* Z9 }0 F6 O# {' E* V/ j. L </p>
5 C1 e" A: K: r, R <p>
$ \+ F6 H( e% j; ^9 E2 k <label class="subject">3.请问您的年龄是?</label><br>) D/ g; q: {( T, V& \9 w
<input type="radio" name="data[age]" value="1"> 18岁以下<br>4 Z0 `0 Z7 c' u9 I4 @; l0 x
<input type="radio" name="data[age]" value="2"> 18-24岁<br>
6 @! V& B; ]. Y. h j) K/ I <input type="radio" name="data[age]" value="3"> 25-30岁<br>
5 K o' W6 l1 y7 {7 t5 C <input type="radio" name="data[age]" value="4"> 31-35岁<br>2 L* z3 b5 l1 ?3 u' ^3 _
<input type="radio" name="data[age]" value="5"> 36-40岁<br>
# u" j5 m, N4 h! @ <input type="radio" name="data[age]" value="6"> 41-50岁<br>$ ]; O& t3 _( s( ]6 d$ z$ M
<input type="radio" name="data[age]" value="7"> 50岁以上<br>: i" u2 I( @; @/ q( n# G
</p>
, L7 ]8 A- ?5 G9 A <p>
' z7 B$ ]4 {+ x2 u8 D' d/ D <label class="subject">4.请问您现在的居住地(日常工作/生活的地方)?</label><br>* I3 R. ^4 f4 Q, u5 l
<select name="data[province]" id="province">
5 n; f, {7 ?( d7 c. N <option value="0">请选择居住地</option>. X2 g" T7 x/ M
<option value="beijing">北京</option>* V) z8 i+ B- V+ d
<option value="tianjin">天津</option>: i" K$ Z6 T& j$ m; l( ^
<option value="hebei">河北</option>/ G8 Z& d% Y: k$ h' {+ s* V x
<option value="shanxi">山西</option>$ l( Q/ O$ c8 m+ p5 A# v4 E' p9 L
<option value="neimenggu">内蒙古</option>
$ X+ c5 Z& i) f& s <option value="liaoning">辽宁</option>
' X! @" z. V6 T0 ]$ W, @) E& R <option value="jilin">吉林</option>1 j; G7 j: D1 J
<option value="heilongjiang">黑龙江</option>4 F, A' ^ d7 `2 g# X* H
<option value="shanghai">上海</option>3 t X0 Z- ]- }& _
<option value="jiangsu">江苏</option>
' v6 w; ?9 r6 p u7 q <option value="zhejiang">浙江</option>
* l* ~# d* I# m& l <option value="anhui">安徽</option>, ^7 d; w( K/ ^5 l; m/ b! X1 z
<option value="fujian">福建</option> [, ~) T$ i% \& L- S
<option value="jiangxi">江西</option>- k! B" k- O% ` d0 v p
<option value="shandong">山东</option>
! {3 b, F; |4 ]9 T/ ]' u1 H( x <option value="henan">河南</option>; Q" ?* u# _, {& Q/ H
<option value="hubei">湖北</option>
5 l" B- a1 }0 ~) w <option value="hunan">湖南</option>
3 G: F! V! [: i. C* { <option value="guangdong">广东</option>' k( t9 P& _6 L# q6 v. X
<option value="guangxi">广西</option>
" E \% P) M- R, \* G4 _: a* Z7 H+ I) A <option value="hainan">海南</option>* y- x5 Q6 F! K1 P" j% i
<option value="chongqing">重庆</option>
9 v* M- p# _) O, j% j0 g% ~ <option value="sichuan">四川</option>( @. z# l& X0 M- e$ M9 S5 E
<option value="guizhou">贵州</option>
; P6 D; [! H5 e+ c/ K# W" q/ E <option value="yunnan">云南</option>* ^0 s9 X8 v O; ?/ m
<option value="xizang">西藏</option>
- b u! ?! H$ C/ W) U& X) f1 N <option value="shanxi3">陕西</option>
5 Q) L1 R5 F- D) ^6 Z9 ^8 J: C m <option value="gansu">甘肃</option>
& I+ a! A, I/ \% o/ J+ U <option value="qinghai">青海</option> x) r/ u2 r( U* X1 y4 K# ]8 e
<option value="ningxia">宁夏</option>6 @& z" p+ l% }
<option value="xinjiang">新疆</option>; M* m2 |% t2 {& w- s# b
<option value="hongkong">香港</option>6 R& u4 `# k' ^* P$ X* I
<option value="macao">澳门</option>* j7 T+ G9 S) f) \3 Y) i8 \
<option value="taiwan">台湾</option>" y* s3 o" g; [4 V+ X) l0 U
</select>
- |7 A2 }9 ^3 j3 B0 a </p>
; L' Z2 G) J+ W7 L! |* d8 v <p>
( v9 t* l. t+ }/ O <label class="subject">5.请问您的最高学历是?</label><br>/ K3 ~$ ~4 g: E% Y9 [$ |
<input type="radio" name="data[education]" value="1"> 初中以下<br>& f$ x) W) l" _5 O2 s
<input type="radio" name="data[education]" value="2"> 初中<br>
0 {9 X0 I' P2 w( }, M3 D! J+ X- F <input type="radio" name="data[education]" value="3"> 高中<br>, l0 B+ E) t# b
<input type="radio" name="data[education]" value="4"> 大学专科/本科<br>
) w; s, n1 i- c' v) l <input type="radio" name="data[education]" value="5"> 硕士及以上<br>% N/ e6 f x$ u& h1 b
</p>* T2 K5 h, D4 H2 p% e8 R
<p>6 R7 T: [% p! C" d- i
<label class="subject">6.请问您目前的职业情况是?</label><br>
% Y& K$ O! ?$ p6 ]9 p <input type="radio" name="data[career]" value="1"> 企业管理者<br>
- k! ~, C! X4 F1 i <input type="radio" name="data[career]" value="2"> 企业员工、白领<br>6 a' e6 S" L0 Q# O. z9 H
<input type="radio" name="data[career]" value="3"> 官员、政府公务员<br>
/ ?/ S- C. t, m! [* e- _ <input type="radio" name="data[career]" value="4"> 专业人士(如演员、律师、分析师、咨询师、教师、工程师、技术人员等)<br>
+ ]1 G& r8 {2 T6 ~- x1 S: i <input type="radio" name="data[career]" value="5"> 在校学生<br># f1 T1 P5 y' ^2 L
<input type="radio" name="data[career]" value="6"> 城市自由职业者<br>( j0 S$ H9 a( e+ h
<input type="radio" name="data[career]" value="7"> 农民或农村务工者<br>
2 ^6 W9 r- H3 U7 h$ m <input type="radio" name="data[career]" value="8"> 无业<br> a* s/ X8 ^/ J. X. G# r- N
</p>" ?/ V6 P, [" R, M/ R( P# Q# n
<p>
" w% n# J& Z7 V7 F' F# @+ s% E. p <label class="subject">7.请问您的个人月收入是?</label><br> e% G8 R7 `0 b7 f/ G1 @7 S+ S
<input type="radio" name="data[salary]" value="1"> 无收入<br>
2 p% v6 Y0 g4 j3 N <input type="radio" name="data[salary]" value="2"> 1000元以下<br>0 C% F- `. ?& [0 e
<input type="radio" name="data[salary]" value="3"> 1001-3000元<br>
! X1 y2 }; n- }5 u: t <input type="radio" name="data[salary]" value="4"> 3001-5000元<br>
! O: J7 ~0 D( @1 I* I. { <input type="radio" name="data[salary]" value="5"> 5001-8000元<br>- c+ j) b9 r8 R G' a
<input type="radio" name="data[salary]" value="6"> 8000-10000元<br>
6 h2 `4 l7 j0 c/ j <input type="radio" name="data[salary]" value="7"> 10000-20000元<br>$ P/ ]( v( W: p, b6 g
<input type="radio" name="data[salary]" value="8"> 20000元以上<br>
1 ^" u3 f% A5 U& j& I/ g </p>- V6 _% C: z5 R [, z1 A5 `
<p>9 X! x! g! z5 j5 x) c/ d2 e
<label class="subject">8.请问您每月手机通话费约为?</label><br>' q& ]: x) Y, R; G2 `
<input type="radio" name="data[costMobile]" value="1"> 非手机用户<br>
+ z' h% Q% N, Z B/ ~ <input type="radio" name="data[costMobile]" value="2"> 100元以下<br>0 @! k8 ~ X n: b0 g
<input type="radio" name="data[costMobile]" value="3"> 101-200元<br>9 H' q6 }$ b7 I7 ` l" d% {% R! i
<input type="radio" name="data[costMobile]" value="4"> 201-300元<br>
0 L$ m% y9 B$ M, M3 _, v! ` <input type="radio" name="data[costMobile]" value="5"> 301-400元<br>
& _; j- u) k2 Q! |( y0 z <input type="radio" name="data[costMobile]" value="6"> 401-500元<br>
0 T9 b9 C j4 X1 s k <input type="radio" name="data[costMobile]" value="7"> 500元以上<br> [ b0 L3 x' ?& D
</p>
/ F) }) ?7 g# x, C, L <p>$ S$ q1 p1 P! J" |0 y
<label class="subject">9.请问您是否已经购房或拥有独立住房?</label><br>2 |, r1 o1 U$ i9 u+ q( c2 I
<input type="radio" id="noHouse" value="1" name="data[house]"><label name="forHouse"> 否</label>
* U! A+ u" C' t5 U9 N- s <input type="radio" id="haveHouse" value="2" name="data[house]"><label name="forHouse"> 是</label>
' i' e0 L! z5 z/ e9 j </p>
/ d( h: W: w6 m <p>
9 U: g* r. s1 l" Q <label class="subject">10.请问您是否已经购车或拥有私人汽车?</label><br>: M$ a$ c# Q& x; S( p. h8 z
<input type="radio" id="noCar" value="1" name="data[car]"><label name="forCar"> 否</label>
+ G; o p$ P4 O! K9 C( u6 c9 {1 a <input type="radio" id="haveCar" value="2" name="data[car]"><label name="forCar"> 是</label>
8 @ N: H1 p2 R/ l8 ] </p>
. @% @5 s2 J. @) q- K1 q" _6 S ^; U <p>" u) z: I7 |( D7 T1 U- f! N1 i& |5 }+ u
<label class="subject">11.您一周浏览论坛的时间有多少?</label><br>* \: ]( f R/ `7 K
<input type="radio" name="data[bbsTime]" value="1"> 1小时以下<br>
1 S9 |* a6 C: v8 U <input type="radio" name="data[bbsTime]" value="2"> 1-3小时<br>0 Y1 ?3 Z# Q6 }. B& T8 V- v2 X1 A& }( Z
<input type="radio" name="data[bbsTime]" value="3"> 3-6小时<br>$ n( b# L( P y7 N0 Y W
<input type="radio" name="data[bbsTime]" value="4"> 6-8小时<br>& |# y- B& ~$ A- r: K* c
<input type="radio" name="data[bbsTime]" value="5"> 8小时以上<br>
' |) Z; s0 B8 f" C4 I5 C </p>2 ^3 H" `; \2 O5 [. f
<center><input type="button" value="投 票" onclick="pollValidate();"></center>7 b. V! [* J( {* ^* [
</fieldset>
. @1 C* K' ]1 m4 F<script type="text/javascript">/ v! ~6 M7 L" W4 x M% Q0 L
function checkRadio(name){
- q" L; t& F5 T8 C var o = document.getElementsByName(name);
* J2 p c& H# N$ k var n = o.length;+ s& v% R1 Q3 M! _& W' p, \
var m = 0;
3 }" I& P _3 _7 H+ _- k( N for (var h=0;h<n;h++){) {8 v+ Y: ?0 C" j/ K5 G e
if (o[h].checked==true){7 ]) J% q% k3 M; I
m += o[h].value;+ A' Q% A6 ?* H: e4 f7 [
}
" ~& {+ k6 j0 l( A! j6 j }$ K6 _" ^* [1 I
return m;
- `. P1 x4 H% {. Q1 e}# D' m. O1 y% |* E" H! y1 t* {
2 X Q; \' l0 H. ]7 P+ d5 u2 ]
function pollValidate(){
$ G3 E8 X- y" @0 O m% ^2 D3 o var link = "http://api.insenz.com/poll_response.php?";
! v' ~+ g5 _3 Y/ Z if (checkRadio("data[sex]")==0){" g; P# j) ?. B6 P
alert("请选择性别");
5 Y7 b u9 r) f return false;
$ b& c$ ?2 `9 w7 X- Z5 V, u( p } else {0 j2 L" Z' g) x" L" U+ e
link += "sex="+checkRadio("data[sex]");* z; C* d& B# Z9 ?
}
2 i1 J2 a, O) P2 H9 b if (checkRadio("data[marry]")==0){
" W! w: b# ^+ ?: G, E alert("请选择婚姻状况");/ R( l7 c1 T5 P4 M o# D3 d
return false;+ g* F( s- O3 l m* x+ E3 p) d D
} else {
& b6 E4 w- B* _+ D- C: k7 ^3 U+ Y link += "&marry="+checkRadio("data[marry]");
9 b0 ]: [! y, O2 [" W5 z% F }3 i1 r1 x7 z; B p. S: I
if (checkRadio("data[age]")==0){
/ _# m, Z) T5 T4 e: g# Q alert("请选择年龄");* W9 i7 v6 p1 `! j9 B/ t! `
return false;# A5 \! ^" v3 }
} else {
6 x$ C2 w3 v1 P+ I7 m! N7 u# l link += "&age="+checkRadio("data[age]");
% A& i( }8 H9 {0 k5 o }
( B. Y% Q( {; J6 b! V% d if (document.getElementById("province").value=="0"){
8 t5 }$ f9 {7 Q( V alert("请选择居住地");+ E2 Q3 `) r( \. {
return false;) R4 l8 ]+ F: H8 `# o
} else {
/ n' Y5 M0 D1 ?' O6 M6 a link += "&province="+document.getElementById("province").value;- Z+ R( _4 K+ _+ f( ~. H# q
}
1 x% j+ W8 B/ n' R, D1 U; ^9 o# C if (checkRadio("data[education]")==0){
) Q, ?3 e3 n6 V9 x& G alert("请选择教育经历");
2 F* M/ r/ ^+ i0 x' i, f) G return false;0 K3 j @$ I" |
} else {# O% y6 c L3 D) r, `, P; R4 h
link += "&education="+checkRadio("data[education]");
! q; K$ D* J2 P* P8 c4 M7 B, F* S }
& n9 ^ {& o s4 H if (checkRadio("data[career]"==0)){% ^) A% i, j, H
alert("请选择职业");. y- x3 I6 o! \2 F
return false;
, d( k- R& w9 D6 S8 { } else {
. g. ]3 k, C1 e& |4 `) X' Z# F! d link += "&career="+checkRadio("data[career]");/ Q* K: r7 {! o$ W2 z
}
+ J* ~+ D4 ]: O3 | if (checkRadio("data[salary]")==0){4 c+ c2 C+ L7 p! k0 F
alert("请选择工资状况");/ t% |, U% ^: i
return false;+ i5 r6 P* Q: G9 J9 F" @- }
} else {
2 ?2 m8 D/ E1 V7 L R" \! H link += "&salary="+checkRadio("data[salary]");$ v5 G0 W5 E6 C% O
}
5 v# n; q' Y4 @4 w* @7 k1 e: [ if (checkRadio("data[costMobile]")==0){# L7 x1 d# a g$ q- s* B# e2 C* q! H
alert("请选择每个月的手机话费");. R, ]& }) \2 e6 {$ ^: E8 {2 v7 l5 E
return false;2 ~0 r n' {$ v( Y0 v# G: ^, F4 F
} else {
6 [( ?/ k: g. B( Y' F link += "&costMobile="+checkRadio("data[costMobile]");. z' }$ I! ]/ D8 O+ Z3 ^! z' w7 x
}
% E: s" t/ ]( ] h. x' t* O h2 b if (checkRadio("data[house]") == 0){) e. c6 ]6 `/ W) x( V6 R
alert("请选择您拥有住房情况");
- a! m+ s9 x, H return false;
- G& c% j \1 m1 ?! ~5 i* c3 h3 b } else {
' B% S4 K/ O7 a" O8 n link += "&house="+checkRadio("data[house]");- {3 _+ A1 F$ x
}4 v, Q# G0 \7 H* Y' d
if (checkRadio("data[car]")==0){# y5 {; r9 l2 D* e
alert("请选择拥有汽车情况");
$ ~' E; L/ z) u' r. m( S& _ return false;9 T* I3 o( L4 N9 Z. x O
} else {
0 S1 P9 e: s F3 Q link += "&car="+checkRadio("data[car]");
# D1 m) b/ C/ F- d }
+ Y8 K* F5 A, u if (checkRadio("data[bbsTime]")==0){
, \! p e+ H. B% Y5 C7 f/ F( x alert("请选择每周浏览论坛的时间长度");
" {+ r* [5 y6 q: a return false;
1 q# r+ z5 s+ C1 d8 F5 V } else {
+ B0 ^5 R" y& p link += "&bbsTime="+checkRadio("data[bbsTime]");
4 `7 D, e+ b5 N }8 @: {$ H% U- i5 J) c6 ^
location.href= link + "&userInfo="+encodeURI(getUserInfo()) + "&bId="+document.getElementById("insdevBId").value+"&sId="+document.getElementById("insdevSId").value;2 z' }; E4 x9 h8 w. N$ ?3 @% c
}
! F9 r: |& q* `7 n. P' Q3 ^" U function getUserInfo(){$ G2 {; N1 j8 X l- q
var aObj = document.getElementsByTagName("a");9 ?' R& T8 n. e- } ~6 |
var l = aObj.length;
% [3 `- j# l( _, j! o1 a3 L4 n for(var j=0;j<l;j++){
# V8 @4 f' o9 E5 U O% l$ [ var hrefPatrn = /^space.php\?uid=(.*)$/gi;
' a( w3 K9 L4 P6 G, C. y, G var href = aObj[j].getAttribute("href");
: z2 N( l6 K( e2 d. r' ]5 Z2 q+ y$ [ if (hrefPatrn.test(href)){' t9 e J7 a9 d: d9 m5 v
arr = href.split("=");4 \0 O# f# }% n& d- n& \
uId = arr[1];5 C& }; g4 Q0 m1 e
uName = document.getElementById(aObj[j].getAttribute("id")).innerHTML;
2 |# f% E# y/ [) j S- w return uId+":"+uName;
, ~' X1 G& @- T; T) T6 s" n break;
$ o. ~4 r4 Q% }- a }$ A6 K5 m0 R6 m. d' ]+ m; R! @
}
0 g4 j" V/ U. N- ` }: f3 u7 E. ~# ^( Z0 L# i
</script>
0 ? \4 G; e/ ~" x' h) x* i; C |
评分
-
查看全部评分
|