Revision 1425
Added by Dietmar almost 14 years ago
modify.php | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category modules |
|
5 |
* @package news |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.8.x |
|
12 |
* @requirements PHP 5.2.2 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 |
* |
|
17 |
*/ |
|
18 |
|
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(!defined('WB_PATH')) { exit("Cannot access this file directly"); } |
|
21 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
22 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
23 |
|
|
24 |
//overwrite php.ini on Apache servers for valid SESSION ID Separator |
|
25 |
if(function_exists('ini_set')) { |
|
26 |
ini_set('arg_separator.output', '&'); |
|
27 |
} |
|
28 |
|
|
29 |
?> |
|
30 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
|
31 |
<tr> |
|
32 |
<td align="left" width="33%"> |
|
33 |
<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['POST']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" /> |
|
34 |
</td> |
|
35 |
<td align="left" width="33%"> |
|
36 |
<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['GROUP']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" /> |
|
37 |
</td> |
|
38 |
<td align="right" width="33%"> |
|
39 |
<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/modify_settings.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" /> |
|
40 |
</td> |
|
41 |
</tr> |
|
42 |
</table> |
|
43 |
|
|
44 |
<br /> |
|
45 |
|
|
46 |
<h2><?php echo $TEXT['MODIFY'].'/'.$TEXT['DELETE'].' '.$TEXT['POST']; ?></h2> |
|
47 |
|
|
48 |
<?php |
|
49 |
|
|
50 |
// Loop through existing posts |
|
51 |
$query_posts = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_news_posts` WHERE section_id = '$section_id' ORDER BY position DESC"); |
|
52 |
if($query_posts->numRows() > 0) { |
|
53 |
$num_posts = $query_posts->numRows(); |
|
54 |
$row = 'a'; |
|
55 |
?> |
|
56 |
<table cellpadding="2" cellspacing="0" border="0" width="100%"> |
|
57 |
<?php |
|
58 |
while($post = $query_posts->fetchRow()) { |
|
59 |
$pid = $admin->getIDKEY($post['post_id']); |
|
60 |
?> |
|
61 |
<tr class="row_<?php echo $row; ?>"> |
|
62 |
<td width="20" style="padding-left: 5px;"> |
|
63 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
|
64 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " /> |
|
65 |
</a> |
|
66 |
</td> |
|
67 |
<td> |
|
68 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>"> |
|
69 |
<?php echo ($post['title']); ?> |
|
70 |
</a> |
|
71 |
</td> |
|
72 |
<td width="180"> |
|
73 |
<?php echo $TEXT['GROUP'].': '; |
|
74 |
// Get group title |
|
75 |
$query_title = $database->query("SELECT title FROM ".TABLE_PREFIX."mod_news_groups WHERE group_id = '".$post['group_id']."'"); |
|
76 |
if($query_title->numRows() > 0) { |
|
77 |
$fetch_title = $query_title->fetchRow(); |
|
78 |
echo ($fetch_title['title']); |
|
79 |
} else { |
|
80 |
echo $TEXT['NONE']; |
|
81 |
} |
|
82 |
?> |
|
83 |
</td> |
|
84 |
<td width="120"> |
|
85 |
<?php echo $TEXT['COMMENTS'].': '; |
|
86 |
// Get number of comments |
|
87 |
$query_title = $database->query("SELECT title FROM ".TABLE_PREFIX."mod_news_comments WHERE post_id = '".$post['post_id']."'"); |
|
88 |
echo $query_title->numRows(); |
|
89 |
?> |
|
90 |
</td> |
|
91 |
<td width="80"> |
|
92 |
<?php echo $TEXT['ACTIVE'].': '; if($post['active'] == 1) { echo $TEXT['YES']; } else { echo $TEXT['NO']; } ?> |
|
93 |
</td> |
|
94 |
<td width="20"> |
|
95 |
<?php |
|
96 |
$start = $post['published_when']; |
|
97 |
$end = $post['published_until']; |
|
98 |
$t = time(); |
|
99 |
$icon = ''; |
|
100 |
if($start<=$t && $end==0) |
|
101 |
$icon=THEME_URL.'/images/noclock_16.png'; |
|
102 |
elseif(($start<=$t || $start==0) && $end>=$t) |
|
103 |
$icon=THEME_URL.'/images/clock_16.png'; |
|
104 |
else |
|
105 |
$icon=THEME_URL.'/images/clock_red_16.png'; |
|
106 |
?> |
|
107 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
|
108 |
<img src="<?php echo $icon; ?>" border="0" alt="" /> |
|
109 |
</a> |
|
110 |
</td> |
|
111 |
<td width="20"> |
|
112 |
<?php if($post['position'] != $num_posts) { ?> |
|
113 |
<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>"> |
|
114 |
<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" /> |
|
115 |
</a> |
|
116 |
<?php } ?> |
|
117 |
</td> |
|
118 |
<td width="20"> |
|
119 |
<?php if($post['position'] != 1) { ?> |
|
120 |
<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>"> |
|
121 |
<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" /> |
|
122 |
</a> |
|
123 |
<?php } ?> |
|
124 |
</td> |
|
125 |
<td width="20"> |
|
126 |
<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>');" title="<?php echo $TEXT['DELETE']; ?>"> |
|
127 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" /> |
|
128 |
</a> |
|
129 |
</td> |
|
130 |
</tr> |
|
131 |
<?php |
|
132 |
// Alternate row color |
|
133 |
if($row == 'a') { |
|
134 |
$row = 'b'; |
|
135 |
} else { |
|
136 |
$row = 'a'; |
|
137 |
} |
|
138 |
} |
|
139 |
?> |
|
140 |
</table> |
|
141 |
<?php |
|
142 |
} else { |
|
143 |
echo $TEXT['NONE_FOUND']; |
|
144 |
} |
|
145 |
|
|
146 |
?> |
|
147 |
|
|
148 |
<h2><?php echo $TEXT['MODIFY'].'/'.$TEXT['DELETE'].' '.$TEXT['GROUP']; ?></h2> |
|
149 |
|
|
150 |
<?php |
|
151 |
|
|
152 |
// Loop through existing groups |
|
153 |
$query_groups = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_news_groups` WHERE section_id = '$section_id' ORDER BY position ASC"); |
|
154 |
if($query_groups->numRows() > 0) { |
|
155 |
$num_groups = $query_groups->numRows(); |
|
156 |
$row = 'a'; |
|
157 |
?> |
|
158 |
<table cellpadding="2" cellspacing="0" border="0" width="100%"> |
|
159 |
<?php |
|
160 |
while($group = $query_groups->fetchRow()) { |
|
161 |
$gid = $admin->getIDKEY($group['group_id']); |
|
162 |
?> |
|
163 |
<tr class="row_<?php echo $row; ?>"> |
|
164 |
<td width="20" style="padding-left: 5px;"> |
|
165 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
|
166 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " /> |
|
167 |
</a> |
|
168 |
</td> |
|
169 |
<td> |
|
170 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>"> |
|
171 |
<?php echo $group['title']; ?> |
|
172 |
</a> |
|
173 |
</td> |
|
174 |
<td width="80"> |
|
175 |
<?php echo $TEXT['ACTIVE'].': '; if($group['active'] == 1) { echo $TEXT['YES']; } else { echo $TEXT['NO']; } ?> |
|
176 |
</td> |
|
177 |
<td width="20"> |
|
178 |
<?php if($group['position'] != 1) { ?> |
|
179 |
<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>"> |
|
180 |
<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" /> |
|
181 |
</a> |
|
182 |
<?php } ?> |
|
183 |
</td> |
|
184 |
<td width="20"> |
|
185 |
<?php if($group['position'] != $num_groups) { ?> |
|
186 |
<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>"> |
|
187 |
<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" /> |
|
188 |
</a> |
|
189 |
<?php } ?> |
|
190 |
</td> |
|
191 |
<td width="20"> |
|
192 |
<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>');" title="<?php echo $TEXT['DELETE']; ?>"> |
|
193 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" /> |
|
194 |
</a> |
|
195 |
</td> |
|
196 |
</tr> |
|
197 |
<?php |
|
198 |
// Alternate row color |
|
199 |
if($row == 'a') { |
|
200 |
$row = 'b'; |
|
201 |
} else { |
|
202 |
$row = 'a'; |
|
203 |
} |
|
204 |
} |
|
205 |
?> |
|
206 |
</table> |
|
207 |
<?php |
|
208 |
} else { |
|
209 |
echo $TEXT['NONE_FOUND']; |
|
210 |
} |
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category modules |
|
5 |
* @package news |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.8.x |
|
12 |
* @requirements PHP 5.2.2 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 |
* |
|
17 |
*/ |
|
18 |
|
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(!defined('WB_PATH')) { exit("Cannot access this file directly"); } |
|
21 |
|
|
22 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
23 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
24 |
|
|
25 |
//overwrite php.ini on Apache servers for valid SESSION ID Separator |
|
26 |
if(function_exists('ini_set')) { |
|
27 |
ini_set('arg_separator.output', '&'); |
|
28 |
} |
|
29 |
|
|
30 |
?> |
|
31 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
|
32 |
<tr> |
|
33 |
<td align="left" width="33%"> |
|
34 |
<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['POST']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" /> |
|
35 |
</td> |
|
36 |
<td align="left" width="33%"> |
|
37 |
<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['GROUP']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" /> |
|
38 |
</td> |
|
39 |
<td align="right" width="33%"> |
|
40 |
<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/modify_settings.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" /> |
|
41 |
</td> |
|
42 |
</tr> |
|
43 |
</table> |
|
44 |
|
|
45 |
<br /> |
|
46 |
|
|
47 |
<h2><?php echo $TEXT['MODIFY'].'/'.$TEXT['DELETE'].' '.$TEXT['POST']; ?></h2> |
|
48 |
|
|
49 |
<?php |
|
50 |
|
|
51 |
// Loop through existing posts |
|
52 |
$query_posts = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_news_posts` WHERE section_id = '$section_id' ORDER BY position DESC"); |
|
53 |
if($query_posts->numRows() > 0) { |
|
54 |
$num_posts = $query_posts->numRows(); |
|
55 |
$row = 'a'; |
|
56 |
?> |
|
57 |
<table cellpadding="2" cellspacing="0" border="0" width="100%"> |
|
58 |
<?php |
|
59 |
while($post = $query_posts->fetchRow()) { |
|
60 |
$pid = $admin->getIDKEY($post['post_id']); |
|
61 |
?> |
|
62 |
<tr class="row_<?php echo $row; ?>"> |
|
63 |
<td width="20" style="padding-left: 5px;"> |
|
64 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
|
65 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " /> |
|
66 |
</a> |
|
67 |
</td> |
|
68 |
<td> |
|
69 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>"> |
|
70 |
<?php echo ($post['title']); ?> |
|
71 |
</a> |
|
72 |
</td> |
|
73 |
<td width="180"> |
|
74 |
<?php echo $TEXT['GROUP'].': '; |
|
75 |
// Get group title |
|
76 |
$query_title = $database->query("SELECT title FROM ".TABLE_PREFIX."mod_news_groups WHERE group_id = '".$post['group_id']."'"); |
|
77 |
if($query_title->numRows() > 0) { |
|
78 |
$fetch_title = $query_title->fetchRow(); |
|
79 |
echo ($fetch_title['title']); |
|
80 |
} else { |
|
81 |
echo $TEXT['NONE']; |
|
82 |
} |
|
83 |
?> |
|
84 |
</td> |
|
85 |
<td width="120"> |
|
86 |
<?php echo $TEXT['COMMENTS'].': '; |
|
87 |
// Get number of comments |
|
88 |
$query_title = $database->query("SELECT title FROM ".TABLE_PREFIX."mod_news_comments WHERE post_id = '".$post['post_id']."'"); |
|
89 |
echo $query_title->numRows(); |
|
90 |
?> |
|
91 |
</td> |
|
92 |
<td width="80"> |
|
93 |
<?php echo $TEXT['ACTIVE'].': '; if($post['active'] == 1) { echo $TEXT['YES']; } else { echo $TEXT['NO']; } ?> |
|
94 |
</td> |
|
95 |
<td width="20"> |
|
96 |
<?php |
|
97 |
$start = $post['published_when']; |
|
98 |
$end = $post['published_until']; |
|
99 |
$t = time(); |
|
100 |
$icon = ''; |
|
101 |
if($start<=$t && $end==0) |
|
102 |
$icon=THEME_URL.'/images/noclock_16.png'; |
|
103 |
elseif(($start<=$t || $start==0) && $end>=$t) |
|
104 |
$icon=THEME_URL.'/images/clock_16.png'; |
|
105 |
else |
|
106 |
$icon=THEME_URL.'/images/clock_red_16.png'; |
|
107 |
?> |
|
108 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
|
109 |
<img src="<?php echo $icon; ?>" border="0" alt="" /> |
|
110 |
</a> |
|
111 |
</td> |
|
112 |
<td width="20"> |
|
113 |
<?php if($post['position'] != $num_posts) { ?> |
|
114 |
<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>"> |
|
115 |
<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" /> |
|
116 |
</a> |
|
117 |
<?php } ?> |
|
118 |
</td> |
|
119 |
<td width="20"> |
|
120 |
<?php if($post['position'] != 1) { ?> |
|
121 |
<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>"> |
|
122 |
<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" /> |
|
123 |
</a> |
|
124 |
<?php } ?> |
|
125 |
</td> |
|
126 |
<td width="20"> |
|
127 |
<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>');" title="<?php echo $TEXT['DELETE']; ?>"> |
|
128 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" /> |
|
129 |
</a> |
|
130 |
</td> |
|
131 |
</tr> |
|
132 |
<?php |
|
133 |
// Alternate row color |
|
134 |
if($row == 'a') { |
|
135 |
$row = 'b'; |
|
136 |
} else { |
|
137 |
$row = 'a'; |
|
138 |
} |
|
139 |
} |
|
140 |
?> |
|
141 |
</table> |
|
142 |
<?php |
|
143 |
} else { |
|
144 |
echo $TEXT['NONE_FOUND']; |
|
145 |
} |
|
146 |
|
|
147 |
?> |
|
148 |
|
|
149 |
<h2><?php echo $TEXT['MODIFY'].'/'.$TEXT['DELETE'].' '.$TEXT['GROUP']; ?></h2> |
|
150 |
|
|
151 |
<?php |
|
152 |
|
|
153 |
// Loop through existing groups |
|
154 |
$query_groups = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_news_groups` WHERE section_id = '$section_id' ORDER BY position ASC"); |
|
155 |
if($query_groups->numRows() > 0) { |
|
156 |
$num_groups = $query_groups->numRows(); |
|
157 |
$row = 'a'; |
|
158 |
?> |
|
159 |
<table cellpadding="2" cellspacing="0" border="0" width="100%"> |
|
160 |
<?php |
|
161 |
while($group = $query_groups->fetchRow()) { |
|
162 |
$gid = $admin->getIDKEY($group['group_id']); |
|
163 |
?> |
|
164 |
<tr class="row_<?php echo $row; ?>"> |
|
165 |
<td width="20" style="padding-left: 5px;"> |
|
166 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
|
167 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " /> |
|
168 |
</a> |
|
169 |
</td> |
|
170 |
<td> |
|
171 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>"> |
|
172 |
<?php echo $group['title']; ?> |
|
173 |
</a> |
|
174 |
</td> |
|
175 |
<td width="80"> |
|
176 |
<?php echo $TEXT['ACTIVE'].': '; if($group['active'] == 1) { echo $TEXT['YES']; } else { echo $TEXT['NO']; } ?> |
|
177 |
</td> |
|
178 |
<td width="20"> |
|
179 |
<?php if($group['position'] != 1) { ?> |
|
180 |
<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>"> |
|
181 |
<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" /> |
|
182 |
</a> |
|
183 |
<?php } ?> |
|
184 |
</td> |
|
185 |
<td width="20"> |
|
186 |
<?php if($group['position'] != $num_groups) { ?> |
|
187 |
<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>"> |
|
188 |
<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" /> |
|
189 |
</a> |
|
190 |
<?php } ?> |
|
191 |
</td> |
|
192 |
<td width="20"> |
|
193 |
<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>');" title="<?php echo $TEXT['DELETE']; ?>"> |
|
194 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" /> |
|
195 |
</a> |
|
196 |
</td> |
|
197 |
</tr> |
|
198 |
<?php |
|
199 |
// Alternate row color |
|
200 |
if($row == 'a') { |
|
201 |
$row = 'b'; |
|
202 |
} else { |
|
203 |
$row = 'a'; |
|
204 |
} |
|
205 |
} |
|
206 |
?> |
|
207 |
</table> |
|
208 |
<?php |
|
209 |
} else { |
|
210 |
echo $TEXT['NONE_FOUND']; |
|
211 |
} |
|
211 | 212 |
?> |
Also available in: Unified diff
redefined wrong admin backlinks