</td>
<?php 
            echo '</form>' . "\n";
        } else {
            //CLR 030212 - Add column for option type
            ?>
                <td align="center" class="smallText">&nbsp;<?php 
            echo $options_values->fields["products_options_id"];
            ?>
&nbsp;</td>
                <td class="smallText">&nbsp;<?php 
            echo $options_values->fields["products_options_name"];
            ?>
&nbsp;</td>
                <td class="smallText">&nbsp;<?php 
            echo translate_type_to_name($options_values->fields["products_options_type"]);
            ?>
&nbsp;</td>
                <td class="smallText" align="right">&nbsp;<?php 
            echo $options_values->fields["products_options_sort_order"];
            ?>
&nbsp;</td>
                <td class="smallText" align="right">&nbsp;<?php 
            echo $options_values->fields["products_options_size"];
            ?>
&nbsp;</td>
                <td class="smallText" align="right">&nbsp;<?php 
            echo $options_values->fields["products_options_length"];
            ?>
&nbsp;</td>
<?php 
Ejemplo n.º 2
0
            ?>
      	    </td>
          </tr></table></td></tr>
          <tr class="attributeBoxContent"><td><table><tr>
            <td class="attributeBoxContent" width="40">&nbsp;</td>
            <td class="attributeBoxContent">&nbsp;<?php 
            echo TABLE_HEADING_OPT_NAME . '<br />';
            ?>
<select name="options_id" size="<?php 
            echo $action != 'delete_attribute' ? "5" : "1";
            ?>
">
<?php 
            $options_values = $db->Execute("select * from " . TABLE_PRODUCTS_OPTIONS . "\r\n                                    where language_id = '" . $_SESSION['languages_id'] . "'\r\n                                    order by products_options_name");
            while (!$options_values->EOF) {
                echo '<option name="' . $options_values->fields['products_options_name'] . '" value="' . $options_values->fields['products_options_id'] . '">' . $options_values->fields['products_options_name'] . '&nbsp;&nbsp;&nbsp;[' . translate_type_to_name($options_values->fields['products_options_type']) . ']' . '</option>';
                $options_values->MoveNext();
            }
            ?>
            </select>&nbsp;</td>
            <td class="attributeBoxContent">&nbsp;<?php 
            echo TABLE_HEADING_OPT_VALUE . '<br />';
            ?>
<select name="values_id" size="<?php 
            echo $action != 'delete_attribute' ? "5" : "1";
            ?>
">
<?php 
            $values_values = $db->Execute("select * from " . TABLE_PRODUCTS_OPTIONS_VALUES . "\r\n                                   where language_id = '" . $_SESSION['languages_id'] . "'\r\n                                   order by products_options_values_name");
            while (!$values_values->EOF) {
                $show_option_name = '&nbsp;&nbsp;&nbsp;[' . strtoupper(zen_get_products_options_name_from_value($values_values->fields['products_options_values_id'])) . ']';
Ejemplo n.º 3
0
            ?>
      	    </td>
          </tr></table></td></tr>
          <tr class="attributeBoxContent"><td><table><tr>
            <td class="attributeBoxContent" width="40">&nbsp;</td>
            <td class="attributeBoxContent">&nbsp;<?php 
            echo TABLE_HEADING_OPT_NAME . '<br />';
            ?>
              <select name="options_id" id="OptionName" onChange="update_option(this.form)" size="<?php 
            echo $action != 'delete_attribute' ? "15" : "1";
            ?>
">
<?php 
            $options_values = $db->Execute("select * from " . TABLE_PRODUCTS_OPTIONS . "\n                                    where language_id = '" . (int) $_SESSION['languages_id'] . "'\n                                    order by products_options_name");
            while (!$options_values->EOF) {
                echo '              <option name="' . $options_values->fields['products_options_name'] . '" value="' . $options_values->fields['products_options_id'] . '">' . $options_values->fields['products_options_name'] . '&nbsp;&nbsp;&nbsp;[' . translate_type_to_name($options_values->fields['products_options_type']) . ']' . ($show_name_numbers ? ' &nbsp; [ #' . $options_values->fields['products_options_id'] . ' ] ' : '') . '</option>' . "\n";
                $options_values->MoveNext();
            }
            ?>
            </select>&nbsp;</td>
            <td class="attributeBoxContent">&nbsp;<?php 
            echo TABLE_HEADING_OPT_VALUE . '<br />';
            ?>
            <select name="values_id[]" id="OptionValue" multiple="multiple" size="<?php 
            echo $action != 'delete_attribute' ? "15" : "1";
            ?>
">
  <option selected>&lt;-- Please select an Option Name from the list ... </option>
</select>&nbsp;</td>

<script language="javascript" type="text/javascript"><!--
Ejemplo n.º 4
0
                     TEXT_OPTION_ATTRIBUTE_IMAGES_STYLE_4 . '<br />' .
                     TEXT_OPTION_ATTRIBUTE_IMAGES_STYLE_5 . '<br />';
              ?>
                </td>

      </tr>
      <tr>
        <td colspan="7"><?php echo zen_draw_separator('pixel_black.gif', '100%', '2'); ?></td>
<?php
        echo '</form>' . "\n";
      } else {
//CLR 030212 - Add column for option type
?>
                <td align="center" class="smallText">&nbsp;<?php echo $options_values->fields["products_options_id"]; ?>&nbsp;</td>
                <td class="smallText">&nbsp;<?php echo $options_values->fields["products_options_name"]; ?>&nbsp;</td>
                <td class="smallText">&nbsp;<?php echo translate_type_to_name($options_values->fields["products_options_type"]); ?>&nbsp;</td>
                <td class="smallText" align="right">&nbsp;<?php echo $options_values->fields["products_options_sort_order"]; ?>&nbsp;</td>
                <td class="smallText" align="right">&nbsp;<?php echo $options_values->fields["products_options_size"]; ?>&nbsp;</td>
                <td class="smallText" align="right">&nbsp;<?php echo $options_values->fields["products_options_length"]; ?>&nbsp;</td>
<?php
// hide buttons when editing
  if ($action== 'update_option') {
?>
            <td width='120' align="center" class="smallText">&nbsp;</td>
<?php
  } else {
?>
                <td align="center" class="smallText">&nbsp;<?php echo '<a href="' . zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, 'action=update_option&option_id=' . $options_values->fields['products_options_id'] . '&option_order_by=' . $option_order_by . '&option_page=' . $_GET['option_page'] . (isset($_GET['value_page']) ? '&value_page=' . $_GET['value_page'] . '&' : '') . (isset($_GET['attribute_page']) ? '&attribute_page=' . $_GET['attribute_page'] : '') ) . '">'; ?><?php echo zen_image_button('button_edit.gif', IMAGE_UPDATE); ?></a>&nbsp;&nbsp;<?php echo '<a href="' . zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, 'action=delete_product_option&option_id=' . $options_values->fields['products_options_id'] . (isset($_GET['option_page']) ? '&option_page=' . $_GET['option_page'] . '&' : '') . '&option_order_by=' . $option_order_by, 'NONSSL') , '">'; ?><?php echo zen_image_button('button_delete.gif', IMAGE_DELETE); ?></a>&nbsp;</td>
<?php
  }
?>