add(ERROR_REMOVE_DEFAULT_LANGUAGE, 'error'); } break; } } ?> > <?php echo TITLE; ?>
'' . TEXT_INFO_HEADING_NEW_LANGUAGE . ''); $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'action=insert')); $contents[] = array('text' => TEXT_INFO_INSERT_INTRO); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_NAME . '
' . tep_draw_input_field('name')); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_CODE . '
' . tep_draw_input_field('code')); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_IMAGE . '
' . tep_draw_input_field('image', 'icon.gif')); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_DIRECTORY . '
' . tep_draw_input_field('directory')); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_SORT_ORDER . '
' . tep_draw_input_field('sort_order')); $contents[] = array('text' => '
' . tep_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'edit': $heading[] = array('text' => '' . TEXT_INFO_HEADING_EDIT_LANGUAGE . ''); $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_NAME . '
' . tep_draw_input_field('name', $lInfo->name)); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_CODE . '
' . tep_draw_input_field('code', $lInfo->code)); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_IMAGE . '
' . tep_draw_input_field('image', $lInfo->image)); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_DIRECTORY . '
' . tep_draw_input_field('directory', $lInfo->directory)); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_SORT_ORDER . '
' . tep_draw_input_field('sort_order', $lInfo->sort_order)); if (DEFAULT_LANGUAGE != $lInfo->code) $contents[] = array('text' => '
' . tep_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'delete': $heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_LANGUAGE . ''); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '
' . $lInfo->name . ''); $contents[] = array('align' => 'center', 'text' => '
' . (($remove_language) ? '' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '' : '') . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; default: if (is_object($lInfo)) { $heading[] = array('text' => '' . $lInfo->name . ''); $contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '' . tep_image_button('button_details.gif', IMAGE_DETAILS) . ''); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_NAME . ' ' . $lInfo->name); $contents[] = array('text' => TEXT_INFO_LANGUAGE_CODE . ' ' . $lInfo->code); $contents[] = array('text' => '
' . tep_image(DIR_WS_CATALOG_LANGUAGES . $lInfo->directory . '/images/' . $lInfo->image, $lInfo->name)); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_DIRECTORY . '
' . DIR_WS_CATALOG_LANGUAGES . '' . $lInfo->directory . ''); $contents[] = array('text' => '
' . TEXT_INFO_LANGUAGE_SORT_ORDER . ' ' . $lInfo->sort_order); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' ' . "\n"; } ?>
languages_id) ) { echo ' ' . "\n"; } else { echo ' ' . "\n"; } if (DEFAULT_LANGUAGE == $languages['code']) { echo ' ' . "\n"; } else { echo ' ' . "\n"; } ?>
 
' . $languages['name'] . ' (' . TEXT_DEFAULT . ')' . $languages['name'] . ' languages_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> 
display_count($languages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_LANGUAGES); ?> display_links($languages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?>
languages_id . '&action=new') . '">' . tep_image_button('button_new_language.gif', IMAGE_NEW_LANGUAGE) . ''; ?>
' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo '