?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('zone_name'); ?> </div> <div class="infoBoxContent"> <form name="zDelete" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . (int) $_GET[$osC_Template->getModule()] . '&zID=' . $osC_ObjectInfo->getInt('zone_id') . '&action=zone_delete'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_delete_zone'); ?> </p> <p><?php echo '<b>' . $osC_ObjectInfo->getProtected('zone_name') . '</b>'; ?> </p> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_delete') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . (int) $_GET[$osC_Template->getModule()]) . '\';" class="operationButton" />'; ?> </p> </form>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->getProtected('categories_name'); ?> </div> <div class="infoBoxContent"> <form name="cEdit" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&cID=' . $osC_ObjectInfo->getInt('categories_id') . '&action=save'); ?> " method="post" enctype="multipart/form-data"> <p><?php echo $osC_Language->get('introduction_edit_category'); ?> </p> <fieldset> <div><label><?php echo $osC_Language->get('field_name'); ?> </label> <?php
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('tax_class_title'); ?> </div> <div class="infoBoxContent"> <form name="tcDelete" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&tcID=' . $osC_ObjectInfo->getInt('tax_class_id') . '&action=delete'); ?> " method="post"> <?php if (osC_TaxClasses_Admin::hasProducts($osC_ObjectInfo->getInt('tax_class_id'))) { ?> <p><?php echo '<b>' . sprintf($osC_Language->get('delete_warning_tax_class_in_use'), osC_TaxClasses_Admin::getNumberOfProducts($osC_ObjectInfo->getInt('tax_class_id'))) . '</b>'; ?> </p> <p align="center"><?php echo '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()) . '\';" class="operationButton" />'; ?>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('products_name'); ?> </div> <div class="infoBoxContent"> <form name="pDelete" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $osC_ObjectInfo->getInt('products_id') . '&cID=' . $_GET['cID'] . '&action=delete'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_delete_product'); ?> </p> <p><?php echo '<b>' . $osC_ObjectInfo->getProtected('products_name') . '</b>'; ?> </p> <p><?php echo osc_draw_checkbox_field('product_categories[]', $categories_array, true, null, '<br />');
$Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2009 osCommerce This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ $osC_ObjectInfo = new osC_ObjectInfo(osC_Products_Admin::get($_GET[$osC_Template->getModule()])); $in_categories = array(); $Qcategories = $osC_Database->query('select categories_id from :table_products_to_categories where products_id = :products_id'); $Qcategories->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES); $Qcategories->bindInt(':products_id', $osC_ObjectInfo->getInt('products_id')); $Qcategories->execute(); while ($Qcategories->next()) { $in_categories[] = $Qcategories->valueInt('categories_id'); } $in_categories_path = ''; foreach ($in_categories as $category_id) { $in_categories_path .= $osC_CategoryTree->getPath($category_id, 0, ' » ') . '<br />'; } if (!empty($in_categories_path)) { $in_categories_path = substr($in_categories_path, 0, -6); } $categories_array = array(array('id' => '0', 'text' => $osC_Language->get('top_category'))); foreach ($osC_CategoryTree->getArray() as $value) { $categories_array[] = array('id' => $value['id'], 'text' => $value['title']); }
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->getProtected('title'); ?> </div> <div class="infoBoxContent"> <form name="paeEdit" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&paeID=' . $osC_ObjectInfo->getInt('id') . '&action=saveEntry'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_edit_group_entry'); ?> </p> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="40%" valign="top"><?php echo '<b>' . $osC_Language->get('field_group_entry_name') . '</b>'; ?> </td> <td width="60%">
function toggleEditor(id) { if ( !tinyMCE.get(id) ) { tinyMCE.execCommand('mceAddControl', false, id); } else { tinyMCE.execCommand('mceRemoveControl', false, id); } } </script> <?php if (is_numeric($_GET[$osC_Template->getModule()])) { $osC_ObjectInfo = new osC_ObjectInfo(osC_Products_Admin::get($_GET[$osC_Template->getModule()])); $attributes = $osC_ObjectInfo->get('attributes'); $Qpd = $osC_Database->query('select products_name, products_description, products_keyword, products_tags, products_url, language_id from :table_products_description where products_id = :products_id'); $Qpd->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION); $Qpd->bindInt(':products_id', $osC_ObjectInfo->getInt('products_id')); $Qpd->execute(); $products_name = array(); $products_description = array(); $products_keyword = array(); $products_tags = array(); $products_url = array(); while ($Qpd->next()) { $products_name[$Qpd->valueInt('language_id')] = $Qpd->value('products_name'); $products_description[$Qpd->valueInt('language_id')] = $Qpd->value('products_description'); $products_keyword[$Qpd->valueInt('language_id')] = $Qpd->value('products_keyword'); $products_tags[$Qpd->valueInt('language_id')] = $Qpd->value('products_tags'); $products_url[$Qpd->valueInt('language_id')] = $Qpd->value('products_url'); } } $Qtc = $osC_Database->query('select tax_class_id, tax_class_title from :table_tax_class order by tax_class_title');
</h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('title'); ?> </div> <div class="infoBoxContent"> <form name="cDelete" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&cID=' . $osC_ObjectInfo->getInt('currencies_id') . '&action=delete'); ?> " method="post"> <?php if ($osC_ObjectInfo->get('code') == DEFAULT_CURRENCY) { ?> <p><?php echo '<b>' . $osC_Language->get('introduction_delete_currency_invalid') . '</b>'; ?> </p> <p align="center"><?php echo '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()) . '\';" class="operationButton" />'; ?>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->getProtected('products_name'); ?> </div> <div class="infoBoxContent"> <form name="pEdit" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&pID=' . $osC_ObjectInfo->getInt('products_id') . '&action=save'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_edit_product_expected'); ?> </p> <p><?php echo $osC_Language->get('field_date_expected') . '<br />' . osc_draw_input_field('products_date_available', $osC_ObjectInfo->get('products_date_available')); ?> </p> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" />';
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('move.png') . ' ' . $osC_ObjectInfo->getProtected('categories_name'); ?> </div> <div class="infoBoxContent"> <form name="cMove" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&cID=' . $osC_ObjectInfo->getInt('categories_id') . '&action=move'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_move_category'); ?> </p> <fieldset> <div><label for="new_category_id"><?php echo $osC_Language->get('field_parent_category'); ?> </label><?php echo osc_draw_pull_down_menu('new_category_id', $categories_array, $osC_ObjectInfo->getInt('parent_id')); ?>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('countries_name'); ?> </div> <div class="infoBoxContent"> <form name="cDelete" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&cID=' . $osC_ObjectInfo->getInt('countries_id') . '&action=delete'); ?> " method="post"> <?php $can_be_deleted = true; $Qcheck = $osC_Database->query('select count(*) as total from :table_address_book where entry_country_id = :entry_country_id'); $Qcheck->bindTable(':table_address_book', TABLE_ADDRESS_BOOK); $Qcheck->bindInt(':entry_country_id', $osC_ObjectInfo->getInt('countries_id')); $Qcheck->execute(); if ($Qcheck->valueInt('total') > 0) { $can_be_deleted = false; echo '<p><b>' . sprintf($osC_Language->get('delete_warning_country_in_use_address_book'), $Qcheck->valueInt('total')) . '</b></p>' . "\n"; } $Qcheck = $osC_Database->query('select count(*) as total from :table_zones_to_geo_zones where zone_country_id = :zone_country_id'); $Qcheck->bindTable(':table_zones_to_geo_zones', TABLE_ZONES_TO_GEO_ZONES);
/* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2009 osCommerce This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ $osC_ObjectInfo = new osC_ObjectInfo(osC_Languages_Admin::get($_GET['lID'])); $groups_array = array(); foreach (osc_toObjectInfo(osC_Languages_Admin::getDefinitionGroups($osC_ObjectInfo->getInt('languages_id')))->get('entries') as $group) { $groups_array[] = array('id' => $group['content_group'], 'text' => $group['content_group']); } ?> <h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?>
</h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBox"> <h3><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('title'); ?> </h3> <form name="tDelete" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&tID=' . $osC_ObjectInfo->getInt('id') . '&action=delete'); ?> " method="post"> <?php if ($osC_ObjectInfo->getInt('total_products') > 0) { ?> <p><?php echo '<b>' . sprintf(OSCOM::getDef('delete_error_product_type_in_use'), $osC_ObjectInfo->getInt('total_products')) . '</b>'; ?> </p> <p><?php echo osc_draw_button(array('href' => osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->getProtected('tax_class_title'); ?> </div> <div class="infoBoxContent"> <form name="tcEdit" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&tcID=' . $osC_ObjectInfo->getInt('tax_class_id') . '&action=save'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_edit_tax_class'); ?> </p> <fieldset> <div><label for="tax_class_title"><?php echo $osC_Language->get('field_title'); ?> </label><?php echo osc_draw_input_field('tax_class_title', $osC_ObjectInfo->get('tax_class_title')); ?>
echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('title'); ?> </div> <div class="infoBoxContent"> <form name="paeDelete" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&paeID=' . $osC_ObjectInfo->get('id') . '&action=deleteEntry'); ?> " method="post"> <?php if ($osC_ObjectInfo->getInt('total_products') > 0) { ?> <p><?php echo '<b>' . sprintf($osC_Language->get('delete_error_group_entry_in_use'), $osC_ObjectInfo->getInt('total_products')) . '</b>'; ?> </p> <p align="center"><?php echo '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page']) . '\';" class="operationButton" />'; ?> </p> <?php } else { ?>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('countries_name') . ': ' . $osC_ObjectInfo->getProtected('zone_name'); ?> </div> <div class="infoBoxContent"> <form name="zeDelete" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&zeID=' . $osC_ObjectInfo->getInt('association_id') . '&action=entry_delete'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_delete_zone_entry'); ?> </p> <p><?php echo '<b>' . $osC_ObjectInfo->getProtected('countries_name') . ': ' . $osC_ObjectInfo->getProtected('zone_name') . '</b>'; ?> </p> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_delete') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()]) . '\';" class="operationButton" />';
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->getProtected('tax_class_title') . ': ' . $osC_ObjectInfo->getProtected('geo_zone_name'); ?> </div> <div class="infoBoxContent"> <form name="trEdit" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&trID=' . $osC_ObjectInfo->getInt('tax_rates_id') . '&action=entry_save'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_edit_tax_rate'); ?> </p> <fieldset> <div><label for="tax_zone_id"><?php echo $osC_Language->get('field_tax_rate_zone_group'); ?> </label><?php echo osc_draw_pull_down_menu('tax_zone_id', $zones_array, $osC_ObjectInfo->getInt('geo_zone_id')); ?>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->getProtected('geo_zone_name'); ?> </div> <div class="infoBoxContent"> <form name="zEdit" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&zID=' . $osC_ObjectInfo->getInt('geo_zone_id') . '&action=save'); ?> " method="post"> <p><?php echo $osC_Language->get('introduction_edit_zone_group'); ?> </p> <fieldset> <div><label for="zone_name"><?php echo $osC_Language->get('field_name'); ?> </label><?php echo osc_draw_input_field('zone_name', $osC_ObjectInfo->get('geo_zone_name')); ?>
?> </h1> <?php if ($osC_MessageStack->exists($osC_Template->getModule())) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_ObjectInfo->getProtected('geo_zone_name'); ?> </div> <div class="infoBoxContent"> <form name="zDelete" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&zID=' . $osC_ObjectInfo->getInt('geo_zone_id') . '&action=delete'); ?> " method="post"> <?php if (osC_ZoneGroups_Admin::hasTaxRate($osC_ObjectInfo->getInt('geo_zone_id'))) { ?> <p><?php echo '<b>' . sprintf($osC_Language->get('delete_warning_group_in_use_tax_rate'), osC_ZoneGroups_Admin::numberOfTaxRates($osC_ObjectInfo->getInt('geo_zone_id'))) . '</b>'; ?> </p> <p align="center"><?php echo '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()) . '\';" class="operationButton" />'; ?>