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

PHP mslib_fe类代码示例

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

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



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

示例1: insertOrdersProductPreProc

 function insertOrdersProductPreProc(&$params, &$reference)
 {
     error_log("insertOrdersProductPreProc - begin");
     $order_id = $params['insertArray']['orders_id'];
     $cart_product_item = $params['value'];
     $product_id = $cart_product_item['products_id'];
     $variant_id = $cart_product_item['variant_id'];
     // Get variant's details from the db
     $qry_res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('v.variant_price, v.variant_sku', 'tx_msvariants_domain_model_variants v', 'v.variant_id=' . $variant_id . ' and v.product_id=' . $product_id);
     if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_res) != 1) {
         // TODO this should never happen - raise exception?
         return;
     }
     $variant_data = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry_res);
     // Insert variant details about the order into the db
     $insert_array = array('order_id' => $order_id, 'product_id' => $product_id, 'variant_id' => $variant_id, 'price' => $variant_data['variant_price'], 'quantity' => $cart_product_item['qty'], 'sku' => $variant_data['variant_sku']);
     $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_msvariants_domain_model_variantsorders', $insert_array);
     // Insert variant attributes details about the order into the db
     $qry_res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('va.attribute_id, va.option_id, va.option_value_id', 'tx_msvariants_domain_model_variantsattributes va', 'va.variant_id=' . $variant_id . ' and va.product_id=' . $product_id);
     if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_res) <= 0) {
         // TODO this should never happen - raise exception?
         return;
     }
     while (($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry_res)) != false) {
         $row['option_name'] = mslib_fe::getRealNameOptions($row['option_id']);
         $row['option_value_name'] = mslib_fe::getNameOptions($row['option_value_id']);
         $insert_array = array('order_id' => $order_id, 'product_id' => $product_id, 'variant_id' => $variant_id, 'attribute_id' => $row['attribute_id'], 'option_id' => $row['option_id'], 'option_value_id' => $row['option_value_id'], 'option_name' => $row['option_name'], 'option_value_name' => $row['option_value_name']);
         $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_msvariants_domain_model_variantsattributesorders', $insert_array);
     }
     // while
     error_log("insertOrdersProductPreProc - end");
 }
开发者ID:piramidex,项目名称:msvariants,代码行数:32,代码来源:class.tx_msvariants_insertordersproductpreproc.php


示例2: init

 function init($ref)
 {
     mslib_fe::init($ref);
     $this->initLanguage($ref->LOCAL_LANG);
     static $installedPaymentMethods;
     // custom hook for loading the installed payment methods
     if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_payment.php']['mslib_payment'])) {
         $params = array('installedPaymentMethods' => &$installedPaymentMethods);
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_payment.php']['mslib_payment'] as $funcRef) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $ref);
         }
     }
     // custom hook for manipulating the installed payment methods
     if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_payment.php']['mslib_paymentPostProc'])) {
         $params = array('installedPaymentMethods' => &$installedPaymentMethods);
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_payment.php']['mslib_paymentPostProc'] as $funcRef) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $ref);
         }
     }
     $this->installedPaymentMethods = $params['installedPaymentMethods'];
     // custom hook for loading the installed payment methods eof
     // load enabled payment methods
     $filter = array();
     if (!$include_hidden_items) {
         $filter[] = 's.status=1';
     }
     $filter[] = 'd.language_id=\'' . $this->sys_language_uid . '\'';
     $filter[] = 's.id=d.id';
     $filter[] = '(s.page_uid=' . $this->shop_pid . ' or s.page_uid=0)';
     $str = $GLOBALS['TYPO3_DB']->SELECTquery('*', 'tx_multishop_payment_methods s, tx_multishop_payment_methods_description d', implode(' AND ', $filter), '', 's.sort_order', '');
     $qry = $GLOBALS['TYPO3_DB']->sql_query($str);
     if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry)) {
         $array = array();
         while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry)) {
             $array[$row['code']] = $row;
         }
         $this->enabledPaymentMethods = $array;
     }
     // load enabled payment methods eof
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:40,代码来源:class.mslib_payment.php


示例3: floor

            $tmp .= '<li><div class="dyna_button"><span>' . $x . '</span></div></li>';
        } else {
            $tmp .= '<li><div class="dyna_button"><a class="ajax_link pagination_button" href="' . mslib_fe::typolink('', 'p=' . ($x - 1) . '&' . mslib_fe::tep_get_all_get_params(array('p', 'Submit', 'page', 'mini_foto', 'clearcache')), 1) . '">' . $x . '</a></div></li>';
        }
    }
    $tmp .= '</ul>
