$contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_PRODUCT . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=attribute_features_copy_to_product' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
            $contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_CATEGORY . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=attribute_features_copy_to_category' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
        }
        $contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
        // attribute copier to product
    // attribute copier to product
    case 'attribute_features_copy_to_product':
        $_GET['products_update_id'] = '';
        // excluded current product from the pull down menu of products
        $products_exclude_array = array();
        $products_exclude_array[] = $pInfo->products_id;
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
        $contents = array('form' => zen_draw_form('products', FILENAME_CATEGORIES, 'action=update_attributes_copy_to_product&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id) . zen_draw_hidden_field('products_update_id', $_GET['products_update_id']) . zen_draw_hidden_field('copy_attributes', $_GET['copy_attributes']));
        $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE);
        $contents[] = array('align' => 'center', 'text' => '<br />' . zen_draw_products_pull_down('products_update_id', '', $products_exclude_array, true) . '<br /><br />' . zen_image_submit('button_copy_to.gif', IMAGE_COPY_TO) . '&nbsp;&nbsp;<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
        // attribute copier to product
    // attribute copier to product
    case 'attribute_features_copy_to_category':
        $_GET['categories_update_id'] = '';
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
        $contents = array('form' => zen_draw_form('products', FILENAME_CATEGORIES, 'action=update_attributes_copy_to_category&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id) . zen_draw_hidden_field('categories_update_id', $_GET['categories_update_id']) . zen_draw_hidden_field('copy_attributes', $_GET['copy_attributes']));
        $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE);
        $contents[] = array('align' => 'center', 'text' => '<br />' . zen_draw_products_pull_down_categories('categories_update_id', '', '', true) . '<br /><br />' . zen_image_submit('button_copy_to.gif', IMAGE_COPY_TO) . '&nbsp;&nbsp;<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
}
// switch
if (zen_not_null($heading) && zen_not_null($contents)) {
    echo '            <td valign="top">' . "\n";
    $box = new box();
            <td colspan="2" class="main"><?php 
            echo TEXT_PRODUCT_TO_VIEW;
            ?>
</td>
          </tr>
          <tr>
            <td class="main" width="200" align="center" valign="top">
<?php 
            $display_priced_by_attributes = zen_get_products_price_is_priced_by_attributes($_GET['products_filter']);
            echo $display_priced_by_attributes ? '<span class="alert">' . TEXT_PRICED_BY_ATTRIBUTES . '</span>' . '<br />' : '';
            echo zen_get_products_display_price($_GET['products_filter']) . '<br /><br />';
            echo zen_get_products_quantity_min_units_display($_GET['products_filter'], $include_break = true);
            ?>
            </td>
            <td class="attributes-even" align="center"><?php 
            echo zen_draw_products_pull_down('products_filter', 'size="10"', '', true, $_GET['products_filter'], true, true);
            ?>
</td>
            <td class="main" align="right" valign="top"><?php 
            echo zen_image_submit('button_display.gif', IMAGE_DISPLAY);
            ?>
</td>
          </tr>
        </table></td>
      </form></tr>

<?php 
        }
        // product dropdown
    }
    // $action == ''
<?php 
        // FIX HERE
        $display_priced_by_attributes = zen_get_products_price_is_priced_by_attributes($_GET['products_filter']);
        echo $display_priced_by_attributes ? '<span class="alert">' . TEXT_PRICED_BY_ATTRIBUTES . '</span>' . '<br />' : '';
        echo zen_get_products_display_price($_GET['products_filter']) . '<br /><br />';
        echo zen_get_products_quantity_min_units_display($_GET['products_filter'], $include_break = true);
        $not_for_cart = $db->Execute("select p.products_id from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCT_TYPES . " pt on p.products_type= pt.type_id where pt.allow_add_to_cart = 'N'");
        while (!$not_for_cart->EOF) {
            $not_for_cart_array[] = $not_for_cart->fields['products_id'];
            $not_for_cart->MoveNext();
        }
        ?>
            </td>
            <td class="attributes-even" align="center"><?php 
        echo zen_draw_products_pull_down('products_filter', 'size="5"', $not_for_cart->fields, true, $_GET['products_filter'], true, true);
        ?>
</td>
            <td class="main" align="center" valign="top">
              <?php 
        echo zen_image_submit('button_display.gif', IMAGE_DISPLAY);
        ?>
            </td>
          </tr>
<?php 
    } else {
        $not_for_cart = '';
    }
    // $_GET['products_filter'] != ''
    ?>
Example #4
0
      <tr>
      <?php 
    echo zen_draw_form('new_featured', FILENAME_FEATURED, zen_get_all_get_params(array('action', 'info', 'fID')) . 'action=' . $form_action . '&go_back=' . $_GET['go_back']);
    if ($form_action == 'update') {
        echo zen_draw_hidden_field('featured_id', $_GET['fID']);
    }
    ?>
        <td><br><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_PRODUCT;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo isset($fInfo->products_name) ? $fInfo->products_name . ' <small>(' . $currencies->format($fInfo->products_price) . ')</small>' : zen_draw_products_pull_down('products_id', 'size="15" style="font-size:12px"', $featured_array, true, $_GET['add_products_id'], true);
    echo zen_draw_hidden_field('products_price', isset($fInfo->products_price) ? $fInfo->products_price : '');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_AVAILABLE_DATE;
    ?>
&nbsp;</td>
            <td class="main"><script>StartDate.writeControl(); StartDate.dateFormat="<?php 
    echo DATE_FORMAT_SPIFFYCAL;
    ?>
";</script></td>
          </tr>
          <tr>
Example #5
0
?>
                                            <?php 
if ($bis_show != '') {
    echo ' <a href="' . zen_href_link(FILENAME_BACK_IN_STOCK) . '">' . HEADING_SHOW_ACTIVE_ONLY . '</a><br/>';
}
?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <form name="back_in_stock" action="<?php 
echo HTTPS_CATALOG_SERVER . DIR_WS_HTTPS_CATALOG . "cron/send_back_in_stock_notifications.php";
?>
" target="_blank" method="get">
                                                Product: <?php 
echo zen_draw_products_pull_down('product_id', '> <option value="0">' . HEADING_ALL_PRODUCTS . '</option');
?>
                                                <?php 
echo zen_draw_hidden_field('key', BACK_IN_STOCK_CRON_KEY);
?>
                                                <?php 
echo zen_draw_hidden_field('bis_id', '0');
?>
                                                <?php 
echo TEXT_PREVIEW . ': ' . zen_draw_checkbox_field('preview', 'true', true);
?>
                                                <input type="submit" value="<?php 
echo TEXT_RUN_NOTIFICATIONS;
?>
">
                                            </form>
      <tr><form name="new_special" <?php 
    echo 'action="' . zen_href_link(FILENAME_SPECIALS, zen_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action . '&go_back=' . $_GET['go_back'], 'NONSSL') . '"';
    ?>
 method="post"><?php 
    if ($form_action == 'update') {
        echo zen_draw_hidden_field('specials_id', $_GET['sID']);
    }
    ?>
        <td><br><table border="0" cellspacing="0" cellpadding="2" class="tableLayout1" width="100%">
          <tr>
            <th class="main"><?php 
    echo TEXT_SPECIALS_PRODUCT;
    ?>
&nbsp;</th>
            <td class="main"><?php 
    echo isset($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . $currencies->format($sInfo->products_price) . ')</small>' : zen_draw_products_pull_down('products_id', 'size="5" style="font-size:10px"', $specials_array, true, $_GET['add_products_id'], true);
    echo zen_draw_hidden_field('products_price', isset($sInfo->products_price) ? $sInfo->products_price : '');
    ?>
</td>
          </tr>
          <tr>
            <th class="main"><?php 
    echo TEXT_SPECIALS_SPECIAL_PRICE;
    ?>
&nbsp;</th>
            <td class="main"><?php 
    echo zen_draw_input_field('specials_price', isset($sInfo->specials_new_products_price) ? $sInfo->specials_new_products_price : '');
    echo zen_draw_hidden_field('products_priced_by_attribute', $sInfo->products_priced_by_attribute);
    echo zen_draw_hidden_field('update_products_id', $sInfo->products_id);
    ?>
</td>