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( '../in
c/header.i
nc.php' );
|
|
21 |
|
require_on
ce( '../in
c/header.i
nc.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 . 'a
dmin_desig
n.inc.php'
);
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'a
dmin_desig
n.inc.php'
);
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
27 |
|
|
|
26 |
|
|
28 |
|
$logged['a
dmin'] = m
ember_auth
( 1 );
|
|
27 |
|
$logged['a
dmin'] = m
ember_auth
( 1 );
|
29 |
|
$ADMIN = $
logged['ad
min'];
|
|
28 |
|
$ADMIN = $
logged['ad
min'];
|
30 |
|
|
|
29 |
|
|
31 |
|
/*--------
----------
-----membe
r as
affil
iates-----
----------
----------
---*/
|
|
30 |
|
/*--------
----------
-----membe
r as
affil
iates-----
----------
----------
---*/
|
32 |
|
|
|
31 |
|
|
33 |
|
if
( !$demo_
mode && $_
POST['mem_
form_submi
t'] == "De
lete")
|
|
32 |
|
if
( !$demo_
mode && $_
POST['mem_
form_submi
t'] == "De
lete")
|
34 |
|
{
|
|
33 |
|
{
|
35 |
|
$i =
0;
|
|
34 |
|
$i =
0;
|
36 |
|
whil
e( list( $
key, $val
) = each(
$_POST ) )
|
|
35 |
|
whil
e( list( $
key, $val
) = each(
$_POST ) )
|
37 |
|
{
|
|
36 |
|
{
|
38 |
|
if ( (
int)$key &
& $val ==
"on" )
|
|
37 |
|
if ( (
int)$key &
& $val ==
"on" )
|
39 |
|
{
|
|
38 |
|
{
|
40 |
|
$res = d
b_res("DEL
ETE FROM m
embers_as_
aff WHERE
ID='$key'"
);
|
|
39 |
|
$res = d
b_res("DEL
ETE FROM m
embers_as_
aff WHERE
ID='$key'"
);
|
41 |
|
if (!$re
s)
|
|
40 |
|
if (!$re
s)
|
42 |
|
{
|
|
41 |
|
{
|
43 |
|
$err = 1;
|
|
42 |
|
$err = 1;
|
44 |
|
break;
|
|
43 |
|
break;
|
45 |
|
}
|
|
44 |
|
}
|
46 |
|
++$i;
|
|
45 |
|
++$i;
|
47 |
|
}
|
|
46 |
|
}
|
48 |
|
}
|
|
47 |
|
}
|
49 |
|
|
|
48 |
|
|
50 |
|
if
($err)
|
|
49 |
|
if
($err)
|
51 |
|
$status_
text = "Me
mbership r
ule was NO
T successf
ully delet
ed.";
|
|
50 |
|
$status_
text = "Me
mbership r
ule was NO
T successf
ully delet
ed.";
|
52 |
|
el
se
|
|
51 |
|
el
se
|
53 |
|
$status_
text = "$i
membershi
p rules wa
s successf
ully delet
ed.";
|
|
52 |
|
$status_
text = "$i
membershi
p rules wa
s successf
ully delet
ed.";
|
54 |
|
|
|
53 |
|
|
55 |
|
}
|
|
54 |
|
}
|
56 |
|
|
|
55 |
|
|
57 |
|
if ( !
$demo_mode
&& $_POST
['AddMem']
)
|
|
56 |
|
if ( !
$demo_mode
&& $_POST
['AddMem']
)
|
58 |
|
{
|
|
57 |
|
{
|
59 |
|
$m
aa_num_of_
mem = proc
ess_db_inp
ut( $_POST
['num_of_m
em'] );
|
|
58 |
|
$m
aa_num_of_
mem = proc
ess_db_inp
ut( $_POST
['num_of_m
em'] );
|
60 |
|
$m
aa_num_of_
days = pro
cess_db_in
put( $_POS
T['num_of_
days'] );
|
|
59 |
|
$m
aa_num_of_
days = pro
cess_db_in
put( $_POS
T['num_of_
days'] );
|
61 |
|
$m
aa_mid = p
rocess_db_
input( $_P
OST['MID']
);
|
|
60 |
|
$m
aa_mid = p
rocess_db_
input( $_P
OST['MID']
);
|
62 |
|
$r
es = db_re
s("INSERT
INTO membe
rs_as_aff
(`num_of_m
em`, `num_
of_days`,
`MID`) VAL
UES ('$maa
_num_of_me
m', '$maa_
num_of_day
s', '$maa_
mid')");
|
|
61 |
|
$r
es = db_re
s("INSERT
INTO membe
rs_as_aff
(`num_of_m
em`, `num_
of_days`,
`MID`) VAL
UES ('$maa
_num_of_me
m', '$maa_
num_of_day
s', '$maa_
mid')");
|
63 |
|
if
(!$res)
|
|
62 |
|
if
(!$res)
|
64 |
|
{
|
|
63 |
|
{
|
65 |
|
$err = 1
;
|
|
64 |
|
$err = 1
;
|
66 |
|
break;
|
|
65 |
|
break;
|
67 |
|
}
|
|
66 |
|
}
|
68 |
|
|
|
67 |
|
|
69 |
|
if
($err)
|
|
68 |
|
if
($err)
|
70 |
|
$status_
text = "Me
mbership r
ule was NO
T successf
ully added
.";
|
|
69 |
|
$status_
text = "Me
mbership r
ule was NO
T successf
ully added
.";
|
71 |
|
el
se
|
|
70 |
|
el
se
|
72 |
|
$status_
text = "Me
mbership r
ule was su
ccessfully
added.";
|
|
71 |
|
$status_
text = "Me
mbership r
ule was su
ccessfully
added.";
|
73 |
|
|
|
72 |
|
|
74 |
|
}
|
|
73 |
|
}
|
75 |
|
|
|
74 |
|
|
76 |
|
|
|
75 |
|
|
77 |
|
if ( !
$demo_mode
&& (int)$
_GET['edit
mem'] )
|
|
76 |
|
if ( !
$demo_mode
&& (int)$
_GET['edit
mem'] )
|
78 |
|
{
|
|
77 |
|
{
|
79 |
|
$iEditme
m = (int)$
_GET['edit
mem'];
|
|
78 |
|
$iEditme
m = (int)$
_GET['edit
mem'];
|
80 |
|
$editmem
_arr = db_
arr( "SELE
CT * FROM
members_as
_aff WHERE
ID='$iEdi
tmem';" );
|
|
79 |
|
$editmem
_arr = db_
arr( "SELE
CT * FROM
members_as
_aff WHERE
ID='$iEdi
tmem';" );
|
81 |
|
}
|
|
80 |
|
}
|
82 |
|
|
|
81 |
|
|
83 |
|
if
( $_POST[
'EditMemS'
] )
|
|
82 |
|
if
( $_POST[
'EditMemS'
] )
|
84 |
|
{
|
|
83 |
|
{
|
85 |
|
$maa
_num_of_me
m = proces
s_db_input
( $_POST['
num_of_mem
'] );
|
|
84 |
|
$maa
_num_of_me
m = proces
s_db_input
( $_POST['
num_of_mem
'] );
|
86 |
|
$maa
_num_of_da
ys = proce
ss_db_inpu
t( $_POST[
'num_of_da
ys'] );
|
|
85 |
|
$maa
_num_of_da
ys = proce
ss_db_inpu
t( $_POST[
'num_of_da
ys'] );
|
87 |
|
$maa
_mid = pro
cess_db_in
put( $_POS
T['MID'] )
;
|
|
86 |
|
$maa
_mid = pro
cess_db_in
put( $_POS
T['MID'] )
;
|
88 |
|
$res
= db_res(
"UPDATE me
mbers_as_a
ff SET `nu
m_of_mem`=
'$maa_num_
of_mem',`n
um_of_days
`='$maa_nu
m_of_days'
,`MID`='$m
aa_mid' WH
ERE ID = '
$maa_mid'"
);
|
|
87 |
|
$res
= db_res(
"UPDATE me
mbers_as_a
ff SET `nu
m_of_mem`=
'$maa_num_
of_mem',`n
um_of_days
`='$maa_nu
m_of_days'
,`MID`='$m
aa_mid' WH
ERE ID = '
$maa_mid'"
);
|
89 |
|
if (
$res )
|
|
88 |
|
if (
$res )
|
90 |
|
$statu
s_text = "
Membership
rule was
successful
ly updated
.";
|
|
89 |
|
$statu
s_text = "
Membership
rule was
successful
ly updated
.";
|
91 |
|
else
|
|
90 |
|
else
|
92 |
|
$statu
s_text = "
Membership
rule was
NOT succes
sfully upd
ated.";
|
|
91 |
|
$statu
s_text = "
Membership
rule was
NOT succes
sfully upd
ated.";
|
93 |
|
}
|
|
92 |
|
}
|
94 |
|
|
|
93 |
|
|
95 |
|
|
|
94 |
|
|
96 |
|
/*--------
----------
-----membe
r as
affil
iates-----
----------
----------
---*/
|
|
95 |
|
/*--------
----------
-----membe
r as
affil
iates-----
----------
----------
---*/
|
97 |
|
|
|
96 |
|
|
98 |
|
|
|
97 |
|
|
99 |
|
// - delet
e transact
ion ------
----------
|
|
98 |
|
// - delet
e transact
ion ------
----------
|
100 |
|
if ( !
$demo_mode
&& $_POST
[prf_form_
submit] ==
"Delete")
|
|
99 |
|
if ( !
$demo_mode
&& $_POST
[prf_form_
submit] ==
"Delete")
|
101 |
|
{
|
|
100 |
|
{
|
102 |
|
$i
= 0;
|
|
101 |
|
$i
= 0;
|
103 |
|
wh
ile( list(
$key, $va
l ) = each
( $_POST )
)
|
|
102 |
|
wh
ile( list(
$key, $va
l ) = each
( $_POST )
)
|
104 |
|
{
|
|
103 |
|
{
|
105 |
|
if ( (in
t)$key &&
$val == "o
n" )
|
|
104 |
|
if ( (in
t)$key &&
$val == "o
n" )
|
106 |
|
{
|
|
105 |
|
{
|
107 |
|
$res
= db_res(
"DELETE FR
OM aff WHE
RE ID='$ke
y'");
|
|
106 |
|
$res
= db_res(
"DELETE FR
OM aff WHE
RE ID='$ke
y'");
|
108 |
|
if (
!$res)
|
|
107 |
|
if (
!$res)
|
109 |
|
{
|
|
108 |
|
{
|
110 |
|
$err = 1;
|
|
109 |
|
$err = 1;
|
111 |
|
break;
|
|
110 |
|
break;
|
112 |
|
}
|
|
111 |
|
}
|
113 |
|
++$i
;
|
|
112 |
|
++$i
;
|
114 |
|
}
|
|
113 |
|
}
|
115 |
|
}
|
|
114 |
|
}
|
116 |
|
|
|
115 |
|
|
117 |
|
if
($err)
|
|
116 |
|
if
($err)
|
118 |
|
$status_
text = "Pa
rtners was
NOT succe
ssfully de
leteed.";
|
|
117 |
|
$status_
text = "Pa
rtners was
NOT succe
ssfully de
leteed.";
|
119 |
|
el
se
|
|
118 |
|
el
se
|
120 |
|
$status_
text = "$i
partners
was succes
sfully del
eted.";
|
|
119 |
|
$status_
text = "$i
partners
was succes
sfully del
eted.";
|
121 |
|
|
|
120 |
|
|
122 |
|
|
|
121 |
|
|
123 |
|
}
|
|
122 |
|
}
|
124 |
|
|
|
123 |
|
|
125 |
|
|
|
124 |
|
|
126 |
|
// - add t
ransaction
--------
----------
|
|
125 |
|
// - add t
ransaction
--------
----------
|
127 |
|
|
|
126 |
|
|
128 |
|
if ( !
$demo_mode
&& $_POST
[AddDiscou
nt] )
|
|
127 |
|
if ( !
$demo_mode
&& $_POST
[AddDiscou
nt] )
|
129 |
|
{
|
|
128 |
|
{
|
130 |
|
$a
ff_name =
process_db
_input( $_
POST['Name
'] );
|
|
129 |
|
$a
ff_name =
process_db
_input( $_
POST['Name
'] );
|
131 |
|
$a
ff_email =
process_d
b_input( $
_POST['ema
il'] );
|
|
130 |
|
$a
ff_email =
process_d
b_input( $
_POST['ema
il'] );
|
132 |
|
$a
ff_passwor
d = proces
s_db_input
( $_POST['
Password']
);
|
|
131 |
|
$a
ff_passwor
d = proces
s_db_input
( $_POST['
Password']
);
|
133 |
|
$a
ff_percent
= process
_db_input(
$_POST['P
ercent'] )
;
|
|
132 |
|
$a
ff_percent
= process
_db_input(
$_POST['P
ercent'] )
;
|
134 |
|
$a
ff_status
= process_
db_input(
$_POST['St
atus'] );
|
|
133 |
|
$a
ff_status
= process_
db_input(
$_POST['St
atus'] );
|
135 |
|
$r
es = db_re
s("INSERT
INTO `aff`
(`Name`,`
email`,`Pa
ssword`,`P
ercent`,`S
tatus`) VA
LUES ('$af
f_name', '
$aff_email
', md5( '$
aff_passwo
rd' ), '$a
ff_percent
', '$aff_s
tatus')");
|
|
134 |
|
$r
es = db_re
s("INSERT
INTO `aff`
(`Name`,`
email`,`Pa
ssword`,`P
ercent`,`S
tatus`) VA
LUES ('$af
f_name', '
$aff_email
', md5( '$
aff_passwo
rd' ), '$a
ff_percent
', '$aff_s
tatus')");
|
136 |
|
if
(!$res)
|
|
135 |
|
if
(!$res)
|
137 |
|
{
|
|
136 |
|
{
|
138 |
|
$err = 1
;
|
|
137 |
|
$err = 1
;
|
139 |
|
break;
|
|
138 |
|
break;
|
140 |
|
}
|
|
139 |
|
}
|
141 |
|
|
|
140 |
|
|
142 |
|
if
($err)
|
|
141 |
|
if
($err)
|
143 |
|
$status_
text = "Pa
rtner was
NOT succes
sfully add
ed.";
|
|
142 |
|
$status_
text = "Pa
rtner was
NOT succes
sfully add
ed.";
|
144 |
|
el
se
|
|
143 |
|
el
se
|
145 |
|
$status_
text = "Pa
rtner was
successful
ly added."
;
|
|
144 |
|
$status_
text = "Pa
rtner was
successful
ly added."
;
|
146 |
|
|
|
145 |
|
|
147 |
|
}
|
|
146 |
|
}
|
148 |
|
|
|
147 |
|
|
149 |
|
// - edit
transactio
n -------
----------
-
|
|
148 |
|
// - edit
transactio
n -------
----------
-
|
150 |
|
|
|
149 |
|
|
151 |
|
if ( !
$demo_mode
&& (int)$
_GET[editd
is] )
|
|
150 |
|
if ( !
$demo_mode
&& (int)$
_GET[editd
is] )
|
152 |
|
{
|
|
151 |
|
{
|
153 |
|
$e
ditdis_arr
= db_arr(
"SELECT `
ID`, `Name
`, `email`
, `Passwor
d`, `Perce
nt`, `seed
`, DATE_FO
RMAT(`RegD
ate`, '$da
te_format'
) AS RegD
ate, `Stat
us`, `www1
`, `www2`
FROM aff W
HERE ID='"
.$_GET[edi
tdis]."'"
);
|
|
152 |
|
$e
ditdis_arr
= db_arr(
"SELECT `
ID`, `Name
`, `email`
, `Passwor
d`, `Perce
nt`, `seed
`, DATE_FO
RMAT(`RegD
ate`, '$da
te_format'
) AS RegD
ate, `Stat
us`, `www1
`, `www2`
FROM aff W
HERE ID='"
.$_GET[edi
tdis]."'"
);
|
154 |
|
}
|
|
153 |
|
}
|
155 |
|
|
|
154 |
|
|
156 |
|
if ( $
_POST[Edit
Discount]
)
|
|
155 |
|
if ( $
_POST[Edit
Discount]
)
|
157 |
|
{
|
|
156 |
|
{
|
158 |
|
if
( !strlen(
$_POST['P
assword']
) )
|
|
157 |
|
if
( !strlen(
$_POST['P
assword']
) )
|
159 |
|
$sPasswo
rd = "";
|
|
158 |
|
$sPasswo
rd = "";
|
160 |
|
el
se
|
|
159 |
|
el
se
|
161 |
|
$sPasswo
rd = "`Pas
sword`=md5
( '$_POST[
Password]'
),";
|
|
160 |
|
$sPasswo
rd = "`Pas
sword`=md5
( '$_POST[
Password]'
),";
|
162 |
|
$r
es = db_re
s("UPDATE
aff SET `N
ame`='$_PO
ST[Name]',
`email`='$
_POST[emai
l]'," . $s
Password .
"`Percent
`='$_POST[
Percent]',
`Status`='
$_POST[Sta
tus]' WHER
E ID=$_POS
T[ID]");
|
|
161 |
|
$r
es = db_re
s("UPDATE
aff SET `N
ame`='$_PO
ST[Name]',
`email`='$
_POST[emai
l]'," . $s
Password .
"`Percent
`='$_POST[
Percent]',
`Status`='
$_POST[Sta
tus]' WHER
E ID=$_POS
T[ID]");
|
163 |
|
if
( $res )
|
|
162 |
|
if
( $res )
|
164 |
|
$status_
text = "Pa
rtner was
successful
ly updated
.";
|
|
163 |
|
$status_
text = "Pa
rtner was
successful
ly updated
.";
|
165 |
|
el
se
|
|
164 |
|
el
se
|
166 |
|
$status_
text = "Pa
rtner was
NOT succes
sfully upd
ated.";
|
|
165 |
|
$status_
text = "Pa
rtner was
NOT succes
sfully upd
ated.";
|
167 |
|
}
|
|
166 |
|
}
|
168 |
|
|
|
167 |
|
|
169 |
|
// - GET v
ariables -
----------
---
|
|
168 |
|
// - GET v
ariables -
----------
---
|
170 |
|
|
|
169 |
|
|
171 |
|
$page
= (int)$
_GET['page
'];
|
|
170 |
|
$page
= (int)$
_GET['page
'];
|
172 |
|
$p_per_pag
e = (int)$
_GET['p_pe
r_page'];
|
|
171 |
|
$p_per_pag
e = (int)$
_GET['p_pe
r_page'];
|
173 |
|
$profiles
= (int)$
_GET['prof
iles'];
|
|
172 |
|
$profiles
= (int)$
_GET['prof
iles'];
|
174 |
|
$sex
= (int)$
_GET['sex'
];
|
|
173 |
|
$sex
= (int)$
_GET['sex'
];
|
175 |
|
$featured
= $_GET[
'featured'
];
|
|
174 |
|
$featured
= $_GET[
'featured'
];
|
176 |
|
|
|
175 |
|
|
177 |
|
if ( !$pag
e )
|
|
176 |
|
if ( !$pag
e )
|
178 |
|
$page
= 1;
|
|
177 |
|
$page
= 1;
|
179 |
|
|
|
178 |
|
|
180 |
|
if ( !$p_p
er_page )
|
|
179 |
|
if ( !$p_p
er_page )
|
181 |
|
$p_per
_page = 30
;
|
|
180 |
|
$p_per
_page = 30
;
|
182 |
|
|
|
181 |
|
|
183 |
|
// -------
----------
----------
---
|
|
182 |
|
// -------
----------
----------
---
|
184 |
|
|
|
183 |
|
|
185 |
|
$p_num = d
b_arr( "SE
LECT COUNT
(*) FROM a
ff" );
|
|
184 |
|
$p_num = d
b_arr( "SE
LECT COUNT
(*) FROM a
ff" );
|
186 |
|
$p_num = $
p_num[0];
|
|
185 |
|
$p_num = $
p_num[0];
|
187 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
|
186 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
188 |
|
|
|
187 |
|
|
189 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
|
188 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
190 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
|
189 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
191 |
|
|
|
190 |
|
|
192 |
|
$result =
db_res( "S
ELECT ID,
Name, emai
l, Passwor
d, Percent
, www1, ww
w2, Status
, DATE_FOR
MAT(`RegDa
te`, '$dat
e_format'
) AS RegDa
te, COUNT(
idProfile)
AS m_coun
t FROM aff
LEFT JOIN
aff_membe
rs ON (ID=
idAff) GRO
UP BY ID $
part_addon
ORDER BY
ID ASC LIM
IT $real_f
irst_p, $p
_per_page"
);
|
|
191 |
|
$result =
db_res( "S
ELECT ID,
Name, emai
l, Passwor
d, Percent
, www1, ww
w2, Status
, DATE_FOR
MAT(`RegDa
te`, '$dat
e_format'
) AS RegDa
te, COUNT(
idProfile)
AS m_coun
t FROM aff
LEFT JOIN
aff_membe
rs ON (ID=
idAff) GRO
UP BY ID $
part_addon
ORDER BY
ID ASC LIM
IT $real_f
irst_p, $p
_per_page"
);
|
193 |
|
$page_p_nu
m = mysql_
num_rows(
$result );
|
|
192 |
|
$page_p_nu
m = mysql_
num_rows(
$result );
|
194 |
|
|
|
193 |
|
|
195 |
|
$membershi
ps_arr = g
etMembersh
ips();
|
|
194 |
|
$membershi
ps_arr = g
etMembersh
ips();
|
196 |
|
|
|
195 |
|
|
197 |
|
$_page['he
ader'] = "
Partners L
ist";
|
|
196 |
|
$_page['he
ader'] = "
Partners L
ist";
|
198 |
|
$_page['he
ader_text'
] = "Partn
ers List";
|
|
197 |
|
$_page['he
ader_text'
] = "Partn
ers List";
|
199 |
|
|
|
198 |
|
|
200 |
|
TopCodeAdm
in();
|
|
199 |
|
TopCodeAdm
in();
|
201 |
|
|
|
200 |
|
|
202 |
|
?>
|
|
201 |
|
?>
|
203 |
|
|
|
202 |
|
|
204 |
|
<SCRIPT la
nguage="Ja
vaScript">
|
|
203 |
|
<SCRIPT la
nguage="Ja
vaScript">
|
205 |
|
function s
etCheckbox
ess(the_fo
rm, do_che
ck)
|
|
204 |
|
function s
etCheckbox
ess(the_fo
rm, do_che
ck)
|
206 |
|
{
|
|
205 |
|
{
|
207 |
|
var el
ts =
document.f
orms[the_f
orm].eleme
nts;
|
|
206 |
|
var el
ts =
document.f
orms[the_f
orm].eleme
nts;
|
208 |
|
var el
ts_cnt =
elts.lengt
h;
|
|
207 |
|
var el
ts_cnt =
elts.lengt
h;
|
209 |
|
|
|
208 |
|
|
210 |
|
for (v
ar i = 0;
i < elts_c
nt; i++) {
|
|
209 |
|
for (v
ar i = 0;
i < elts_c
nt; i++) {
|
211 |
|
el
ts[i].chec
ked = do_c
heck;
|
|
210 |
|
el
ts[i].chec
ked = do_c
heck;
|
212 |
|
} // e
nd for
|
|
211 |
|
} // e
nd for
|
213 |
|
|
|
212 |
|
|
214 |
|
return
true;
|
|
213 |
|
return
true;
|
215 |
|
} // end o
f the 'set
Checkboxes
()' functi
on
|
|
214 |
|
} // end o
f the 'set
Checkboxes
()' functi
on
|
216 |
|
</SCRIPT>
|
|
215 |
|
</SCRIPT>
|
217 |
|
|
|
216 |
|
|
218 |
|
<?
|
|
217 |
|
<?
|
219 |
|
if ( strle
n($status_
text) )
|
|
218 |
|
if ( strle
n($status_
text) )
|
220 |
|
echo "
<br><cente
r><div cla
ss=\"err\"
>$status_t
ext</div><
/center><b
r>";
|
|
219 |
|
echo "
<br><cente
r><div cla
ss=\"err\"
>$status_t
ext</div><
/center><b
r>";
|
221 |
|
if (getPar
am("enable
_aff") !=
'on')
|
|
220 |
|
if (getPar
am("enable
_aff") !=
'on')
|
222 |
|
{
|
|
221 |
|
{
|
223 |
|
$sHead
= "(<span
style=\"c
olor:red;\
">Affiliat
e system w
as disable
d</span>)"
;
|
|
222 |
|
$sHead
= "(<span
style=\"c
olor:red;\
">Affiliat
e system w
as disable
d</span>)"
;
|
224 |
|
}
|
|
223 |
|
}
|
225 |
|
ContentBlo
ckHead("Ma
nage Affil
iates ".$s
Head)
|
|
224 |
|
ContentBlo
ckHead("Ma
nage Affil
iates ".$s
Head)
|
226 |
|
?>
|
|
225 |
|
?>
|
227 |
|
<center>
|
|
226 |
|
<center>
|
228 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersAffUp
per', 0 );
?>
|
|
227 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersAffUp
per', 0 );
?>
|
229 |
|
</center>
|
|
228 |
|
</center>
|
230 |
|
<form acti
on="<?=$_S
ERVER[PHP_
SELF]?>" m
ethod=post
name="prf
_form">
|
|
229 |
|
<form acti
on="<?=$_S
ERVER[PHP_
SELF]?>" m
ethod=post
name="prf
_form">
|
231 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=smal
l1 width=9
0% backgro
und="<?php
global $s
ite; echo
$site['url
_admin'];
?>images/d
ot_bg2.gif
">
|
|
230 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=smal
l1 width=9
0% backgro
und="<?php
global $s
ite; echo
$site['url
_admin'];
?>images/d
ot_bg2.gif
">
|
232 |
|
<?
|
|
231 |
|
<?
|
233 |
|
|
|
232 |
|
|
234 |
|
if ( !$p_n
um )
|
|
233 |
|
if ( !$p_n
um )
|
235 |
|
echo "
<td class=
panel>No p
artners </
td>";
|
|
234 |
|
echo "
<td class=
panel>No p
artners </
td>";
|
236 |
|
else
|
|
235 |
|
else
|
237 |
|
{
|
|
236 |
|
{
|
238 |
|
?>
|
|
237 |
|
?>
|
239 |
|
<tr class=
panel>
|
|
238 |
|
<tr class=
panel>
|
240 |
|
<td align=
center >&n
bsp;ID&nbs
p;</td>
|
|
239 |
|
<td align=
center >&n
bsp;ID&nbs
p;</td>
|
241 |
|
<td align=
center >&n
bsp;Name&n
bsp;</td>
|
|
240 |
|
<td align=
center >&n
bsp;Name&n
bsp;</td>
|
242 |
|
<td align=
center >&n
bsp;E-Mail
</td
>
|
|
241 |
|
<td align=
center >&n
bsp;E-Mail
</td
>
|
243 |
|
|
|
242 |
|
|
244 |
|
<td align=
center >&n
bsp;Percen
t </t
d>
|
|
243 |
|
<td align=
center >&n
bsp;Percen
t </t
d>
|
245 |
|
<td align=
center >&n
bsp;Memb&n
bsp;</td>
|
|
244 |
|
<td align=
center >&n
bsp;Memb&n
bsp;</td>
|
246 |
|
<td align=
center >&n
bsp;Status
</td
>
|
|
245 |
|
<td align=
center >&n
bsp;Status
</td
>
|
247 |
|
<td align=
center >&n
bsp;Fin&nb
sp;</td>
|
|
246 |
|
<td align=
center >&n
bsp;Fin&nb
sp;</td>
|
248 |
|
<td align=
center>&nb
sp; <
/td>
|
|
247 |
|
<td align=
center>&nb
sp; <
/td>
|
249 |
|
</tr>
|
|
248 |
|
</tr>
|
250 |
|
<?
|
|
249 |
|
<?
|
251 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
|
250 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
252 |
|
{
|
|
251 |
|
{
|
253 |
|
?>
|
|
252 |
|
?>
|
254 |
|
<tr class=
table>
|
|
253 |
|
<tr class=
table>
|
255 |
|
|
|
254 |
|
|
256 |
|
<td align=
center bgc
olor="#fff
fff"> 
;<a href="
partners.p
hp?editdis
=<?=$p_arr
[ID]?>"><?
=$p_arr[ID
]?> </
td>
|
|
255 |
|
<td align=
center bgc
olor="#fff
fff"> 
;<a href="
partners.p
hp?editdis
=<?=$p_arr
[ID]?>"><?
=$p_arr[ID
]?> </
td>
|
257 |
|
<td align=
center bgc
olor="#fff
fff"><?= p
rocess_lin
e_output($
p_arr['Nam
e']) ?></t
d>
|
|
256 |
|
<td align=
center bgc
olor="#fff
fff"><?= p
rocess_lin
e_output($
p_arr['Nam
e']) ?></t
d>
|
258 |
|
<td align=
center bgc
olor="#fff
fff"><?= p
rocess_lin
e_output($
p_arr['ema
il']) ?></
td>
|
|
257 |
|
<td align=
center bgc
olor="#fff
fff"><?= p
rocess_lin
e_output($
p_arr['ema
il']) ?></
td>
|
259 |
|
|
|
258 |
|
|
260 |
|
<td align=
center bgc
olor="#fff
fff"><? ec
ho sprintf
( "%.2f",
$p_arr['Pe
rcent'] );
?></td>
|
|
259 |
|
<td align=
center bgc
olor="#fff
fff"><? ec
ho sprintf
( "%.2f",
$p_arr['Pe
rcent'] );
?></td>
|
261 |
|
<td align=
center bgc
olor="#fff
fff">
|
|
260 |
|
<td align=
center bgc
olor="#fff
fff">
|
262 |
|
<?php if (
$p_arr[m_
count] > 0
) { ?>
|
|
261 |
|
<?php if (
$p_arr[m_
count] > 0
) { ?>
|
263 |
|
<a href="<
?php echo
$site['url
_admin']."
profiles.p
hp?showAff
Members=$p
_arr[ID]";
?>"><?=$p
_arr[m_cou
nt]?></a>
|
|
262 |
|
<a href="<
?php echo
$site['url
_admin']."
profiles.p
hp?showAff
Members=$p
_arr[ID]";
?>"><?=$p
_arr[m_cou
nt]?></a>
|
264 |
|
<?php } el
se {
|
|
263 |
|
<?php } el
se {
|
265 |
|
echo "
-";
|
|
264 |
|
echo "
-";
|
266 |
|
} ?>
|
|
265 |
|
} ?>
|
267 |
|
</td>
|
|
266 |
|
</td>
|
268 |
|
<td align=
center bgc
olor="#fff
fff"><?=$p
_arr[Statu
s]?></td>
|
|
267 |
|
<td align=
center bgc
olor="#fff
fff"><?=$p
_arr[Statu
s]?></td>
|
269 |
|
<td align=
center bgc
olor="#fff
fff"><a hr
ef=finance
.php?affID
=<?php ech
o $p_arr[I
D]; ?>>fin
</a></td>
|
|
268 |
|
<td align=
center bgc
olor="#fff
fff"><a hr
ef=finance
.php?affID
=<?php ech
o $p_arr[I
D]; ?>>fin
</a></td>
|
270 |
|
<td align=
center bgc
olor="#fff
fff"><inpu
t type=che
ckbox name
="<? echo
$p_arr[ID]
?>"></td>
|
|
269 |
|
<td align=
center bgc
olor="#fff
fff"><inpu
t type=che
ckbox name
="<? echo
$p_arr[ID]
?>"></td>
|
271 |
|
</tr>
|
|
270 |
|
</tr>
|
272 |
|
<?
|
|
271 |
|
<?
|
273 |
|
}
|
|
272 |
|
}
|
274 |
|
}
|
|
273 |
|
}
|
275 |
|
?>
|
|
274 |
|
?>
|
276 |
|
</table>
|
|
275 |
|
</table>
|
277 |
|
|
|
276 |
|
|
278 |
|
<center>
|
|
277 |
|
<center>
|
279 |
|
<table cla
ss=text>
|
|
278 |
|
<table cla
ss=text>
|
280 |
|
<tr>
|
|
279 |
|
<tr>
|
281 |
|
|
|
280 |
|
|
282 |
|
<td>&n
bsp;<a hre
f="javascr
ipt: void(
0);" oncli
ck="setChe
ckboxess(
'prf_form'
, true );
return fal
se;">Check
all</a> /
<a href="
javascript
: void(0);
" onclick=
"setCheckb
oxess( 'pr
f_form', f
alse ); re
turn false
;">Uncheck
all</a>&n
bsp;</td>
|
|
281 |
|
<td>&n
bsp;<a hre
f="javascr
ipt: void(
0);" oncli
ck="setChe
ckboxess(
'prf_form'
, true );
return fal
se;">Check
all</a> /
<a href="
javascript
: void(0);
" onclick=
"setCheckb
oxess( 'pr
f_form', f
alse ); re
turn false
;">Uncheck
all</a>&n
bsp;</td>
|
283 |
|
<td>Se
lected par
tners:</td
>
|
|
282 |
|
<td>Se
lected par
tners:</td
>
|
284 |
|
<td><i
nput class
=no type=s
ubmit oncl
ick="retur
n confirm(
'Are you
sure?' );"
name="prf
_form_subm
it" value=
"Delete"><
/td>
|
|
283 |
|
<td><i
nput class
=no type=s
ubmit oncl
ick="retur
n confirm(
'Are you
sure?' );"
name="prf
_form_subm
it" value=
"Delete"><
/td>
|
285 |
|
</tr>
|
|
284 |
|
</tr>
|
286 |
|
</table>
|
|
285 |
|
</table>
|
287 |
|
</form>
|
|
286 |
|
</form>
|
288 |
|
</center>
|
|
287 |
|
</center>
|
289 |
|
|
|
288 |
|
|
290 |
|
|
|
289 |
|
|
291 |
|
<center>
|
|
290 |
|
<center>
|
292 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersAffLo
wer', 0 );
?>
|
|
291 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersAffLo
wer', 0 );
?>
|
293 |
|
</center>
|
|
292 |
|
</center>
|
294 |
|
|
|
293 |
|
|
295 |
|
|
|
294 |
|
|
296 |
|
|
|
295 |
|
|
297 |
|
|
|
296 |
|
|
298 |
|
<? if ( (i
nt)$_GET['
editdis']
)
|
|
297 |
|
<? if ( (i
nt)$_GET['
editdis']
)
|
299 |
|
{ ?>
|
|
298 |
|
{ ?>
|
300 |
|
<form meth
od=post ac
tion=<?=$_
SERVER[PHP
_SELF]?>>
|
|
299 |
|
<form meth
od=post ac
tion=<?=$_
SERVER[PHP
_SELF]?>>
|
301 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
|
300 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
302 |
|
<tr class=
panel>
|
|
301 |
|
<tr class=
panel>
|
303 |
|
<td align=
center wid
th=10%>&nb
sp;ID 
;</td>
|
|
302 |
|
<td align=
center wid
th=10%>&nb
sp;ID 
;</td>
|
304 |
|
<td align=
center wid
th=30%>&nb
sp;Name&nb
sp;</td>
|
|
303 |
|
<td align=
center wid
th=30%>&nb
sp;Name&nb
sp;</td>
|
305 |
|
<td align=
center wid
th=30%>&nb
sp;E-Mail&
nbsp;</td>
|
|
304 |
|
<td align=
center wid
th=30%>&nb
sp;E-Mail&
nbsp;</td>
|
306 |
|
<td align=
center wid
th=10%>&nb
sp;Change
Password&n
bsp;</td>
|
|
305 |
|
<td align=
center wid
th=10%>&nb
sp;Change
Password&n
bsp;</td>
|
307 |
|
<td align=
center wid
th=10%>&nb
sp;Percent
</td
>
|
|
306 |
|
<td align=
center wid
th=10%>&nb
sp;Percent
</td
>
|
308 |
|
<td align=
center wid
th=10%>&nb
sp;Status&
nbsp;</td>
|
|
307 |
|
<td align=
center wid
th=10%>&nb
sp;Status&
nbsp;</td>
|
309 |
|
</tr>
|
|
308 |
|
</tr>
|
310 |
|
<tr class=
panel>
|
|
309 |
|
<tr class=
panel>
|
311 |
|
<input typ
e=hidden n
ame=ID val
ue=<?=$edi
tdis_arr[I
D]?>>
|
|
310 |
|
<input typ
e=hidden n
ame=ID val
ue=<?=$edi
tdis_arr[I
D]?>>
|
312 |
|
<td align=
center wid
th=10%><?=
$editdis_a
rr[ID]?></
td>
|
|
311 |
|
<td align=
center wid
th=10%><?=
$editdis_a
rr[ID]?></
td>
|
313 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=Name
value=<?=
htmlspeci
alchars($e
ditdis_arr
['Name'])
?>></td>
|
|
312 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=Name
value=<?=
htmlspeci
alchars($e
ditdis_arr
['Name'])
?>></td>
|
314 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=emai
l value=<?
= htmlspec
ialchars($
editdis_ar
r['email']
) ?>></td>
|
|
313 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=emai
l value=<?
= htmlspec
ialchars($
editdis_ar
r['email']
) ?>></td>
|
315 |
|
<td align=
center wid
th=10%><in
put class=
no size=8
name=Passw
ord value=
""></td>
|
|
314 |
|
<td align=
center wid
th=10%><in
put class=
no size=8
name=Passw
ord value=
""></td>
|
316 |
|
<td align=
center wid
th=10%><in
put class=
no size=5
name=Perce
nt value=<
?= htmlspe
cialchars(
$editdis_a
rr['Percen
t']) ?>></
td>
|
|
315 |
|
<td align=
center wid
th=10%><in
put class=
no size=5
name=Perce
nt value=<
?= htmlspe
cialchars(
$editdis_a
rr['Percen
t']) ?>></
td>
|
317 |
|
<td align=
center wid
th=10%>
|
|
316 |
|
<td align=
center wid
th=10%>
|
318 |
|
|
|
317 |
|
|
319 |
|
<select cl
ass=no nam
e=Status>
|
|
318 |
|
<select cl
ass=no nam
e=Status>
|
320 |
|
<optio
n value=ap
proval <?
=$editdis_
arr[Status
] == 'appr
oval' ? '
selected'
: '' ?>>ap
proval</op
tion>
|
|
319 |
|
<optio
n value=ap
proval <?
=$editdis_
arr[Status
] == 'appr
oval' ? '
selected'
: '' ?>>ap
proval</op
tion>
|
321 |
|
<optio
n value=ac
tive <?
=$editdis_
arr[Status
] == 'acti
ve' ? '
selected'
: ''?>>act
ive</optio
n>
|
|
320 |
|
<optio
n value=ac
tive <?
=$editdis_
arr[Status
] == 'acti
ve' ? '
selected'
: ''?>>act
ive</optio
n>
|
322 |
|
<optio
n value=su
spended <?
=$editdis_
arr[Status
] == 'susp
ended' ? '
selected'
: ''?>>sus
pended</op
tion>
|
|
321 |
|
<optio
n value=su
spended <?
=$editdis_
arr[Status
] == 'susp
ended' ? '
selected'
: ''?>>sus
pended</op
tion>
|
323 |
|
</select>
|
|
322 |
|
</select>
|
324 |
|
|
|
323 |
|
|
325 |
|
</td>
|
|
324 |
|
</td>
|
326 |
|
</tr>
|
|
325 |
|
</tr>
|
327 |
|
|
|
326 |
|
|
328 |
|
<tr class=
panel>
|
|
327 |
|
<tr class=
panel>
|
329 |
|
<td align=
center>Det
ails</td>
|
|
328 |
|
<td align=
center>Det
ails</td>
|
330 |
|
<td align=
center><a
href="http
://<?=proc
ess_line_o
utput($edi
tdis_arr[w
ww1]) ?>">
Link to Si
te 1</a></
td>
|
|
329 |
|
<td align=
center><a
href="http
://<?=proc
ess_line_o
utput($edi
tdis_arr[w
ww1]) ?>">
Link to Si
te 1</a></
td>
|
331 |
|
<td align=
center><a
href="http
://<?=proc
ess_line_o
utput($edi
tdis_arr[w
ww2]) ?>">
Link to Si
te 2</a></
td>
|
|
330 |
|
<td align=
center><a
href="http
://<?=proc
ess_line_o
utput($edi
tdis_arr[w
ww2]) ?>">
Link to Si
te 2</a></
td>
|
332 |
|
<td align=
center></t
d>
|
|
331 |
|
<td align=
center></t
d>
|
333 |
|
<td align=
center></t
d>
|
|
332 |
|
<td align=
center></t
d>
|
334 |
|
<td align=
center></t
d>
|
|
333 |
|
<td align=
center></t
d>
|
335 |
|
</tr>
|
|
334 |
|
</tr>
|
336 |
|
|
|
335 |
|
|
337 |
|
|
|
336 |
|
|
338 |
|
</table>
|
|
337 |
|
</table>
|
339 |
|
<br>
|
|
338 |
|
<br>
|
340 |
|
<center><i
nput class
=no type=s
ubmit name
=EditDisco
unt value=
Update></c
enter>
|
|
339 |
|
<center><i
nput class
=no type=s
ubmit name
=EditDisco
unt value=
Update></c
enter>
|
341 |
|
</form>
|
|
340 |
|
</form>
|
342 |
|
<?
|
|
341 |
|
<?
|
343 |
|
} else {
|
|
342 |
|
} else {
|
344 |
|
?>
|
|
343 |
|
?>
|
345 |
|
|
|
344 |
|
|
346 |
|
<form meth
od=post ac
tion=<?=$_
SERVER[PHP
_SELF]?>>
|
|
345 |
|
<form meth
od=post ac
tion=<?=$_
SERVER[PHP
_SELF]?>>
|
347 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
|
346 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
348 |
|
<tr class=
panel>
|
|
347 |
|
<tr class=
panel>
|
349 |
|
<td align=
center wid
th=28%>&nb
sp;Name&nb
sp;</td>
|
|
348 |
|
<td align=
center wid
th=28%>&nb
sp;Name&nb
sp;</td>
|
350 |
|
<td align=
center wid
th=28%>&nb
sp;E-Mail&
nbsp;</td>
|
|
349 |
|
<td align=
center wid
th=28%>&nb
sp;E-Mail&
nbsp;</td>
|
351 |
|
<td align=
center wid
th=24%>&nb
sp;Passwor
d </t
d>
|
|
350 |
|
<td align=
center wid
th=24%>&nb
sp;Passwor
d </t
d>
|
352 |
|
<td align=
center wid
th=10%>&nb
sp;Percent
</td
>
|
|
351 |
|
<td align=
center wid
th=10%>&nb
sp;Percent
</td
>
|
353 |
|
<td align=
center wid
th=10%>&nb
sp;Status&
nbsp;</td>
|
|
352 |
|
<td align=
center wid
th=10%>&nb
sp;Status&
nbsp;</td>
|
354 |
|
|
|
353 |
|
|
355 |
|
</tr>
|
|
354 |
|
</tr>
|
356 |
|
<tr class=
panel>
|
|
355 |
|
<tr class=
panel>
|
357 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=Na
me></td>
|
|
356 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=Na
me></td>
|
358 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=em
ail></td>
|
|
357 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=em
ail></td>
|
359 |
|
<td align=
center wid
th=15%><in
put class=
test size=
8 name=Pas
sword></td
>
|
|
358 |
|
<td align=
center wid
th=15%><in
put class=
test size=
8 name=Pas
sword></td
>
|
360 |
|
<td align=
center wid
th=10%><in
put class=
text size=
5 name=Per
cent></td>
|
|
359 |
|
<td align=
center wid
th=10%><in
put class=
text size=
5 name=Per
cent></td>
|
361 |
|
<td align=
center wid
th=10%>
|
|
360 |
|
<td align=
center wid
th=10%>
|
362 |
|
|
|
361 |
|
|
363 |
|
<select cl
ass=no nam
e=Status>
|
|
362 |
|
<select cl
ass=no nam
e=Status>
|
364 |
|
<optio
n value=ap
proval>app
roval</opt
ion>
|
|
363 |
|
<optio
n value=ap
proval>app
roval</opt
ion>
|
365 |
|
<optio
n value=ac
tive>activ
e</option>
|
|
364 |
|
<optio
n value=ac
tive>activ
e</option>
|
366 |
|
<optio
n value=su
spended>su
spended</o
ption>
|
|
365 |
|
<optio
n value=su
spended>su
spended</o
ption>
|
367 |
|
</select>
|
|
366 |
|
</select>
|
368 |
|
|
|
367 |
|
|
369 |
|
</td>
|
|
368 |
|
</td>
|
370 |
|
</tr>
|
|
369 |
|
</tr>
|
371 |
|
</table>
|
|
370 |
|
</table>
|
372 |
|
<br>
|
|
371 |
|
<br>
|
373 |
|
<center><i
nput class
=no type=s
ubmit name
=AddDiscou
nt value=A
dd></cente
r>
|
|
372 |
|
<center><i
nput class
=no type=s
ubmit name
=AddDiscou
nt value=A
dd></cente
r>
|
374 |
|
</form>
|
|
373 |
|
</form>
|
375 |
|
|
|
374 |
|
|
376 |
|
<?
|
|
375 |
|
<?
|
377 |
|
}
|
|
376 |
|
}
|
378 |
|
ContentBlo
ckFoot();
|
|
377 |
|
ContentBlo
ckFoot();
|
379 |
|
?>
|
|
378 |
|
?>
|
380 |
|
|
|
379 |
|
|
381 |
|
<?php
|
|
380 |
|
<?php
|
382 |
|
|
|
381 |
|
|
383 |
|
$p_nu
m = db_arr
( "SELECT
COUNT(*) F
ROM member
s_as_aff"
);
|
|
382 |
|
$p_nu
m = db_arr
( "SELECT
COUNT(*) F
ROM member
s_as_aff"
);
|
384 |
|
$p_nu
m = $p_num
[0];
|
|
383 |
|
$p_nu
m = $p_num
[0];
|
385 |
|
$page
s_num = ce
il( $p_num
/ $p_per_
page );
|
|
384 |
|
$page
s_num = ce
il( $p_num
/ $p_per_
page );
|
386 |
|
|
|
385 |
|
|
387 |
|
$real
_first_p =
(int)($pa
ge - 1) *
$p_per_pag
e;
|
|
386 |
|
$real
_first_p =
(int)($pa
ge - 1) *
$p_per_pag
e;
|
388 |
|
$page
_first_p =
$real_fir
st_p + 1;
|
|
387 |
|
$page
_first_p =
$real_fir
st_p + 1;
|
389 |
|
|
|
388 |
|
|
390 |
|
$resu
lt = db_re
s( "SELECT
* FROM me
mbers_as_a
ff ORDER B
Y ID ASC L
IMIT $real
_first_p,
$p_per_pag
e" );
|
|
389 |
|
$resu
lt = db_re
s( "SELECT
* FROM me
mbers_as_a
ff ORDER B
Y ID ASC L
IMIT $real
_first_p,
$p_per_pag
e" );
|
391 |
|
$page
_p_num = m
ysql_num_r
ows( $resu
lt );
|
|
390 |
|
$page
_p_num = m
ysql_num_r
ows( $resu
lt );
|
392 |
|
|
|
391 |
|
|
393 |
|
ContentBlo
ckHead("Me
mbers as A
ffiliates"
);
|
|
392 |
|
ContentBlo
ckHead("Me
mbers as A
ffiliates"
);
|
394 |
|
?>
|
|
393 |
|
?>
|
395 |
|
<center>
|
|
394 |
|
<center>
|
396 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersMemUp
per', 0 );
?>
|
|
395 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersMemUp
per', 0 );
?>
|
397 |
|
</center>
|
|
396 |
|
</center>
|
398 |
|
<form acti
on="<?=$_S
ERVER[PHP_
SELF]?>" m
ethod=post
name="mem
_form">
|
|
397 |
|
<form acti
on="<?=$_S
ERVER[PHP_
SELF]?>" m
ethod=post
name="mem
_form">
|
399 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=smal
l1 width=9
0% backgro
und="<?php
global $s
ite; echo
$site['url
_admin'];
?>images/d
ot_bg2.gif
">
|
|
398 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=smal
l1 width=9
0% backgro
und="<?php
global $s
ite; echo
$site['url
_admin'];
?>images/d
ot_bg2.gif
">
|
400 |
|
<?
|
|
399 |
|
<?
|
401 |
|
|
|
400 |
|
|
402 |
|
if ( !$p_n
um )
|
|
401 |
|
if ( !$p_n
um )
|
403 |
|
echo "
<td class=
panel>No m
embers as
affiliates
</td>";
|
|
402 |
|
echo "
<td class=
panel>No m
embers as
affiliates
</td>";
|
404 |
|
else
|
|
403 |
|
else
|
405 |
|
{
|
|
404 |
|
{
|
406 |
|
?>
|
|
405 |
|
?>
|
407 |
|
<tr class=
panel>
|
|
406 |
|
<tr class=
panel>
|
408 |
|
<td align=
center >&n
bsp;ID&nbs
p;</td>
|
|
407 |
|
<td align=
center >&n
bsp;ID&nbs
p;</td>
|
409 |
|
<td align=
center >&n
bsp;Num of
members&n
bsp;</td>
|
|
408 |
|
<td align=
center >&n
bsp;Num of
members&n
bsp;</td>
|
410 |
|
<td align=
center >&n
bsp;Num of
days 
;</td>
|
|
409 |
|
<td align=
center >&n
bsp;Num of
days 
;</td>
|
411 |
|
<td align=
center >&n
bsp;Type o
f membersh
ip </
td>
|
|
410 |
|
<td align=
center >&n
bsp;Type o
f membersh
ip </
td>
|
412 |
|
<td align=
center>&nb
sp; <
/td>
|
|
411 |
|
<td align=
center>&nb
sp; <
/td>
|
413 |
|
</tr>
|
|
412 |
|
</tr>
|
414 |
|
<?
|
|
413 |
|
<?
|
415 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
|
414 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
416 |
|
{
|
|
415 |
|
{
|
417 |
|
?>
|
|
416 |
|
?>
|
418 |
|
<tr class=
table>
|
|
417 |
|
<tr class=
table>
|
419 |
|
|
|
418 |
|
|
420 |
|
<td align=
center bgc
olor="#fff
fff"> 
;<a href="
partners.p
hp?editmem
=<?=$p_arr
['ID']?>">
<?=$p_arr[
'ID']?>&nb
sp</td>
|
|
419 |
|
<td align=
center bgc
olor="#fff
fff"> 
;<a href="
partners.p
hp?editmem
=<?=$p_arr
['ID']?>">
<?=$p_arr[
'ID']?>&nb
sp</td>
|
421 |
|
<td align=
center bgc
olor="#fff
fff"><?= $
p_arr['num
_of_mem']
?></td>
|
|
420 |
|
<td align=
center bgc
olor="#fff
fff"><?= $
p_arr['num
_of_mem']
?></td>
|
422 |
|
<td align=
center bgc
olor="#fff
fff"><?= $
p_arr['num
_of_days']
?></td>
|
|
421 |
|
<td align=
center bgc
olor="#fff
fff"><?= $
p_arr['num
_of_days']
?></td>
|
423 |
|
<td align=
center bgc
olor="#fff
fff"><?php
|
|
422 |
|
<td align=
center bgc
olor="#fff
fff"><?php
|
424 |
|
$m
embership_
info = get
Membership
Info($p_ar
r['MID']);
|
|
423 |
|
$m
embership_
info = get
Membership
Info($p_ar
r['MID']);
|
425 |
|
ec
ho $member
ship_info[
'Name'];
|
|
424 |
|
ec
ho $member
ship_info[
'Name'];
|
426 |
|
?>
|
|
425 |
|
?>
|
427 |
|
</td>
|
|
426 |
|
</td>
|
428 |
|
<td align=
center bgc
olor="#fff
fff"><inpu
t type=che
ckbox name
="<? echo
$p_arr[ID]
;?>"></td>
|
|
427 |
|
<td align=
center bgc
olor="#fff
fff"><inpu
t type=che
ckbox name
="<? echo
$p_arr[ID]
;?>"></td>
|
429 |
|
</tr>
|
|
428 |
|
</tr>
|
430 |
|
<?
|
|
429 |
|
<?
|
431 |
|
}
|
|
430 |
|
}
|
432 |
|
}
|
|
431 |
|
}
|
433 |
|
?>
|
|
432 |
|
?>
|
434 |
|
</table>
|
|
433 |
|
</table>
|
435 |
|
|
|
434 |
|
|
436 |
|
<center>
|
|
435 |
|
<center>
|
437 |
|
<table cla
ss=text>
|
|
436 |
|
<table cla
ss=text>
|
438 |
|
<tr>
|
|
437 |
|
<tr>
|
439 |
|
|
|
438 |
|
|
440 |
|
<t
d> <a
href="jav
ascript: v
oid(0);" o
nclick="se
tCheckboxe
ss( 'mem_f
orm', true
); return
false;">C
heck all</
a> / <a hr
ef="javasc
ript: void
(0);" oncl
ick="setCh
eckboxess(
'mem_form
', false )
; return f
alse;">Unc
heck all</
a> </
td>
|
|
439 |
|
<t
d> <a
href="jav
ascript: v
oid(0);" o
nclick="se
tCheckboxe
ss( 'mem_f
orm', true
); return
false;">C
heck all</
a> / <a hr
ef="javasc
ript: void
(0);" oncl
ick="setCh
eckboxess(
'mem_form
', false )
; return f
alse;">Unc
heck all</
a> </
td>
|
441 |
|
<td>Se
lected par
tners:</td
>
|
|
440 |
|
<td>Se
lected par
tners:</td
>
|
442 |
|
<td><i
nput class
=no type="
submit" on
click="ret
urn confir
m( 'Are yo
u sure?' )
;" name="m
em_form_su
bmit" valu
e="Delete"
></td>
|
|
441 |
|
<td><i
nput class
=no type="
submit" on
click="ret
urn confir
m( 'Are yo
u sure?' )
;" name="m
em_form_su
bmit" valu
e="Delete"
></td>
|
443 |
|
</tr>
|
|
442 |
|
</tr>
|
444 |
|
</table>
|
|
443 |
|
</table>
|
445 |
|
</form>
|
|
444 |
|
</form>
|
446 |
|
</center>
|
|
445 |
|
</center>
|
447 |
|
|
|
446 |
|
|
448 |
|
|
|
447 |
|
|
449 |
|
<center>
|
|
448 |
|
<center>
|
450 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersMemLo
wer', 0 );
?>
|
|
449 |
|
<? echo Re
sNavigatio
nRet( 'Par
tnersMemLo
wer', 0 );
?>
|
451 |
|
</center>
|
|
450 |
|
</center>
|
452 |
|
|
|
451 |
|
|
453 |
|
|
|
452 |
|
|
454 |
|
|
|
453 |
|
|
455 |
|
|
|
454 |
|
|
456 |
|
<? if ( (i
nt)$_GET['
editmem']
)
|
|
455 |
|
<? if ( (i
nt)$_GET['
editmem']
)
|
457 |
|
{ ?>
|
|
456 |
|
{ ?>
|
458 |
|
<form meth
od=post ac
tion=<?=$_
SERVER['PH
P_SELF']?>
>
|
|
457 |
|
<form meth
od=post ac
tion=<?=$_
SERVER['PH
P_SELF']?>
>
|
459 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
|
458 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
460 |
|
<tr class=
panel>
|
|
459 |
|
<tr class=
panel>
|
461 |
|
<td align=
center wid
th=10%>&nb
sp;ID 
;</td>
|
|
460 |
|
<td align=
center wid
th=10%>&nb
sp;ID 
;</td>
|
462 |
|
<td align=
center wid
th=30%>&nb
sp;num_of_
mem <
/td>
|
|
461 |
|
<td align=
center wid
th=30%>&nb
sp;num_of_
mem <
/td>
|
463 |
|
<td align=
center wid
th=30%>&nb
sp;num_of_
days
</td>
|
|
462 |
|
<td align=
center wid
th=30%>&nb
sp;num_of_
days
</td>
|
464 |
|
<td align=
center wid
th=10%>&nb
sp;Members
hip Type&n
bsp;</td>
|
|
463 |
|
<td align=
center wid
th=10%>&nb
sp;Members
hip Type&n
bsp;</td>
|
465 |
|
</tr>
|
|
464 |
|
</tr>
|
466 |
|
<tr class=
panel>
|
|
465 |
|
<tr class=
panel>
|
467 |
|
<input typ
e=hidden n
ame=ID val
ue=<?=$edi
tmem_arr[I
D]?>>
|
|
466 |
|
<input typ
e=hidden n
ame=ID val
ue=<?=$edi
tmem_arr[I
D]?>>
|
468 |
|
<td align=
center wid
th=10%><?=
$editmem_a
rr[ID]?></
td>
|
|
467 |
|
<td align=
center wid
th=10%><?=
$editmem_a
rr[ID]?></
td>
|
469 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=num_
of_mem val
ue=<?=$edi
tmem_arr['
num_of_mem
']?>></td>
|
|
468 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=num_
of_mem val
ue=<?=$edi
tmem_arr['
num_of_mem
']?>></td>
|
470 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=num_
of_days va
lue=<?=$ed
itmem_arr[
'num_of_da
ys']?>></t
d>
|
|
469 |
|
<td align=
center wid
th=30%><in
put class=
no size=10
name=num_
of_days va
lue=<?=$ed
itmem_arr[
'num_of_da
ys']?>></t
d>
|
471 |
|
<td align=
center wid
th=10%>
|
|
470 |
|
<td align=
center wid
th=10%>
|
472 |
|
<select cl
ass=no nam
e=MID>
|
|
471 |
|
<select cl
ass=no nam
e=MID>
|
473 |
|
<?php
|
|
472 |
|
<?php
|
474 |
|
fo
reach ( $m
emberships
_arr as $m
embershipI
D => $memb
ershipName
)
|
|
473 |
|
fo
reach ( $m
emberships
_arr as $m
embershipI
D => $memb
ershipName
)
|
475 |
|
{
|
|
474 |
|
{
|
476 |
|
$out = "
<option va
lue=\"". $
membership
ID . "\" "
. ( $memb
ershipID =
= $editmem
_arr['MID'
] ? "selec
ted" : ""
) .">";
|
|
475 |
|
$out = "
<option va
lue=\"". $
membership
ID . "\" "
. ( $memb
ershipID =
= $editmem
_arr['MID'
] ? "selec
ted" : ""
) .">";
|
477 |
|
$out .=
$membershi
pName ."</
option>\n"
;
|
|
476 |
|
$out .=
$membershi
pName ."</
option>\n"
;
|
478 |
|
echo $ou
t;
|
|
477 |
|
echo $ou
t;
|
479 |
|
}
|
|
478 |
|
}
|
480 |
|
?>
|
|
479 |
|
?>
|
481 |
|
</select>
|
|
480 |
|
</select>
|
482 |
|
|
|
481 |
|
|
483 |
|
</td>
|
|
482 |
|
</td>
|
484 |
|
|
|
483 |
|
|
485 |
|
</tr>
|
|
484 |
|
</tr>
|
486 |
|
|
|
485 |
|
|
487 |
|
|
|
486 |
|
|
488 |
|
</table>
|
|
487 |
|
</table>
|
489 |
|
<br>
|
|
488 |
|
<br>
|
490 |
|
<center><i
nput class
=no type=s
ubmit name
=EditMemS
value=Upda
te></cente
r>
|
|
489 |
|
<center><i
nput class
=no type=s
ubmit name
=EditMemS
value=Upda
te></cente
r>
|
491 |
|
</form>
|
|
490 |
|
</form>
|
492 |
|
<?
|
|
491 |
|
<?
|
493 |
|
} else {
|
|
492 |
|
} else {
|
494 |
|
?>
|
|
493 |
|
?>
|
495 |
|
|
|
494 |
|
|
496 |
|
<form meth
od=post ac
tion=<?= $
_SERVER['P
HP_SELF']
?>>
|
|
495 |
|
<form meth
od=post ac
tion=<?= $
_SERVER['P
HP_SELF']
?>>
|
497 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
|
496 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class=smal
l width=90
%>
|
498 |
|
<tr class=
panel>
|
|
497 |
|
<tr class=
panel>
|
499 |
|
<td align=
center wid
th=28%>&nb
sp;Number
of members
</td
>
|
|
498 |
|
<td align=
center wid
th=28%>&nb
sp;Number
of members
</td
>
|
500 |
|
<td align=
center wid
th=28%>&nb
sp;Number
of days&nb
sp;</td>
|
|
499 |
|
<td align=
center wid
th=28%>&nb
sp;Number
of days&nb
sp;</td>
|
501 |
|
<td align=
center wid
th=24%>&nb
sp;Members
hip Type&n
bsp;</td>
|
|
500 |
|
<td align=
center wid
th=24%>&nb
sp;Members
hip Type&n
bsp;</td>
|
502 |
|
|
|
501 |
|
|
503 |
|
</tr>
|
|
502 |
|
</tr>
|
504 |
|
<tr class=
panel>
|
|
503 |
|
<tr class=
panel>
|
505 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=nu
m_of_mem><
/td>
|
|
504 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=nu
m_of_mem><
/td>
|
506 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=nu
m_of_days>
</td>
|
|
505 |
|
<td align=
center wid
th=28%><in
put class=
text size=
15 name=nu
m_of_days>
</td>
|
507 |
|
<td align=
center wid
th=10%>
|
|
506 |
|
<td align=
center wid
th=10%>
|
508 |
|
<select cl
ass=no nam
e=MID>
|
|
507 |
|
<select cl
ass=no nam
e=MID>
|
509 |
|
<?php
|
|
508 |
|
<?php
|
510 |
|
fo
reach ( $m
emberships
_arr as $m
embershipI
D => $memb
ershipName
)
|
|
509 |
|
fo
reach ( $m
emberships
_arr as $m
embershipI
D => $memb
ershipName
)
|
511 |
|
{
|
|
510 |
|
{
|
512 |
|
echo "<o
ption valu
e=\"$membe
rshipID\">
$membershi
pName</opt
ion>\n";
|
|
511 |
|
echo "<o
ption valu
e=\"$membe
rshipID\">
$membershi
pName</opt
ion>\n";
|
513 |
|
}
|
|
512 |
|
}
|
514 |
|
?>
|
|
513 |
|
?>
|
515 |
|
</select>
|
|
514 |
|
</select>
|
516 |
|
|
|
515 |
|
|
517 |
|
</td>
|
|
516 |
|
</td>
|
518 |
|
</tr>
|
|
517 |
|
</tr>
|
519 |
|
</table>
|
|
518 |
|
</table>
|
520 |
|
<br>
|
|
519 |
|
<br>
|
521 |
|
<center><i
nput class
=no type=s
ubmit name
=AddMem va
lue=Add></
center>
|
|
520 |
|
<center><i
nput class
=no type=s
ubmit name
=AddMem va
lue=Add></
center>
|
522 |
|
</form>
|
|
521 |
|
</form>
|
523 |
|
|
|
522 |
|
|
524 |
|
<?
|
|
523 |
|
<?
|
525 |
|
}
|
|
524 |
|
}
|
526 |
|
?>
|
|
525 |
|
?>
|
527 |
|
|
|
526 |
|
|
528 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class="sma
ll1" width
=90%>
|
|
527 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=2
class="sma
ll1" width
=90%>
|
529 |
|
|
|
528 |
|
|
530 |
|
<tr>
|
|
529 |
|
<tr>
|
531 |
|
|
|
530 |
|
|
532 |
|
<td al
ign=center
>Member</t
d>
|
|
531 |
|
<td al
ign=center
>Member</t
d>
|
533 |
|
<td al
ign=center
>Number of
members e
ngaged</td
>
|
|
532 |
|
<td al
ign=center
>Number of
members e
ngaged</td
>
|
534 |
|
<td al
ign=center
>Current m
embership
status</td
>
|
|
533 |
|
<td al
ign=center
>Current m
embership
status</td
>
|
535 |
|
|
|
534 |
|
|
536 |
|
</tr>
|
|
535 |
|
</tr>
|
537 |
|
|
|
536 |
|
|
538 |
|
<?php
|
|
537 |
|
<?php
|
539 |
|
$prof
aff_res =
db_res ( "
SELECT `ID
`, `NickNa
me`, `aff_
num` FROM
`Profiles`
WHERE `af
f_num` > 0
ORDER BY
`ID`" );
|
|
538 |
|
$prof
aff_res =
db_res ( "
SELECT `ID
`, `NickNa
me`, `aff_
num` FROM
`Profiles`
WHERE `af
f_num` > 0
ORDER BY
`ID`" );
|
540 |
|
|
|
539 |
|
|
541 |
|
while
( $profa
ff_arr = m
ysql_fetch
_array ( $
profaff_re
s ) )
|
|
540 |
|
while
( $profa
ff_arr = m
ysql_fetch
_array ( $
profaff_re
s ) )
|
542 |
|
{
|
|
541 |
|
{
|
543 |
|
?>
|
|
542 |
|
?>
|
544 |
|
<tr>
|
|
543 |
|
<tr>
|
545 |
|
|
|
544 |
|
|
546 |
|
<td al
ign=center
><a href="
<?= getPro
fileLink($
profaff_re
s['ID'])?>
"><?= $pro
faff_arr['
NickName']
?></a></t
d>
|
|
545 |
|
<td al
ign=center
><a href="
<?= getPro
fileLink($
profaff_re
s['ID'])?>
"><?= $pro
faff_arr['
NickName']
?></a></t
d>
|
547 |
|
<td al
ign=center
><?= $prof
aff_arr['a
ff_num'] ?
></td>
|
|
546 |
|
<td al
ign=center
><?= $prof
aff_arr['a
ff_num'] ?
></td>
|
548 |
|
<td al
ign=center
>
|
|
547 |
|
<td al
ign=center
>
|
549 |
|
<?
php
|
|
548 |
|
<?
php
|
550 |
|
$member
ship_info
= getMembe
rMembershi
pInfo($pro
faff_arr['
ID']);
|
|
549 |
|
$member
ship_info
= getMembe
rMembershi
pInfo($pro
faff_arr['
ID']);
|
551 |
|
echo $m
embership_
info['Name
'];
|
|
550 |
|
echo $m
embership_
info['Name
'];
|
552 |
|
?>
|
|
551 |
|
?>
|
553 |
|
</td>
|
|
552 |
|
</td>
|
554 |
|
|
|
553 |
|
|
555 |
|
</tr>
|
|
554 |
|
</tr>
|
556 |
|
<?php
|
|
555 |
|
<?php
|
557 |
|
}
|
|
556 |
|
}
|
558 |
|
?>
|
|
557 |
|
?>
|
559 |
|
|
|
558 |
|
|
560 |
|
|
|
559 |
|
|
561 |
|
</table>
|
|
560 |
|
</table>
|
562 |
|
<?
|
|
561 |
|
<?
|
563 |
|
ContentBlo
ckFoot();
|
|
562 |
|
ContentBlo
ckFoot();
|
564 |
|
ContentBlo
ckHead("AF
F Approved
banners")
;
|
|
563 |
|
ContentBlo
ckHead("AF
F Approved
banners")
;
|
565 |
|
|
|
564 |
|
|
566 |
|
?>
|
|
565 |
|
?>
|
567 |
|
<form acti
on="<?= $_
SERVER['PH
P_SELF'] ?
>" method=
post name=
"prf_form1
">
|
|
566 |
|
<form acti
on="<?= $_
SERVER['PH
P_SELF'] ?
>" method=
post name=
"prf_form1
">
|
568 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=smal
l1 width=9
0% backgro
und="<?php
global $s
ite; echo
$site['url
_admin'];
?>images/d
ot_bg2.gif
">
|
|
567 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=smal
l1 width=9
0% backgro
und="<?php
global $s
ite; echo
$site['url
_admin'];
?>images/d
ot_bg2.gif
">
|
569 |
|
<center>
|
|
568 |
|
<center>
|
570 |
|
<a href="a
ff_banners
.php">Edit
Banners</
a>
|
|
569 |
|
<a href="a
ff_banners
.php">Edit
Banners</
a>
|
571 |
|
<br><hr si
ze=1 width
=100% NOSH
ADE><br>
|
|
570 |
|
<br><hr si
ze=1 width
=100% NOSH
ADE><br>
|
572 |
|
|
|
571 |
|
|
573 |
|
<table cla
ss="small1
" align="c
enter" cel
lpadding="
0" cellspa
cing="2" w
idth="90%"
>
|
|
572 |
|
<table cla
ss="small1
" align="c
enter" cel
lpadding="
0" cellspa
cing="2" w
idth="90%"
>
|
574 |
|
<tbody>
|
|
573 |
|
<tbody>
|
575 |
|
|
|
574 |
|
|
576 |
|
<?php
|
|
575 |
|
<?php
|
577 |
|
|
|
576 |
|
|
578 |
|
$resp
d = db_res
("SELECT *
FROM aff_
banners WH
ERE Added=
'1' AND St
atus='Acti
ve' ORDER
BY ID DESC
");
|
|
577 |
|
$resp
d = db_res
("SELECT *
FROM aff_
banners WH
ERE Added=
'1' AND St
atus='Acti
ve' ORDER
BY ID DESC
");
|
579 |
|
|
|
578 |
|
|
580 |
|
while
( $arrpd =
mysql_fet
ch_array($
respd) )
|
|
579 |
|
while
( $arrpd =
mysql_fet
ch_array($
respd) )
|
581 |
|
{
|
|
580 |
|
{
|
582 |
|
?>
|
|
581 |
|
?>
|
583 |
|
|
|
582 |
|
|
584 |
|
<
tr><td ali
gn=center>
|
|
583 |
|
<
tr><td ali
gn=center>
|
585 |
|
<
?php echo
$arrpd[Ban
nerName].'
'.$arrpd[
XSize].'x'
.$arrpd[YS
ize];?>
|
|
584 |
|
<
?php echo
$arrpd[Ban
nerName].'
'.$arrpd[
XSize].'x'
.$arrpd[YS
ize];?>
|
586 |
|
<
/td></tr>
|
|
585 |
|
<
/td></tr>
|
587 |
|
<
tr class="
table">
|
|
586 |
|
<
tr class="
table">
|
588 |
|
<
td colspan
="7" align
="center">
|
|
587 |
|
<
td colspan
="7" align
="center">
|
589 |
|
|
|
588 |
|
|
590 |
|
<
?php
|
|
589 |
|
<
?php
|
591 |
|
i
f($arrpd[X
Size]>400)
|
|
590 |
|
i
f($arrpd[X
Size]>400)
|
592 |
|
{
|
|
591 |
|
{
|
593 |
|
?
>
|
|
592 |
|
?
>
|
594 |
|
<a href
="<?php ec
ho $site['
banners']
. $arrpd[B
anner];?>"
><h2>Large
Banner</h
2></a>
|
|
593 |
|
<a href
="<?php ec
ho $site['
banners']
. $arrpd[B
anner];?>"
><h2>Large
Banner</h
2></a>
|
595 |
|
<
?php
|
|
594 |
|
<
?php
|
596 |
|
}
|
|
595 |
|
}
|
597 |
|
e
lse
|
|
596 |
|
e
lse
|
598 |
|
{
|
|
597 |
|
{
|
599 |
|
?
>
|
|
598 |
|
?
>
|
600 |
|
<img al
ign=middle
src="<?ph
p echo $si
te['banner
s'] . $arr
pd[Banner]
;?>"><br>
|
|
599 |
|
<img al
ign=middle
src="<?ph
p echo $si
te['banner
s'] . $arr
pd[Banner]
;?>"><br>
|
601 |
|
<
?php
|
|
600 |
|
<
?php
|
602 |
|
}
|
|
601 |
|
}
|
603 |
|
?
>
|
|
602 |
|
?
>
|
604 |
|
|
|
603 |
|
|
605 |
|
<i
mg align=m
iddle src=
"<?php ech
o $site['b
anners'] .
$arrpd[Ba
nner];?>">
<br>
|
|
604 |
|
<i
mg align=m
iddle src=
"<?php ech
o $site['b
anners'] .
$arrpd[Ba
nner];?>">
<br>
|
606 |
|
|
|
605 |
|
|
607 |
|
<
/td>
|
|
606 |
|
<
/td>
|
608 |
|
<
/tr>
|
|
607 |
|
<
/tr>
|
609 |
|
<
tr><td ali
gn=center>
<a href="<
?php echo
$site['url
']; ?>"><?
php echo $
arrpd[Text
]; ?></a><
/td></tr>
|
|
608 |
|
<
tr><td ali
gn=center>
<a href="<
?php echo
$site['url
']; ?>"><?
php echo $
arrpd[Text
]; ?></a><
/td></tr>
|
610 |
|
<?p
hp
|
|
609 |
|
<?p
hp
|
611 |
|
}
|
|
610 |
|
}
|
612 |
|
|
|
611 |
|
|
613 |
|
|
|
612 |
|
|
614 |
|
?>
|
|
613 |
|
?>
|
615 |
|
|
|
614 |
|
|
616 |
|
|
|
615 |
|
|
617 |
|
</tbody>
|
|
616 |
|
</tbody>
|
618 |
|
|
|
617 |
|
|
619 |
|
|
|
618 |
|
|
620 |
|
</center>
|
|
619 |
|
</center>
|
621 |
|
|
|
620 |
|
|
622 |
|
<?
|
|
621 |
|
<?
|
623 |
|
|
|
622 |
|
|
624 |
|
?>
|
|
623 |
|
?>
|
625 |
|
</table>
|
|
624 |
|
</table>
|
626 |
|
</form>
|
|
625 |
|
</form>
|
627 |
|
<?
|
|
626 |
|
<?
|
628 |
|
ContentBlo
ckFoot();
|
|
627 |
|
ContentBlo
ckFoot();
|
629 |
|
BottomCode
();
|
|
628 |
|
BottomCode
();
|
630 |
|
?>
|
|
629 |
|
?>
|