$orders_history_query = xtc_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . xtc_db_input($oID) . "' order by date_added"); if (xtc_db_num_rows($orders_history_query)) { while ($orders_history = xtc_db_fetch_array($orders_history_query)) { echo ' <tr>' . "\n" . ' <td class="smallText" align="center">' . xtc_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="smallText" align="center">'; if ($orders_history['customer_notified'] == '1') { echo xtc_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n"; } else { echo xtc_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n"; } echo ' <td class="smallText">'; if ($orders_history['orders_status_id'] != '0') { echo $orders_status_array[$orders_history['orders_status_id']]; } else { echo '<font color="#FF0000">' . TEXT_VALIDATING . '</font>'; } echo '</td>' . "\n" . ' <td class="smallText">' . nl2br(xtc_db_output($orders_history['comments'])) . ' </td>' . "\n" . ' </tr>' . "\n"; } } else { echo ' <tr>' . "\n" . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table></td> </tr> <tr> <td class="main"><br /><b><?php echo TABLE_HEADING_COMMENTS; ?> </b></td> </tr> <tr> <td><?php
echo ' <tr>' . PHP_EOL; echo ' <td class="smallText' . $class . '" align="center">' . xtc_datetime_short($orders_history['date_added']) . '</td>' . PHP_EOL; echo ' <td class="smallText' . $class . '" align="center">'; if ($orders_history['customer_notified'] == '1') { echo xtc_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . '</td>' . PHP_EOL; } else { echo xtc_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . '</td>' . PHP_EOL; } echo ' <td class="smallText' . $class . '">'; if ($orders_history['orders_status_id'] != '0') { echo $orders_status_array[$orders_history['orders_status_id']]; } else { echo '<font color="#FF0000">' . TEXT_VALIDATING . '</font>'; } echo '</td>' . PHP_EOL; echo ' <td class="smallText' . $class . '">' . nl2br(xtc_db_output($orders_history['comments'])) . ' </td>' . PHP_EOL; echo ' <td class="smallText' . $class . '" align="center">'; if ($orders_history['comments_sent'] == '1') { echo xtc_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . '</td>' . PHP_EOL; } else { echo xtc_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . '</td>' . PHP_EOL; } echo '</tr>' . PHP_EOL; } } else { echo ' <tr>' . PHP_EOL . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . PHP_EOL . ' </tr>' . PHP_EOL; } ?> </table> </td> </tr>
</td> <td class="main" align="right" valign="top"><?php echo xtc_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> </tr> </table> </tr> <tr> <td><table witdh="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" class="main"><b><?php echo ENTRY_REVIEW; ?> </b><br /><br /><?php echo nl2br(xtc_db_output(xtc_break_string($rInfo->reviews_text, 15))); ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><b><?php echo ENTRY_RATING; ?>
function shopDbOutput($string) { return xtc_db_output($string); }
while ($orders_history = xtc_db_fetch_array($orders_history_query)) { echo '<tr>' . "\n" . ' <td width="25%" class="smallText" align="left">' . xtc_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td width="25%" class="smallText" align="left">'; if ($orders_history['customer_notified'] == '1') { echo xtc_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n"; } else { echo xtc_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n"; } echo '<td width="25%" class="smallText">'; if ($orders_history['orders_status_id'] != '0') { echo $orders_status_array[$orders_history['orders_status_id']]; } else { echo '<font color="#FF0000">' . TEXT_VALIDATING . '</font>'; } echo '</td>' . "\n" . '<td width="25%" align="left" class="smallText">' . nl2br(xtc_db_output($orders_history['comments'])) . ' </td>' . "\n" . '</tr>' . "\n"; } } else { echo '<tr>' . "\n" . '<td class="smallText" colspan="4">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . '</tr>' . "\n"; } ?> </table> <!-- zmb clickandbuy begin --> <?php // BOF GM_MOD $t_gm_check = xtc_db_query("SHOW TABLES LIKE 'orders_clickandbuy_ems'"); if (xtc_db_num_rows($t_gm_check) == 1 && strpos(strtolower($order->info['payment_class']), 'clickandbuy') !== false) { ?> <table><tr> <td width="50%" class="main">