echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_weight\" value=\"" . $attribute_value_weight . "\" size=\"10\"></td>";
 echo "<td class=\"main\" align=\"left\"><select name=\"" . $current_value_id . "_weight_prefix\"><option value=\"+\"" . $posCheck_weight . ">+<option value=\"-\"" . $negCheck_weight . ">-</SELECT></td>";
 // brutto Admin
 if (PRICE_IS_BRUTTO == TRUE_STRING_S) {
     $attribute_value_price_calculate = olc_format_price(olc_round($attribute_value_price * ((100 + olc_get_tax_rate(olc_get_tax_class_id($_POST['current_product_id']))) / 100), PRICE_PRECISION), false, false);
 } else {
     $attribute_value_price_calculate = olc_round($attribute_value_price, PRICE_PRECISION);
 }
 echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_price\" value=\"" . $attribute_value_price_calculate . "\" size=\"10\">";
 // brutto Admin
 if (PRICE_IS_BRUTTO == TRUE_STRING_S) {
     echo TEXT_NETTO . HTML_B_START . olc_format_price(olc_round($attribute_value_price, PRICE_PRECISION), true, false) . '</b>  ';
 }
 echo "</td>";
 if ($optionTypeInstalled == '1') {
     extraValues($current_value_id, $_POST['current_product_id']);
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_prefix\" value=\"" . $attribute_prefix . "\" size=\"4\"></td>";
     echo "<td class=\"main\" align=\"left\"><select name=\"" . $current_value_id . "_type\">";
     displayOptionTypes($attribute_type);
     echo "</SELECT></td>";
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_qty\" value=\"" . $attribute_qty . "\" size=\"4\"></td>";
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_order\" value=\"" . $attribute_order . "\" size=\"4\"></td>";
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_linked\" value=\"" . $attribute_linked . "\" size=\"4\"></td>";
     echo "<td class=\"main\" align=\"left\">" . $current_value_id . "</td>";
 } else {
     echo "<td class=\"main\" align=\"left\"><select name=\"" . $current_value_id . "_prefix\"> <option value=\"+\"" . $posCheck . ">+<option value=\"-\"" . $negCheck . ">-</SELECT></td>";
     if ($optionSortCopyInstalled == '1') {
         getSortCopyValues($current_value_id, $_POST['current_product_id']);
         echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_weight\" value=\"" . $attribute_weight . "\" size=\"10\"></td>";
         echo "<td class=\"main\" align=\"left\"><select name=\"" . $current_value_id . "_weight_prefix\">";
         sortCopyWeightPrefix($attribute_weight_prefix);
예제 #2
0
 // Print the Current Value Name
 echo "<tr class=\"" . $rowClass . "\">";
 echo "<td class=\"main\">";
 // Add Support for multiple text input option types (for Chandra's contribution).. and using ' to begin/end strings.. less of a mess.
 if ($optionTypeTextInstalled == "1" && $current_value_id == $optionTypeTextInstalledID) {
     $current_value_id_old = $current_value_id;
     $current_value_id = $tempTextID;
     echo '<input type="checkbox" name="optionValuesText[]" value="' . $current_value_id . '"' . $CHECKED . '>&nbsp;&nbsp;' . $current_value_name . '&nbsp;&nbsp;';
     echo '<input type="hidden" name="' . $current_value_id . '_options_id" value="' . tep_output_string($current_product_option_id) . '">';
 } else {
     echo "<input type=\"checkbox\" name=\"optionValues[]\" value=\"" . tep_output_string($current_value_id) . "\"" . $CHECKED . ">&nbsp;&nbsp;" . $current_value_name . "&nbsp;&nbsp;";
 }
 echo "</td>";
 echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_price\" value=\"" . tep_output_string($attribute_value_price) . "\" size=\"10\"></td>";
 if ($optionTypeInstalled == "1") {
     extraValues($current_value_id, $current_product_id);
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_prefix\" value=\"" . tep_output_string($attribute_prefix) . "\" size=\"4\"></TD>";
     echo "<td class=\"main\" align=\"left\"><select name=\"" . $current_value_id . "_type\">";
     displayOptionTypes($attribute_type);
     echo "</select></td>";
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_qty\" value=\"" . tep_output_string($attribute_qty) . "\" size=\"4\"></td>";
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_order\" value=\"" . tep_output_string($attribute_order) . "\" size=\"4\"></td>";
     echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_linked\" value=\"" . tep_output_string($attribute_linked) . "\" size=\"4\"></td>";
     echo "<td class=\"main\" align=\"left\">" . $current_value_id . "</td>";
 } else {
     echo "<td class=\"main\" align=\"left\"><select name=\"" . $current_value_id . "_prefix\"> <option value=\"+\"" . $posCheck . ">+<OPTION value=\"-\"" . $negCheck . ">-</select></td>";
     if ($optionSortCopyInstalled == "1") {
         getSortCopyValues($current_value_id, $current_product_id);
         echo "<td class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_weight\" value=\"" . tep_output_string($attribute_weight) . "\" size=\"10\"></TD>";
         echo "<td class=\"main\" align=\"left\"><select name=\"" . $current_value_id . "_weight_prefix\">";
         sortCopyWeightPrefix($attribute_weight_prefix);