本文整理汇总了PHP中getKeyIgnoreCase函数的典型用法代码示例。如果您正苦于以下问题:PHP getKeyIgnoreCase函数的具体用法?PHP getKeyIgnoreCase怎么用?PHP getKeyIgnoreCase使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getKeyIgnoreCase函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getTag
/**
* @ describe the function AddCategory->getTag.
*/
function getTag($tag)
{
global $application;
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
if ($value == null) {
switch ($tag) {
case 'Breadcrumb':
$obj =& $application->getInstance('Breadcrumb');
$value = $obj->output(false);
break;
case 'ErrorIndex':
$value = $this->_error_index;
break;
case 'Error':
$value = $this->_error;
break;
}
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:23,代码来源:banner_location_az.php
示例2: getTag
function getTag($tag)
{
global $application;
switch ($tag) {
case 'ProductInfoLink':
$cz_layouts = LayoutConfigurationManager::static_get_cz_layouts_list();
LayoutConfigurationManager::static_activate_cz_layout(array_shift(array_keys($cz_layouts)));
$request = new CZRequest();
$request->setView('ProductInfo');
$request->setAction('SetCurrentProduct');
$request->setKey('prod_id', $this->POST["product_id"]);
$request->setProductID($this->POST["product_id"]);
$value = $request->getURL();
break;
case "ErrorIndex":
$value = $this->_error_index;
break;
case "Error":
$value = $this->_error;
break;
default:
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
if ($value === NULL) {
$value = getKeyIgnoreCase($tag, $this->_Rate);
}
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:29,代码来源:manage_quantity_discounts_az.php
示例3: getTag
//.........这里部分代码省略.........
$value = "";
if ($this->_filter['search_by'] == 'id' && !empty($this->_filter['order_id'])) {
$value = $this->_filter['order_id'];
}
break;
case 'DeleteOrdersLink':
$request = new Request();
$request->setView('DeleteOrders');
$request->setAction('SetOrdersForDeleteAction');
$value = $request->getURL();
break;
case 'PaginatorLine':
$obj =& $application->getInstance($tag);
$value = $obj->output("Checkout_Orders", "Orders");
break;
# PaginatorRows
# PaginatorRows
case 'PaginatorRows':
$obj =& $application->getInstance($tag);
$value = $obj->output("Checkout_Orders", 'Orders', 'PGNTR_ORD_ITEMS');
break;
case 'ResultMessageRow':
$value = $this->outputResultMessage();
break;
case 'ResultMessage':
$value = $this->_Template_Contents['ResultMessage'];
break;
case 'PackingSlipLink':
$request = new Request();
$request->setView('OrderPackingSlip');
$request->setAction('SetCurrentOrder');
$request->setKey('order_id', $this->_order['IdInt']);
// uncomment the following link to force printing
// $request -> setKey('do_print', 'Y');
$value = $request->getURL();
break;
case 'InvoiceLink':
$request = new Request();
$request->setView('OrderInvoice');
$request->setAction('SetCurrentOrder');
$request->setKey('order_id', $this->_order['IdInt']);
// uncomment the following link to force printing
// $request -> setKey('do_print', 'Y');
$value = $request->getURL();
break;
case 'AffiliateIDSearch':
$v = isset($this->_filter['affiliate_id']) ? $this->_filter['affiliate_id'] : "";
$value = "<input type='text' name='affiliate_id' size='28' class='form-control form-filter input-sm' value='" . $v . "' />";
break;
default:
list($entity, $tag) = getTagName($tag);
if ($entity == 'order') {
if (_ml_strpos($tag, 'price') === 0) {
$tag = _ml_strtolower(_ml_substr($tag, _ml_strlen('price')));
if ($tag == 'total') {
$value = $this->_order['Total'];
if ($this->_order['TotalInMainStoreCurrency'] !== NULL) {
$value = $this->_order['TotalInMainStoreCurrency'] . ' (' . $value . ')';
}
} elseif ($tag == 'subtotal') {
$value = $this->_order['Subtotal'];
} else {
if ($tag == 'taxes') {
$full_tax_exempt_orders = $this->__getFullTaxExemptOrders();
$code = $this->_fetched_orders[$this->_order['IdInt']]["order_currencies_list"]["CURRENCY_TYPE_MAIN_STORE_CURRENCY"]["currency_code"];
$value = $this->_fetched_orders[$this->_order['IdInt']]["price_total"][$code]["order_tax_total"];
$crcy_id = modApiFunc("Localization", "getCurrencyIdByCode", $code);
modApiFunc("Localization", "pushDisplayCurrency", $crcy_id, $crcy_id);
$value = modApiFunc("Localization", "currency_format", $value);
$null_value = modApiFunc("Localization", "currency_format", "0.0000");
modApiFunc("Localization", "popDisplayCurrency");
if (array_key_exists($this->_order['IdInt'], $full_tax_exempt_orders)) {
$value = $null_value . " (ex. {$value})";
}
} else {
$prices = getKeyIgnoreCase('price', $this->_order);
$value = $prices[$tag];
}
}
} elseif (_ml_strpos($tag, 'customer') === 0) {
$tag = _ml_strtolower(_ml_substr($tag, _ml_strlen('customer')));
switch ($tag) {
case 'name':
$value = $this->_order['PersonName'];
break;
case 'id':
$value = $this->_order['PersonId'];
break;
case 'infoname':
$value = $this->_order['PersonInfoName'];
break;
}
} else {
$value = getKeyIgnoreCase($tag, $this->_order);
}
}
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:101,代码来源:checkout-manage-orders-az.php
示例4: getTag
function getTag($tag)
{
return getKeyIgnoreCase($tag, $this->_Template_Contents);
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:4,代码来源:import_products_view_az.php
示例5: getSortLink
function getSortLink($tag)
{
# THIS FUNCTION TEMPORARY DISABLED
return getMsg('CTL', 'LINK_NAME_' . getKeyIgnoreCase($tag, $this->__sort_tag_suffix));
list($curr_sort_field, $curr_sort_direction) = modApiFunc('CProductListFilter', 'getCurrentSortField');
$_sort_field = getKeyIgnoreCase($tag, $this->__sort_tag_suffix);
if ($curr_sort_field == $_sort_field) {
if ($curr_sort_direction == SORT_DIRECTION_ASC) {
$_sort_direction = SORT_DIRECTION_DESC;
$_template_name = "sort_link_asc.tpl.html";
} else {
$_sort_direction = SORT_DIRECTION_ASC;
$_template_name = "sort_link_desc.tpl.html";
}
} else {
$_sort_direction = SORT_DIRECTION_ASC;
$_template_name = "sort_link.tpl.html";
}
$_request = new Request();
$_request->setView('ProductList');
$_request->setAction('SetProductListSortField');
$_request->setKey('field', $_sort_field . ',' . $_sort_direction);
$params = array('LINK_HREF' => $_request->getURL(), 'LINK_NAME' => getMsg('CTL', 'LINK_NAME_' . $_sort_field));
$value = modApiFunc('TmplFiller', 'fill', "catalog/prod_list/", $_template_name, $params);
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:26,代码来源:prodslist_az.php
示例6: getTag
function getTag($tag)
{
global $application;
switch ($tag) {
case "ErrorIndex":
$value = $this->_error_index;
break;
case "Error":
$value = $this->_error;
break;
case 'ResultMessage':
$value = $this->_Template_Contents['ResultMessage'];
break;
default:
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
if ($value === NULL) {
$value = getKeyIgnoreCase($tag, $this->_CCType);
}
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:22,代码来源:credit_card_settings_az.php
示例7: getTag
/**
* @param $tag name of the requested tag
* @return value of the tag
*/
function getTag($tag)
{
global $application;
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:10,代码来源:dsr_input_az.php
示例8: getTag
function getTag($tag)
{
// overriding paginator line
if ($tag == 'PaginatorLine') {
return getPaginatorLine($this->_pagname, $this->_pagblock, modApiFunc('CProductListFilter', 'getCurrentCategoryId'), $this->product_id);
}
// overriding paginator dropdown
if ($tag == 'PaginatorDropdown') {
return getPaginatorDropdown($this->_pagname, $this->_pagblock, 'customer reviews');
}
return getKeyIgnoreCase($tag, $this->_Template_Contents);
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:12,代码来源:cr_product_review_list_cz.php
示例9: getTag
function getTag($tag)
{
global $application;
$value = null;
switch ($tag) {
default:
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:11,代码来源:one-step-checkout-cz.php
示例10: getTag
/**
* Returns the tag output, whose name is specified in $tag.
*/
function getTag($tag)
{
global $application;
$value = "";
if ($tag == "Error") {
$value = $this->_error;
} elseif ($tag == "ErrorIndex") {
$value = $this->_error_index;
} else {
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:16,代码来源:edit-fs-rule-area-az.php
示例11: getTag
/**
* Processes tags in the templates for the given view.
*
* @return string tag value, if tag has been processed. NULL, otherwise.
*/
function getTag($tag)
{
$args = func_get_args();
array_shift($args);
$second_arg = @array_shift($args);
$sort_direction = @$second_arg[0];
if ($sort_direction === SORT_DIRECTION_DESC) {
$sort_direction = SORT_DIRECTION_DESC;
} else {
$sort_direction = SORT_DIRECTION_ASC;
}
global $application;
$value = null;
switch ($tag) {
case 'Local_LinkList':
$value = $this->outputLinkList();
break;
case 'Local_Href':
$value = $this->_local_href_tag;
break;
case 'Local_Name':
$value = $this->_local_name_tag;
break;
default:
if (_ml_strpos($tag, $this->__href_tag_prefix) === 0) {
$sort_field_key = _ml_substr($tag, _ml_strlen($this->__href_tag_prefix));
$sort_field = getKeyIgnoreCase($sort_field_key, $this->__sort_field_list);
$_request = new Request();
#$_request->setView('ProductList');
#$_request->setCategoryID($this->__current_category_id);
$_request->setView(CURRENT_REQUEST_URL);
$_request->setAction('SetProductListSortField');
$_request->setKey('field', $sort_field . ',' . $sort_direction);
$value = $_request->getURL();
}
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:43,代码来源:product_list_sorter_cz.php
示例12: outputGA
/**
* Otputs the view.
*
* @ $request->setView ( '' ) - define the view name
*/
function outputGA()
{
global $application;
$last_placed_order_id = modApiFunc("Checkout", "getLastPlacedOrderID");
if ($last_placed_order_id !== NULL) {
$settings = TransactionTracking::getModulesSettings();
$GA_ACCOUNT_NUMBER = $settings[MODULE_GOOGLE_ANALYTICS_UID]['GA_ACCOUNT_NUMBER'];
$container_template = TransactionTracking::getIncludedFileContents("google_analytics_container.tpl.html");
$item_template = TransactionTracking::getIncludedFileContents("google_analytics_item.tpl.html");
$orderInfo = modApiFunc("Checkout", "getOrderInfo", $last_placed_order_id, modApiFunc("Localization", "whichCurrencySendOrderToPaymentShippingGatewayIn", $last_placed_order_id, GET_PAYMENT_MODULE_FROM_ORDER));
$ITEMS = "";
foreach ($orderInfo['Products'] as $product_info) {
$handpicked_options = "";
for ($j = 0; $j < count($product_info['options']); $j++) {
$handpicked_options .= $product_info['options'][$j]['option_name'] . ": " . $product_info['options'][$j]['option_value'] . ";";
}
$handpicked_options = htmlspecialchars($handpicked_options);
$SKU = getKeyIgnoreCase('SKU', $product_info['attr']);
$SKU = $SKU['value'];
$SalePrice = getKeyIgnoreCase('SalePrice', $product_info['attr']);
$SalePrice = $SalePrice['value'];
$item_data = array("ORDER_ID" => $last_placed_order_id, "SKU" => $SKU, "PRODUCT_NAME" => $product_info['name'], "CATEGORY" => $handpicked_options, "PRICE" => $SalePrice, "QUANTITY" => $product_info['qty']);
$encoded_item_data = array();
foreach ($item_data as $key => $value) {
$encoded_item_data[$key] = htmlspecialchars($value);
}
$ITEMS .= strtr($item_template, $encoded_item_data) . "\n";
}
// CITY, STATE, COUNTRY - . Shipping - ,
// , Billing - .
if (!empty($orderInfo['Shipping']['attr'])) {
$person_info = $orderInfo['Shipping']['attr'];
} else {
$person_info = $orderInfo['Billing']['attr'];
}
$CITY = getKeyIgnoreCase("city", $person_info);
$CITY = $CITY['value'];
$STATE = getKeyIgnoreCase("state", $person_info);
$STATE = $STATE['value'];
$COUNTRY = getKeyIgnoreCase("country", $person_info);
$COUNTRY = $COUNTRY['value'];
$currency_id = modApiFunc("Localization", "whichCurrencySendOrderToPaymentShippingGatewayIn", $last_placed_order_id, GET_PAYMENT_MODULE_FROM_ORDER);
$container_data = array("UA-XXXXX-1" => $GA_ACCOUNT_NUMBER, "ORDER_ID" => $last_placed_order_id, "AFFILIATION" => modApiFunc("Configuration", "getValue", SYSCONFIG_STORE_OWNER_NAME), "TOTAL" => modApiFunc("Checkout", "getOrderPrice", "Total", $currency_id), "TAX" => $this->export_PRICE_N_A(modApiFunc("Checkout", "getOrderPrice", "Tax", $currency_id)), "SHIPPING" => $this->export_PRICE_N_A(modApiFunc("Checkout", "getOrderPrice", "TotalShippingAndHandlingCost", $currency_id)), "CITY" => $CITY, "STATE" => $STATE, "COUNTRY" => $COUNTRY);
$encoded_container_data = array();
foreach ($container_data as $key => $value) {
$encoded_container_data[$key] = htmlspecialchars($value);
}
$encoded_container_data["ITEMS"] = $ITEMS;
$value = strtr($container_template, $encoded_container_data) . "\n";
return $value;
} else {
return "";
}
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:59,代码来源:transaction-tracking-html-code-cz.php
示例13: getTag
function getTag($tag)
{
$res = null;
if ($tag == 'MessagesList' || $tag == 'SelfUrl') {
$res = getKeyIgnoreCase($tag, $this->_templateContents);
} else {
$res = getKeyIgnoreCase($tag, $this->_listTemplateContents);
}
return $res;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:10,代码来源:newsletter_list_az.php
示例14: getTag
function getTag($tag)
{
global $application;
$value = null;
switch ($tag) {
case 'ListManageExtensionItems':
$value = $this->outputExtDetailList();
if ($value == "") {
$value = '<div style="font-weight:bold;padding: 44px;text-align: center;">' . getMsg('SYS', 'NO_EXT_INSTALLED_MSG') . '</div>';
}
break;
case 'StatusMessage':
$value = $this->outputStatusMessage();
break;
case 'UninstallMessage':
$value = $this->outputUninstallMessage();
break;
case 'SelectExtensionType':
$value = $this->outputExtensionTypeFilterSelect();
break;
case 'ReloadMarketPlace':
$value = "configure-extensions.php?reload";
break;
case 'ErrorMessage':
$value = $this->outputErrorMessage();
break;
case 'Local_ConfigureURL':
$value = 'configure-extensions.php';
break;
default:
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:35,代码来源:extension_manage_az.php
示例15: getTag
function getTag($tag)
{
$value = null;
if ($tag == 'ErrorIndex') {
$value = $this->_errorIndex;
} else {
if ($tag == 'Error') {
$value = $this->_error;
} else {
$value = getKeyIgnoreCase($tag, $this->_templateContents);
}
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:14,代码来源:newsletter_compose_az.php
示例16: getTag
/**
* @ describe the function ManageOrders->.
*/
function getTag($tag)
{
global $application;
$value = null;
switch ($tag) {
case 'SearchCustomers':
$application->registerAttributes(array('CustomersSearchByField', 'CustomersSearchByFieldValue', 'CustomersSearchByLetter'));
$value = $this->TemplateFiller->fill("checkout/customers/", "search.tpl.html", array());
break;
case 'CustomersSearchByLetter':
$value = "<td style='vertical-align: bottom'><a href='customers.php?asc_action=CustomersSearchByLetter&letter='>" . $this->MessageResources->getMessage('CUSTOMERS_SEARCH_ALL') . "</a></td><td>";
for ($i = 65; $i <= 90; $i++) {
$letter = _byte_chr($i);
if ($this->_filter['search_by'] == 'letter' && !empty($this->_filter['letter'])) {
if (_byte_chr($i + 32) == $this->_filter['letter']) {
$letter = "<span class='required'>" . _byte_chr($i) . "</span>";
}
}
$value .= "<a href='customers.php?asc_action=CustomersSearchByLetter&letter=" . _byte_chr($i + 32) . "'><b>" . $letter . "</b></a> ";
}
$value .= "</td>";
break;
case 'CustomersSearchByField':
$value = "<OPTION value='name'>" . $this->MessageResources->getMessage("CUSTOMERS_SEARCH_BY_NAME") . "</OPTION>";
if ($this->_filter['search_by'] == 'field' && !empty($this->_filter['field_name']) && $this->_filter['field_name'] == 'Email') {
$value .= "<OPTION value='Email' selected>" . $this->MessageResources->getMessage("CUSTOMERS_SEARCH_BY_EMAIL") . "</OPTION>";
} else {
$value .= "<OPTION value='Email'>" . $this->MessageResources->getMessage("CUSTOMERS_SEARCH_BY_EMAIL") . "</OPTION>";
}
break;
case 'CustomersSearchByFieldValue':
$value = '';
if ($this->_filter['search_by'] == 'field' && !empty($this->_filter['field_name']) && !empty($this->_filter['field_value'])) {
$value = $this->_filter['field_value'];
}
break;
case 'SearchResults':
if (count($this->_customers) == 0) {
$value = $this->TemplateFiller->fill("checkout/customers/", "empty.tpl.html", array());
} else {
$value = $this->TemplateFiller->fill("checkout/customers/", "results.tpl.html", array());
}
break;
case 'Items':
$value = $this->getCustomers();
break;
case 'CustomerId':
$value = getKeyIgnoreCase('Id', $this->_customer);
break;
case 'ResultCount':
$from = modApiFunc("Paginator", "getCurrentPaginatorOffset") + 1;
$to = modApiFunc("Paginator", "getCurrentPaginatorOffset") + modApiFunc("Paginator", "getPaginatorRowsPerPage", "Checkout_Customers");
$total = modApiFunc("Paginator", "getCurrentPaginatorTotalRows");
if ($to > $total) {
$to = $total;
}
if ($total <= modApiFunc("Paginator", "getPaginatorRowsPerPage", "Checkout_Customers")) {
$value = $this->MessageResources->getMessage(new ActionMessage(array("CUSTOMERS_RESULTS_LESS_THEN_ROWS_PER_PAGE_FOUND", $total)));
} else {
$value = $this->MessageResources->getMessage(new ActionMessage(array("CUSTOMERS_RESULTS_MORE_THEN_ROWS_PER_PAGE_FOUND", $from, $to, $total)));
}
break;
case 'CustomerTotalOrders':
$value = getKeyIgnoreCase('TotalOrders', $this->_customer);
break;
case 'CustomerTotalAmount':
$value = modApiFunc("Localization", "currency_format", getKeyIgnoreCase('TotalAmount', $this->_customer));
break;
case 'PaginatorLine':
$obj =& $application->getInstance($tag);
$value = $obj->output("Checkout_Customers", "Customers");
break;
# PaginatorRows
# PaginatorRows
case 'PaginatorRows':
$obj =& $application->getInstance($tag);
$value = $obj->output("Checkout_Customers", 'Customers', 'PGNTR_CUST_ITEMS');
break;
case 'CustomerRegStatus':
$customerInfo = getKeyIgnoreCase('Customer', $this->_customer);
$email = getKeyIgnoreCase('Email', $customerInfo['attr']);
if (modApiFunc('Customer_Account', 'doesAccountExists', $email['value'])) {
$value = 'reg';
} else {
$value = 'not-reg';
}
break;
default:
list($entity, $tag) = getTagName($tag);
if ($entity == 'customer') {
$customerInfo = getKeyIgnoreCase('Customer', $this->_customer);
if (!($tagvalue = getKeyIgnoreCase($tag, $customerInfo['attr']))) {
break;
}
$value = $tagvalue['value'];
}
break;
//.........这里部分代码省略.........
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:101,代码来源:checkout-manage-customers-az.php
示例17: getTag
function getTag($tag)
{
global $application;
switch ($tag) {
case "ErrorIndex":
$value = $this->_error_index;
break;
case "Error":
$value = $this->_error;
break;
default:
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:16,代码来源:offline_cc_input_az.php
示例18: getTag
function getTag($tag)
{
global $application;
$value = null;
switch ($tag) {
case 'HiddenArrayViewState':
$value = $this->outputViewState();
break;
case 'MessageBox':
$value = $this->getMessageBox();
break;
case 'Messages':
$value = $this->__msg;
break;
case 'Errors':
$value = '';
//$this->__msg;
break;
case 'CreditCardAttributesAction':
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
$request = new Request();
$request->setView('CreditCardAttributes');
$request->setAction("UpdateCreditCardAttributes");
$request->setKey('cc_id', $this->cc_id);
$form_action = $request->getURL();
$value = $HtmlForm1->genForm($form_action, "POST", "CreditCardAttributesForm");
break;
case "CardName":
$value = '';
if (isset($this->card['name'])) {
$value = $this->card['name'];
}
break;
case 'Items':
$value = '';
foreach ($this->attr as $id => $a) {
$value .= $this->outputItem($id);
}
break;
default:
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:46,代码来源:credit_card_attributes_az.php
示例19: getTag
/**
* Processes tags in the templates for the given view.
*
* @return string tag value, if tag has been processed. NULL, otherwise.
*/
function getTag($tag)
{
global $application;
$value = null;
switch ($tag) {
case 'Local_JSfuncProductFormSubmit':
$value = "<script type=\"text/javascript\">" . "function ProductFormSubmit_" . $this->_ProductInfo['ID'] . "()" . "{" . " document.forms['ProductForm_" . $this->_ProductInfo['ID'] . "'].submit();" . "};" . "</script>";
break;
case 'Local_ProductStockWarnings':
if (!modApiFunc('Session', 'is_set', 'StockDiscardedBy')) {
$value = '';
} else {
$stock_discarded_by = modApiFunc('Session', 'get', 'StockDiscardedBy');
modApiFunc('Session', 'un_set', 'StockDiscardedBy');
$value = $stock_discarded_by;
//cz_getMsg($stock_discarded_by);
}
break;
case 'Local_ProductFormStart':
$value = '<form action="cart.php" name="ProductForm_' . $this->_ProductInfo['ID'] . '" id="ProductForm_' . $this->_ProductInfo['ID'] . '" method="post" enctype="multipart/form-data">
<input type="hidden" name="asc_action" value="AddToCart" />
<input type="hidden" name="prod_id" value="' . $this->_ProductInfo['ID'] . '" />
<script type="text/javascript">
function ProductFormSubmit_' . $this->_ProductInfo['ID'] . '()
{
document.forms[\'ProductForm_' . $this->_ProductInfo['ID'] . '\'].submit();
};
</script>';
break;
case 'Local_ProductFormEnd':
$value = '</form>';
break;
case 'Local_ProductAddToCart':
$value = 'javascript: ProductFormSubmit_' . $this->_ProductInfo['ID'] . '();';
break;
case 'ProductOptionsForm':
$value = getOptionsChoice($this->_ProductInfo['ID']);
break;
case 'Local_FormQuantityFieldName':
$value = 'quantity_in_cart';
break;
case 'Local_ProductQuantityOptions':
$qty_in_cart = modApiFunc("Cart", "getProductQuantity", $this->_ProductInfo['ID']);
$value = modApiFunc("Cart", "getProductQuantityOptions", $qty_in_cart, $this->_ProductInfo['ID']);
break;
case 'RelatedProducts':
$value = $this->_rp_output;
// output
break;
default:
list($entity, $tag) = getTagName($tag);
if ($entity == 'product') {
$value = getKeyIgnoreCase($tag, $this->_ProductInfo);
}
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:63,代码来源:cr_product_info_cz.php
示例20: getTag
/**
* Processes tags in the templates for the given view.
*
* @return string tag value, if the tag is not processed. NULL otherwise.
*/
function getTag($tag)
{
$value = null;
switch ($tag) {
case 'Items':
$value = $this->outputCheckoutNavigationBarList();
break;
default:
list($entity, $tag) = getTagName($tag);
if ($entity == 'step') {
$value = getKeyIgnoreCase($tag, $this->_Step_Info);
}
break;
}
return $value;
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:21,代码来源:checkout-navigation-bar-cz.php
注:本文中的getKeyIgnoreCase函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论