</li>';
    $tmp .= '<li class="pagenav_next"><div class="dyna_button">';
    if (($p + 1) * $limit_per_page < $pageset['total_rows']) {
        $tmp .= '<a class="ajax_link pagination_button" href="' . mslib_fe::typolink('', 'p=' . ($p + 1) . '&' . mslib_fe::tep_get_all_get_params(array('p', 'Submit', 'page', 'mini_foto', 'clearcache')), 1) . '">' . $this->pi_getLL('next') . '</a>';
    } else {
        $tmp .= '<span>' . $this->pi_getLL('next') . '</span>';
    }
    $tmp .= '</div></li>';
    $tmp .= '<li class="pagenav_last"><div class="dyna_button">';
    if (($p + 1) * $limit_per_page < $pageset['total_rows']) {
        $times = $pageset['total_rows'] / $limit_per_page;
        $lastpage = floor($times);
        if ($lastpage == $times) {
            $lastpage--;
        }
        $tmp .= '<a class="ajax_link pagination_button" href="' . mslib_fe::typolink('', 'p=' . $lastpage . '&' . mslib_fe::tep_get_all_get_params(array('p', 'Submit', 'page', 'mini_foto', 'clearcache')), 1) . '">' . $this->pi_getLL('last') . '</a>';
    } else {
        $tmp .= '<span>' . $this->pi_getLL('last') . '</span>';
    }
    $tmp .= '</div></li>';
    $tmp .= '</ul>
</div>
';
    $content .= $tmp;
}
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:products_listing_pagination_with_number.php


示例4: IN

 $categoriesStartingPoint = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'categoriesStartingPoint', 's_advanced');
 if (!$categoriesStartingPoint and is_numeric($this->conf['categoriesStartingPoint'])) {
     $categoriesStartingPoint = $this->conf['categoriesStartingPoint'];
 }
 if ($categoriesStartingPoint > 0) {
     $cats = mslib_fe::get_subcategory_ids($categoriesStartingPoint);
     $cats[] = $categoriesStartingPoint;
     if ($this->ms['MODULES']['FLAT_DATABASE']) {
         $tbl = 'pf.';
     } else {
         $tbl = 'p2c.';
     }
     $filter[] = '(' . $tbl . 'categories_id IN (' . implode(",", $cats) . '))';
 }
 $limit_per_page = $this->ms['MODULES']['PRODUCTS_LISTING_LIMIT'];
 $pageset = mslib_fe::getProductsPageSet($filter, $offset, $this->ms['MODULES']['PRODUCTS_LISTING_LIMIT'], $orderby, $having, $select, $where, 0, $from, array(), 'hot_products', 'p.products_id,COUNT(' . $tbl . 'products_id) as total_quantity');
 $products = $pageset['products'];
 if ($pageset['total_rows'] > 0) {
     if (strstr($this->ms['MODULES']['PRODUCTS_LISTING_TYPE'], "..")) {
         die('error in PRODUCTS_LISTING_TYPE value');
     } else {
         if (strstr($this->ms['MODULES']['PRODUCTS_LISTING_TYPE'], "/")) {
             require $this->DOCUMENT_ROOT . $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] . '.php';
         } else {
             if (!$this->ms['MODULES']['PRODUCTS_LISTING_TYPE']) {
                 $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] = 'default';
             }
             require \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('multishop') . 'scripts/front_pages/includes/products_listing/' . $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] . '.php';
         }
     }
     // pagination
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:products_hot.php


示例5: header

								shipping_cost_popup+=\'<tr>\';
								shipping_cost_popup+=\'<td class="product_shippingcost_popup_table_left_col">\' + j.deliver_to[country_iso_nr] + \'</td>\';
								shipping_cost_popup+=\'<td class="product_shippingcost_popup_table_center_col">\' + shipping_cost + \'</td>\';
								shipping_cost_popup+=\'<td class="product_shippingcost_popup_table_right_col">\' + j.deliver_by[country_iso_nr] + \'</td>\';
								shipping_cost_popup+=\'</tr>\';
							});
							shipping_cost_popup+=\'</table>\';
							shipping_cost_popup+=\'</div>\';
							shipping_cost_popup+=\'</div>\';
							msDialog("' . $this->pi_getLL('shipping_costs') . '", shipping_cost_popup, 650);
						}
					}
				});
			});*/
		});
		</script>
		';
    }
} else {
    header('HTTP/1.0 404 Not Found');
    // set custom 404 message
    $page = mslib_fe::getCMScontent('category_not_found_message', $GLOBALS['TSFE']->sys_language_uid);
    if ($page[0]['name']) {
        $content = '<div class="main-title"><h1>' . $page[0]['name'] . '</h1></div>';
    } else {
        $content = '<div class="main-title"><h1>' . $this->pi_getLL('the_requested_category_does_not_exist') . '</h1></div>';
    }
    if ($page[0]['content']) {
        $content .= $page[0]['content'];
    }
}
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default.php


