No regular expressions were active.
1 |
|
<?
|
|
1 |
|
<?
|
2 |
|
|
|
2 |
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
5 |
|
*
---------
--------
|
|
5 |
|
*
---------
--------
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
10 |
|
*
|
|
10 |
|
*
|
11 |
|
* Dolphin
is free so
ftware. Th
is work is
licensed
under a Cr
eative Com
mons Attri
bution 3.0
License.
|
|
11 |
|
* Dolphin
is free so
ftware. Th
is work is
licensed
under a Cr
eative Com
mons Attri
bution 3.0
License.
|
12 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
|
12 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
13 |
|
*
|
|
13 |
|
*
|
14 |
|
* Dolphin
is distrib
uted in th
e hope tha
t it will
be useful,
but WITHO
UT ANY WAR
RANTY;
|
|
14 |
|
* Dolphin
is distrib
uted in th
e hope tha
t it will
be useful,
but WITHO
UT ANY WAR
RANTY;
|
15 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
|
15 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
16 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
|
16 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
17 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Dolphin
,
|
|
17 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Dolphin
,
|
18 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
|
18 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
20 |
|
|
|
20 |
|
|
21 |
|
require_on
ce( 'inc/h
eader.inc.
php' );
|
|
21 |
|
require_on
ce( 'inc/h
eader.inc.
php' );
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
esign.inc.
php' );
|
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
esign.inc.
php' );
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofile_dis
p.inc.php'
);
|
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
26 |
|
|
|
25 |
|
|
27 |
|
$ADMIN = m
ember_auth
( 1, false
);
|
|
26 |
|
$ADMIN = m
ember_auth
( 1, false
);
|
28 |
|
$logged['a
dmin'] = $
ADMIN;
|
|
27 |
|
$logged['a
dmin'] = $
ADMIN;
|
29 |
|
|
|
28 |
|
|
30 |
|
// Check i
f moderato
r logged i
n.
|
|
29 |
|
// Check i
f moderato
r logged i
n.
|
31 |
|
$moderator
= member_
auth(3, fa
lse);
|
|
30 |
|
$moderator
= member_
auth(3, fa
lse);
|
32 |
|
$logged['m
oderator']
= $modera
tor;
|
|
31 |
|
$logged['m
oderator']
= $modera
tor;
|
33 |
|
// Give mo
derator al
l admin ri
ghts for t
his page.
|
|
32 |
|
// Give mo
derator al
l admin ri
ghts for t
his page.
|
34 |
|
$ADMIN = $
ADMIN || $
moderator;
|
|
33 |
|
$ADMIN = $
ADMIN || $
moderator;
|
35 |
|
|
|
34 |
|
|
36 |
|
if ( !$ADM
IN )
|
|
35 |
|
if ( !$ADM
IN )
|
37 |
|
$logged['m
ember'] =
member_aut
h( 0 );
|
|
36 |
|
$logged['m
ember'] =
member_aut
h( 0 );
|
38 |
|
|
|
37 |
|
|
39 |
|
// -------
-------- p
age variab
les and lo
gin
|
|
38 |
|
// -------
-------- p
age variab
les and lo
gin
|
40 |
|
|
|
39 |
|
|
41 |
|
$_page['na
me_index']
= 72;
|
|
40 |
|
$_page['na
me_index']
= 72;
|
42 |
|
$_page['cs
s_name']
= 'profile
_poll.css'
;
|
|
41 |
|
$_page['cs
s_name']
= 'profile
_poll.css'
;
|
43 |
|
$_page['js
_name']
= 'profile
_poll.js';
|
|
42 |
|
$_page['js
_name']
= 'profile
_poll.js';
|
44 |
|
|
|
43 |
|
|
45 |
|
|
|
44 |
|
|
46 |
|
$_page['he
ader'] = _
t("_Polls"
);
|
|
45 |
|
$_page['he
ader'] = _
t("_Polls"
);
|
47 |
|
$_page['he
ader_text'
] = _t("_P
olls");
|
|
46 |
|
$_page['he
ader_text'
] = _t("_P
olls");
|
48 |
|
|
|
47 |
|
|
49 |
|
|
|
48 |
|
|
50 |
|
|
|
49 |
|
|
51 |
|
// -------
-------- h
andle post
values
|
|
50 |
|
// -------
-------- h
andle post
values
|
52 |
|
|
|
51 |
|
|
53 |
|
|
|
52 |
|
|
54 |
|
$membe
r['ID'] =
(int)$_COO
KIE['membe
rID'];
|
|
53 |
|
$membe
r['ID'] =
(int)$_COO
KIE['membe
rID'];
|
55 |
|
|
|
54 |
|
|
56 |
|
if ( $
_POST['que
stion'] )
|
|
55 |
|
if ( $
_POST['que
stion'] )
|
57 |
|
{
|
|
56 |
|
{
|
58 |
|
|
|
57 |
|
|
59 |
|
$poll_
answers =
'';
|
|
58 |
|
$poll_
answers =
'';
|
60 |
|
for (
$i = 0; $i
< $_POST[
'next_val'
]; $i++ )
|
|
59 |
|
for (
$i = 0; $i
< $_POST[
'next_val'
]; $i++ )
|
61 |
|
{
|
|
60 |
|
{
|
62 |
|
if
( $_POST[
'v' . $i
] )
|
|
61 |
|
if
( $_POST[
'v' . $i
] )
|
63 |
|
{
|
|
62 |
|
{
|
64 |
|
$p
oll_answer
s .= proce
ss_db_inpu
t($_POST[
'v' . $i ]
) . '<deli
m>';
|
|
63 |
|
$p
oll_answer
s .= proce
ss_db_inpu
t($_POST[
'v' . $i ]
) . '<deli
m>';
|
65 |
|
$p
oll_result
s .= '0;';
|
|
64 |
|
$p
oll_result
s .= '0;';
|
66 |
|
}
|
|
65 |
|
}
|
67 |
|
}
|
|
66 |
|
}
|
68 |
|
|
|
67 |
|
|
69 |
|
if ( $
poll_answe
rs )
|
|
68 |
|
if ( $
poll_answe
rs )
|
70 |
|
{
|
|
69 |
|
{
|
71 |
|
|
|
70 |
|
|
72 |
|
$q
uery = "SE
LECT COUNT
(*) FROM P
rofilesPol
ls WHERE i
d_profile
= '" . $me
mber['ID']
. "'";
|
|
71 |
|
$q
uery = "SE
LECT COUNT
(*) FROM P
rofilesPol
ls WHERE i
d_profile
= '" . $me
mber['ID']
. "'";
|
73 |
|
$p
olls_num =
db_arr( $
query );
|
|
72 |
|
$p
olls_num =
db_arr( $
query );
|
74 |
|
|
|
73 |
|
|
75 |
|
$p
rofile_pol
l_num = ge
tParam("pr
ofile_poll
_num");
|
|
74 |
|
$p
rofile_pol
l_num = ge
tParam("pr
ofile_poll
_num");
|
76 |
|
if
( $profil
e_poll_num
&& $polls
_num[0] <
$profile_p
oll_num )
// limit n
umber of p
olls
|
|
75 |
|
if
( $profil
e_poll_num
&& $polls
_num[0] <
$profile_p
oll_num )
// limit n
umber of p
olls
|
77 |
|
{
|
|
76 |
|
{
|
78 |
|
$iAct =
getParam("
profile_po
ll_act") =
= 'on' ? 1
: 0;
|
|
77 |
|
$iAct =
getParam("
profile_po
ll_act") =
= 'on' ? 1
: 0;
|
79 |
|
$query =
"INSERT I
NTO Profil
esPolls (
id_profile
, poll_que
stion, pol
l_answers,
poll_resu
lts, poll_
status, po
ll_approva
l )
|
|
78 |
|
$query =
"INSERT I
NTO Profil
esPolls (
id_profile
, poll_que
stion, pol
l_answers,
poll_resu
lts, poll_
status, po
ll_approva
l )
|
80 |
|
VALUES (
'{$member
['ID']}',
'" . proce
ss_db_inpu
t($_POST['
question']
) . "', '$
poll_answe
rs', '$pol
l_results'
, 'active'
, '$iAct')
";
|
|
79 |
|
VALUES (
'{$member
['ID']}',
'" . proce
ss_db_inpu
t($_POST['
question']
) . "', '$
poll_answe
rs', '$pol
l_results'
, 'active'
, '$iAct')
";
|
81 |
|
db_res(
$query );
|
|
80 |
|
db_res(
$query );
|
82 |
|
|
|
81 |
|
|
83 |
|
$m
essage = _
t("_poll c
reated");
|
|
82 |
|
$m
essage = _
t("_poll c
reated");
|
84 |
|
|
|
83 |
|
|
85 |
|
}
|
|
84 |
|
}
|
86 |
|
}
|
|
85 |
|
}
|
87 |
|
}
|
|
86 |
|
}
|
88 |
|
|
|
87 |
|
|
89 |
|
|
|
88 |
|
|
90 |
|
|
|
89 |
|
|
91 |
|
|
|
90 |
|
|
92 |
|
// -------
-------- p
age compon
ents
|
|
91 |
|
// -------
-------- p
age compon
ents
|
93 |
|
|
|
92 |
|
|
94 |
|
$_ni = $_p
age['name_
index'];
|
|
93 |
|
$_ni = $_p
age['name_
index'];
|
95 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Th
isPageMain
Code();
|
|
94 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Th
isPageMain
Code();
|
96 |
|
|
|
95 |
|
|
97 |
|
// -------
-------- [
END] page
components
|
|
96 |
|
// -------
-------- [
END] page
components
|
98 |
|
|
|
97 |
|
|
99 |
|
|
|
98 |
|
|
100 |
|
PageCode()
;
|
|
99 |
|
PageCode()
;
|
101 |
|
|
|
100 |
|
|
102 |
|
|
|
101 |
|
|
103 |
|
// -------
-------- p
age compon
ents funct
ions
|
|
102 |
|
// -------
-------- p
age compon
ents funct
ions
|
104 |
|
|
|
103 |
|
|
105 |
|
/**
|
|
104 |
|
/**
|
106 |
|
* page co
de functio
n
|
|
105 |
|
* page co
de functio
n
|
107 |
|
*/
|
|
106 |
|
*/
|
108 |
|
function T
hisPageMai
nCode()
|
|
107 |
|
function T
hisPageMai
nCode()
|
109 |
|
{
|
|
108 |
|
{
|
110 |
|
global
$logged;
|
|
109 |
|
global
$logged;
|
111 |
|
global
$member;
|
|
110 |
|
global
$member;
|
112 |
|
|
|
111 |
|
|
113 |
|
|
|
112 |
|
|
114 |
|
// create
poll secti
on -------
----------
----------
----------
----------
----------
----------
|
|
113 |
|
// create
poll secti
on -------
----------
----------
----------
----------
----------
----------
|
115 |
|
$ret .
= '<div cl
ass="creat
ePollSecti
on">';
|
|
114 |
|
$ret .
= '<div cl
ass="creat
ePollSecti
on">';
|
116 |
|
|
|
115 |
|
|
117 |
|
$query
= "SELECT
COUNT(id_
poll) FROM
ProfilesP
olls WHERE
id_profil
e = '{$mem
ber['ID']}
'";
|
|
116 |
|
$query
= "SELECT
COUNT(id_
poll) FROM
ProfilesP
olls WHERE
id_profil
e = '{$mem
ber['ID']}
'";
|
118 |
|
$ras_a
rr = db_ar
r( $query
);
|
|
117 |
|
$ras_a
rr = db_ar
r( $query
);
|
119 |
|
|
|
118 |
|
|
120 |
|
$polls
_num = db_
arr( $quer
y );
|
|
119 |
|
$polls
_num = db_
arr( $quer
y );
|
121 |
|
$profi
le_poll_nu
m = getPar
am("profil
e_poll_num
");
|
|
120 |
|
$profi
le_poll_nu
m = getPar
am("profil
e_poll_num
");
|
122 |
|
|
|
121 |
|
|
123 |
|
if ( $
profile_po
ll_num &&
$polls_num
[0] < $pro
file_poll_
num ) // l
imit numbe
r of polls
|
|
122 |
|
if ( $
profile_po
ll_num &&
$polls_num
[0] < $pro
file_poll_
num ) // l
imit numbe
r of polls
|
124 |
|
$r
et .= Show
PollCreati
onForm();
|
|
123 |
|
$r
et .= Show
PollCreati
onForm();
|
125 |
|
else
|
|
124 |
|
else
|
126 |
|
$r
et .= _t('
_max_poll_
reached');
|
|
125 |
|
$r
et .= _t('
_max_poll_
reached');
|
127 |
|
|
|
126 |
|
|
128 |
|
$ret .
= '</div>'
;
|
|
127 |
|
$ret .
= '</div>'
;
|
129 |
|
|
|
128 |
|
|
130 |
|
|
|
129 |
|
|
131 |
|
// show po
lls sectio
n --------
----------
----------
----------
----------
----------
----------
|
|
130 |
|
// show po
lls sectio
n --------
----------
----------
----------
----------
----------
----------
|
132 |
|
|
|
131 |
|
|
133 |
|
$ret .
= '<div cl
ass="pollC
ontainer"
id="pol_co
ntainer">'
;
|
|
132 |
|
$ret .
= '<div cl
ass="pollC
ontainer"
id="pol_co
ntainer">'
;
|
134 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
|
133 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
135 |
|
$query
= "SELECT
id_poll,
poll_statu
s FROM Pro
filesPolls
WHERE id_
profile =
'{$member[
'ID']}'";
|
|
134 |
|
$query
= "SELECT
id_poll,
poll_statu
s FROM Pro
filesPolls
WHERE id_
profile =
'{$member[
'ID']}'";
|
136 |
|
$polls
_num = db_
res( $quer
y );
|
|
135 |
|
$polls
_num = db_
res( $quer
y );
|
137 |
|
|
|
136 |
|
|
138 |
|
while(
$poll_arr
= mysql_f
etch_array
( $polls_
num ) )
|
|
137 |
|
while(
$poll_arr
= mysql_f
etch_array
( $polls_
num ) )
|
139 |
|
{
|
|
138 |
|
{
|
140 |
|
|
|
139 |
|
|
141 |
|
$u
ID = $poll
_arr['id_p
oll'];
|
|
140 |
|
$u
ID = $poll
_arr['id_p
oll'];
|
142 |
|
|
|
141 |
|
|
143 |
|
$r
et .= '<di
v id="pol_
container_
pol_' . $u
ID . '" cl
ass="contr
olsDiv">';
|
|
142 |
|
$r
et .= '<di
v id="pol_
container_
pol_' . $u
ID . '" cl
ass="contr
olsDiv">';
|
144 |
|
$r
et .= Show
Poll( $uID
);
|
|
143 |
|
$r
et .= Show
Poll( $uID
);
|
145 |
|
|
|
144 |
|
|
146 |
|
$r
et .= '<di
v class="i
nnerContro
lBlock">';
|
|
145 |
|
$r
et .= '<di
v class="i
nnerContro
lBlock">';
|
147 |
|
|
|
146 |
|
|
148 |
|
//
$ret .= '<
div class=
"controlsH
eader">' .
_t('_cont
rols') . '
:</div>';
|
|
147 |
|
//
$ret .= '<
div class=
"controlsH
eader">' .
_t('_cont
rols') . '
:</div>';
|
149 |
|
|
|
148 |
|
|
150 |
|
if
( 'active
' == $poll
_arr['poll
_status']
)
|
|
149 |
|
if
( 'active
' == $poll
_arr['poll
_status']
)
|
151 |
|
$status_
change_to
= "disable
d";
|
|
150 |
|
$status_
change_to
= "disable
d";
|
152 |
|
el
se
|
|
151 |
|
el
se
|
153 |
|
$status_
change_to
= "active"
;
|
|
152 |
|
$status_
change_to
= "active"
;
|
154 |
|
|
|
153 |
|
|
155 |
|
$r
et .= "<sp
an id=\"po
ll_status_
$uID\" sty
le=\"paddi
ng: 0px 2p
x;\"></spa
n>";
|
|
154 |
|
$r
et .= "<sp
an id=\"po
ll_status_
$uID\" sty
le=\"paddi
ng: 0px 2p
x;\"></spa
n>";
|
156 |
|
|
|
155 |
|
|
157 |
|
$r
et .= '<sp
an class="
deleteDiv"
><a href="
#" onclick
=" if ( wi
ndow.confi
rm(\'' . _
t('_are yo
u sure?')
. '\') ) {
send_data
( \'\', \'
delete\',
\'\', \''
. $uID . '
\' ); del_
question_b
ar( docume
nt.getElem
entById(\'
pol_contai
ner\'), do
cument.get
ElementByI
d(\'pol_co
ntainer_po
l_' . $uID
. '\') );
} return
false;">'.
_t('_dele
te') .'</a
></span>';
|
|
156 |
|
$r
et .= '<sp
an class="
deleteDiv"
><a href="
#" onclick
=" if ( wi
ndow.confi
rm(\'' . _
t('_are yo
u sure?')
. '\') ) {
send_data
( \'\', \'
delete\',
\'\', \''
. $uID . '
\' ); del_
question_b
ar( docume
nt.getElem
entById(\'
pol_contai
ner\'), do
cument.get
ElementByI
d(\'pol_co
ntainer_po
l_' . $uID
. '\') );
} return
false;">'.
_t('_dele
te') .'</a
></span>';
|
158 |
|
|
|
157 |
|
|
159 |
|
$r
et .= '<sc
ript langu
age="javas
cript">
|
|
158 |
|
$r
et .= '<sc
ript langu
age="javas
cript">
|
160 |
|
poll_sta
tus_show(
\'' . $uID
. '\', \'
poll_statu
s_' . $uID
. '\', \'
' . $poll_
arr['poll_
status'] .
'\', \''
. $status_
change_to
. '\' );
|
|
159 |
|
poll_sta
tus_show(
\'' . $uID
. '\', \'
poll_statu
s_' . $uID
. '\', \'
' . $poll_
arr['poll_
status'] .
'\', \''
. $status_
change_to
. '\' );
|
161 |
|
</sc
ript>';
|
|
160 |
|
</sc
ript>';
|
162 |
|
|
|
161 |
|
|
163 |
|
|
|
162 |
|
|
164 |
|
$r
et .= '</d
iv>';
|
|
163 |
|
$r
et .= '</d
iv>';
|
165 |
|
|
|
164 |
|
|
166 |
|
|
|
165 |
|
|
167 |
|
$r
et .= '</d
iv>';
|
|
166 |
|
$r
et .= '</d
iv>';
|
168 |
|
|
|
167 |
|
|
169 |
|
}
|
|
168 |
|
}
|
170 |
|
|
|
169 |
|
|
171 |
|
// if no p
olls
|
|
170 |
|
// if no p
olls
|
172 |
|
if ( !
$uID )
|
|
171 |
|
if ( !
$uID )
|
173 |
|
$r
et .= _t_e
rr('_no po
ll');
|
|
172 |
|
$r
et .= _t_e
rr('_no po
ll');
|
174 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
|
173 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
175 |
|
$ret .
= '</div>'
;
|
|
174 |
|
$ret .
= '</div>'
;
|
176 |
|
|
|
175 |
|
|
177 |
|
return
$ret;
|
|
176 |
|
return
$ret;
|
178 |
|
|
|
177 |
|
|
179 |
|
|
|
178 |
|
|
180 |
|
}
|
|
179 |
|
}
|
181 |
|
|
|
180 |
|
|
182 |
|
function S
howPollCre
ationForm(
)
|
|
181 |
|
function S
howPollCre
ationForm(
)
|
183 |
|
{
|
|
182 |
|
{
|
184 |
|
ob_sta
rt();
|
|
183 |
|
ob_sta
rt();
|
185 |
|
?>
|
|
184 |
|
?>
|
186 |
|
<form
id="poll"
method="po
st"
>
|
|
185 |
|
<form
id="poll"
method="po
st"
action="<?
=
$_SERVER['
PHP_SELF']
?>"
>
|
187 |
|
<i
nput id="n
ext_val" n
ame="next_
val" type=
"hidden" v
alue="1" /
>
|
|
186 |
|
<i
nput id="n
ext_val" n
ame="next_
val" type=
"hidden" v
alue="1" /
>
|
188 |
|
<t
able id="q
uestions">
|
|
187 |
|
<t
able id="q
uestions">
|
189 |
|
<tr>
|
|
188 |
|
<tr>
|
190 |
|
<th
colspan="2
"><?= _t('
_create po
ll') ?></t
h>
|
|
189 |
|
<th
colspan="2
"><?= _t('
_create po
ll') ?></t
h>
|
191 |
|
</tr>
|
|
190 |
|
</tr>
|
192 |
|
<tr>
|
|
191 |
|
<tr>
|
193 |
|
<td
class="for
m_label"><
?= _t('_qu
estion') ?
>:</td>
|
|
192 |
|
<td
class="for
m_label"><
?= _t('_qu
estion') ?
>:</td>
|
194 |
|
<td
class="for
m_value">
|
|
193 |
|
<td
class="for
m_value">
|
195 |
|
<input id=
"question"
name="que
stion">
|
|
194 |
|
<input id=
"question"
name="que
stion">
|
196 |
|
</td
>
|
|
195 |
|
</td
>
|
197 |
|
</tr>
|
|
196 |
|
</tr>
|
198 |
|
<tr>
|
|
197 |
|
<tr>
|
199 |
|
<td
class="for
m_label"><
?= _t('_an
swer varia
nts') ?>:<
/td>
|
|
198 |
|
<td
class="for
m_label"><
?= _t('_an
swer varia
nts') ?>:<
/td>
|
200 |
|
<td
class="for
m_value">
|
|
199 |
|
<td
class="for
m_value">
|
201 |
|
<div id="q
uestions_b
ar_cont"><
/div>
|
|
200 |
|
<div id="q
uestions_b
ar_cont"><
/div>
|
202 |
|
</td
>
|
|
201 |
|
</td
>
|
203 |
|
</tr>
|
|
202 |
|
</tr>
|
204 |
|
<tr>
|
|
203 |
|
<tr>
|
205 |
|
<td
colspan="2
" class="f
orm_colspa
n">
|
|
204 |
|
<td
colspan="2
" class="f
orm_colspa
n">
|
206 |
|
<a h
ref="javas
cript:void
(0);"
|
|
205 |
|
<a h
ref="javas
cript:void
(0);"
|
207 |
|
onclick="
javascript
:
add_questi
on_bar(
'questions
_bar_cont'
,
'next_val'
,
true
);
return
false;"><?
=
_t('_add
answer')
?></a>
|
|
206 |
|
onclick="
add_questi
on_bar(
'questions
_bar_cont'
,
'next_val'
,
true
);
return
false;"><?
=
_t('_add
answer')
?></a>
|
208 |
|
|
|
|
207 |
|
|
|
209 |
|
<a h
ref="javas
cript:void
(0);" oncl
ick="docum
ent.getEle
mentById('
poll').sub
mit(); ret
urn false;
"><?= _t('
_generate
poll') ?><
/a>
|
|
208 |
|
<a h
ref="javas
cript:void
(0);" oncl
ick="docum
ent.getEle
mentById('
poll').sub
mit(); ret
urn false;
"><?= _t('
_generate
poll') ?><
/a>
|
210 |
|
</td
>
|
|
209 |
|
</td
>
|
211 |
|
</tr>
|
|
210 |
|
</tr>
|
212 |
|
</
table>
|
|
211 |
|
</
table>
|
213 |
|
</form
>
|
|
212 |
|
</form
>
|
214 |
|
<scrip
t type="te
xt/javascr
ipt">
|
|
213 |
|
<scrip
t type="te
xt/javascr
ipt">
|
215 |
|
ad
d_question
_bar( 'que
stions_bar
_cont', 'n
ext_val',
false );
|
|
214 |
|
ad
d_question
_bar( 'que
stions_bar
_cont', 'n
ext_val',
false );
|
216 |
|
ad
d_question
_bar( 'que
stions_bar
_cont', 'n
ext_val',
false );
|
|
215 |
|
ad
d_question
_bar( 'que
stions_bar
_cont', 'n
ext_val',
false );
|
217 |
|
</scri
pt>
|
|
216 |
|
</scri
pt>
|
218 |
|
<?
|
|
217 |
|
<?
|
219 |
|
|
|
218 |
|
|
220 |
|
return
ob_get_cl
ean();
|
|
219 |
|
return
ob_get_cl
ean();
|
221 |
|
}
|
|
220 |
|
}
|
222 |
|
|
|
221 |
|
|
223 |
|
?>
|
|
222 |
|
?>
|