|
|
|
|
|
|
|
|
|
|
*( 146 x 146px)'." ";
echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ';
echo ($latest_news['image'.$i]) ? '
'.tep_draw_separator('pixel_trans.gif', '24', '15') . ' '. DELETE_TEXT .'' : "";
echo '';
?>
|
|
| : |
|
|
|
|
| =tep_draw_button(IMAGE_INSERT)?> |
=tep_draw_button(IMAGE_CANCEL,'close',tep_href_link(FILENAME_LATEST_NEWS, 'latest_news_id=' . $HTTP_GET_VARS['latest_news_id']))?> |
|
|
|
=tep_draw_form('edit_sort',FILENAME_LATEST_NEWS, 'action=set_order&latest_news_id=' . $_GET['latest_news_id'], 'post');?>
|
|
|
|
' . "\n";
else
echo ' ' . "\n";
} else {
if($_GET['action'] != "sort")
echo ' ' . "\n";
else
echo ' ' . "\n";
}
?>
|
|
' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '';
} else {
echo '' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10);
}
?> |
|
' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
| ' . TEXT_NEWS_ITEMS . ' ' . $latest_news_count; ?> |
|
|
|
'' . TEXT_INFO_HEADING_DELETE_ITEM . '');
$contents = array('form' => tep_draw_form('news', FILENAME_LATEST_NEWS, 'action=delete_latest_news_confirm') . tep_draw_hidden_field('latest_news_id', $HTTP_GET_VARS['latest_news_id']));
$contents[] = array('text' => TEXT_DELETE_ITEM_INTRO);
$contents[] = array('text' => ' ' . $selected_item['headline'] . '');
$contents[] = array('align' => 'center',
'text' => ' ' . tep_draw_button(IMAGE_DELETE) . tep_draw_button(IMAGE_CANCEL,'copy',tep_href_link(FILENAME_LATEST_NEWS, 'latest_news_id=' . $selected_item['news_id'])));
break;
default:
if ($rows > 0) {
if (is_array($selected_item)) { //an item is selected, so make the side box
$heading[] = array('text' => '' . $selected_item['headline'] . '');
$contents[] = array('align' => 'left',
'text' => tep_draw_button(IMAGE_EDIT,'document',tep_href_link(FILENAME_LATEST_NEWS, 'latest_news_id=' . $selected_item['news_id'] . '&action=new_latest_news') ) . tep_draw_button(IMAGE_DELETE,'trash',tep_href_link(FILENAME_LATEST_NEWS, 'latest_news_id=' . $selected_item['news_id'] . '&action=delete_latest_news')));
for ($i=0, $n=sizeof($languages); $i<$n; $i++)
{
if ($i == 0) $newsContents = tep_get_news_content($selected_item['news_id'], $languages[$i]['id']);
}
// $contents[] = array('text' => ' ' . $newsContents);
}
} else { // create category/product info
$heading[] = array('text' => '' . EMPTY_CATEGORY . '');
$contents[] = array('text' => sprintf('', $parent_categories_name));
}
break;
}
if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' ' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' | ' . "\n";
}
?>
|
|