</td>
            <td class="main" align="right" valign="top"><?php 
    echo vam_product_thumb_image($rInfo->products_image, $rInfo->products_name);
    ?>
</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(vam_db_output($rInfo->reviews_text));
    ?>
</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr>
        <td class="main"><b><?php 
    echo ENTRY_RATING;
    ?>
Exemple #2
0
            } else {
                $class = "odd";
            }
            echo '          <tr>' . "\n" . '            <td class="dataTableContent-' . $class . '" align="center">' . vam_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '            <td class="dataTableContent-' . $class . '" align="center">';
            if ($orders_history['customer_notified'] == '1') {
                echo vam_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n";
            } else {
                echo vam_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n";
            }
            echo '            <td class="dataTableContent-' . $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>' . "\n" . '            <td class="dataTableContent-' . $class . '">' . nl2br(vam_db_output($orders_history['comments'])) . '&nbsp;</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 
 function read_from_database()
 {
     if (!$this->is_database_table_exists()) {
         return;
     }
     $query = "SELECT ";
     while (list($columns, ) = each($data)) {
         $query .= 'tag.' . $columns . ', ';
     }
     $query = substr($query, 0, -2) . " FROM " . $this->table . " tag, " . TABLE_CIP . " cip\n                        WHERE tag_id=" . $this->id . " AND cip.cip_id=tag.cip_id AND cip.cip_folder_name=" . $this->contrib;
     $data = vam_db_output(vam_db_fetch_array(vam_db_query($query)));
 }
            if (ORDER_EDITOR_USE_AJAX == 'true') {
                echo '  <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . '	  <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox" onClick="updateCommentsField(\'delete\', \'' . $orders_history['orders_status_history_id'] . '\', this.checked, \'\', this)"></div></td>' . "\n" . '    <td class="smallText" align="center">' . vam_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '    <td class="smallText" align="center">';
            } else {
                echo '  <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . '	  <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox"></div></td>' . "\n" . '    <td class="smallText" align="center">' . vam_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '    <td class="smallText" align="center">';
            }
            if ($orders_history['customer_notified'] == '1') {
                echo vam_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n";
            } else {
                echo vam_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n";
            }
            echo '<td class="smallText" align="left">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n";
            echo '<td class="smallText" align="left">';
            if (ORDER_EDITOR_USE_AJAX == 'true') {
                echo vam_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "soft", "40", "5", "" . vam_db_output($orders_history['comments']) . "", "onChange=\"updateCommentsField('update', '" . $orders_history['orders_status_history_id'] . "', 'false', encodeURIComponent(this.value))\"") . '' . "\n" . '    </td>' . "\n";
            } else {
                echo vam_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "soft", "40", "5", "" . vam_db_output($orders_history['comments']) . "") . '' . "\n" . '    </td>' . "\n";
            }
            echo '  </tr>' . "\n";
        }
    } else {
        echo '  <tr>' . "\n" . '    <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . '  </tr>' . "\n";
    }
    ?>
  </table> 
  </div>
				  
      <div>
	  <?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '1');
    ?>
	  </div>
   </tr>
<?php 
    $r = 0;
    $orders_history_query = vam_db_query("SELECT orders_status_history_id, orders_status_id, date_added, customer_notified, comments \n                                    FROM " . TABLE_ORDERS_STATUS_HISTORY . " \n\t\t\t\t\t\t\t\t\tWHERE orders_id = '" . vam_db_prepare_input($_GET['oID']) . "' \n\t\t\t\t\t\t\t\t\tORDER BY date_added");
    if (vam_db_num_rows($orders_history_query)) {
        while ($orders_history = vam_db_fetch_array($orders_history_query)) {
            $r++;
            $rowClass = $r / 2 == floor($r / 2) ? 'dataRowOver' : 'dataRow';
            echo '  <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . '	  <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox" onClick="updateCommentsField(\'delete\', \'' . $orders_history['orders_status_history_id'] . '\', this.checked, \'\', this)"></div></td>' . "\n" . '    <td class="smallText" align="center">' . vam_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '    <td class="smallText" align="center">';
            if ($orders_history['customer_notified'] == '1') {
                echo vam_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n";
            } else {
                echo vam_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n";
            }
            echo '<td class="smallText" align="left">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n";
            echo '<td class="smallText" align="left">' . vam_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "soft", "40", "5", "" . vam_db_output($orders_history['comments']) . "", "onChange=\"updateCommentsField('update', '" . $orders_history['orders_status_history_id'] . "', 'false', encodeURIComponent(this.value))\"") . '' . "\n" . '    </td>' . "\n";
            echo '  </tr>' . "\n";
        }
    } else {
        echo '  <tr>' . "\n" . '    <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . '  </tr>' . "\n";
    }
    ?>
  
  </table>
  
  <?php 
}
// end if ($action == 'insert_new_comment') {
//12. insert shipping method when one doesn't already exist
if ($action == 'insert_shipping') {
    $order = new manualOrder($_GET['oID']);