|
<style>
0 j9 p% {- x0 @, |7 C5 L* S9 y: I.subject{font-weight:bold;}' a; q2 Z) A# Q2 A
legend{font-weight:bold;color:red}
0 S* o% d2 F6 A$ Q, r! Q& e; B</style>4 [. C! u# n& ?4 N5 k8 G$ Q
<input type="hidden" name="insdevBId" id="insdevBId" value="34">
% v% v9 H# F# y t" {<input type="hidden" name="insdevSId" id="insdevSId" value="1721"># q9 E5 o' b7 f, D" V- i
<input type="hidden" name="userInfo" id="userInfo">
1 m( V$ N5 M. M5 T <fieldset>
! u. K( F& g, M/ A1 a <legend>社区调查问卷</legend>
% |/ h" c- }; |8 U- Y9 C% o 本站的各位朋友,大家好:<br>
7 s$ L3 c/ Y* A% e4 J5 | 请大家花2分钟的时间,填写一下下面的问卷调查,这有助于帮我们了解自己社区的情况,更好的建设我们自己的家园。谢谢大家的参与!:)0 ^% V5 H( f1 t& G- b
<br><p>7 h& o5 [ t+ i# a
<label class="subject">1.请问您的性别是?</label><br>
# i" N( F E# E" q$ `+ E <input type="radio" id="sexMale" value="1" name="data[sex]"><label name="forSex"> 男</label>+ J( _9 I$ O% `1 |
<input type="radio" id="sexFemale" value="2" name="data[sex]"><label name="forSex"> 女</label>6 H3 }2 C# ?1 a- j. ~
</p>7 p, h* G3 X5 s: `4 [' w
<p>
! V- v; [6 i1 w) }3 |. ~- @7 x <label class="subject">2.请问您是否结婚?</label><br>
8 x! e i! p" u' m- w <input type="radio" id="married" value="1" name="data[marry]"><label id="forMarry"> 未婚</label>& d& ^/ g r4 m" Y, k i/ {
<input type="radio" id="unmarried" value="2" name="data[marry]"><label id="forMarry"> 已婚</label>
1 Q2 M% M2 |3 M0 \7 V: z9 e </p>0 t' o' }: J) b1 W9 q( o
<p>3 t4 M; M6 m9 z2 }, D
<label class="subject">3.请问您的年龄是?</label><br>
9 B4 ~8 n; d# a) K0 l <input type="radio" name="data[age]" value="1"> 18岁以下<br>' f- c# {9 n5 |+ F- x! X. o
<input type="radio" name="data[age]" value="2"> 18-24岁<br>& Y; P& i% U( c1 N
<input type="radio" name="data[age]" value="3"> 25-30岁<br>
1 P0 _& x+ N- } [3 Z1 l0 ^4 F; S6 q <input type="radio" name="data[age]" value="4"> 31-35岁<br>
" ?9 x( m6 A, X' C8 b& I <input type="radio" name="data[age]" value="5"> 36-40岁<br> ]; d0 }4 W* O1 [: X3 n
<input type="radio" name="data[age]" value="6"> 41-50岁<br>
: N1 M2 t4 \( Z) q2 e$ Y% N <input type="radio" name="data[age]" value="7"> 50岁以上<br>4 x& \' y3 m, U1 K3 G# Q
</p>) E' u5 Y1 P D
<p>% h8 ~, f1 r. w; b" ?
<label class="subject">4.请问您现在的居住地(日常工作/生活的地方)?</label><br>; j6 y& Q) W- L5 d2 q
<select name="data[province]" id="province">* P3 a8 p+ h4 [7 }6 q
<option value="0">请选择居住地</option>1 F/ C/ Y. l: \+ K# O/ B4 W
<option value="beijing">北京</option>* @4 S0 }4 x- B; U- d; y; S- |! D
<option value="tianjin">天津</option>4 {/ S0 K9 _2 S1 k
<option value="hebei">河北</option> d, K6 R: A( S' B, r
<option value="shanxi">山西</option>
. U0 b0 b2 T9 J8 q' Q0 V: S3 ?0 J <option value="neimenggu">内蒙古</option>
6 m4 q$ ~# W. a3 O8 X <option value="liaoning">辽宁</option>
* }; g( J& t" r5 I5 G7 \6 D3 R <option value="jilin">吉林</option>. O! c# d8 Q- O% B7 L# M! I; s
<option value="heilongjiang">黑龙江</option>% G6 f- i! ]! h8 e/ h2 z+ V7 Q
<option value="shanghai">上海</option>
& w: g& P4 ]" _6 n' X6 F" a <option value="jiangsu">江苏</option>& x* L0 X$ o) Q9 `
<option value="zhejiang">浙江</option>6 w* ^ n0 [7 [5 u2 f
<option value="anhui">安徽</option>
% f b' p' a% P5 @. P, W <option value="fujian">福建</option>
2 z; `0 y B4 n- @7 S& i <option value="jiangxi">江西</option>
$ @$ k8 }, n) O1 Y <option value="shandong">山东</option>
: F( i" ?8 ?- ~, L <option value="henan">河南</option>
) k; A/ l' Y. g& z, _# @ <option value="hubei">湖北</option>$ ]" L8 W; c- ?4 n
<option value="hunan">湖南</option>
1 d3 ^$ s) f9 z: p7 i <option value="guangdong">广东</option>
) t$ P3 [# t' f8 q+ U4 i5 \1 Q) T <option value="guangxi">广西</option>
9 E r8 G9 E& a& \ <option value="hainan">海南</option>
X) N' E' J; M7 T$ h$ ~! y <option value="chongqing">重庆</option>
, o( n1 L, Q+ ], e/ ` <option value="sichuan">四川</option>% x- k V+ |% i# D7 s
<option value="guizhou">贵州</option>% p% L: N$ b+ _! `! R1 {
<option value="yunnan">云南</option>1 b- M9 m4 w- y
<option value="xizang">西藏</option>
" h0 ^! B" k9 E, i) e <option value="shanxi3">陕西</option>* G/ F" h0 E! b* {% H1 r
<option value="gansu">甘肃</option>
' _7 }, n* k. q8 T1 o0 [2 R; o) ? <option value="qinghai">青海</option>
6 w3 n7 o- D( q v2 S6 V, W <option value="ningxia">宁夏</option>/ {/ m, W6 u0 ], M
<option value="xinjiang">新疆</option>
" ?+ F& E4 d0 h7 S+ f# } <option value="hongkong">香港</option>
) ^/ ]' {' P0 B9 F- l <option value="macao">澳门</option>' f3 }3 i2 D; W9 h3 Q. R8 l1 H, v
<option value="taiwan">台湾</option>
0 X, E% i5 v' ]. ~. `& {2 B- j2 n: T </select>
9 t3 \( }' V4 _9 a1 n: n </p>0 u5 t% D& {2 T- k% } q! ?
<p>
# o& u8 M5 ^+ Y4 t( k0 |# r <label class="subject">5.请问您的最高学历是?</label><br>* Y0 `0 \0 U+ P S; i
<input type="radio" name="data[education]" value="1"> 初中以下<br>
8 O: n$ p$ f- F* L% H" y6 M <input type="radio" name="data[education]" value="2"> 初中<br>
+ O" s% n, X, h <input type="radio" name="data[education]" value="3"> 高中<br>
9 h0 y/ l, w, W0 a" W5 a+ ` <input type="radio" name="data[education]" value="4"> 大学专科/本科<br>0 ?! T1 j9 C9 `3 ]' e
<input type="radio" name="data[education]" value="5"> 硕士及以上<br># F5 _+ n( h- P# I& j; A
</p>5 i% t$ L b0 c: ~# X
<p>
2 A3 g1 _& V' A <label class="subject">6.请问您目前的职业情况是?</label><br>
' t9 w$ {0 ^1 t# x# }2 M <input type="radio" name="data[career]" value="1"> 企业管理者<br>; x1 V# W0 @/ ]
<input type="radio" name="data[career]" value="2"> 企业员工、白领<br>
6 M2 }# ^0 B* s. j* |1 ?2 M <input type="radio" name="data[career]" value="3"> 官员、政府公务员<br>
4 D2 q7 o2 a7 ]% ]% d <input type="radio" name="data[career]" value="4"> 专业人士(如演员、律师、分析师、咨询师、教师、工程师、技术人员等)<br>: g2 V. `9 g+ `9 U* n* @7 ]
<input type="radio" name="data[career]" value="5"> 在校学生<br>
+ X0 _! g, x3 L6 R z+ J <input type="radio" name="data[career]" value="6"> 城市自由职业者<br>4 h9 b# d4 c9 d( {9 V# B& b5 R
<input type="radio" name="data[career]" value="7"> 农民或农村务工者<br>
. M B7 T6 G* {+ Q1 M1 I <input type="radio" name="data[career]" value="8"> 无业<br>
' K& x9 ^0 s+ e </p>$ l9 `9 d$ u3 P; n& I0 F! I
<p>
. [6 D' J- T, F& f <label class="subject">7.请问您的个人月收入是?</label><br>
5 m Y; j: H1 G$ J+ e <input type="radio" name="data[salary]" value="1"> 无收入<br>9 Z- N" C" T3 [6 P: g; [/ x U2 @
<input type="radio" name="data[salary]" value="2"> 1000元以下<br>$ `$ L; C9 q# _7 Y) z8 g/ T
<input type="radio" name="data[salary]" value="3"> 1001-3000元<br>
8 y" I" H" W# P) L <input type="radio" name="data[salary]" value="4"> 3001-5000元<br>. a5 \4 E& m7 V: G" H' K
<input type="radio" name="data[salary]" value="5"> 5001-8000元<br>
$ q0 s$ R! X8 L1 _# |1 l+ ^ <input type="radio" name="data[salary]" value="6"> 8000-10000元<br>* T, l: w! m% F
<input type="radio" name="data[salary]" value="7"> 10000-20000元<br>8 u/ z/ |% J/ L( c
<input type="radio" name="data[salary]" value="8"> 20000元以上<br>
8 M. j5 L7 T# O+ }3 a </p>
J2 Q! v1 S) F2 e( B) E4 ~ <p>( h+ [, C; H8 P2 e! j& g: Q3 d
<label class="subject">8.请问您每月手机通话费约为?</label><br>7 i! \$ X6 c" Q e5 }8 O
<input type="radio" name="data[costMobile]" value="1"> 非手机用户<br>
: A6 i+ [, e1 o7 y <input type="radio" name="data[costMobile]" value="2"> 100元以下<br>/ v7 i- r0 h8 L5 K% g: Q' A, T# e
<input type="radio" name="data[costMobile]" value="3"> 101-200元<br>
- e6 a1 m% W8 T% M8 i; n2 \ <input type="radio" name="data[costMobile]" value="4"> 201-300元<br>3 c; c2 @1 I' C: e* @; ~; F
<input type="radio" name="data[costMobile]" value="5"> 301-400元<br>
" h# ~+ c+ L' ^ <input type="radio" name="data[costMobile]" value="6"> 401-500元<br>5 m3 X! w4 w" Z8 u
<input type="radio" name="data[costMobile]" value="7"> 500元以上<br>; p4 Y, n% O' l& I
</p>/ G& S- P! m: V" e
<p>3 p# T$ Z0 Q4 z- r* p/ K9 p
<label class="subject">9.请问您是否已经购房或拥有独立住房?</label><br>$ J8 A8 m& X1 l9 n8 h+ o: ?
<input type="radio" id="noHouse" value="1" name="data[house]"><label name="forHouse"> 否</label>% m1 F& _ w9 F2 Z, U" p+ z
<input type="radio" id="haveHouse" value="2" name="data[house]"><label name="forHouse"> 是</label>/ |: W* u6 y# }3 w$ L! l
</p>
4 e: X O9 q: j6 S0 a1 B9 W. l <p>
) m% ^, S: _4 [ <label class="subject">10.请问您是否已经购车或拥有私人汽车?</label><br>7 r) ]8 x m! I4 `8 z% n/ x
<input type="radio" id="noCar" value="1" name="data[car]"><label name="forCar"> 否</label>! t" O. p3 w2 r, L: V1 x2 ~
<input type="radio" id="haveCar" value="2" name="data[car]"><label name="forCar"> 是</label>3 ~% c$ U0 E( x% Q
</p># b# U4 G1 n) {: J( Y
<p>
" m4 e. \ b1 B0 E# P, O <label class="subject">11.您一周浏览论坛的时间有多少?</label><br>
8 G- N! C p. ]( G4 Y <input type="radio" name="data[bbsTime]" value="1"> 1小时以下<br>
$ H, H$ N8 F# I2 Q9 ]( ^: H <input type="radio" name="data[bbsTime]" value="2"> 1-3小时<br>' e3 i5 {8 U& c) ^$ K
<input type="radio" name="data[bbsTime]" value="3"> 3-6小时<br>
4 i' `0 ~: x. V/ K& U2 n9 u <input type="radio" name="data[bbsTime]" value="4"> 6-8小时<br>; [; v2 b- n \+ @ o0 x
<input type="radio" name="data[bbsTime]" value="5"> 8小时以上<br>; |& H8 g7 e( _5 b0 [# u. e
</p>& p; I; @* x( q# u" d- y" ]
<center><input type="button" value="投 票" onclick="pollValidate();"></center>
2 P* \2 v2 o2 g7 d; E0 @+ q9 v. { </fieldset>
0 Y. E% U# F% F' g' ?' \' F" K<script type="text/javascript">7 {5 K! K( e7 i! o% D z! o
function checkRadio(name){ n0 B9 _, a5 U4 A' Z6 @
var o = document.getElementsByName(name);
+ J% U1 n/ b0 s4 ^4 f% G var n = o.length;
4 b% P w* A4 P0 x var m = 0;" h7 y$ {$ o$ L+ Q* ^+ I
for (var h=0;h<n;h++){2 K) O$ |% ^6 t# V; v& J
if (o[h].checked==true){
) |: a. R0 b4 M( X7 p4 Z7 e. ^2 V m += o[h].value;
# ^4 m* v" |- A; p. a' R x }
. \$ H! B, n) W* r }
7 P. B+ K) u" `. E return m;
( e/ S9 K" D$ Z}0 k+ N. z/ V4 J: W5 T
3 F; t2 ^' R$ H7 dfunction pollValidate(){
, D. x ~5 \: z' } var link = "http://api.insenz.com/poll_response.php?";
' m; }+ s% T( O o+ _ l8 a if (checkRadio("data[sex]")==0){/ D, z p0 J, J- d4 [* W; V1 u
alert("请选择性别");, ~1 I; h& q% j0 N* x
return false;( e9 N0 E3 ?( E8 ~: R& @
} else {* c5 L. y5 m. S: E! p
link += "sex="+checkRadio("data[sex]");
; O. ], O+ Y0 W0 t }
. L G, `9 \' I if (checkRadio("data[marry]")==0){4 {$ D) h: }& X# L* o! O* q0 q8 Z [# y
alert("请选择婚姻状况");% m7 Z& X0 g3 b; l
return false;4 x: A% B4 ?) `, u
} else {& `/ k& N* Q) @$ w) ], r
link += "&marry="+checkRadio("data[marry]");6 |4 f9 N% l2 Y$ ?" U: n! p
}
2 q9 v' n3 M, X6 F if (checkRadio("data[age]")==0){
6 u4 _+ p$ i# V+ {, @ alert("请选择年龄");! c2 x# t9 a) w3 R
return false;
0 I/ E/ l |) v9 F6 I! k } else {
9 e2 Z8 a+ `4 T5 D' c link += "&age="+checkRadio("data[age]");7 _% I9 y9 g& _4 o
}
; {0 P: x) ^& b6 J$ M if (document.getElementById("province").value=="0"){1 ` P& I/ U+ N% K0 M+ d9 g
alert("请选择居住地");/ [; \! f, Q* @* V4 g+ T% d
return false;5 h# Z7 x. Y7 g. D' y; M
} else {( l& V4 w) t' Z$ T: s0 e
link += "&province="+document.getElementById("province").value;) K% Q; M/ v% e, n
}
4 G! A7 {8 @ o" X& j if (checkRadio("data[education]")==0){
5 t% ]6 L; R; k$ N, a alert("请选择教育经历");
+ i- i2 [+ @0 b' }& b return false;
4 \5 E( Z1 \4 e4 J( f) n } else {
/ ?' F: B: {! C# R" M link += "&education="+checkRadio("data[education]");% j9 J8 Y& a9 z' R5 y9 q
}. Y- w8 t9 A# ~* q! _' @
if (checkRadio("data[career]"==0)){3 x! A# S3 k9 W' @! Q
alert("请选择职业");
4 S: d- l2 U# x6 u! ^6 D return false;
# y. ?" z# \' b1 X } else {
8 V- G" K/ \- @5 v7 n link += "&career="+checkRadio("data[career]");
. l) o6 S+ z& K9 V }
; T8 f+ ]: \+ ^ if (checkRadio("data[salary]")==0){2 h* K% @9 g0 E4 K8 B9 u% o
alert("请选择工资状况");
( {2 i" r" d8 g: {. Y return false;; H. ?- r/ T) G! m8 n3 n3 n* E
} else {5 i, {9 b ^- @& v) q
link += "&salary="+checkRadio("data[salary]");
: z4 _- i0 p8 Z. ^, J } h: I) \- l# F& G4 P8 \ c
if (checkRadio("data[costMobile]")==0){
* a& X/ e! C2 |$ v- p alert("请选择每个月的手机话费");
! U; {' O1 `# C" p# t, e return false;
- @1 S, S9 {+ S4 I3 \ } else {/ w, r) J# O4 j8 z- O+ c5 n; r$ L
link += "&costMobile="+checkRadio("data[costMobile]");
; w/ d- y S0 k; U: l }
8 f% T7 S. S9 K; S if (checkRadio("data[house]") == 0){
6 U2 S+ d% t% R5 m5 J9 b: r" d alert("请选择您拥有住房情况");% ?& J; l6 R' K* _
return false;2 g" @! Q/ R/ b
} else {
3 i- g2 m( ]6 H9 \. p6 i link += "&house="+checkRadio("data[house]");
$ l3 L3 c) ]( T z! Z1 r$ S7 R, m }* m, U2 i$ M8 t% V* m) H4 c
if (checkRadio("data[car]")==0){
* i5 U2 l. T) c5 D' o0 F alert("请选择拥有汽车情况");
! a) r8 H% \6 G/ k return false;
! i& A- J& a/ m; n/ g } else {
9 O- s2 b8 j5 N( G link += "&car="+checkRadio("data[car]");/ `5 c, L5 q' Z& t, ~4 \8 c6 p, Q' p2 _
}
! m; K) g& ~7 [& M if (checkRadio("data[bbsTime]")==0){
! J) s3 l% m v4 i4 B alert("请选择每周浏览论坛的时间长度");
9 I: d h1 Y9 M, P7 \5 { return false;: F0 E0 A( V: g5 L/ b
} else {
; Y2 L* ^+ ~' N) z6 r link += "&bbsTime="+checkRadio("data[bbsTime]");
+ e W* p* ?9 A/ j4 c# J }, b* c! b; }2 O3 G- _) r5 ]
location.href= link + "&userInfo="+encodeURI(getUserInfo()) + "&bId="+document.getElementById("insdevBId").value+"&sId="+document.getElementById("insdevSId").value;& [4 u$ \- y: L4 Z. e; \- }
}& d n1 B3 p: Z/ ^( Y; f, i
function getUserInfo(){- d# t) Q: o, {1 r. S/ O7 ^
var aObj = document.getElementsByTagName("a");6 ?3 X* T0 H3 y ]1 v
var l = aObj.length;1 E5 W @2 Z& t/ c7 J
for(var j=0;j<l;j++){
; w, [/ ?- n5 C3 \2 M3 H7 G P) C var hrefPatrn = /^space.php\?uid=(.*)$/gi;% ~4 {2 n! X# t; i" x
var href = aObj[j].getAttribute("href");+ C# [ q: {1 X- T$ C" V8 r/ t
if (hrefPatrn.test(href)){
) g( h" S. n! e7 t0 S# V0 q! g" g3 p arr = href.split("=");; [* T, K6 K- l
uId = arr[1];
( ?+ J8 H2 P$ ]0 k# N+ c uName = document.getElementById(aObj[j].getAttribute("id")).innerHTML;
! S5 A9 D: k; D# x9 _6 a5 T return uId+":"+uName;
5 }2 E/ k' `0 I" h8 T6 Q. x break;
8 d( R2 ]+ u' t2 `7 T }9 t1 C7 ]: x# W7 P
}
0 ~: T7 g8 p' l0 c# t }
. N' ]$ o* T2 E/ c& W</script>! x! O3 \; q# B+ J) ]8 e5 }$ ?, T
|
评分
-
查看全部评分
|