示例6: CheckoutStepping

                        if (!count($shipping_methods)) {
                            $shipping_methods = $shipping_methods_group;
                        }
                    }
                }
                break;
        }
    }
    if (!count($payment_methods)) {
        // nothing is loaded. this cant be valid so let's load the default methods.
        // loading payment methods
        $payment_methods = mslib_fe::loadPaymentMethods(0, $user_country, true, true);
    }
    if (!count($shipping_methods)) {
        // loading shipping methods eof
        $shipping_methods = mslib_fe::loadShippingMethods(0, $delivery_user_country, true, true);
    }
}
if (count($shipping_methods) == 0 and count($payment_methods) == 0) {
    $stepCodes = array('checkout_address', 'checkout_review', 'checkout_finished');
} else {
    $stepCodes = array('checkout_address', 'checkout_shipping_payment_method', 'checkout_review', 'checkout_finished');
}
function CheckoutStepping(&$steps, $current, $pointer)
{
    $output = '<ul id="checkout_crumbar">';
    for ($i = 0; $i < count($steps); $i++) {
        $output .= '<li class="' . $steps[$i] . ' ' . ($current == $steps[$i] ? 'active' : '') . '">';
        if ($steps[$i] == $current) {
            $output .= '<strong>';
        }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:checkout.php


示例7: array

$subpartArray['###HEADER_INVOICES_ACTION###'] = $this->pi_getLL('action');
//
$subpartArray['###PAGINATION###'] = $pagination_listing;
$subpartArray['###INVOICES_LISTING###'] = $invoiceItem;
$subpartArray['###FORM_FIELDS_LISTING_ACTION_BLOCK###'] = $form_fields_listing_block;
//
$subpartArray['###FOOTER_INVOICES_NUMBER###'] = $this->pi_getLL('invoice_number');
$subpartArray['###FOOTER_INVOICES_ORDER_ID###'] = $this->pi_getLL('orders_id');
$subpartArray['###FOOTER_MASTER_SHOP###'] = $master_shop;
$subpartArray['###FOOTER_INVOICES_CUSTOMER###'] = $this->pi_getLL('customers');
$subpartArray['###FOOTER_INVOICES_ORDER_DATE###'] = $this->pi_getLL('order_date');
$subpartArray['###FOOTER_INVOICES_PAYMENT_METHOD###'] = $this->pi_getLL('payment_method');
$subpartArray['###FOOTER_INVOICES_PAYMENT_CONDITION###'] = $this->pi_getLL('payment_condition');
$subpartArray['###FOOTER_INVOICES_AMOUNT###'] = mslib_fe::amount2Cents($totalAmount, 0);
$subpartArray['###FOOTER_INVOICES_DATE_LAST_SENT###'] = $this->pi_getLL('date_last_sent');
$subpartArray['###FOOTER_INVOICES_PAID_STATUS###'] = $this->pi_getLL('admin_paid');
$subpartArray['###FOOTER_INVOICES_ACTION###'] = $this->pi_getLL('action');
$subpartArray['###CUSTOM_MARKER_0_HEADER###'] = '';
$subpartArray['###CUSTOM_MARKER_0_FOOTER###'] = '';
$subpartArray['###CUSTOM_MARKER_1_HEADER###'] = '';
$subpartArray['###CUSTOM_MARKER_1_FOOTER###'] = '';
$subpartArray['###SHOP_PID2###'] = $this->shop_pid;
$subpartArray['###FORM_POST_ACTION_URL###'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_invoices');
// custom page hook that can be controlled by third-party plugin
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/invoices/invoices_listing_table.php']['adminInvoicesListingTmplPreProc'])) {
    $params = array('subpartArray' => &$subpartArray, 'invoice' => &$invoice);
    foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/invoices/invoices_listing_table.php']['adminInvoicesListingTmplPreProc'] as $funcRef) {
        \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
    }
}
$invoices_results = $this->cObj->substituteMarkerArrayCached($subparts['invoices_results'], array(), $subpartArray);
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:invoices_listing_table.php


示例8: jQuery

	<script>
	  jQuery(document).ready(function($) {
		$(".disabled_product").css({ opacity: 0.6 });
		$(".disabled_product").hover(
		  function () {
			$(".disabled_product").css({ opacity: 1 });
		  },
		  function () {
			$(".disabled_product").css({ opacity: 0.6 });
		  }
		);			  
		var result = jQuery(".product_listing").sortable({
			cursor:     "move", 
			//axis:       "y", 
			update: function(e, ui) { 
				href = "' . mslib_fe::typolink($this->shop_pid . ',2002', '&tx_multishop_pi1[page_section]=product&catid=' . $current_product['categories_id']) . '";
				jQuery(this).sortable("refresh"); 
				sorted = jQuery(this).sortable("serialize", "id"); 
				jQuery.ajax({ 
						type:   "POST", 
						url:    href, 
						data:   sorted, 
						success: function(msg) { 
								//do something with the sorted data 
						} 
				}); 
			} 

		});
	  });
	  </script>					
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:grid_with_detail_button.php


示例9: function

				} else {
					$("#crop_save_btn_wrapper").show();
					$("#crop_restore_btn_wrapper").hide();
					$("#minsize_settings_btn_wrapper").show();
					$("#remove_minsize").prop("checked", true);
					$("#aspectratio_settings_btn_wrapper").show();
					$("#remove_aspectratio").prop("checked", true);
					activate_jcrop_js(r.aspectratio[$("#jCropImageSize").val()], r.minsize[$("#jCropImageSize").val()], r.setselect[$("#jCropImageSize").val()], r.truesize[$("#jCropImageSize").val()]);
				}
			}
		}
	});
});
$(document).on(\'click\',"#crop_restore",function(e) {
	e.preventDefault();
	href = "' . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=restore_crop_image&tx_multishop_pi1[crop_section]=categories') . '";
	var cropall=0;
	if ($("#onecrop_for_all").prop("checked")) {
		cropall=1;
	}
	jQuery.ajax({
		type:"POST",
		url:href,
		data: $(".jcrop_coords").serialize() + "cid=' . (isset($this->get['cid']) && $this->get['cid'] > 0 ? $this->get['cid'] : '') . '",
		dataType: "json",
		success: function(r) {
			//do something with the sorted data
			if (r.status=="OK") {
				var new_image=\'<img src="\' + r.images[$("#jCropImageSize").val()] + \'" id="cropbox"/>\';
				$("#jCropX").val("");
				$("#jCropY").val("");
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_edit_category.php


示例10: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$this->box_class = "multishop_basket";
$this->cObj->data['header'] = '<a href="' . mslib_fe::typolink($this->conf['shoppingcart_page_pid'], '&tx_multishop_pi1[page_section]=shopping_cart') . '">' . $this->pi_getLL('basket') . '</a>';
//$cart=$GLOBALS['TSFE']->fe_user->getKey('ses', $this->cart_page_uid);
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('multishop') . 'pi1/classes/class.tx_mslib_cart.php';
$mslib_cart = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_mslib_cart');
$mslib_cart->init($this);
$cart = $mslib_cart->getCart();
$totalitems = 0;
if (count($cart['products']) > 0) {
    foreach ($cart['products'] as $product) {
        if (is_numeric($product['qty'])) {
            $totalitems = $totalitems + $product['qty'];
        }
    }
}
$content .= '
<a href="' . mslib_fe::typolink($this->conf['shoppingcart_page_pid'], '&tx_multishop_pi1[page_section]=shopping_cart') . '" class="multishop_basketbox"><span>' . $totalitems . '</span></a>
';
开发者ID:bvbmedia,项目名称:multishop,代码行数:23,代码来源:basket_button.php


示例11: base64_encode

	var ultrasearch_categories_id;
	var ultrasearch_exclude_negative_filter_values;
	var ultrasearch_fields=\'' . base64_encode($this->ultrasearch_fields) . '\';';
    if ($this->filterCategoriesFormByCategoriesIdGetParam and is_numeric($this->get['categories_id'])) {
        //$headers.='ultrasearch_categories_id=\''.$this->get['categories_id'].'\';';
        $headers .= 'filterCategoriesFormByCategoriesIdGetParam=\'1\';';
    }
    if ($this->ultrasearch_exclude_negative_filter_values) {
        $headers .= 'ultrasearch_exclude_negative_filter_values=\'1\';';
    }
    $headers .= '// location of the ultrasearch server
	var ultrasearch_resultset_server_path=\'' . mslib_fe::typolink($this->shop_pid . ',2002', '&tx_multishop_pi1[page_section]=ultrasearch_server&manufacturers_id=' . $this->get['manufacturers_id'] . '&categories_id=' . $this->get['categories_id'] . '&ultrasearch_exclude_negative_filter_values=' . $this->ultrasearch_exclude_negative_filter_values . '&filterCategoriesFormByCategoriesIdGetParam=' . $this->filterCategoriesFormByCategoriesIdGetParam, 1) . '\';
	var shipping_costs_overview=false;' . "\n";
    if ($this->ms['MODULES']['DISPLAY_SHIPPING_COSTS_ON_PRODUCTS_LISTING_PAGE']) {
        $headers .= '
		var ultrasearch_shipping_costs_review_url=\'' . mslib_fe::typolink('', 'type=2002&tx_multishop_pi1[page_section]=get_product_shippingcost_overview') . '\';
		var labels_shipping_costs = \'' . $this->pi_getLL('shipping_costs') . '\';
		var labels_product_shipping_and_handling_cost_overview = \'' . $this->pi_getLL('product_shipping_and_handling_cost_overview') . '\';
		var labels_deliver_to = \'' . $this->pi_getLL('deliver_to') . '\';
		var labels_shipping_and_handling_cost_overview = \'' . $this->pi_getLL('shipping_and_handling_cost_overview') . '\';
		var labels_deliver_by = \'' . $this->pi_getLL('deliver_by') . '\';
		var labels_delivery_time=\'' . $this->pi_getLL('admin_delivery_time') . '\';
		var shipping_costs_overview=true;
		' . "\n";
    }
    if ($this->hideHeader) {
        $headers .= 'var ultrasearcch_resultset_header=\'\';';
    } else {
        $cmsDescriptionArray = array();
        if (isset($this->get['manufacturers_id']) && is_numeric($this->get['manufacturers_id'])) {
            $strCms = $GLOBALS['TYPO3_DB']->SELECTquery('m.manufacturers_id, mc.content, mc.content_footer, m.manufacturers_name', 'tx_multishop_manufacturers m, tx_multishop_manufacturers_cms mc', "m.manufacturers_id='" . $this->get['manufacturers_id'] . "' AND m.status=1 and mc.language_id='" . $this->sys_language_uid . "' and m.manufacturers_id=mc.manufacturers_id", '', '', '');
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:ultrasearch.php


示例12: renderInterface

    function renderInterface($params, &$that)
    {
        mslib_fe::init($that);
        //hook to let other plugins further manipulate the method
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/class.tx_mslib_admin_interface.php']['renderInterfacePreProc'])) {
            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/class.tx_mslib_admin_interface.php']['renderInterfacePreProc'] as $funcRef) {
                \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
            }
        }
        // for pagination
        $this->get = $that->get;
        $this->post = $that->post;
        if ($this->post) {
            if ($params['postErno']) {
                if (count($params['postErno'])) {
                    $returnMarkup = '
                    <div style="display:none" id="msAdminPostMessage">
                    <table class="table table-striped table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">Status</th>
                        <th>Message</th>
                    </tr>
                    </thead>
                    <tbody>
                    ';
                    foreach ($params['postErno'] as $item) {
                        switch ($item['status']) {
                            case 'error':
                                $item['status'] = '<span class="fa-stack text-danger"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-thumbs-down fa-stack-1x fa-inverse"></i></span>';
                                break;
                            case 'info':
                                $item['status'] = '<span class="fa-stack"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-thumbs-up fa-stack-1x fa-inverse"></i></span>';
                                break;
                        }
                        $returnMarkup .= '<tr><td class="text-center">' . $item['status'] . '</td><td>' . $item['message'] . '</td></tr>' . "\n";
                    }
                    $returnMarkup .= '</tbody></table></div>';
                    $tableContent .= $returnMarkup;
                    $GLOBALS['TSFE']->additionalHeaderData[] = '<script type="text/javascript" data-ignore="1">
                    jQuery(document).ready(function ($) {
                        $.confirm({
                            title: \'\',
                            content: $(\'#msAdminPostMessage\').html()
                        });
                    });
                    </script>
                    ';
                }
            }
        }
        $updateCookie = 0;
        if ($that->get['Search'] and $that->get['limit'] != $that->cookie['limit']) {
            $that->cookie['limit'] = $that->get['limit'];
            $updateCookie = 1;
        }
        if ($that->get['Search'] and $that->get['display_all_records'] != $that->cookie['display_all_records']) {
            $that->cookie['display_all_records'] = $that->get['display_all_records'];
            $updateCookie = 1;
        }
        if ($updateCookie) {
            $GLOBALS['TSFE']->fe_user->setKey('ses', 'tx_multishop_cookie', $that->cookie);
            $GLOBALS['TSFE']->storeSessionData();
        }
        if ($that->cookie['display_all_records']) {
            $that->get['display_all_records'] = $that->cookie['display_all_records'];
        } else {
            $that->get['display_all_records'] = '';
        }
        if ($that->cookie['limit']) {
            $that->get['limit'] = $that->cookie['limit'];
        } else {
            $that->get['limit'] = 50;
        }
        $that->ms['MODULES']['PAGESET_LIMIT'] = $that->get['limit'];
        if ($params['settings']['limit'] && is_numeric($params['settings']['limit'])) {
            $that->ms['MODULES']['PAGESET_LIMIT'] = $params['settings']['limit'];
        }
        if (is_numeric($that->get['p'])) {
            $p = $that->get['p'];
        }
        $that->searchKeywords = array();
        if ($that->get['tx_multishop_pi1']['keyword']) {
            //  using $_REQUEST cause TYPO3 converts "Command & Conquer" to "Conquer" (the & sign sucks ass)
            $that->get['tx_multishop_pi1']['keyword'] = trim($that->get['tx_multishop_pi1']['keyword']);
            $that->get['tx_multishop_pi1']['keyword'] = $GLOBALS['TSFE']->csConvObj->utf8_encode($that->get['tx_multishop_pi1']['keyword'], $GLOBALS['TSFE']->metaCharset);
            $that->get['tx_multishop_pi1']['keyword'] = $GLOBALS['TSFE']->csConvObj->entities_to_utf8($that->get['tx_multishop_pi1']['keyword'], true);
            $that->get['tx_multishop_pi1']['keyword'] = mslib_fe::RemoveXSS($that->get['tx_multishop_pi1']['keyword']);
            $that->searchKeywords[] = $that->get['tx_multishop_pi1']['keyword'];
            $that->searchMode = '%keyword%';
        }
        $limit_search_result_selectbox = '<select name="limit" class="form-control">';
        $limits = array();
        $limits[] = '10';
        $limits[] = '15';
        $limits[] = '20';
        $limits[] = '25';
        $limits[] = '30';
        $limits[] = '40';
        $limits[] = '50';
//.........这里部分代码省略.........
开发者ID:bvbmedia,项目名称:multishop,代码行数:101,代码来源:class.tx_mslib_admin_interface.php


示例13: die

		$res = $GLOBALS['TYPO3_DB']->sql_query($query3);
		$counter++;
	}
}
die();
*/
$navItems = array();
$navItems['categories'] = $this->pi_getLL('categories');
$navItems['products'] = $this->pi_getLL('products');
$navItems['products_attributes'] = $this->pi_getLL('admin_label_products_attributes');
$navItems['manufacturers'] = $this->pi_getLL('manufacturers');
$navItems['orders'] = $this->pi_getLL('orders');
$navItems['everything'] = $this->pi_getLL('admin_label_everything');
$content .= '<div class="panel panel-default"><div class="panel-heading"><h3>' . $this->pi_getLL('admin_label_clear_database') . '</h3></div>
<div class="panel-body">
<form action="' . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_system_clear_database') . '" method="post" class="form-horizontal">
	<div class="form-group">
			<label class="control-label col-md-2">' . $this->pi_getLL('admin_label_items_to_delete') . '</label>
			<div class="col-md-10">
			';
foreach ($navItems as $key => $val) {
    $content .= '<div class="checkbox checkbox-success"><input name="tx_multishop_pi1[items][]" type="checkbox" id="' . $key . '" value="' . $key . '" /><label for="' . $key . '">' . $val . '</label></div>' . "\n";
}
$content .= '
			</div>
	</div>
	<hr>
	<div class="clearfix">
		<div class="pull-right">
			<button type="submit" id="submit" class="btn btn-success" value=""><i class="fa fa-save"></i> ' . $this->pi_getLL('delete') . '</button>
		</div>
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_system_clear_database.php


示例14: array

                $deliver_to_sb .= '
				<select name="deliver_to_country" id="deliver_to_country" class="country" title="' . $this->pi_getLL('country_is_required') . '">
					' . $tmpcontent_con . '
				</select>
				';
            }
        }
        // country eof
        $subpartArray['###SHIPPING_COST_COUNTRY_SELECTION###'] = '
		<div class="shoppingcart_shipping_cost_wrapper">
			<div class="shipping_deliver_to"><label for="deliver_to_country">' . $this->pi_getLL('deliver_in') . '<label>' . $deliver_to_sb . '</div>
			<div class="shipping_deliver_by"></div>
		</div>
		';
    }
    // custom hook that can be controlled by third-party plugin
    if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/shopping_cart/default.php']['shoppingCartPagePostHook'])) {
        $params = array('template' => $template, 'subpartArray' => &$subpartArray, 'cart' => &$cart);
        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/shopping_cart/default.php']['shoppingCartPagePostHook'] as $funcRef) {
            \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
        }
    }
    // completed the template expansion by replacing the "item" marker in the template
    $content .= $this->cObj->substituteMarkerArrayCached($subparts['template'], array(), $subpartArray);
} else {
    $content .= '<div class="noitems_message">' . $this->pi_getLL('there_are_no_products_in_your_cart') . '</div>';
    $content .= '
	<div id="bottom-navigation"><a href="' . mslib_fe::typolink($this->shop_pid) . '" class="msFrontButton continueState arrowRight arrowPosLeft proceed_to_shop"><span>' . $this->pi_getLL('go_to_catalog') . '</span></a>
		<div class="cart"></div>
	</div>';
}
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default.php


示例15:

		<div class="pull-right">
			<a href="' . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=' . $this->ms['page'] . '&edit=1&zone_id=' . $zone['id']) . '" class="btn btn-primary btn-sm"><i class="fa fa-pencil"></i> ' . $this->pi_getLL('add_countries') . '</a>
			<a href="' . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=' . $this->ms['page'] . '&delete=1&zone_id=' . $zone['id']) . '" class="btn btn-danger btn-sm"><i class="fa fa-save"></i> ' . $this->pi_getLL('delete_zone') . '</a>
			</div>
		</div>';
    }
    $content .= '</div></div>';
}
$content .= '
<div class="panel panel-default">
<div class="panel-heading"><h3>' . $this->pi_getLL('add_new_zone') . '</h3></div>
<div class="panel-body">
<form action="' . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=' . $this->ms['page']) . '" method="post" class="form-horizontal">
<div class="form-group">
		<label for="" class="control-label col-md-2">' . $this->pi_getLL('name') . '</label>
		<div class="col-md-10">
			<div class="input-group">
			<input class="form-control" type="text" name="zone_name" id="zone_name" value="">
			<span class="input-group-btn">
			<input name="Submit" type="submit" value="' . $this->pi_getLL('save') . '" class="btn btn-success" />
			</span>
			</div>
		</div>
