Revision 952
Added by Matthias over 15 years ago
index.php | ||
---|---|---|
213 | 213 |
<?php } ?> |
214 | 214 |
</td> |
215 | 215 |
<!-- MANAGE SECTIONS AND DATES BUTTONS --> |
216 |
|
|
217 |
<!-- 'MANAGE SECTIONS' BUTTON --> |
|
218 | 216 |
<td width="20"> |
219 |
<?php |
|
220 |
// Work-out if we should show the "manage sections" link |
|
221 |
$query_sections = $database->query("SELECT section_id FROM ".TABLE_PREFIX."sections WHERE page_id = '" . $page['page_id'] . "' AND module = 'menu_link'"); |
|
222 |
if(($query_sections->numRows() == 0) && (MANAGE_SECTIONS == 'enabled')) { |
|
223 |
?> |
|
224 |
<a href="<?php echo ADMIN_URL; ?>/pages/sections.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $HEADING['MANAGE_SECTIONS']; ?>"> |
|
225 |
<img src="<?php echo THEME_URL; ?>/images/sections_16.png" border="0" alt="<?php echo $HEADING['MANAGE_SECTIONS']; ?>" /> |
|
226 |
</a> |
|
227 |
<?php } ?> |
|
228 |
</td> |
|
229 |
|
|
230 |
<td width="20"> |
|
231 | 217 |
<?php |
232 | 218 |
// Work-out if we should show the "manage dates" link |
233 | 219 |
if(MANAGE_SECTIONS == 'enabled' && $admin->get_permission('pages_modify')==true && $can_modify==true) { |
Also available in: Unified diff
fixed manage section is showed twice (ticket #694)