Revision 552
Added by thorn almost 18 years ago
| index.php | ||
|---|---|---|
| 250 | 250 |
<?php } ?> |
| 251 | 251 |
</td> |
| 252 | 252 |
|
| 253 |
|
|
| 253 |
<!-- 'MANAGE DATES' BUTTON --> |
|
| 254 | 254 |
<td width="20"> |
| 255 |
<?php |
|
| 256 |
// Work-out if we should show the "manage dates" link |
|
| 257 |
if(MANAGE_SECTIONS == 'enabled' && $admin->get_permission('pages_modify')==true && $can_modify==true) {
|
|
| 258 |
$query_sections = $database->query("SELECT publ_start, publ_end FROM ".TABLE_PREFIX."sections WHERE page_id = '{$page['page_id']}' AND module != 'menu_link'");
|
|
| 259 |
if($query_sections->numRows() > 0) {
|
|
| 260 |
$mdate_display=false; |
|
| 261 |
while($mdate_res = $query_sections->fetchRow()) {
|
|
| 262 |
if($mdate_res['publ_start']!='0' || $mdate_res['publ_end']!='0') {
|
|
| 263 |
$mdate_display=true; |
|
| 264 |
break; |
|
| 265 |
} |
|
| 266 |
} |
|
| 267 |
if($mdate_display==1) {
|
|
| 268 |
$file=$admin->page_is_active($page)?"clock_16.png":"clock_red_16.png"; |
|
| 269 |
?> |
|
| 270 |
<a href="<?php echo ADMIN_URL; ?>/pages/sections.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $HEADING['MANAGE_SECTIONS']; ?>"> |
|
| 271 |
<img src="<?php echo ADMIN_URL."/images/$file"; ?>" border="0" alt="<?php echo $HEADING['MANAGE_SECTIONS']; ?>" /> |
|
| 272 |
</a> |
|
| 273 |
<?php } else { ?>
|
|
| 274 |
<img src="<?php echo ADMIN_URL; ?>/images/noclock_16.png" border="0" alt="<?php echo $HEADING['MANAGE_SECTIONS']; ?>" /> |
|
| 275 |
<?php } ?> |
|
| 276 |
<?php } ?> |
|
| 277 |
<?php } ?> |
|
| 278 |
</td> |
|
| 279 |
<td width="20"> |
|
| 255 | 280 |
<?php if($page['position'] != 1) { ?>
|
| 256 | 281 |
<?php if($page['visibility'] != 'deleted') { ?>
|
| 257 | 282 |
<?php if($admin->get_permission('pages_settings') == true AND $can_modify == true) { ?>
|
| ... | ... | |
| 592 | 617 |
// Print admin |
| 593 | 618 |
$admin->print_footer(); |
| 594 | 619 |
|
| 595 |
?> |
|
| 620 |
?> |
|
Also available in: Unified diff
added new module-based search-function and publish-by-date code