本文整理汇总了PHP中zen_get_master_categories_pulldown函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_get_master_categories_pulldown函数的具体用法?PHP zen_get_master_categories_pulldown怎么用?PHP zen_get_master_categories_pulldown使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_get_master_categories_pulldown函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: zen_image
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<?php
// show when product is linked
if (zen_get_product_is_linked($_GET['pID']) == 'true' and $_GET['pID'] > 0) {
?>
<tr>
<td class="main"><?php
echo TEXT_MASTER_CATEGORIES_ID;
?>
</td>
<td class="main">
<?php
// echo zen_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id);
echo zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . ' ';
echo zen_draw_pull_down_menu('master_category', zen_get_master_categories_pulldown($_GET['pID']), $pInfo->master_categories_id);
?>
</td>
</tr>
<?php
} else {
?>
<tr>
<td class="main"><?php
echo TEXT_MASTER_CATEGORIES_ID;
?>
</td>
<td class="main"><?php
echo TEXT_INFO_ID . ($_GET['pID'] > 0 ? $pInfo->master_categories_id . ' ' . zen_get_category_name($pInfo->master_categories_id, $_SESSION['languages_id']) : $current_category_id . ' ' . zen_get_category_name($current_category_id, $_SESSION['languages_id']));
?>
</td>
示例2: zen_draw_form
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_INFO_PRODUCTS_TO_CATEGORIES_LINKER_INTRO;
?>
</td>
</tr>
<tr><?php
echo zen_draw_form('restrict_product', FILENAME_PRODUCTS_TO_CATEGORIES, '', 'get', '', true) . zen_draw_hidden_field('action', 'set_master_categories_id') . zen_draw_hidden_field('products_filter', $products_filter) . zen_draw_hidden_field('current_category_id', $_GET['current_category_id']);
?>
<td class="main">
<?php
echo ' ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . ' ';
echo '<strong>' . TEXT_MASTER_CATEGORIES_ID . '</strong> ' . zen_draw_pull_down_menu('master_category', zen_get_master_categories_pulldown($products_filter), $product_to_copy->fields['master_categories_id'], 'onChange="this.form.submit();"');
echo zen_hide_session_id();
if ($product_to_copy->fields['master_categories_id'] <= 0) {
echo ' ' . '<span class="alert">' . WARNING_MASTER_CATEGORIES_ID . '</span>';
}
echo TEXT_INFO_LINKED_TO_COUNT . $products_list->RecordCount();
?>
</td>
</form></tr>
<tr>
<td><?php
echo zen_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
</table></td>
示例3: zen_href_link
}
*/
$multilinked = false;
if (count($zen_get_master_categories_pulldown) > 2) {
$multilinked = true;
}
$invalidcat = false;
if ($multilinked == false && $products->fields['master_categories_id'] != $products->fields['categories_id']) {
$invalidcat = true;
}
$prod2cat_link = '<a href="' . zen_href_link('products_to_categories.php', 'products_filter=' . (int) $products->fields['products_id']) . '">(' . $products->fields['categories_id'] . '/' . $products->fields['master_categories_id'] . ')</a>';
//
echo '<td class="smallText">';
if ($_SESSION['quick_updates']['categories_switch'] == 'master_cats') {
// show/edit the master cats products table
echo zen_draw_pull_down_menu('quick_updates_new[master_categories_id][' . $products->fields['products_id'] . ']', zen_get_master_categories_pulldown($products->fields['products_id']), $products->fields['master_categories_id']);
} else {
// show/edit the linked cats products_to_categories table
if ($invalidcat == true) {
echo TEXT_QU_CHECK_CAT_INVALID;
} elseif ($multilinked == true) {
echo TEXT_QU_CHECK_CAT_MULTILINKS;
} else {
echo zen_draw_pull_down_menu('quick_updates_new[categories_id][' . $products->fields['products_id'] . ']', $quick_updates_category_tree, $products->fields['categories_id'], '');
echo zen_draw_hidden_field('quick_updates_old[categories_id][' . $products->fields['products_id'] . ']', $products->fields['categories_id']);
}
}
// we need the old master_categories_id value in both cases
echo zen_draw_hidden_field('quick_updates_old[master_categories_id][' . $products->fields['products_id'] . ']', $products->fields['master_categories_id']);
echo $prod2cat_link;
echo '</td>' . "\n";
示例4: zen_image
<td><table border="0" cellspacing="0" cellpadding="2">
<?php
// show when product is linked
if (zen_get_product_is_linked($products_filter) == 'true') {
?>
<tr>
<td class="main" width="200"><?php
echo TEXT_MASTER_CATEGORIES_ID;
?>
</td>
<td colspan="4" class="main">
<?php
// echo zen_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id);
echo zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . ' ';
echo zen_draw_pull_down_menu('master_category', zen_get_master_categories_pulldown($products_filter), $pInfo->master_categories_id);
?>
</td>
</tr>
<tr>
<td colspan="5" class="main"><?php
echo TEXT_INFO_MASTER_CATEGORIES_ID;
?>
</td>
</tr>
<tr>
<td colspan="5" class="main" align="center"><?php
echo $action == '' ? '<span class="alert">' . TEXT_INFO_PREVIEW_ONLY . '</span>' : TEXT_INFO_UPDATE_REMINDER;
?>
</td>
</tr>