</div>
</form>
</div>
</div>
';
$content .= '<hr><div class="clearfix"><a class="btn btn-success msAdminBackToCatalog" href="' . mslib_fe::typolink() . '"><span class="fa-stack"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-arrow-left fa-stack-1x"></i></span> ' . $this->pi_getLL('admin_close_and_go_back_to_catalog') . '</a></div></div></div>';
$content = '<div class="panel panel-default"><div class="panel-body">' . mslib_fe::shadowBox($content) . '';
开发者ID:bvbmedia,项目名称:multishop,代码行数:30,代码来源:admin_shipping_zones.php


示例16: ceil

                $html = '<div class="main_category_box">' . "\n" . '
				<h2>' . $name . '</h2>' . "\n";
                $html .= $subcats_html . "\n" . '
				</div>';
            }
        }
        if ($html) {
            $cols[] = $html;
        }
    }
}
$content .= '<div id="menu_category_listing">';
$delimited = ceil(count($cols) / 3);
if ($delimited < 1) {
    $delimited = 1;
}
$counter = 0;
for ($col = 0; $col < 3; $col++) {
    $content .= '<div class="three_cols_wrapper">';
    for ($i = 0; $i < $delimited; $i++) {
        if ($cols[$counter]) {
            $content .= $cols[$counter];
        }
        $counter++;
    }
    $content .= '</div>';
}
$content .= '</div>';
if ($current['content_footer']) {
    $content .= '<div class="msCategoriesFooterDescription">' . mslib_fe::htmlBox('', $current['content_footer'], 2) . '</div>';
}
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:menu_without_products.php


