本文整理汇总了PHP中vam_get_all_get_params函数的典型用法代码示例。如果您正苦于以下问题:PHP vam_get_all_get_params函数的具体用法?PHP vam_get_all_get_params怎么用?PHP vam_get_all_get_params使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vam_get_all_get_params函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: vam_create_sort_heading
function vam_create_sort_heading($sortby, $colnum, $heading)
{
$sort_prefix = '';
$sort_suffix = '';
if ($sortby) {
$sort_prefix = '<a href="' . vam_href_link(basename($_SERVER['PHP_SELF']), vam_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading . '" class="productListing-heading">';
$sort_suffix = (substr($sortby, 0, 1) == $colnum ? substr($sortby, 1, 1) == 'a' ? '+' : '-' : '') . '</a>';
}
return $sort_prefix . $heading . $sort_suffix;
}
示例2: vam_redirect
//}
} else {
if (isset($_SESSION['cart'])) {
$_SESSION['cart']->add_cart((int) $_GET['BUYproducts_id'], $_SESSION['cart']->get_quantity((int) $_GET['BUYproducts_id']) + 1);
} else {
vam_redirect(vam_href_link(FILENAME_DEFAULT));
}
}
}
if (vam_has_product_attributes($_GET['BUYproducts_id'])) {
if (AJAX_CART == 'false') {
vam_redirect(vam_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id']));
}
} else {
vam_redirect(vam_href_link($goto, vam_get_all_get_params(array('action', 'BUYproducts_id'))));
}
break;
case 'cust_order':
if (isset($_GET['pid'])) {
if (vam_has_product_attributes((int) $_GET['pid'])) {
vam_redirect(vam_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['pid']));
} else {
$_SESSION['cart']->add_cart((int) $_GET['pid'], $_SESSION['cart']->get_quantity((int) $_GET['pid']) + 1);
}
}
if (AJAX_CART == 'false') {
vam_redirect(vam_href_link($goto, vam_get_all_get_params($parameters)));
}
break;
}
}
示例3: array
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PAYMENT . '</b>');
$contents = array('form' => vam_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, vam_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br>');
$contents[] = array('align' => 'center', 'text' => '<br><span class="button"><button type="submit" value="' . BUTTON_DELETE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</button></span><a class="button" href="' . vam_href_link(AFFILIATE_PAYMENT, vam_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a>');
break;
default:
if (is_object($pInfo)) {
$heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . '] ' . vam_datetime_short($pInfo->affiliate_payment_date) . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_AFFILIATE_PAYMENT, vam_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . ' ' . BUTTON_EDIT . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_AFFILIATE_PAYMENT, vam_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</span></a>');
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/payment.png', '', '12', '12') . ' ' . BUTTON_INVOICE . '</span></a> ');
}
break;
}
if (vam_not_null($heading) && vam_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
</tr>
<?php
示例4: getBuyNowButtonNew
function getBuyNowButtonNew($id, $name)
{
global $PHP_SELF;
if (AJAX_CART == 'true' && !vam_has_product_attributes($id)) {
$link = '<a href="' . vam_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id=' . $id . '&' . vam_get_all_get_params(array('action')), 'NONSSL') . '" onclick="doBuyNow(\'' . $id . '\',\'1\'); return false;">' . vam_image('templates/' . CURRENT_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/button_buy_now.png', TEXT_BUY . $name . TEXT_NOW) . '</a>';
} else {
$link = '<a href="' . vam_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id=' . $id . '&' . vam_get_all_get_params(array('action')), 'NONSSL') . '">' . vam_image('templates/' . CURRENT_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/button_buy_now.png', TEXT_BUY . $name . TEXT_NOW) . '</a>';
}
return $link;
}
示例5: open_flash_chart_object
?>
<?php
echo TAB_STATUS;
?>
</a></li>
</ul>
<div id="chart">
<table border="0" width="95%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="100%" align="center">
<?php
include DIR_WS_CLASSES . 'ofc-library/open_flash_chart_object.php';
open_flash_chart_object('100%', 250, vam_href_link('chart_data.php', vam_get_all_get_params(), 'NONSSL'), false);
?>
</td>
</tr>
<?php
if (strlen($report->previous . " " . $report->next) > 1) {
?>
<tr>
<td width=100% colspan=5>
<table width=100%>
<tr>
<td align=left>
<?php
if (strlen($report->previous) > 0) {
echo '<a href="' . vam_href_link(FILENAME_STATS_SALES_REPORT2, $report->previous, 'NONSSL') . '"><< ' . TEXT_PREVIOUS . '</a>';
}
示例6: array
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
$contents = array('form' => vam_draw_form('orders', FILENAME_ORDERS, vam_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br /><br /><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
$contents[] = array('text' => '<br />' . vam_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
$contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_DELETE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</button></span><a class="button" href="' . vam_href_link(FILENAME_ORDERS, vam_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a>');
break;
default:
if (is_object($oInfo)) {
$heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . vam_datetime_short($oInfo->date_purchased) . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_ORDERS, vam_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/edit.png', '', '12', '12') . ' ' . BUTTON_EDIT . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_ORDERS, vam_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . ' ' . BUTTON_DELETE . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_PRINT_ORDER, 'oID=' . $oInfo->orders_id) . '" target="_blank"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/payment.png', '', '12', '12') . ' ' . BUTTON_INVOICE . '</span></a> <a class="button" href="' . vam_href_link(FILENAME_PRINT_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" target="_blank"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/shipping.png', '', '12', '12') . ' ' . BUTTON_PACKINGSLIP . '</span></a>');
if (AFTERBUY_ACTIVATED == 'true') {
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . vam_href_link(FILENAME_ORDERS, vam_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=afterbuy_send') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . ' ' . BUTTON_AFTERBUY_SEND . '</span></a>');
}
//$contents[] = array('align' => 'center', 'text' => '');
$order_payment = $oInfo->payment_method;
require DIR_FS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order_payment . '.php';
$order_payment_text = constant(MODULE_PAYMENT_ . strtoupper($order_payment) . _TEXT_TITLE);
$contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . vam_date_short($oInfo->date_purchased));
if (vam_not_null($oInfo->last_modified)) {
$contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . vam_date_short($oInfo->last_modified));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' ' . $order_payment_text);
$contents[] = array('text' => '<br />' . ENTRY_SHIPPING_METHOD . ' ' . $oInfo->shipping_method);
// elari added to display product list for selected order
$order = new order($oInfo->orders_id);
$contents[] = array('text' => $order->customer['email_address']);
$contents[] = array('text' => $order->customer['telephone']);
示例7: vam_get_all_get_params
?>
</td>
</tr>
<?php
}
if ($affiliate_sales_numrows > 0) {
?>
<tr>
<td colspan="7"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
echo $affiliate_sales_split->display_count($affiliate_sales_numrows, MAX_DISPLAY_ADMIN_PAGE, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_SALES);
?>
</td>
<td class="smallText" align="right"><?php
echo $affiliate_sales_split->display_links($affiliate_sales_numrows, MAX_DISPLAY_ADMIN_PAGE, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], vam_get_all_get_params(array('page', 'info', 'x', 'y')));
?>
</td>
</tr>
</table></td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
示例8: vam_get_all_get_params
echo TEXT_NO_CLICKS;
?>
</td>
</tr>
<?php
}
?>
<tr>
<td class="smallText" colspan="7"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
echo $affiliate_clickthroughs_split->display_count($affiliate_clickthroughs_numrows, MAX_DISPLAY_ADMIN_PAGE, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CLICKS);
?>
</td>
<td class="smallText" align="right"><?php
echo $affiliate_clickthroughs_split->display_links($affiliate_clickthroughs_numrows, MAX_DISPLAY_ADMIN_PAGE, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], vam_get_all_get_params(array('page', 'oID', 'action')));
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
示例9: vam_db_fetch_array
$tax = vam_db_fetch_array($tax_query);
$price = $price * ($tax[tax_rate] + 100) / 100;
$price_string = '' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($price) . ' - ' . TXT_NETTO . $currencies->format($price_netto);
}
$contents[] = array('text' => '<div style="padding-left: 30px;">' . $price_string . '</div><div style="padding-left: 30px;">' . TEXT_PRODUCTS_DISCOUNT_ALLOWED_INFO . ' ' . $pInfo->products_discount_allowed . '</div><div style="padding-left: 30px;">' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity . '</div>');
// END IN-SOLUTION
//$contents[] = array('text' => '<br />' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($pInfo->products_price) . '<br />' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity);
$contents[] = array('text' => '<div style="padding-left: 30px; padding-bottom: 10px;">' . TEXT_PRODUCTS_AVERAGE_RATING . ' ' . number_format($pInfo->average_rating, 2) . ' %</div>');
$contents[] = array('text' => '<div style="padding-left: 30px; padding-bottom: 10px;">' . TEXT_PRODUCT_LINKED_TO . '<br />' . vam_output_generated_category_path($pInfo->products_id, 'product') . '</div>');
$contents[] = array('align' => 'center', 'text' => '<div style="padding: 10px;">' . vam_product_thumb_image($pInfo->products_image, $pInfo->products_name) . '</div><div style="padding-bottom: 10px;">' . $pInfo->products_image . '</div>');
}
} else {
// create category/product info
$heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
$contents[] = array('text' => sprintf(TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS, vam_get_categories_name($current_category_id, $_SESSION['languages_id'])));
$contents[] = array('align' => 'center', 'text' => '<table border=0><tr><td align="center"><a class="button" href="' . vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/categories.png', '', '12', '12') . ' ' . BUTTON_NEW_CATEGORIES . '</span></a></td></tr><tr><td align="center"><a class="button" href="' . vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/products.png', '', '12', '12') . ' ' . BUTTON_NEW_PRODUCTS . '</span></a></td></tr></table>');
}
break;
}
if (vam_not_null($heading) && vam_not_null($contents)) {
//display info box
echo '<td valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo '</td>' . "\n";
}
?>
</tr>
</table>
</td>
</tr>
示例10: Project
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(add_a_quickie.php,v 1.10 2001/12/19); www.oscommerce.com
(c) 2004 xt:Commerce (add_a_quickie.php,v 1.10 2003/08/13); xt-commerce.com
Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contribution:
Add A Quickie v1.0 Autor Harald Ponce de Leon
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
// reset var
$box = new vamTemplate();
$box_content = '';
$box->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box->assign('FORM_ACTION', '<form id="quick_add" method="post" action="' . vam_href_link(basename($PHP_SELF), vam_get_all_get_params(array('action')) . 'action=add_a_quickie', 'NONSSL') . '">');
$box->assign('INPUT_FIELD', vam_draw_input_field('quickie', '', 'id="quick_add_quickie"'));
$box->assign('SUBMIT_BUTTON', vam_image_submit('search.png', BOX_HEADING_ADD_PRODUCT_ID));
$box->assign('FORM_END', '</form>');
$box->assign('BOX_CONTENT', $box_content);
$box->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$box->caching = 0;
$box_add_a_quickie = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_add_a_quickie.html');
} else {
$box->caching = 1;
$box->cache_lifetime = CACHE_LIFETIME;
$box->cache_modified_check = CACHE_CHECK;
$cache_id = $_SESSION['language'];
$box_add_a_quickie = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_add_a_quickie.html', $cache_id);
示例11: while
while ($products = vam_db_fetch_array($products_query_raw)) {
$rows++;
if ($rows / 2 == floor($rows / 2)) {
$css_class = 'view_data_even';
} else {
$css_class = 'view_data_odd';
}
$price = $products['products_price'];
$price = vam_round($price, PRICE_PRECISION);
?>
<tr>
<td class="<?php
echo $css_class;
?>
"><a href="<?php
echo vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('pID', 'action')) . 'pID=' . $products['products_id'] . '&action=new_product');
?>
"><?php
echo $products['products_name'];
?>
</a></td>
<td class="<?php
echo $css_class;
?>
"><?php
echo $currencies->format($price);
?>
</td>
<td class="<?php
echo $css_class;
?>
示例12: vam_redirect
}
if (strlen($_GET['pfrom']) > 0 && !(($errorno & 10000) == 10000) && strlen($_GET['pto']) > 0 && !(($errorno & 100000) == 100000)) {
if ($pfrom_to_check > $pto_to_check) {
$errorno += 1000000;
$error = 1;
}
}
if (strlen($_GET['keywords']) > 0) {
if (!vam_parse_search_string(stripslashes($_GET['keywords']), $search_keywords)) {
$errorno += 10000000;
$error = 1;
$keyerror = 1;
}
}
if ($error == 1 && $keyerror != 1) {
vam_redirect(vam_href_link(FILENAME_ADVANCED_SEARCH, 'errorno=' . $errorno . '&' . vam_get_all_get_params(array('x', 'y'))));
} else {
/*
* search process starts here
*/
$breadcrumb->add(NAVBAR_TITLE1_ADVANCED_SEARCH, vam_href_link(FILENAME_ADVANCED_SEARCH));
$breadcrumb->add(NAVBAR_TITLE2_ADVANCED_SEARCH, vam_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . htmlspecialchars(vam_db_input($_GET['keywords'])) . '&search_in_description=' . vam_db_input($_GET['search_in_description']) . '&categories_id=' . (int) $_GET['categories_id'] . '&inc_subcat=' . vam_db_input($_GET['inc_subcat']) . '&manufacturers_id=' . (int) $_GET['manufacturers_id'] . '&pfrom=' . vam_db_input($_GET['pfrom']) . '&pto=' . vam_db_input($_GET['pto']) . '&dfrom=' . vam_db_input($_GET['dfrom']) . '&dto=' . vam_db_input($_GET['dto'])));
require DIR_WS_INCLUDES . 'header.php';
// define additional filters //
//fsk18 lock
if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
$fsk_lock = " AND p.products_fsk18 != '1' ";
} else {
unset($fsk_lock);
}
//group check
示例13: Project
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(currencies.php,v 1.16 2003/02/12); www.oscommerce.com
(c) 2003 nextcommerce (currencies.php,v 1.11 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (currencies.php,v 1.11 2003/08/13); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
// include functions
require_once DIR_FS_INC . 'vam_hide_session_id.inc.php';
if (isset($vamPrice) && is_object($vamPrice)) {
$currencies_string = '';
$count_cur = '';
reset($vamPrice->currencies);
while (list($key, $value) = each($vamPrice->currencies)) {
$count_cur++;
$currencies_string .= ' <a href="' . vam_href_link(basename($PHP_SELF), 'currency=' . $key . '&' . vam_get_all_get_params(array('language', 'currency')), $request_type) . '">' . $value['title'] . '</a> ';
}
$hidden_get_variables = '';
reset($_GET);
while (list($key, $value) = each($_GET)) {
if ($key != 'currency' && $key != vam_session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= vam_draw_hidden_field($key, $value);
}
}
}
// dont show box if there's only 1 currency
if ($count_cur > 1) {
$box->assign('BOX_CONTENT', $currencies_string . $hidden_get_variables);
$box->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
示例14: vam_db_fetch_array
$product = vam_db_fetch_array($product_query);
$sInfo = new objectInfo($product);
} else {
$sInfo = new objectInfo(array());
// create an array of products on special, which will be excluded from the pull down menu of products
// (when creating a new product on special)
$specials_array = array();
$specials_query = vam_db_query("select p.products_id from " . TABLE_PRODUCTS . " p, " . TABLE_SPECIALS . " s where s.products_id = p.products_id");
while ($specials = vam_db_fetch_array($specials_query)) {
$specials_array[] = $specials['products_id'];
}
}
$per = $sInfo->discount_type == "p" ? "%" : "";
?>
<form name="new_special" <?php
echo 'action="' . vam_href_link(FILENAME_CATEGORY_SPECIALS, vam_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action, 'NONSSL') . '"';
?>
method="post">
<td><br /><table border="0" cellspacing="0" cellpadding="2">
<tr><?php
if ($form_action == 'update') {
echo vam_draw_hidden_field('specials_id', $_GET['sID']);
}
?>
<td><br>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php
echo TEXT_SPECIALS_CATEGORY;
?>
</td>
示例15: elseif
} elseif (vam_not_null($_POST['dest_category_id'])) {
$dest_category_id = vam_db_prepare_input($_POST['dest_category_id']);
if ($_POST['copy_as'] == 'link') {
$catfunc->link_product($product_id, $dest_category_id);
} elseif ($_POST['copy_as'] == 'duplicate') {
$catfunc->duplicate_product($product_id, $dest_category_id);
} else {
$messageStack->add_session('Copy type not specified.', 'error');
}
}
}
}
vam_redirect(vam_href_link(FILENAME_CATEGORIES, 'cPath=' . $dest_category_id . '&' . vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID'))));
}
// --- MULTI COPY ENDS ---
vam_redirect(vam_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&' . vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID'))));
break;
#EOB multi_action_confirm
}
//EOB switch action
}
//EOB if action
// check if the catalog image directory exists
if (is_dir(DIR_FS_CATALOG_IMAGES)) {
if (!is_writeable(DIR_FS_CATALOG_IMAGES)) {
$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error');
}
} else {
$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error');
}
// end of pre-checks and actions, HTML output follows