if (!is_writeable(DIR_FS_CATALOG_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR)) { $messageStack->add(ERROR_CATALOG_BIGIMAGES_DIRECTORY_NOT_WRITEABLE, 'error'); } } else { $messageStack->add(ERROR_CATALOG_BIGIMAGES_DIRECTORY_DOES_NOT_EXIST, 'error'); } if (is_dir(DIR_FS_CATALOG_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR)) { if (!is_writeable(DIR_FS_CATALOG_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR)) { $messageStack->add(ERROR_CATALOG_THUMBS_DIRECTORY_NOT_WRITEABLE, 'error'); } } else { $messageStack->add(ERROR_CATALOG_THUMBS_DIRECTORY_DOES_NOT_EXIST, 'error'); } //++++ QT Pro: Begin Changed code if ($product_investigation['any_problems']) { $messageStack->add('<b>Warning: </b>' . qtpro_doctor_formulate_product_investigation($product_investigation, 'short_suggestion'), 'warning'); } //++++ QT Pro: End Changed code ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?> "> <title><?php
function qtpro_doctor_formulate_inactive_database_investigation() { print "<table><tr><td> </td></tr><tr><td class='main'><b>Inactive sick products in the database:</b></td></tr></table>"; $count = 0; $prod_query = tep_db_query("SELECT products_id FROM " . TABLE_PRODUCTS . " where products_status <> '1'"); while ($product = tep_db_fetch_array($prod_query)) { $investigation = qtpro_doctor_investigate_product($product['products_id']); if ($investigation['any_problems']) { print '<p class="messageStackWarning">' . tep_image(DIR_WS_ICONS . 'database_error.png') . ' Inactive Product with ID ' . $product['products_id'] . ': ' . qtpro_doctor_formulate_product_investigation($investigation, 'short_suggestion') . '</p>'; $count++; } } if ($count == 0) { echo '<p class="messageStackSuccess">' . tep_image(DIR_WS_ICONS . 'tick.png') . ' You currently do not have any sick inactive products</p>'; } }
<table width="100%" class="boxText" border="0" cellspacing="3" cellpadding="6"> <tr valign="top"> <td class="dataTableHeadingContent" width="400" style="font-size: 12;"><?php echo TABLE_HEADING_QTPRO; ?> </td> <td class="dataTableHeadingContent" style="font-size: 12;"><?php echo TABLE_HEADING_LINKS; ?> </td> </tr> <tr valign="top"> <td class="menuBoxHeading" width="400"> <span style="font-family: Verdana, Arial, sans-serif; font-size: 10px; color: black;"> <?php print qtpro_doctor_formulate_product_investigation($product_investigation, 'detailed'); ?> </span> </td> <td class="menuBoxHeading"> <?php echo '<br><ul><li><a href="' . tep_href_link(FILENAME_CATEGORIES, 'pID=' . $VARS['product_id'] . '&action=new_product') . '" class="menuBoxContentLink">' . TEXT_EDIT_PRODUCT . '</a></li>'; echo '<li><a href="' . tep_href_link(FILENAME_STATS_LOW_STOCK_ATTRIB, '', 'NONSSL') . '" class="menuBoxContentLink">' . TEXT_GOTO_LOW_STOCK . '</a><br></li>'; //class="menuBoxHeading columnLeft //We shall now generate links back to the product in the admin/categories.php page. //The same product can exist in differend categories. //Generate both the text (in $path_array) and the parameter (in $cpath_string_array) $raw_path_array = tep_generate_category_path($VARS['product_id'], 'product'); $path_array = array(); $cpath_string_array = array(); foreach ($raw_path_array as $raw_path) {