28 |
28 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts WHERE page_id = '$page_id' and section_id = '$section_id' and title=''");
|
29 |
29 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups WHERE page_id = '$page_id' and section_id = '$section_id' and title=''");
|
30 |
30 |
|
|
31 |
//overwrite php.ini on Apache servers for valid SESSION ID Separator
|
|
32 |
if(function_exists('ini_set')) {
|
|
33 |
ini_set('arg_separator.output', '&');
|
|
34 |
}
|
|
35 |
|
31 |
36 |
?>
|
32 |
37 |
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
33 |
38 |
<tr>
|
34 |
39 |
<td align="left" width="33%">
|
35 |
|
<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; ?>§ion_id=<?php echo $section_id; ?>';" style="width: 100%;" />
|
|
40 |
<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%;" />
|
36 |
41 |
</td>
|
37 |
42 |
<td align="left" width="33%">
|
38 |
|
<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; ?>§ion_id=<?php echo $section_id; ?>';" style="width: 100%;" />
|
|
43 |
<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%;" />
|
39 |
44 |
</td>
|
40 |
45 |
<td align="right" width="33%">
|
41 |
|
<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; ?>§ion_id=<?php echo $section_id; ?>';" style="width: 100%;" />
|
|
46 |
<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%;" />
|
42 |
47 |
</td>
|
43 |
48 |
</tr>
|
44 |
49 |
</table>
|
... | ... | |
61 |
66 |
?>
|
62 |
67 |
<tr class="row_<?php echo $row; ?>">
|
63 |
68 |
<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; ?>§ion_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
|
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 $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
65 |
70 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " />
|
66 |
71 |
</a>
|
67 |
72 |
</td>
|
68 |
73 |
<td>
|
69 |
|
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>">
|
|
74 |
<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 $post['post_id']; ?>">
|
70 |
75 |
<?php echo ($post['title']); ?>
|
71 |
76 |
</a>
|
72 |
77 |
</td>
|
... | ... | |
105 |
110 |
else
|
106 |
111 |
$icon=THEME_URL.'/images/clock_red_16.png';
|
107 |
112 |
?>
|
108 |
|
<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
|
113 |
<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 $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
109 |
114 |
<img src="<?php echo $icon; ?>" border="0" alt="" />
|
110 |
115 |
</a>
|
111 |
116 |
</td>
|
112 |
117 |
<td width="20">
|
113 |
118 |
<?php if($post['position'] != $num_posts) { ?>
|
114 |
|
<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
|
|
119 |
<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 $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
|
115 |
120 |
<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" />
|
116 |
121 |
</a>
|
117 |
122 |
<?php } ?>
|
118 |
123 |
</td>
|
119 |
124 |
<td width="20">
|
120 |
125 |
<?php if($post['position'] != 1) { ?>
|
121 |
|
<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
|
|
126 |
<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 $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
|
122 |
127 |
<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" />
|
123 |
128 |
</a>
|
124 |
129 |
<?php } ?>
|
125 |
130 |
</td>
|
126 |
131 |
<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; ?>§ion_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
|
132 |
<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 $post['post_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
128 |
133 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
|
129 |
134 |
</a>
|
130 |
135 |
</td>
|
... | ... | |
162 |
167 |
?>
|
163 |
168 |
<tr class="row_<?php echo $row; ?>">
|
164 |
169 |
<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; ?>§ion_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
|
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 $group['group_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
166 |
171 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " />
|
167 |
172 |
</a>
|
168 |
173 |
</td>
|
169 |
174 |
<td>
|
170 |
|
<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>">
|
|
175 |
<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 $group['group_id']; ?>">
|
171 |
176 |
<?php echo $group['title']; ?>
|
172 |
177 |
</a>
|
173 |
178 |
</td>
|
... | ... | |
176 |
181 |
</td>
|
177 |
182 |
<td width="20">
|
178 |
183 |
<?php if($group['position'] != 1) { ?>
|
179 |
|
<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
|
|
184 |
<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 $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
|
180 |
185 |
<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" />
|
181 |
186 |
</a>
|
182 |
187 |
<?php } ?>
|
183 |
188 |
</td>
|
184 |
189 |
<td width="20">
|
185 |
190 |
<?php if($group['position'] != $num_groups) { ?>
|
186 |
|
<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
|
|
191 |
<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 $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
|
187 |
192 |
<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" />
|
188 |
193 |
</a>
|
189 |
194 |
<?php } ?>
|
190 |
195 |
</td>
|
191 |
196 |
<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; ?>&group_id=<?php echo $group['group_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
|
197 |
<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; ?>&group_id=<?php echo $group['group_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
193 |
198 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
|
194 |
199 |
</a>
|
195 |
200 |
</td>
|
- Again added some & to news and form to get more valid output (Thanks to Luisehahne)
-Fixed wrong set </form> tag to get valid output (Thanks to Luisehahne)