ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/product_free_shipping.php
Go to the documentation of this file.
00001 <?php
00010   require('includes/application_top.php');
00011 
00012   require(DIR_WS_MODULES . 'prod_cat_header_code.php');
00013 
00014   $action = (isset($_GET['action']) ? $_GET['action'] : '');
00015 
00016   if (zen_not_null($action)) {
00017     switch ($action) {
00018       case 'setflag':
00019         if ( ($_GET['flag'] == '0') || ($_GET['flag'] == '1') ) {
00020           if (isset($_GET['pID'])) {
00021             zen_set_product_status($_GET['pID'], $_GET['flag']);
00022           }
00023         }
00024 
00025         zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')));
00026         break;
00027 
00028       case 'delete_product_confirm':
00029         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/delete_product_confirm.php')) {
00030           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/delete_product_confirm.php');
00031          } else {
00032           require(DIR_WS_MODULES . 'delete_product_confirm.php');
00033          }
00034         break;
00035       case 'move_product_confirm':
00036         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/move_product_confirm.php')) {
00037           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/move_product_confirm.php');
00038          } else {
00039           require(DIR_WS_MODULES . 'move_product_confirm.php');
00040          }
00041         break;
00042       case 'insert_product_meta_tags':
00043       case 'update_product_meta_tags':
00044         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product_meta_tags.php')) {
00045           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product_meta_tags.php');
00046          } else {
00047           require(DIR_WS_MODULES . 'update_product_meta_tags.php');
00048          }
00049         break;
00050       case 'insert_product':
00051       case 'update_product':
00052         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product.php')) {
00053           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product.php');
00054          } else {
00055           require(DIR_WS_MODULES . 'update_product.php');
00056          }
00057         break;
00058       case 'copy_to_confirm':
00059         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/copy_to_confirm.php')) {
00060           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/copy_to_confirm.php');
00061          } else {
00062           require(DIR_WS_MODULES . 'copy_to_confirm.php');
00063          }
00064         break;
00065       case 'new_product_preview_meta_tags':
00066         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview_meta_tags.php')) {
00067           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview_meta_tags.php');
00068          } else {
00069           require(DIR_WS_MODULES . 'new_product_preview_meta_tags.php');
00070          }
00071         break;
00072       case 'new_product_preview':
00073         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview.php')) {
00074           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview.php');
00075          } else {
00076           require(DIR_WS_MODULES . 'new_product_preview.php');
00077          }
00078         break;
00079 
00080     }
00081   }
00082 
00083 // check if the catalog image directory exists
00084   if (is_dir(DIR_FS_CATALOG_IMAGES)) {
00085     if (!is_writeable(DIR_FS_CATALOG_IMAGES)) $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error');
00086   } else {
00087     $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error');
00088   }
00089 ?>
00090 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
00091 <html <?php echo HTML_PARAMS; ?>>
00092 <head>
00093 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
00094 <title><?php echo TITLE; ?></title>
00095 <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
00096 <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
00097 <script language="javascript" src="includes/menu.js"></script>
00098 <script language="javascript" src="includes/general.js"></script>
00099 <script type="text/javascript">
00100   <!--
00101   function init()
00102   {
00103     cssjsmenu('navbar');
00104     if (document.getElementById)
00105     {
00106       var kill = document.getElementById('hoverJS');
00107       kill.disabled = true;
00108     }
00109 if (typeof _editor_url == "string") HTMLArea.replaceAll();
00110  }
00111  // -->
00112 </script>
00113 <?php if ($action != 'new_product_meta_tags' && $editor_handler != '') include ($editor_handler); ?>
00114 </head>
00115 <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="init()">
00116 <div id="spiffycalendar" class="text"></div>
00117 <!-- header //-->
00118 <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
00119 <!-- header_eof //-->
00120 
00121 <!-- body //-->
00122 <table border="0" width="100%" cellspacing="2" cellpadding="2">
00123   <tr>
00124 <!-- body_text //-->
00125     <td width="100%" valign="top">
00126 <?php
00127   if ($action == 'new_product' or $action == 'new_product_meta_tags') {
00128 
00129     if ($action == 'new_product_meta_tags') {
00130       require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/collect_info_metatags.php');
00131     } else {
00132       require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/collect_info.php');
00133     }
00134 
00135   } elseif ($action == 'new_product_preview' or $action == 'new_product_preview_meta_tags') {
00136     if ($action == 'new_product_preview_meta_tags') {
00137       require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/preview_info_meta_tags.php');
00138     } else {
00139       require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/preview_info.php');
00140     }
00141 
00142   } else {
00143 
00144   require(DIR_WS_MODULES . 'category_product_listing.php');
00145 
00146     $heading = array();
00147     $contents = array();
00148     switch ($action) {
00149       case 'new_category':
00150         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_CATEGORY . '</b>');
00151 
00152         $contents = array('form' => zen_draw_form('newcategory', FILENAME_CATEGORIES, 'action=insert_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"'));
00153         $contents[] = array('text' => TEXT_NEW_CATEGORY_INTRO);
00154 
00155         $category_inputs_string = '';
00156         $languages = zen_get_languages();
00157         for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
00158           $category_inputs_string .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . zen_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', '', zen_set_field_length(TABLE_CATEGORIES_DESCRIPTION, 'categories_name'));
00159         }
00160 
00161         $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_NAME . $category_inputs_string);
00162         $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_IMAGE . '<br />' . zen_draw_file_field('categories_image'));
00163 
00164         $dir = @dir(DIR_FS_CATALOG_IMAGES);
00165         $dir_info[] = array('id' => '', 'text' => "Main Directory");
00166         while ($file = $dir->read()) {
00167           if (is_dir(DIR_FS_CATALOG_IMAGES . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
00168             $dir_info[] = array('id' => $file . '/', 'text' => $file);
00169           }
00170         }
00171         $dir->close();
00172 
00173         $default_directory = substr( $cInfo->categories_image, 0,strpos( $cInfo->categories_image, '/')+1);
00174         $contents[] = array('text' => TEXT_CATEGORIES_IMAGE_DIR . ' ' . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
00175 
00176         $contents[] = array('text' => '<br />' . TEXT_SORT_ORDER . '<br />' . zen_draw_input_field('sort_order', '', 'size="4"'));
00177         $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
00178         break;
00179       case 'edit_category':
00180         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</b>');
00181 
00182         $contents = array('form' => zen_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . zen_draw_hidden_field('categories_id', $cInfo->categories_id));
00183         $contents[] = array('text' => TEXT_EDIT_INTRO);
00184 
00185         $category_inputs_string = '';
00186         $languages = zen_get_languages();
00187         for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
00188           $category_inputs_string .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . zen_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', htmlspecialchars(zen_get_category_name($cInfo->categories_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_CATEGORIES_DESCRIPTION, 'categories_name'));
00189         }
00190         $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
00191         $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . zen_draw_file_field('categories_image'));
00192 
00193         $dir = @dir(DIR_FS_CATALOG_IMAGES);
00194         $dir_info[] = array('id' => '', 'text' => "Main Directory");
00195         while ($file = $dir->read()) {
00196           if (is_dir(DIR_FS_CATALOG_IMAGES . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
00197             $dir_info[] = array('id' => $file . '/', 'text' => $file);
00198           }
00199         }
00200         $dir->close();
00201 
00202         $default_directory = substr( $cInfo->categories_image, 0,strpos( $cInfo->categories_image, '/')+1);
00203         $contents[] = array('text' => TEXT_CATEGORIES_IMAGE_DIR . ' ' . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
00204         $contents[] = array('text' => '<br>' . zen_info_image($cInfo->categories_image, $cInfo->categories_name));
00205         $contents[] = array('text' => '<br>' . $cInfo->categories_image);
00206 
00207         $contents[] = array('text' => '<br />' . TEXT_EDIT_SORT_ORDER . '<br />' . zen_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
00208         $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
00209         break;
00210       case 'delete_product':
00211         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_delete_product.php')) {
00212           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_delete_product.php');
00213          } else {
00214           require(DIR_WS_MODULES . 'sidebox_delete_product.php');
00215          }
00216         break;
00217       case 'move_product':
00218         if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_move_product.php')) {
00219           require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_move_product.php');
00220          } else {
00221           require(DIR_WS_MODULES . 'sidebox_move_product.php');
00222          }
00223         break;
00224       case 'copy_to':
00225         $copy_attributes_delete_first = '0';
00226         $copy_attributes_duplicates_skipped = '0';
00227         $copy_attributes_duplicates_overwrite = '0';
00228         $copy_attributes_include_downloads = '1';
00229         $copy_attributes_include_filename = '1';
00230 
00231         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>');
00232 // WebMakers.com Added: Split Page
00233         if (empty($pInfo->products_id)) {
00234           $pInfo->products_id= $pID;
00235         }
00236 
00237         $contents = array('form' => zen_draw_form('copy_to', $type_admin_handler, 'action=copy_to_confirm&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id));
00238         $contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO);
00239         $contents[] = array('text' => '<br />' . TEXT_INFO_CURRENT_PRODUCT . '<br /><b>' . $pInfo->products_name  . ' ID#' . $pInfo->products_id . '</b>');
00240         $contents[] = array('text' => '<br />' . TEXT_INFO_CURRENT_CATEGORIES . '<br /><b>' . zen_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
00241         $contents[] = array('text' => '<br />' . TEXT_CATEGORIES . '<br />' . zen_draw_pull_down_menu('categories_id', zen_get_category_tree(), $current_category_id));
00242         $contents[] = array('text' => '<br />' . TEXT_HOW_TO_COPY . '<br />' . zen_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br />' . zen_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE);
00243 
00244         // only ask about attributes if they exist
00245         if (zen_has_product_attributes($pInfo->products_id, 'false')) {
00246           $contents[] = array('text' => '<br />' . zen_image(DIR_WS_IMAGES . 'pixel_black.gif','','100%','3'));
00247           $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_ONLY);
00248           $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_yes', true) . ' ' . TEXT_COPY_ATTRIBUTES_YES . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_no') . ' ' . TEXT_COPY_ATTRIBUTES_NO);
00249 // future          $contents[] = array('align' => 'center', 'text' => '<br />' . ATTRIBUTES_NAMES_HELPER . '<br />' . zen_draw_separator('pixel_trans.gif', '1', '10'));
00250           $contents[] = array('text' => '<br />' . zen_image(DIR_WS_IMAGES . 'pixel_black.gif','','100%','3'));
00251         }
00252 
00253         $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_copy.gif', IMAGE_COPY) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
00254         $contents[] = array('text' => '</form>');
00255 
00256         $contents[] = array('text' => '<br />' . zen_image(DIR_WS_IMAGES . 'pixel_black.gif','','100%','3'));
00257         $contents[] = array('text' => '<form action="' . FILENAME_PRODUCTS_TO_CATEGORIES . '.php' . '?products_filter=' . $pInfo->products_id . '" method="post">');
00258         $contents[] = array('align' => 'center', 'text' => '<input type="submit" value="' . BUTTON_PRODUCTS_TO_CATEGORIES . '"></form>');
00259 
00260         break;
00261 // attribute features
00262     case 'attribute_features':
00263         $copy_attributes_delete_first = '0';
00264         $copy_attributes_duplicates_skipped = '0';
00265         $copy_attributes_duplicates_overwrite = '0';
00266         $copy_attributes_include_downloads = '1';
00267         $copy_attributes_include_filename = '1';
00268         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
00269 
00270         $contents[] = array('align' => 'center', 'text' => '<br />' . '<strong>' . TEXT_PRODUCTS_ATTRIBUTES_INFO . '</strong>' . '<br />');
00271 
00272         $contents[] = array('align' => 'center', 'text' => '<br />' . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><br />' .
00273                                                            '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, '&action=attributes_preview' . '&products_filter=' . $pInfo->products_id) . '">' . zen_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a>' .
00274                                                            '&nbsp;&nbsp;' . '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, 'products_filter=' . $pInfo->products_id) . '">' . zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES) . '</a>' .
00275                                                            '<br /><br />');
00276         $contents[] = array('align' => 'left', 'text' => '<br />' . '<strong>' . TEXT_PRODUCT_ATTRIBUTES_DOWNLOADS . '</strong>' . zen_has_product_attributes_downloads($pInfo->products_id) . zen_has_product_attributes_downloads($pInfo->products_id, true));
00277         $contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_DELETE . '<strong>' . zen_get_products_name($pInfo->products_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=delete_attributes' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
00278         $contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_UPDATES . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=update_attributes_sort_order' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_update.gif', IMAGE_UPDATE) . '</a>');
00279         $contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_PRODUCT . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=attribute_features_copy_to_product' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
00280         $contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_CATEGORY . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=attribute_features_copy_to_category' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
00281 
00282         $contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
00283         break;
00284 
00285 // attribute copier to product
00286     case 'attribute_features_copy_to_product':
00287       $_GET['products_update_id'] = '';
00288       // excluded current product from the pull down menu of products
00289       $products_exclude_array = array();
00290       $products_exclude_array[] = $pInfo->products_id;
00291 
00292       $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
00293       $contents = array('form' => zen_draw_form('products', FILENAME_CATEGORIES, 'action=update_attributes_copy_to_product&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id) . zen_draw_hidden_field('products_update_id', $_GET['products_update_id']) . zen_draw_hidden_field('copy_attributes', $_GET['copy_attributes']));
00294       $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE);
00295       $contents[] = array('align' => 'center', 'text' => '<br />' . zen_draw_products_pull_down('products_update_id', '', $products_exclude_array, true) . '<br /><br />' . zen_image_submit('button_copy_to.gif', IMAGE_COPY_TO). '&nbsp;&nbsp;<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
00296       break;
00297 
00298 // attribute copier to product
00299     case 'attribute_features_copy_to_category':
00300       $_GET['categories_update_id'] = '';
00301 
00302       $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
00303       $contents = array('form' => zen_draw_form('products', FILENAME_CATEGORIES, 'action=update_attributes_copy_to_category&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id) . zen_draw_hidden_field('categories_update_id', $_GET['categories_update_id']) . zen_draw_hidden_field('copy_attributes', $_GET['copy_attributes']));
00304       $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE);
00305       $contents[] = array('align' => 'center', 'text' => '<br />' . zen_draw_products_pull_down_categories('categories_update_id', '', '', true) . '<br /><br />' . zen_image_submit('button_copy_to.gif', IMAGE_COPY_TO) . '&nbsp;&nbsp;<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
00306       break;
00307 
00308     } // switch
00309 
00310     if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
00311       echo '            <td width="25%" valign="top">' . "\n";
00312 
00313       $box = new box;
00314       echo $box->infoBox($heading, $contents);
00315 
00316       echo '            </td>' . "\n";
00317     }
00318 ?>
00319 
00320           </tr>
00321           <tr>
00322 <?php
00323 // Split Page
00324 if ($products_query_numrows > 0) {
00325   if (empty($pInfo->products_id)) {
00326     $pInfo->products_id= $pID;
00327   }
00328 ?>
00329             <td class="smallText" align="right"><?php echo $products_split->display_count($products_query_numrows, MAX_DISPLAY_RESULTS_CATEGORIES, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS) . '<br>' . $products_split->display_links($products_query_numrows, MAX_DISPLAY_RESULTS_CATEGORIES, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], zen_get_all_get_params(array('page', 'info', 'x', 'y')) ); ?></td>
00330 
00331 <?php
00332 }
00333 // Split Page
00334 ?>
00335           </tr>
00336         </table></td>
00337       </tr>
00338     </table>
00339 <?php
00340   }
00341 ?>
00342     </td>
00343 <!-- body_text_eof //-->
00344   </tr>
00345 </table>
00346 <!-- body_eof //-->
00347 
00348 <!-- footer //-->
00349 <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
00350 <!-- footer_eof //-->
00351 <br />
00352 </body>
00353 </html>
00354 <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
 All Data Structures Namespaces Files Functions Variables Enumerations