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