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