|
|
'',
'pages_html_text' => '',
'sort_order' =>'',
'status' =>'');
$bInfo = new objectInfo($parameters);
if (isset($_GET['bID'])) {
$form_action = 'update';
$bID = tep_db_prepare_input($_GET['bID']);
$page_query = tep_db_query("select
s.status,
s.sort_order,
s.page_type,
p.pages_title,
p.pages_html_text,
p.intorext,
p.externallink,
p.link_target,
p.language_id
from
" . TABLE_PAGES . " s left join " . TABLE_PAGES_DESCRIPTION . " p on s.pages_id=p.pages_id
where
s.pages_id = '" . (int)$bID . "'");
# $page = tep_db_fetch_array($page_query);
# $bInfo->objectInfo($page);
#while($bInfo->objectInfo($page)) {
#
#$pagetitle[$bInfo->language_id]= $bInfo->pages_title;
#
#echo $bInfo->pages_title;
#
#}
while($page = tep_db_fetch_array($page_query)) {
$languageid=$page['language_id'];
$page_type=$page['page_type'];
$pagetitle[$languageid]= $page['pages_title'];
$sortorder=$page['sort_order'];
$pages_html_text[$languageid]=$page['pages_html_text'];
$intorext[$languageid]=$page['intorext'];
$externallink[$languageid]=$page['externallink'];
$link_target[$languageid]=$page['link_target'];
}
} elseif (tep_not_null($_POST)) {
$bInfo->objectInfo($_POST);
}
$bIDif="";
if(!empty($bID) && $bID != "") {
$bIDif='&bID='.$bID;
}
?>
|
|
|
| '; ?> |
' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '' ?> |
|
|
|
|
|
|
|
VDFIX : suppression du warning avec php5
$bInfo_array = array_merge($pages, (array)$info);
// <- VDFIX
$bInfo = new objectInfo($bInfo_array);
}
if (isset($bInfo) && is_object($bInfo) && ($pages['pages_id'] == $bInfo->pages_id)) {
echo ' ' . "\n";
} else {
echo ' ' . "\n";
}
?>
| ' . tep_image(DIR_WS_IMAGES . 'icon_popup.gif', 'View Page') . ' ' . $pages['pages_title']; ?> |
|
|
' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', 'Set Inactive', 10, 10) . '';
} else {
echo '' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', 'Set Active', 10, 10) . ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', 'Inactive', 10, 10);
}
?> |
|
|
| display_count($pages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PAGES); ?> |
display_links($pages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?> |
| ' . tep_image_button('button_new_file.gif', IMAGE_NEW_PAGE) . ''; ?> |
|
|
'' . $bInfo->pages_title . '');
$contents = array('form' => tep_draw_form('pages', FILENAME_PAGE_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->pages_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => ' ' . $bInfo->pages_title . '');
if ($bInfo->pages_image) $contents[] = array('text' => ' ' . tep_draw_checkbox_field('delete_image', 'on', true) . ' ' . TEXT_INFO_DELETE_IMAGE);
$contents[] = array('align' => 'center', 'text' => ' ' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
break;
default:
if (is_object($bInfo)) {
$heading[] = array('text' => '' . $bInfo->pages_title . '');
$contents[] = array('align' => 'center', 'text' => '
' . tep_image_button('button_edit.gif', IMAGE_EDIT) . ' ' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '
');
if ($bInfo->date_scheduled) $contents[] = array('text' => ' ' . sprintf(TEXT_PAGES_SCHEDULED_AT_DATE, tep_date_short($bInfo->date_scheduled)));
if ($bInfo->expires_date) {
$contents[] = array('text' => ' ' . sprintf(TEXT_PAGES_EXPIRES_AT_DATE, tep_date_short($bInfo->expires_date)));
} elseif ($bInfo->expires_impressions) {
$contents[] = array('text' => ' ' . sprintf(TEXT_PAGES_EXPIRES_AT_IMPRESSIONS, $bInfo->expires_impressions));
}
if ($bInfo->date_status_change) $contents[] = array('text' => ' ' . sprintf(TEXT_PAGES_STATUS_CHANGE, tep_date_short($bInfo->date_status_change)));
}
break;
}
if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' ' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' | ' . "\n";
}
?>
|
|