示例17: date

    $compiledWidget['content'] .= '<td align="right">' . mslib_fe::amount2Cents($total_price, 0) . '</td>';
    $total_amount = $total_amount + $total_price;
    if (date("Y", $start_time) == date("Y")) {
        $total_amount_cumulative = $total_amount_cumulative + $total_price;
    }
}
if ($this->cookie['stats_year_sb'] == date("Y") || !$this->cookie['stats_year_sb']) {
    $month = date("m");
    $currentDay = date("d");
    $dayOfTheYear = date("z");
    $currentYear = 1;
    if ($month == 1) {
        $currentMonth = 1;
    }
} else {
    $month = 12;
    $dayOfTheYear = 365;
    $currentDay = 31;
    $currentYear = 0;
    $currentMonth = 0;
}
$compiledWidget['content'] .= '<td align="right" nowrap>' . mslib_fe::amount2Cents($total_amount, 0) . '</td>';
$compiledWidget['content'] .= '<td align="right" nowrap>' . mslib_fe::amount2Cents($total_amount_cumulative / $dayOfTheYear * 365, 0) . '</td>';
$compiledWidget['content'] .= '</tr>';
if (!$tr_type or $tr_type == 'even') {
    $tr_type = 'odd';
} else {
    $tr_type = 'even';
}
$compiledWidget['content'] .= '
</table>';
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:turn_over_per_month.php


