• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zen_draw_products_pull_down函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中zen_draw_products_pull_down函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_draw_products_pull_down函数的具体用法?PHP zen_draw_products_pull_down怎么用?PHP zen_draw_products_pull_down使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了zen_draw_products_pull_down函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: array

            $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();
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:categories.php


示例2: zen_get_products_price_is_priced_by_attributes

            <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 == ''
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:attributes_controller.php


示例3: zen_get_products_price_is_priced_by_attributes

<?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'] != ''
    ?>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:29,代码来源:products_to_categories.php


示例4: zen_draw_form

      <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>
开发者ID:zenmagick,项目名称:zencart,代码行数:30,代码来源:featured.php


示例5: zen_href_link

?>
                                            <?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>
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:back_in_stock.php


示例6: zen_href_link

      <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>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:specials.php



注:本文中的zen_draw_products_pull_down函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zen_draw_products_pull_down_categories函数代码示例发布时间:2022-05-23
下一篇:
PHP zen_draw_password_field函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap