本文整理汇总了PHP中zen_get_all_get_params函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_get_all_get_params函数的具体用法?PHP zen_get_all_get_params怎么用?PHP zen_get_all_get_params使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_get_all_get_params函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: update
function update(&$class, $eventID, $paramsArray)
{
global $messageStack;
if (isset($_SESSION['COWOA']) && $_SESSION['COWOA'] == true) {
$messageStack->add_session('header', 'Only registered customers can access account features. You are currently using our guest checkout option. Please logout and sign-in with your registered account to access all account features.', 'caution');
zen_redirect(zen_back_link(true));
} elseif (!isset($_SESSION['customer_id'])) {
$_SESSION['redirect_url'] = zen_href_link($_GET['main_page'], zen_get_all_get_params(array('main_page')), 'SSL');
}
}
开发者ID:krakatoa14,项目名称:fec,代码行数:10,代码来源:class.no_account.php
示例2: zen_update_whos_online
/**
* zen_update_whos_online
*/
function zen_update_whos_online()
{
global $db;
if (isset($_SESSION['customer_id']) && $_SESSION['customer_id']) {
$wo_customer_id = $_SESSION['customer_id'];
$customer_query = "select customers_firstname, customers_lastname\n from " . TABLE_CUSTOMERS . "\n where customers_id = '" . (int) $_SESSION['customer_id'] . "'";
$customer = $db->Execute($customer_query);
$wo_full_name = $customer->fields['customers_lastname'] . ', ' . $customer->fields['customers_firstname'];
} else {
$wo_customer_id = '';
$wo_full_name = '¥' . 'Guest';
}
$wo_session_id = zen_session_id();
$wo_ip_address = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : 'Unknown';
$wo_user_agent = substr(zen_db_prepare_input($_SERVER['HTTP_USER_AGENT']), 0, 254);
$_SERVER['QUERY_STRING'] = isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != '' ? $_SERVER['QUERY_STRING'] : zen_get_all_get_params();
if (isset($_SERVER['REQUEST_URI'])) {
$uri = $_SERVER['REQUEST_URI'];
} else {
if (isset($_SERVER['QUERY_STRING'])) {
$uri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'];
} else {
$uri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['argv'][0];
}
}
if (substr($uri, -1) == '?') {
$uri = substr($uri, 0, strlen($uri) - 1);
}
$wo_last_page_url = zen_not_null($uri) ? substr($uri, 0, 254) : 'Unknown';
$current_time = time();
$xx_mins_ago = $current_time - 900;
// remove entries that have expired
$sql = "delete from " . TABLE_WHOS_ONLINE . "\n where time_last_click < '" . $xx_mins_ago . "'";
$db->Execute($sql);
$stored_customer_query = "select count(*) as count\n from " . TABLE_WHOS_ONLINE . "\n where session_id = '" . zen_db_input($wo_session_id) . "' and ip_address='" . zen_db_input($wo_ip_address) . "'";
$stored_customer = $db->Execute($stored_customer_query);
if (empty($wo_session_id)) {
$wo_full_name = '¥' . 'Spider';
}
if ($stored_customer->fields['count'] > 0) {
$sql = "update " . TABLE_WHOS_ONLINE . "\n set customer_id = '" . (int) $wo_customer_id . "',\n full_name = '" . zen_db_input($wo_full_name) . "',\n ip_address = '" . zen_db_input($wo_ip_address) . "',\n time_last_click = '" . zen_db_input($current_time) . "',\n last_page_url = '" . zen_db_input($wo_last_page_url) . "',\n host_address = '" . zen_db_input($_SESSION['customers_host_address']) . "',\n user_agent = '" . zen_db_input($wo_user_agent) . "'\n where session_id = '" . zen_db_input($wo_session_id) . "' and ip_address='" . zen_db_input($wo_ip_address) . "'";
$db->Execute($sql);
} else {
$sql = "insert into " . TABLE_WHOS_ONLINE . "\n (customer_id, full_name, session_id, ip_address, time_entry,\n time_last_click, last_page_url, host_address, user_agent)\n values ('" . (int) $wo_customer_id . "', '" . zen_db_input($wo_full_name) . "', '" . zen_db_input($wo_session_id) . "', '" . zen_db_input($wo_ip_address) . "', '" . zen_db_input($current_time) . "', '" . zen_db_input($current_time) . "', '" . zen_db_input($wo_last_page_url) . "', '" . zen_db_input($_SESSION['customers_host_address']) . "', '" . zen_db_input($wo_user_agent) . "')";
$db->Execute($sql);
}
}
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:50,代码来源:whos_online.php
示例3: zen_href_link
<td class="dataTableContent"><?php
echo $groups->fields['group_percentage'];
?>
</td>
<td class="dataTableContent" align="right">
<?php
echo '<a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $groups->fields['group_id'] . '&action=edit') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif', ICON_EDIT) . '</a>';
?>
<?php
echo '<a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $groups->fields['group_id'] . '&action=delete') . '">' . zen_image(DIR_WS_IMAGES . 'icon_delete.gif', ICON_DELETE) . '</a>';
?>
<?php
if (isset($gInfo) && is_object($gInfo) && $groups->fields['group_id'] == $gInfo->group_id) {
echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . zen_href_link(FILENAME_GROUP_PRICING, zen_get_all_get_params(array('gID')) . 'gID=' . $groups->fields['group_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
<?php
$groups->MoveNext();
}
?>
<tr>
<td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
echo $groups_split->display_count($groups_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRICING_GROUPS);
?>
</td>
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:group_pricing.php
示例4: zen_href_link
if ($reviews->fields['count'] > 0) {
?>
<div id="productReviewLink" class="buttonRow back"><?php
echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>';
?>
</div>
<br class="clearBoth" />
<p class="reviewCount"><?php
echo $flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : '';
?>
</p>
<?php
} else {
?>
<div id="productReviewLink" class="buttonRow back"><?php
echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>';
?>
</div>
<br class="clearBoth" />
<?php
}
}
?>
<!--eof Reviews button and count -->
<!--bof Product date added/available-->
<?php
if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:tpl_document_product_info_display.php
示例5: zen_get_products_display_price
$products_price = zen_get_products_display_price($products_new->fields['products_id']);
$display_products_price = TEXT_PRICE . ' ' . $products_price . str_repeat('<br clear="all" />', substr(PRODUCT_NEW_LIST_PRICE, 3, 1)) . (zen_get_show_product_switch($products_new->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? zen_get_product_is_always_free_shipping($products_new->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '' : '');
} else {
$display_products_price = '';
}
// more info in place of buy now
if (PRODUCT_NEW_BUY_NOW != '0' and zen_get_products_allow_add_to_cart($products_new->fields['products_id']) == 'Y') {
if (zen_has_product_attributes($products_new->fields['products_id'])) {
$link = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
} else {
// $link= '<a href="' . zen_href_link(FILENAME_PRODUCTS_NEW, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</a>';
if (PRODUCT_NEW_LISTING_MULTIPLE_ADD_TO_CART > 0 && $products_new->fields['products_qty_box_status'] != 0) {
// $how_many++;
$link = TEXT_PRODUCT_NEW_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $products_new->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
} else {
$link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_NEW, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a> ';
}
}
$the_button = $link;
$products_link = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
$display_products_button = zen_get_buy_now_button($products_new->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($products_new->fields['products_id']) . str_repeat('<br clear="all" />', substr(PRODUCT_NEW_BUY_NOW, 3, 1));
} else {
$link = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
$the_button = $link;
$products_link = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
$display_products_button = zen_get_buy_now_button($products_new->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($products_new->fields['products_id']) . str_repeat('<br clear="all" />', substr(PRODUCT_NEW_BUY_NOW, 3, 1));
}
if (PRODUCT_NEW_LIST_DESCRIPTION > '0') {
$disp_text = zen_get_products_description($products_new->fields['products_id']);
$disp_text = zen_clean_html($disp_text);
$display_products_description = stripslashes(zen_trunc_string($disp_text, PRODUCT_NEW_LIST_DESCRIPTION, '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '"> ' . MORE_INFO_TEXT . '</a>'));
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:tpl_modules_products_new_listing.php
示例6: array
$contents = array();
switch ($action) {
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_PRODUCTS_DOWNLOAD . '</b>');
$contents = array('form' => zen_draw_form('products_downloads_edit', FILENAME_DOWNLOADS_MANAGER, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->products_attributes_id . '&action=save' . '&page=' . $_GET['page']));
$contents[] = array('text' => '<b>' . TEXT_PRODUCTS_NAME . $padInfo->products_name . '<br />' . TEXT_PRODUCTS_MODEL . $padInfo->products_model . '</b>');
$contents[] = array('text' => '<br />' . TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_INFO_FILENAME . '<br />' . zen_draw_input_field('products_attributes_filename', $padInfo->products_attributes_filename));
$contents[] = array('text' => '<br />' . TEXT_INFO_MAX_DAYS . '<br />' . zen_draw_input_field('products_attributes_maxdays', $padInfo->products_attributes_maxdays));
$contents[] = array('text' => '<br />' . TEXT_INFO_MAX_COUNT . '<br />' . zen_draw_input_field('products_attributes_maxcount', $padInfo->products_attributes_maxcount));
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_DOWNLOADS_MANAGER, 'padID=' . $padInfo->products_attributes_id) . '&page=' . $_GET['page'] . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($padInfo) && is_object($padInfo)) {
$heading[] = array('text' => '<b>' . $padInfo->products_attributes_id . ' ' . $padInfo->products_attributes_filename . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_DOWNLOADS_MANAGER, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->products_attributes_id . '&page=' . $_GET['page'] . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>' . '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, 'products_filter=' . $padInfo->products_id . '¤t_categories_id=' . $padInfo->master_categories_id) . '">' . zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES) . '</a>');
$contents[] = array('text' => '<br />' . TEXT_PRODUCTS_NAME . $padInfo->products_name);
$contents[] = array('text' => TEXT_PRODUCTS_MODEL . $padInfo->products_model);
$contents[] = array('text' => TEXT_INFO_FILENAME . $padInfo->products_attributes_filename);
$contents[] = array('text' => TEXT_INFO_MAX_DAYS . $padInfo->products_attributes_maxdays);
$contents[] = array('text' => TEXT_INFO_MAX_COUNT . $padInfo->products_attributes_maxcount);
}
break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
?>
开发者ID:ygeneration666,项目名称:ec,代码行数:31,代码来源:downloads_manager.php
示例7: zen_get_all_get_params
require $template->get_template_dir('tpl_gallery_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_gallery_display.php';
break;
default:
require $template->get_template_dir('tpl_tabular_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_tabular_display.php';
break;
}
} else {
require $template->get_template_dir('tpl_tabular_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_tabular_display.php';
}
} else {
echo '<div class="error_box maxwidth" style="width:500px;">In categories no products</div>';
}
if ($listing_split->number_of_rows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) {
?>
<div class="pagebar margin_t g_t_c gray_bg"><?php
echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y')));
?>
</div>
<?php
}
// only show when there is something to submit and enabled
if ($show_bottom_submit_button == true) {
?>
<div class="pad_10px fr"><?php
echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit2" name="submit1"');
?>
</div>
<br class="clear" />
<?php
}
// show_bottom_submit_button
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:tpl_modules_product_listing.php
示例8: actionRemoveProduct
/**
* Method to handle cart Action - remove product
*
* @param string forward destination
* @param url parameters
*/
function actionRemoveProduct($goto, $parameters)
{
if (isset($_GET['product_id']) && zen_not_null($_GET['product_id'])) {
$this->remove($_GET['product_id']);
}
zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters)));
}
开发者ID:jeking928,项目名称:Dual-Pricing-2.1.6,代码行数:13,代码来源:shopping_cart.php
示例9: zen_draw_form
*/
?>
<div class="centerColumn" id="createAcctDefault">
<h1 id="createAcctDefaultHeading"><?php
echo HEADING_TITLE;
?>
</h1>
<div id="centerColumnBody">
<?php
echo zen_draw_form('visitor_edit', zen_href_link(FILENAME_ADDON, 'module=visitors/visitor_edit', 'SSL'), 'post', 'onsubmit="return check_form(visitor_edit);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format');
?>
<h4 id="createAcctDefaultLoginLink"><?php
echo sprintf(TEXT_ORIGIN_LOGIN, zen_href_link(FILENAME_LOGIN, zen_get_all_get_params(), 'SSL'));
?>
</h4>
<?php
require $page_module->getModuleTemplate($page_method, 'module_create_visitor');
?>
<div class="submit">
<div class="buttonRow forward"><?php
echo zen_image_submit(MODULE_VISITORS_BUTTON_IMAGE_CHANGE_ORAGE, MODULE_VISITORS_BUTTON_CHANGE_ALT, 'class="imgover"');
?>
</div>
<div class="buttonRow back"><?php
echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT, 'class="imgover"', 'class="imgover"') . '</a>';
?>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:page_visitor_edit.php
示例10: zen_get_all_get_params
}
?>
</td>
</tr>
<?php
$pages->MoveNext();
}
?>
<tr>
<td class="smallText" valign="top" colspan="2"><?php
echo $pages_split->display_count($pages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_EZPAGE, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PAGES);
?>
</td>
<td class="smallText" align="right" colspan="8"><?php
echo $pages_split->display_links($pages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_EZPAGE, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], zen_get_all_get_params(array('page', 'info', 'x', 'y', 'ezID')));
?>
</td>
</tr>
<tr>
<td colspan="10"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td align="right" colspan="2"><?php
echo '<a href="' . zen_href_link(FILENAME_EZPAGES_ADMIN, 'action=new') . '">' . zen_image_button('button_new_file.gif', IMAGE_NEW_PAGE) . '</a>';
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:ezpages.php
示例11: zen_get_all_get_params
* display the featured products
*/
require $template->get_template_dir('/tpl_modules_products_featured_listing.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_modules_products_featured_listing.php';
?>
<?php
if ($featured_products_split->number_of_rows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) {
?>
<div id="featuredProductsListingBottomNumber"
class="navSplitPagesResult back"><?php
echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_FEATURED_PRODUCTS);
?>
</div>
<div id="featuredProductsListingBottomLinks"
class="navSplitPagesLinks forward"><?php
echo TEXT_RESULT_PAGE . ' ' . $featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page')));
?>
</div>
<?php
}
?>
<br class="clearBoth" />
<?php
if ($show_bottom_submit_button == true) {
// only show button when there is something to submit
?>
<div class="buttonRow forward"><?php
echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit2" name="submit1"');
?>
</div>
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:tpl_featured_products_default.php
示例12: zen_href_link
<td class="dataTableContent"><?php
echo $manufacturers->fields['manufacturers_name'];
?>
</td>
<td class="dataTableContent" align="right">
<?php
echo '<a href="' . zen_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $manufacturers->fields['manufacturers_id'] . '&action=edit') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif', ICON_EDIT) . '</a>';
?>
<?php
echo '<a href="' . zen_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $manufacturers->fields['manufacturers_id'] . '&action=delete') . '">' . zen_image(DIR_WS_IMAGES . 'icon_delete.gif', ICON_DELETE) . '</a>';
?>
<?php
if (isset($mInfo) && is_object($mInfo) && $manufacturers->fields['manufacturers_id'] == $mInfo->manufacturers_id) {
echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . zen_href_link(FILENAME_MANUFACTURERS, zen_get_all_get_params(array('mID')) . 'mID=' . $manufacturers->fields['manufacturers_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
}
?>
</td>
</tr>
<?php
$manufacturers->MoveNext();
}
?>
<tr>
<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
echo $manufacturers_split->display_count($manufacturers_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_MANUFACTURERS);
?>
</td>
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:manufacturers.php
示例13: zen_date_long
</tr>
<tr>
<td class="main" align="left"><?php
echo zen_date_long($customers_orders->fields['date_purchased']);
?>
</td>
<td class="main" align="left">Order #<?php
echo $customers_orders->fields['orders_id'];
?>
</td>
<td class="main" align="left">Discount Coupon ID# <?php
echo $customers_orders->fields['coupon_code'];
?>
</td>
<td class="main" align="left"><?php
echo '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $customers_orders->fields['orders_id'] . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>';
?>
</td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<?php
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
echo ' <tr>' . "\n" . ' <td align="left" class="' . str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="' . str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n";
}
?>
</table></td>
</tr>
<?php
$customers_orders->MoveNext();
}
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:stats_customers_referrals.php
示例14: sprintf
$db->Execute($sql);
// send review-notification email to admin
if (REVIEWS_APPROVAL == '1' && SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO_STATUS == '1' and defined('SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO') and SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO != '') {
$email_text = sprintf(EMAIL_PRODUCT_REVIEW_CONTENT_INTRO, $product_info->fields['products_name']) . "\n\n";
$email_text .= sprintf(EMAIL_PRODUCT_REVIEW_CONTENT_DETAILS, $review_text) . "\n\n";
$email_subject = sprintf(EMAIL_REVIEW_PENDING_SUBJECT, $product_info->fields['products_name']);
$html_msg['EMAIL_SUBJECT'] = sprintf(EMAIL_REVIEW_PENDING_SUBJECT, $product_info->fields['products_name']);
$html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\\n', '', sprintf(EMAIL_PRODUCT_REVIEW_CONTENT_INTRO, $product_info->fields['products_name']));
$html_msg['EMAIL_MESSAGE_HTML'] .= '<br />';
$html_msg['EMAIL_MESSAGE_HTML'] .= str_replace('\\n', '', sprintf(EMAIL_PRODUCT_REVIEW_CONTENT_DETAILS, $review_text));
$extra_info = email_collect_extra_info($name, $email_address, $customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname'], $customer->fields['customers_email_address']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
zen_mail('', SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO, $email_subject, $email_text . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'reviews_extra');
}
// end send email
zen_redirect(zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params(array('action'))));
}
}
$products_price = zen_get_products_display_price($product_info->fields['products_id']);
$products_name = $product_info->fields['products_name'];
if ($product_info->fields['products_model'] != '') {
$products_model = '<br /><span class="smallText">[' . $product_info->fields['products_model'] . ']</span>';
} else {
$products_model = '';
}
// set image
// $products_image = $product_info->fields['products_image'];
if ($product_info->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
$products_image = PRODUCTS_IMAGE_NO_IMAGE;
} else {
$products_image = $product_info->fields['products_image'];
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:header_php.php
示例15: array
</td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($action) {
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<b>' . TABLE_HEADING_ID . $cInfo->customers_id . ' ' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_STORE_CREDIT, zen_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
}
break;
}
if (zen_not_null($heading) && zen_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
}
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:store_credit.php
示例16: foreach
}
if (is_array($nul)) {
foreach ($nul as $key2 => $val) {
if (is_string($val)) {
$postdata[$key][$key2] = utf8_encode($val);
}
if (is_array($val)) {
$postdata[$key][$key2] = utf8_encode(print_r($val, TRUE));
}
}
}
}
}
$notes = zen_parse_for_rogue_post(print_r($postdata, true));
$postdata = json_encode($postdata);
$gzpostdata = gzdeflate($postdata, 7);
$flagged = $notes === FALSE ? 0 : 1;
}
$sql_data_array = array('access_date' => 'now()', 'admin_id' => isset($_SESSION['admin_id']) ? (int) $_SESSION['admin_id'] : 0, 'page_accessed' => basename($PHP_SELF) . (!isset($_SESSION['admin_id']) || (int) $_SESSION['admin_id'] == 0 ? ' ' . (isset($_POST['admin_name']) ? $_POST['admin_name'] : (isset($_POST['admin_email']) ? $_POST['admin_email'] : '')) : ''), 'page_parameters' => zen_get_all_get_params(), 'ip_address' => substr($_SERVER['REMOTE_ADDR'], 0, 45), 'gzpost' => $gzpostdata, 'flagged' => (int) $flagged, 'attention' => $notes === FALSE ? '' : $notes);
zen_db_perform(TABLE_ADMIN_ACTIVITY_LOG, $sql_data_array);
unset($flagged, $postdata, $notes, $gzpostdata, $sql_data_array, $key, $nul);
}
function zen_parse_for_rogue_post($string)
{
$matches = '';
if (preg_match_all('~(file://|<iframe|<frame|<embed|<script|<meta)~i', $string, $matches)) {
return htmlspecialchars(WARNING_REVIEW_ROGUE_ACTIVITY . "\n" . implode(' and ', $matches[1]), ENT_COMPAT, CHARSET, TRUE);
} else {
return FALSE;
}
}
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:init_admin_history.php
示例17: isset
* for manufacturer listings:
*/
/**
* for manufacturer listings:
*/
case $current_page == 'index' && isset($_GET['manufacturers_id']):
/**
* for ez-pages:
*/
/**
* for ez-pages:
*/
case $current_page == 'page' && isset($_GET['id']):
/**
* all the above cases get treated here:
*/
$canonicalLink = zen_href_link($current_page, zen_get_all_get_params($excludeParams), 'NONSSL', false);
break;
/**
* All others
* uncomment the $canonicalLink = ''; line if you want no special handling for other pages
*/
/**
* All others
* uncomment the $canonicalLink = ''; line if you want no special handling for other pages
*/
default:
$canonicalLink = zen_href_link($current_page, zen_get_all_get_params($excludeParams), 'NONSSL', false);
//$canonicalLink = '';
}
unset($excludeParams, $includeCPath);
开发者ID:R-Future,项目名称:zencart,代码行数:31,代码来源:init_canonical.php
示例18: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_no_notifications.php 2982 2006-02-07 07:56:41Z birdbrain $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BOX_NOTIFY_YES, OTHER_BOX_NOTIFY_YES_ALT) . '<br />' . sprintf(BOX_NOTIFICATIONS_NOTIFY, zen_get_products_name($_GET['products_id'])) . '</a>';
$content .= '</div>';
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:15,代码来源:tpl_no_notifications.php
示例19: array
for ($i = 0; $i < sizeof($order->products); $i++) {
$contents[] = array('text' => $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name']);
if (sizeof($order->products[$i]['attributes']) > 0) {
for ($j = 0; $j < sizeof($order->products[$i]['attributes']); $j++) {
$contents[] = array('text' => ' <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></nobr>');
}
}
if ($i > MAX_DISPLAY_RESULTS_ORDERS_DETAILS_LISTING and MAX_DISPLAY_RESULTS_ORDERS_DETAILS_LISTING != 0) {
$contents[] = array('align' => 'left', 'text' => TEXT_MORE);
break;
}
}
if (sizeof($order->products) > 0) {
// Begin add Edit Orders button to lower buttons
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDER_EDIT, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>
<a href="' . zen_href_link(FILENAME_SUPER_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
// End add Edit Orders button to lower buttons
}
break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
?>
<td width="25%" valign="top"><table border="0" cellspacing="0" cellpadding="0" width="100%" valign="top">
<tr>
<td colspan="2" valign="top">
<?php
$box = new box();
echo $box->infoBox($heading, $contents);
?>
</td>
</tr>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:super_orders.php
示例20: zen_draw_form
</p>
<div class="preis">
<p>
<strong><?php
//echo TEXT_PRODUCT_PRICE;
?>
</strong>
<strong class="neue_text3"><?php
echo $products_price;
?>
</strong>
</p>
<!--bof Form start-->
<?php
echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($products_id), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data" id="products_add_form"');
?>
<!--eof Form start-->
<p class="p_top">
<?php
require $template->get_template_dir('tpl_modules_attributes.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_modules_attributes.php';
?>
<div class="clear"></div>
<?php
if (defined('AJAX_ADD_TO_CART_ENABLED') && AJAX_ADD_TO_CART_ENABLED) {
?>
<div id="a_addcart_result" class="tb-cart-info">
<div id="tb-action-hint">
<h4><?php
echo TEXT_ADD_ITEM_SUCCESS_TIP;
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:tpl_product_info_display.php
注:本文中的zen_get_all_get_params函数示例整理自Github/MSDocs等源 |
请发表评论