示例18: foreach

        foreach ($unused_values as $unused_value_id) {
            $have_povp_record = false;
            $have_pa_record = false;
            //
            $sql_chk = $GLOBALS['TYPO3_DB']->SELECTquery('products_options_values_id', 'tx_multishop_products_options_values_to_products_options', "products_options_values_id = '" . $unused_value_id . "'", '', '', '');
            $qry_chk = $GLOBALS['TYPO3_DB']->sql_query($sql_chk);
            if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_chk) > 0) {
                $have_povp_record = true;
            }
            //
            $sql_chk = $GLOBALS['TYPO3_DB']->SELECTquery('options_values_id', 'tx_multishop_products_attributes', "options_values_id = '" . $unused_value_id . "' and page_uid='" . $this->showCatalogFromPage . "'", '', '', '');
            $qry_chk = $GLOBALS['TYPO3_DB']->sql_query($sql_chk);
            if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_chk) > 0) {
                $have_pa_record = true;
            }
            if (!$have_povp_record && !$have_pa_record) {
                $query = $GLOBALS['TYPO3_DB']->DELETEquery('tx_multishop_products_options_values', 'products_options_values_id=' . $unused_value_id);
                $res = $GLOBALS['TYPO3_DB']->sql_query($query);
            }
        }
        // delete double record
        $delete_qry = "DELETE povp1 FROM tx_multishop_products_options_values_to_products_options povp1, tx_multishop_products_options_values_to_products_options povp2 WHERE povp1.products_options_values_to_products_options_id > povp2.products_options_values_to_products_options_id AND povp1.products_options_id = povp2.products_options_id AND povp1.products_options_values_id = povp2.products_options_values_id";
        $GLOBALS['TYPO3_DB']->sql_query($delete_qry);
        //
        $delete_qry = "DELETE pa1 FROM tx_multishop_products_attributes pa1, tx_multishop_products_attributes pa2 WHERE pa1.products_attributes_id > pa2.products_attributes_id AND pa1.products_id = pa2.products_id AND pa1.options_id = pa2.options_id AND pa1.options_values_id = pa2.options_values_id";
        $GLOBALS['TYPO3_DB']->sql_query($delete_qry);
    }
    //
    header('Location: ' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=merge_attribute_options_values'));
    exit;
}
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_merge_attribute_options_values.php


示例19: htmlentities

             }
             $return_data[$counter]['text'] = htmlentities(implode(" > ", $catsname) . ' > ' . $row['products_name']);
             $return_data[$counter]['id'] = $row['products_id'];
             $counter++;
         }
     }
 } else {
     $products = mslib_fe::getProductsPageSet($filter, 0, 100, array($prefix . 'products_name asc'));
     $counter = 0;
     foreach ($products['products'] as $product) {
         if ($product['products_name'] && !empty($product['products_name'])) {
             $catsname = array();
             if ($product['categories_id']) {
                 // get all cats to generate multilevel fake url
                 $level = 0;
                 $cats = mslib_fe::Crumbar($product['categories_id']);
                 $cats = array_reverse($cats);
                 $where = '';
                 if (count($cats) > 0) {
                     fore 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP muestraEstilos类代码示例发布时间:2022-05-23
下一篇:
PHP msg类代码示例发布时间: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