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 |
|
if( $_POST
['action']
== 'banne
r_upload'
&& strlen(
$_FILES['b
anner_uplo
ad']['name
']) )
|
|
30 |
|
if( $_POST
['action']
== 'banne
r_upload'
&& strlen(
$_FILES['b
anner_uplo
ad']['name
']) )
|
32 |
|
{
|
|
31 |
|
{
|
33 |
|
$new_f
ilename =
"{$dir['ba
nners']}{$
_FILES['ba
nner_uploa
d']['name'
]}";
|
|
32 |
|
$new_f
ilename =
"{$dir['ba
nners']}{$
_FILES['ba
nner_uploa
d']['name'
]}";
|
34 |
|
|
|
33 |
|
|
35 |
|
$scan
= getimage
size( $_FI
LES['banne
r_upload']
['tmp_name
'] );
|
|
34 |
|
$scan
= getimage
size( $_FI
LES['banne
r_upload']
['tmp_name
'] );
|
36 |
|
|
|
35 |
|
|
37 |
|
if ( $
scan && (
1 == $scan
[2] || 2 =
= $scan[2]
|| 3 == $
scan[2] ||
4 == $sca
n[2] || 6
== $scan[2
] )
|
|
36 |
|
if ( $
scan && (
1 == $scan
[2] || 2 =
= $scan[2]
|| 3 == $
scan[2] ||
4 == $sca
n[2] || 6
== $scan[2
] )
|
38 |
|
&&
move_uplo
aded_file(
$_FILES['
banner_upl
oad']['tmp
_name'], $
new_filena
me ) )
|
|
37 |
|
&&
move_uplo
aded_file(
$_FILES['
banner_upl
oad']['tmp
_name'], $
new_filena
me ) )
|
39 |
|
{
|
|
38 |
|
{
|
40 |
|
$f
= fopen (
$new_filen
ame, "r");
|
|
39 |
|
$f
= fopen (
$new_filen
ame, "r");
|
41 |
|
if
(!$f)
|
|
40 |
|
if
(!$f)
|
42 |
|
{
|
|
41 |
|
{
|
43 |
|
$status_
text = "Ca
nnot open
file for r
ead";
|
|
42 |
|
$status_
text = "Ca
nnot open
file for r
ead";
|
44 |
|
}
|
|
43 |
|
}
|
45 |
|
el
se
|
|
44 |
|
el
se
|
46 |
|
{
|
|
45 |
|
{
|
47 |
|
$fsize =
filesize
($new_file
name);
|
|
46 |
|
$fsize =
filesize
($new_file
name);
|
48 |
|
$buffer
= fread ($
f, $fsize)
;
|
|
47 |
|
$buffer
= fread ($
f, $fsize)
;
|
49 |
|
fclose (
$f);
|
|
48 |
|
fclose (
$f);
|
50 |
|
chmod( $
new_filena
me, 0644 )
;
|
|
49 |
|
chmod( $
new_filena
me, 0644 )
;
|
51 |
|
|
|
50 |
|
|
52 |
|
$i_arr =
getimages
ize( $new_
filename )
;
|
|
51 |
|
$i_arr =
getimages
ize( $new_
filename )
;
|
53 |
|
$filenam
e = proces
s_db_input
($_FILES['
banner_upl
oad']['nam
e']);
|
|
52 |
|
$filenam
e = proces
s_db_input
($_FILES['
banner_upl
oad']['nam
e']);
|
54 |
|
|
|
53 |
|
|
55 |
|
$result
= db_res("
INSERT INT
O aff_bann
ers (Banne
r, XSize,
YSize) VAL
UES ( '$fi
lename', '
$i_arr[0]'
, '$i_arr[
1]' ) ");
|
|
54 |
|
$result
= db_res("
INSERT INT
O aff_bann
ers (Banne
r, XSize,
YSize) VAL
UES ( '$fi
lename', '
$i_arr[0]'
, '$i_arr[
1]' ) ");
|
56 |
|
$status_
text = "Fi
le {$_FILE
S['banner_
upload']['
name']} su
ccessfully
uploaded.
";
|
|
55 |
|
$status_
text = "Fi
le {$_FILE
S['banner_
upload']['
name']} su
ccessfully
uploaded.
";
|
57 |
|
}
|
|
56 |
|
}
|
58 |
|
}
|
|
57 |
|
}
|
59 |
|
else
|
|
58 |
|
else
|
60 |
|
{
|
|
59 |
|
{
|
61 |
|
$s
tatus_text
= "Error:
file wasn
't uploade
d";
|
|
60 |
|
$s
tatus_text
= "Error:
file wasn
't uploade
d";
|
62 |
|
}
|
|
61 |
|
}
|
63 |
|
}
|
|
62 |
|
}
|
64 |
|
|
|
63 |
|
|
65 |
|
// - delet
e (uncheck
) banner -
----------
-----
|
|
64 |
|
// - delet
e (uncheck
) banner -
----------
-----
|
66 |
|
if ( !$dem
o_mode &&
$_POST['pr
f_form_sub
mit'] == "
Delete" )
|
|
65 |
|
if ( !$dem
o_mode &&
$_POST['pr
f_form_sub
mit'] == "
Delete" )
|
67 |
|
{
|
|
66 |
|
{
|
68 |
|
$i = 0
;
|
|
67 |
|
$i = 0
;
|
69 |
|
while(
list( $ke
y, $val )
= each( $_
POST ) )
|
|
68 |
|
while(
list( $ke
y, $val )
= each( $_
POST ) )
|
70 |
|
{
|
|
69 |
|
{
|
71 |
|
if
( (int)$k
ey && $val
== "on" )
|
|
70 |
|
if
( (int)$k
ey && $val
== "on" )
|
72 |
|
{
|
|
71 |
|
{
|
73 |
|
$res = d
b_res("DEL
ETE FROM a
ff_banners
WHERE `ID
` = '$key'
");
|
|
72 |
|
$res = d
b_res("DEL
ETE FROM a
ff_banners
WHERE `ID
` = '$key'
");
|
74 |
|
if (!$re
s)
|
|
73 |
|
if (!$re
s)
|
75 |
|
{
|
|
74 |
|
{
|
76 |
|
$err
= 1;
|
|
75 |
|
$err
= 1;
|
77 |
|
brea
k;
|
|
76 |
|
brea
k;
|
78 |
|
}
|
|
77 |
|
}
|
79 |
|
++$i;
|
|
78 |
|
++$i;
|
80 |
|
}
|
|
79 |
|
}
|
81 |
|
}
|
|
80 |
|
}
|
82 |
|
|
|
81 |
|
|
83 |
|
if ( $
err )
|
|
82 |
|
if ( $
err )
|
84 |
|
$s
tatus_text
= "Banner
was NOT s
uccessfull
y deleted"
;
|
|
83 |
|
$s
tatus_text
= "Banner
was NOT s
uccessfull
y deleted"
;
|
85 |
|
else
|
|
84 |
|
else
|
86 |
|
$s
tatus_text
= "$i ban
ner(s) was
(were) suc
cessfully
deleted.";
|
|
85 |
|
$s
tatus_text
= "$i ban
ner(s) was
(were) suc
cessfully
deleted.";
|
87 |
|
}
|
|
86 |
|
}
|
88 |
|
|
|
87 |
|
|
89 |
|
// - edit
banner --
----------
------
|
|
88 |
|
// - edit
banner --
----------
------
|
90 |
|
if ( !$dem
o_mode &&
(int)$_GET
['EditBann
er'] )
|
|
89 |
|
if ( !$dem
o_mode &&
(int)$_GET
['EditBann
er'] )
|
91 |
|
{
|
|
90 |
|
{
|
92 |
|
$editb
an_arr = d
b_arr( "SE
LECT * FRO
M aff_bann
ers WHERE
ID = '". (
int)$_GET[
'EditBanne
r']. "'" )
;
|
|
91 |
|
$editb
an_arr = d
b_arr( "SE
LECT * FRO
M aff_bann
ers WHERE
ID = '". (
int)$_GET[
'EditBanne
r']. "'" )
;
|
93 |
|
}
|
|
92 |
|
}
|
94 |
|
|
|
93 |
|
|
95 |
|
if ( $_POS
T['EditBan
nerSubmit'
] )
|
|
94 |
|
if ( $_POS
T['EditBan
nerSubmit'
] )
|
96 |
|
{
|
|
95 |
|
{
|
97 |
|
$xsize
= (int)$_
POST['XSiz
e'];
|
|
96 |
|
$xsize
= (int)$_
POST['XSiz
e'];
|
98 |
|
$ysize
= (int)$_
POST['YSiz
e'];
|
|
97 |
|
$ysize
= (int)$_
POST['YSiz
e'];
|
99 |
|
$banne
r_name = p
rocess_db_
input( $_P
OST['Banne
rName'] );
|
|
98 |
|
$banne
r_name = p
rocess_db_
input( $_P
OST['Banne
rName'] );
|
100 |
|
$statu
s = $_POST
['Status']
== 'activ
e' ? 'Acti
ve' : 'App
roval';
|
|
99 |
|
$statu
s = $_POST
['Status']
== 'activ
e' ? 'Acti
ve' : 'App
roval';
|
101 |
|
$text
= process_
db_input(
$_POST['Te
xt'] );
|
|
100 |
|
$text
= process_
db_input(
$_POST['Te
xt'] );
|
102 |
|
$banne
r_id = (in
t)$_POST['
ID'];
|
|
101 |
|
$banne
r_id = (in
t)$_POST['
ID'];
|
103 |
|
$query
= "UPDATE
aff_banne
rs SET `XS
ize` = $xs
ize, `YSiz
e` = $ysiz
e, `Banner
Name` = '$
banner_nam
e', `Statu
s` = '$sta
tus', `Tex
t` = '$tex
t' WHERE `
ID` = $ban
ner_id";
|
|
102 |
|
$query
= "UPDATE
aff_banne
rs SET `XS
ize` = $xs
ize, `YSiz
e` = $ysiz
e, `Banner
Name` = '$
banner_nam
e', `Statu
s` = '$sta
tus', `Tex
t` = '$tex
t' WHERE `
ID` = $ban
ner_id";
|
104 |
|
$res =
db_res($q
uery);
|
|
103 |
|
$res =
db_res($q
uery);
|
105 |
|
|
|
104 |
|
|
106 |
|
if ( $
res )
|
|
105 |
|
if ( $
res )
|
107 |
|
$s
tatus_text
= "Banner
was succe
ssfully up
dated";
|
|
106 |
|
$s
tatus_text
= "Banner
was succe
ssfully up
dated";
|
108 |
|
else
|
|
107 |
|
else
|
109 |
|
$s
tatus_text
= "Banner
was NOT s
uccessfull
y updated.
";
|
|
108 |
|
$s
tatus_text
= "Banner
was NOT s
uccessfull
y updated.
";
|
110 |
|
}
|
|
109 |
|
}
|
111 |
|
|
|
110 |
|
|
112 |
|
|
|
111 |
|
|
113 |
|
|
|
112 |
|
|
114 |
|
$page = (i
nt)$_GET['
page'];
|
|
113 |
|
$page = (i
nt)$_GET['
page'];
|
115 |
|
$p_per_pag
e = (int)$
_GET['p_pe
r_page'];
|
|
114 |
|
$p_per_pag
e = (int)$
_GET['p_pe
r_page'];
|
116 |
|
|
|
115 |
|
|
117 |
|
if ( !$pag
e )
|
|
116 |
|
if ( !$pag
e )
|
118 |
|
$page
= 1;
|
|
117 |
|
$page
= 1;
|
119 |
|
|
|
118 |
|
|
120 |
|
if ( !$p_p
er_page )
|
|
119 |
|
if ( !$p_p
er_page )
|
121 |
|
$p_per
_page = 30
;
|
|
120 |
|
$p_per
_page = 30
;
|
122 |
|
|
|
121 |
|
|
123 |
|
// -------
----------
----------
---
|
|
122 |
|
// -------
----------
----------
---
|
124 |
|
|
|
123 |
|
|
125 |
|
$p_num = d
b_arr( "SE
LECT COUNT
(*) FROM a
ff_banners
WHERE Add
ed='1'" );
|
|
124 |
|
$p_num = d
b_arr( "SE
LECT COUNT
(*) FROM a
ff_banners
WHERE Add
ed='1'" );
|
126 |
|
$p_num = $
p_num[0];
|
|
125 |
|
$p_num = $
p_num[0];
|
127 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
|
126 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
128 |
|
|
|
127 |
|
|
129 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
|
128 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
130 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
|
129 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
131 |
|
|
|
130 |
|
|
132 |
|
$result =
db_res( "S
ELECT ID,
XSize, YSi
ze, Banner
, BannerNa
me, Status
, Text, Ad
ded, COUNT
(ID) AS m_
count FROM
aff_banne
rs GROUP B
Y ID $part
_addon ORD
ER BY ID A
SC LIMIT $
real_first
_p, $p_per
_page" );
|
|
131 |
|
$result =
db_res( "S
ELECT ID,
XSize, YSi
ze, Banner
, BannerNa
me, Status
, Text, Ad
ded, COUNT
(ID) AS m_
count FROM
aff_banne
rs GROUP B
Y ID $part
_addon ORD
ER BY ID A
SC LIMIT $
real_first
_p, $p_per
_page" );
|
133 |
|
$page_p_nu
m = mysql_
num_rows(
$result );
|
|
132 |
|
$page_p_nu
m = mysql_
num_rows(
$result );
|
134 |
|
|
|
133 |
|
|
135 |
|
$_page['he
ader'] = "
Banner Lis
t";
|
|
134 |
|
$_page['he
ader'] = "
Banner Lis
t";
|
136 |
|
$_page['he
ader_text'
] = "Banne
r List";
|
|
135 |
|
$_page['he
ader_text'
] = "Banne
r List";
|
137 |
|
|
|
136 |
|
|
138 |
|
TopCodeAdm
in();
|
|
137 |
|
TopCodeAdm
in();
|
139 |
|
ContentBlo
ckHead("Up
load new b
anner");
|
|
138 |
|
ContentBlo
ckHead("Up
load new b
anner");
|
140 |
|
|
|
139 |
|
|
141 |
|
if ( strle
n($status_
text) )
|
|
140 |
|
if ( strle
n($status_
text) )
|
142 |
|
echo "
<br><cente
r><div cla
ss=\"err\"
>{$status_
text}</div
></center>
<br>";
|
|
141 |
|
echo "
<br><cente
r><div cla
ss=\"err\"
>{$status_
text}</div
></center>
<br>";
|
143 |
|
|
|
142 |
|
|
144 |
|
?>
|
|
143 |
|
?>
|
145 |
|
<form enct
ype="multi
part/form-
data" acti
on="<?= $_
SERVER['PH
P_SELF'];
?>" method
="POST" >
|
|
144 |
|
<form enct
ype="multi
part/form-
data" acti
on="<?= $_
SERVER['PH
P_SELF'];
?>" method
="POST" >
|
146 |
|
<table cla
ss="text"
align="cen
ter" cellp
adding="0"
cellspaci
ng="2" wid
th="450">
|
|
145 |
|
<table cla
ss="text"
align="cen
ter" cellp
adding="0"
cellspaci
ng="2" wid
th="450">
|
147 |
|
<tr>
|
|
146 |
|
<tr>
|
148 |
|
<t
d align="l
eft" colsp
an="2">Upl
oad New Ba
nner</td>
|
|
147 |
|
<t
d align="l
eft" colsp
an="2">Upl
oad New Ba
nner</td>
|
149 |
|
</tr>
|
|
148 |
|
</tr>
|
150 |
|
<tr>
|
|
149 |
|
<tr>
|
151 |
|
<t
d align="l
eft">
|
|
150 |
|
<t
d align="l
eft">
|
152 |
|
<input t
ype="hidde
n" name="a
ction" val
ue="banner
_upload">
|
|
151 |
|
<input t
ype="hidde
n" name="a
ction" val
ue="banner
_upload">
|
153 |
|
<input n
ame="banne
r_upload"
type="file
" size="60
">
|
|
152 |
|
<input n
ame="banne
r_upload"
type="file
" size="60
">
|
154 |
|
</
td>
|
|
153 |
|
</
td>
|
155 |
|
<t
d align="l
eft">
|
|
154 |
|
<t
d align="l
eft">
|
156 |
|
<input t
ype="submi
t" value="
Upload">
|
|
155 |
|
<input t
ype="submi
t" value="
Upload">
|
157 |
|
</
td>
|
|
156 |
|
</
td>
|
158 |
|
</tr>
|
|
157 |
|
</tr>
|
159 |
|
</table>
|
|
158 |
|
</table>
|
160 |
|
</form>
|
|
159 |
|
</form>
|
161 |
|
|
|
160 |
|
|
162 |
|
<?
|
|
161 |
|
<?
|
163 |
|
ContentBlo
ckFoot();
|
|
162 |
|
ContentBlo
ckFoot();
|
164 |
|
ContentBlo
ckHead("Mo
dify exist
ing banner
s");
|
|
163 |
|
ContentBlo
ckHead("Mo
dify exist
ing banner
s");
|
165 |
|
?>
|
|
164 |
|
?>
|
166 |
|
|
|
165 |
|
|
167 |
|
<center>
|
|
166 |
|
<center>
|
168 |
|
<? echo Re
sNavigatio
nRet( 'Aff
BannersUpp
er', 0 );
?>
|
|
167 |
|
<? echo Re
sNavigatio
nRet( 'Aff
BannersUpp
er', 0 );
?>
|
169 |
|
</center>
|
|
168 |
|
</center>
|
170 |
|
|
|
169 |
|
|
171 |
|
<form acti
on="<?= $_
SERVER['PH
P_SELF'];
?>" method
="POST" na
me="prf_fo
rm">
|
|
170 |
|
<form acti
on="<?= $_
SERVER['PH
P_SELF'];
?>" method
="POST" na
me="prf_fo
rm">
|
172 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=text
width=90%
backgroun
d="<?= $si
te['url_ad
min']; ?>i
mages/dot_
bg2.gif">
|
|
171 |
|
<table ali
gn="center
" cellspac
ing=2 cell
padding=0
class=text
width=90%
backgroun
d="<?= $si
te['url_ad
min']; ?>i
mages/dot_
bg2.gif">
|
173 |
|
<?php
|
|
172 |
|
<?php
|
174 |
|
$respd = d
b_res("SEL
ECT * FROM
`aff_bann
ers` ORDER
BY ID DES
C");
|
|
173 |
|
$respd = d
b_res("SEL
ECT * FROM
`aff_bann
ers` ORDER
BY ID DES
C");
|
175 |
|
$num_rows
= mysql_nu
m_rows($re
spd);
|
|
174 |
|
$num_rows
= mysql_nu
m_rows($re
spd);
|
176 |
|
|
|
175 |
|
|
177 |
|
if ( $num_
rows == 0
)
|
|
176 |
|
if ( $num_
rows == 0
)
|
178 |
|
{
|
|
177 |
|
{
|
179 |
|
?>
|
|
178 |
|
?>
|
180 |
|
<tr>
|
|
179 |
|
<tr>
|
181 |
|
<t
d align="c
enter">No
banners av
ailable</t
d>
|
|
180 |
|
<t
d align="c
enter">No
banners av
ailable</t
d>
|
182 |
|
</tr>
|
|
181 |
|
</tr>
|
183 |
|
<?
|
|
182 |
|
<?
|
184 |
|
}
|
|
183 |
|
}
|
185 |
|
else
|
|
184 |
|
else
|
186 |
|
{
|
|
185 |
|
{
|
187 |
|
while(
$arrpd =
mysql_fetc
h_array($r
espd) )
|
|
186 |
|
while(
$arrpd =
mysql_fetc
h_array($r
espd) )
|
188 |
|
{
|
|
187 |
|
{
|
189 |
|
?>
|
|
188 |
|
?>
|
190 |
|
<tr cl
ass="panel
">
|
|
189 |
|
<tr cl
ass="panel
">
|
191 |
|
<t
d align="c
enter">&nb
sp;ID 
;</td>
|
|
190 |
|
<t
d align="c
enter">&nb
sp;ID 
;</td>
|
192 |
|
<t
d align="c
enter">&nb
sp;XSize&n
bsp;</td>
|
|
191 |
|
<t
d align="c
enter">&nb
sp;XSize&n
bsp;</td>
|
193 |
|
<t
d align="c
enter">&nb
sp;YSize&n
bsp;</td>
|
|
192 |
|
<t
d align="c
enter">&nb
sp;YSize&n
bsp;</td>
|
194 |
|
<t
d align="c
enter">&nb
sp;Banner&
nbsp;</td>
|
|
193 |
|
<t
d align="c
enter">&nb
sp;Banner&
nbsp;</td>
|
195 |
|
<t
d align="c
enter">&nb
sp;Banner
Name
</td>
|
|
194 |
|
<t
d align="c
enter">&nb
sp;Banner
Name
</td>
|
196 |
|
<t
d align="c
enter">&nb
sp;Status&
nbsp;</td>
|
|
195 |
|
<t
d align="c
enter">&nb
sp;Status&
nbsp;</td>
|
197 |
|
<t
d align="c
enter">&nb
sp;Delete&
nbsp;</td>
|
|
196 |
|
<t
d align="c
enter">&nb
sp;Delete&
nbsp;</td>
|
198 |
|
</tr>
|
|
197 |
|
</tr>
|
199 |
|
<tr cl
ass="table
">
|
|
198 |
|
<tr cl
ass="table
">
|
200 |
|
<t
d align="c
enter" bgc
olor="#fff
fff">
|
|
199 |
|
<t
d align="c
enter" bgc
olor="#fff
fff">
|
201 |
|
<a href=
"<?= $site
['url'] ?>
aff/aff_ba
nners.php?
EditBanner
=<?= $arrp
d['ID'] ?>
"><?= $arr
pd['ID'] ?
></a>
|
|
200 |
|
<a href=
"<?= $site
['url'] ?>
aff/aff_ba
nners.php?
EditBanner
=<?= $arrp
d['ID'] ?>
"><?= $arr
pd['ID'] ?
></a>
|
202 |
|
</
td>
|
|
201 |
|
</
td>
|
203 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['XSize'
]; ?></td>
|
|
202 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['XSize'
]; ?></td>
|
204 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['YSize'
]; ?></td>
|
|
203 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['YSize'
]; ?></td>
|
205 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['Banner
']; ?></td
>
|
|
204 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['Banner
']; ?></td
>
|
206 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['Banner
Name']; ?>
</td>
|
|
205 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['Banner
Name']; ?>
</td>
|
207 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['Status
'] == "Act
ive" ? "Ac
tive" : "A
pproval";
?></td>
|
|
206 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><?php
echo $arr
pd['Status
'] == "Act
ive" ? "Ac
tive" : "A
pproval";
?></td>
|
208 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><inpu
t name="<?
php echo $
arrpd['ID'
];?>" type
="checkbox
"></td>
|
|
207 |
|
<t
d align="c
enter" bgc
olor="#fff
fff"><inpu
t name="<?
php echo $
arrpd['ID'
];?>" type
="checkbox
"></td>
|
209 |
|
</tr>
|
|
208 |
|
</tr>
|
210 |
|
<tr cl
ass="table
">
|
|
209 |
|
<tr cl
ass="table
">
|
211 |
|
<t
d colspan=
"7" align=
"center">
|
|
210 |
|
<t
d colspan=
"7" align=
"center">
|
212 |
|
<?php
|
|
211 |
|
<?php
|
213 |
|
if
( $arrpd['
XSize'] >
400 )
|
|
212 |
|
if
( $arrpd['
XSize'] >
400 )
|
214 |
|
{
|
|
213 |
|
{
|
215 |
|
?>
|
|
214 |
|
?>
|
216 |
|
<a href=
"<?= $site
['banners'
] . $arrpd
['Banner']
?>">Large
Banner</a
>
|
|
215 |
|
<a href=
"<?= $site
['banners'
] . $arrpd
['Banner']
?>">Large
Banner</a
>
|
217 |
|
<?
|
|
216 |
|
<?
|
218 |
|
}
|
|
217 |
|
}
|
219 |
|
el
se
|
|
218 |
|
el
se
|
220 |
|
{
|
|
219 |
|
{
|
221 |
|
?>
|
|
220 |
|
?>
|
222 |
|
<img ali
gn=middle
src="<?= $
site['bann
ers'] . $a
rrpd['Bann
er'] ?>">
|
|
221 |
|
<img ali
gn=middle
src="<?= $
site['bann
ers'] . $a
rrpd['Bann
er'] ?>">
|
223 |
|
<?
|
|
222 |
|
<?
|
224 |
|
}
|
|
223 |
|
}
|
225 |
|
?>
|
|
224 |
|
?>
|
226 |
|
</
td>
|
|
225 |
|
</
td>
|
227 |
|
</tr>
|
|
226 |
|
</tr>
|
228 |
|
<tr>
|
|
227 |
|
<tr>
|
229 |
|
<t
d align="c
enter" col
span="7">
|
|
228 |
|
<t
d align="c
enter" col
span="7">
|
230 |
|
<a href=
"<?= $site
['url'] ?>
"><?= $arr
pd['Text']
?></a>
|
|
229 |
|
<a href=
"<?= $site
['url'] ?>
"><?= $arr
pd['Text']
?></a>
|
231 |
|
</
td>
|
|
230 |
|
</
td>
|
232 |
|
</tr>
|
|
231 |
|
</tr>
|
233 |
|
<?
|
|
232 |
|
<?
|
234 |
|
}
|
|
233 |
|
}
|
235 |
|
}
|
|
234 |
|
}
|
236 |
|
?>
|
|
235 |
|
?>
|
237 |
|
</table>
|
|
236 |
|
</table>
|
238 |
|
|
|
237 |
|
|
239 |
|
<?
|
|
238 |
|
<?
|
240 |
|
if ( $num_
rows > 0 )
|
|
239 |
|
if ( $num_
rows > 0 )
|
241 |
|
{
|
|
240 |
|
{
|
242 |
|
?>
|
|
241 |
|
?>
|
243 |
|
<center>
|
|
242 |
|
<center>
|
244 |
|
<table cla
ss=text ce
llpadding=
"0" cellsp
acing="0"
border="0"
>
|
|
243 |
|
<table cla
ss=text ce
llpadding=
"0" cellsp
acing="0"
border="0"
>
|
245 |
|
<tr>
|
|
244 |
|
<tr>
|
246 |
|
<t
d> <a
href="jav
ascript: v
oid(0);" o
nclick="se
tCheckboxe
s( 'prf_fo
rm', true
); return
false;">Ch
eck all</a
> / <a hre
f="javascr
ipt: void(
0);" oncli
ck="setChe
ckboxes( '
prf_form',
false );
return fal
se;">Unche
ck all</a>
</td
>
|
|
245 |
|
<t
d> <a
href="jav
ascript: v
oid(0);" o
nclick="se
tCheckboxe
s( 'prf_fo
rm', true
); return
false;">Ch
eck all</a
> / <a hre
f="javascr
ipt: void(
0);" oncli
ck="setChe
ckboxes( '
prf_form',
false );
return fal
se;">Unche
ck all</a>
</td
>
|
247 |
|
<t
d>Selected
Banners:&
nbsp;</td>
|
|
246 |
|
<t
d>Selected
Banners:&
nbsp;</td>
|
248 |
|
<t
d><input c
lass=no ty
pe=submit
name="prf_
form_submi
t" value="
Delete"></
td>
|
|
247 |
|
<t
d><input c
lass=no ty
pe=submit
name="prf_
form_submi
t" value="
Delete"></
td>
|
249 |
|
</tr>
|
|
248 |
|
</tr>
|
250 |
|
</table>
|
|
249 |
|
</table>
|
251 |
|
</center>
|
|
250 |
|
</center>
|
252 |
|
<?
|
|
251 |
|
<?
|
253 |
|
}
|
|
252 |
|
}
|
254 |
|
?>
|
|
253 |
|
?>
|
255 |
|
</form>
|
|
254 |
|
</form>
|
256 |
|
|
|
255 |
|
|
257 |
|
<center>
|
|
256 |
|
<center>
|
258 |
|
<? echo Re
sNavigatio
nRet( 'Aff
BannersLow
er', 0 );
?>
|
|
257 |
|
<? echo Re
sNavigatio
nRet( 'Aff
BannersLow
er', 0 );
?>
|
259 |
|
</center>
|
|
258 |
|
</center>
|
260 |
|
<?
|
|
259 |
|
<?
|
261 |
|
|
|
260 |
|
|
262 |
|
ContentBlo
ckFoot();
|
|
261 |
|
ContentBlo
ckFoot();
|
263 |
|
|
|
262 |
|
|
264 |
|
if ( (int)
$_GET['Edi
tBanner']
)
|
|
263 |
|
if ( (int)
$_GET['Edi
tBanner']
)
|
265 |
|
{
|
|
264 |
|
{
|
266 |
|
Conten
tBlockHead
("Edit Ban
ner");
|
|
265 |
|
Conten
tBlockHead
("Edit Ban
ner");
|
267 |
|
?>
|
|
266 |
|
?>
|
268 |
|
<form meth
od="POST"
action="<?
= $_SERVER
['PHP_SELF
']; ?>">
|
|
267 |
|
<form meth
od="POST"
action="<?
= $_SERVER
['PHP_SELF
']; ?>">
|
269 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=4
class="tex
t" width=9
0%>
|
|
268 |
|
<table ali
gn="center
" cellspac
ing=1 cell
padding=4
class="tex
t" width=9
0%>
|
270 |
|
<tr cl
ass=panel>
|
|
269 |
|
<tr cl
ass=panel>
|
271 |
|
<t
d align=ce
nter width
=10%> 
;ID <
/td>
|
|
270 |
|
<t
d align=ce
nter width
=10%> 
;ID <
/td>
|
272 |
|
<t
d align=ce
nter width
=10%> 
;XSize&nbs
p;</td>
|
|
271 |
|
<t
d align=ce
nter width
=10%> 
;XSize&nbs
p;</td>
|
273 |
|
<t
d align=ce
nter width
=10%> 
;YSize&nbs
p;</td>
|
|
272 |
|
<t
d align=ce
nter width
=10%> 
;YSize&nbs
p;</td>
|
274 |
|
<t
d align=ce
nter width
=50%> 
;Banner fi
le </
td>
|
|
273 |
|
<t
d align=ce
nter width
=50%> 
;Banner fi
le </
td>
|
275 |
|
<t
d align=ce
nter width
=20%> 
;Status&nb
sp;</td>
|
|
274 |
|
<t
d align=ce
nter width
=20%> 
;Status&nb
sp;</td>
|
276 |
|
</tr>
|
|
275 |
|
</tr>
|
277 |
|
<tr>
|
|
276 |
|
<tr>
|
278 |
|
<t
d align=ce
nter width
=10%><?=$e
ditban_arr
['ID']?></
td>
|
|
277 |
|
<t
d align=ce
nter width
=10%><?=$e
ditban_arr
['ID']?></
td>
|
279 |
|
<t
d align=ce
nter width
=10%><inpu
t type="te
xt" class=
no size=4
name=XSize
value=<?=
$editban_a
rr['XSize'
]?>></td>
|
|
278 |
|
<t
d align=ce
nter width
=10%><inpu
t type="te
xt" class=
no size=4
name=XSize
value=<?=
$editban_a
rr['XSize'
]?>></td>
|
280 |
|
<t
d align=ce
nter width
=10%><inpu
t type="te
xt" class=
no size=4
name=YSize
value=<?=
$editban_a
rr['YSize'
]?>></td>
|
|
279 |
|
<t
d align=ce
nter width
=10%><inpu
t type="te
xt" class=
no size=4
name=YSize
value=<?=
$editban_a
rr['YSize'
]?>></td>
|
281 |
|
<t
d align=ce
nter width
=50%><inpu
t type="te
xt" class=
no size=40
name=Bann
er value="
<?=$editba
n_arr['Ban
ner']?>" r
eadonly></
td>
|
|
280 |
|
<t
d align=ce
nter width
=50%><inpu
t type="te
xt" class=
no size=40
name=Bann
er value="
<?=$editba
n_arr['Ban
ner']?>" r
eadonly></
td>
|
282 |
|
<t
d align=ce
nter width
=20%>
|
|
281 |
|
<t
d align=ce
nter width
=20%>
|
283 |
|
<select
class=no n
ame="Statu
s">
|
|
282 |
|
<select
class=no n
ame="Statu
s">
|
284 |
|
<opt
ion value=
"approval"
<?= $edit
ban_arr['S
tatus'] ==
'Approval
' ? 'selec
ted' : ''
?>>Approva
l</option>
|
|
283 |
|
<opt
ion value=
"approval"
<?= $edit
ban_arr['S
tatus'] ==
'Approval
' ? 'selec
ted' : ''
?>>Approva
l</option>
|
285 |
|
<opt
ion value=
"active" <
?= $editba
n_arr['Sta
tus'] == '
Active' ?
'selected'
: ''?>>Ac
tive</opti
on>
|
|
284 |
|
<opt
ion value=
"active" <
?= $editba
n_arr['Sta
tus'] == '
Active' ?
'selected'
: ''?>>Ac
tive</opti
on>
|
286 |
|
</select
>
|
|
285 |
|
</select
>
|
287 |
|
</
td>
|
|
286 |
|
</
td>
|
288 |
|
</tr>
|
|
287 |
|
</tr>
|
289 |
|
<tr>
|
|
288 |
|
<tr>
|
290 |
|
<t
d align=ce
nter width
=10%>Banne
r name&nbs
p;</td>
|
|
289 |
|
<t
d align=ce
nter width
=10%>Banne
r name&nbs
p;</td>
|
291 |
|
<t
d align=ce
nter colsp
an=4 width
=10%><inpu
t type="te
xt" class=
no size=73
name=Bann
erName val
ue=<?=$edi
tban_arr['
BannerName
']?>></td>
|
|
290 |
|
<t
d align=ce
nter colsp
an=4 width
=10%><inpu
t type="te
xt" class=
no size=73
name=Bann
erName val
ue=<?=$edi
tban_arr['
BannerName
']?>></td>
|
292 |
|
</tr>
|
|
291 |
|
</tr>
|
293 |
|
<tr>
|
|
292 |
|
<tr>
|
294 |
|
<t
d colspan=
5 align=ce
nter width
=10%> 
;
|
|
293 |
|
<t
d colspan=
5 align=ce
nter width
=10%> 
;
|
295 |
|
<?
|
|
294 |
|
<?
|
296 |
|
if( $e
ditban_arr
['XSize']
> 400 )
|
|
295 |
|
if( $e
ditban_arr
['XSize']
> 400 )
|
297 |
|
{
|
|
296 |
|
{
|
298 |
|
?>
|
|
297 |
|
?>
|
299 |
|
<a href=
"<?= $site
['banners'
] . $editb
an_arr['Ba
nner'] ?>"
>Large Ban
ner</a>
|
|
298 |
|
<a href=
"<?= $site
['banners'
] . $editb
an_arr['Ba
nner'] ?>"
>Large Ban
ner</a>
|
300 |
|
<?
|
|
299 |
|
<?
|
301 |
|
}
|
|
300 |
|
}
|
302 |
|
else
|
|
301 |
|
else
|
303 |
|
{
|
|
302 |
|
{
|
304 |
|
?>
|
|
303 |
|
?>
|
305 |
|
<img ali
gn=middle
src="<?= $
site['bann
ers'] . $e
ditban_arr
['Banner']
?>" />
|
|
304 |
|
<img ali
gn=middle
src="<?= $
site['bann
ers'] . $e
ditban_arr
['Banner']
?>" />
|
306 |
|
<?
|
|
305 |
|
<?
|
307 |
|
}
|
|
306 |
|
}
|
308 |
|
?>
|
|
307 |
|
?>
|
309 |
|
</
td>
|
|
308 |
|
</
td>
|
310 |
|
</tr>
|
|
309 |
|
</tr>
|
311 |
|
<tr>
|
|
310 |
|
<tr>
|
312 |
|
<t
d align=ce
nter width
=10%>Text<
/td>
|
|
311 |
|
<t
d align=ce
nter width
=10%>Text<
/td>
|
313 |
|
<t
d align=ce
nter colsp
an=4 width
=10%><inpu
t type="te
xt" class=
no size=73
name=Text
value=<?=
$editban_a
rr['Text']
?>></td>
|
|
312 |
|
<t
d align=ce
nter colsp
an=4 width
=10%><inpu
t type="te
xt" class=
no size=73
name=Text
value=<?=
$editban_a
rr['Text']
?>></td>
|
314 |
|
</tr>
|
|
313 |
|
</tr>
|
315 |
|
</table>
|
|
314 |
|
</table>
|
316 |
|
|
|
315 |
|
|
317 |
|
<br>
|
|
316 |
|
<br>
|
318 |
|
<center><i
nput type=
"submit" n
ame="EditB
annerSubmi
t" value="
Update"></
center>
|
|
317 |
|
<center><i
nput type=
"submit" n
ame="EditB
annerSubmi
t" value="
Update"></
center>
|
319 |
|
<input typ
e=hidden n
ame=ID val
ue=<?=$edi
tban_arr['
ID']?>>
|
|
318 |
|
<input typ
e=hidden n
ame=ID val
ue=<?=$edi
tban_arr['
ID']?>>
|
320 |
|
</form>
|
|
319 |
|
</form>
|
321 |
|
<?php
|
|
320 |
|
<?php
|
322 |
|
Conten
tBlockFoot
();
|
|
321 |
|
Conten
tBlockFoot
();
|
323 |
|
}
|
|
322 |
|
}
|
324 |
|
BottomCode
();
|
|
323 |
|
BottomCode
();
|
325 |
|
?>
|
|
324 |
|
?>
|