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

PHP isc_html_escape函数代码示例

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

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



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

示例1: ShowPaymentForm

		public function ShowPaymentForm()
		{
			// Was there an error validating the payment? If so, pre-fill the form fields with the already-submitted values
			if($this->HasErrors()) {
				$fields = array(
					"CreditCardNum" => 'creditcard_ccno'
				);
				foreach($fields as $global => $post) {
					if(isset($_POST[$post])) {
						$GLOBALS[$global] = isc_html_escape($_POST[$post]);
					}
				}

				$errorMessage = implode("<br />", $this->GetErrors());
				$GLOBALS['CreditCardErrorMessage'] = $errorMessage;
			}
			else {
				// Hide the error message box
				$GLOBALS['HideCreditCardError'] = "none";
			}

			$pendingOrder = LoadPendingOrderByToken();
			$GLOBALS['OrderAmount'] = CurrencyConvertFormatPrice($pendingOrder['total_inc_tax'], $pendingOrder['ordcurrencyid'], $pendingOrder['ordcurrencyexchangerate']);

			// Collect their details to send through to CreditCard
			$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("valuteccard");
			return $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate(true);
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:28,代码来源:module.valutec.php


示例2: SetPanelSettings

 function SetPanelSettings()
 {
     $output = "";
     $GLOBALS['ISC_CategoryBrandCache'] = GetClass('ISC_CACHECATEGORYBRANDS');
     $cachedCategoryBrands = $GLOBALS['ISC_CategoryBrandCache']->getCategoryBrandsData();
     $mybrands = $GLOBALS['ISC_CategoryBrandCache']->GetBrands($cachedCategoryBrands);
     /*// Get the number of brands
     		$query = "select count(brandid) as num from [|PREFIX|]brands";
     		$result = $GLOBALS['ISC_CLASS_DB']->Query($query);
     		$row = $GLOBALS['ISC_CLASS_DB']->Fetch($result);*/
     $num_brands = count($mybrands);
     if ($num_brands > 0) {
         // Get the 5 most popular brands
         /*$query = "select b.brandid, b.brandname, (select count(productid) from [|PREFIX|]products p where p.prodbrandid=b.brandid and p.prodvisible='1') as num from [|PREFIX|]brands b order by b.brandname asc";
         
         				$result = $GLOBALS['ISC_CLASS_DB']->Query($query);
         */
         foreach ($mybrands as $brand) {
             $GLOBALS['BrandLink'] = BrandLink($brand['brandname']);
             $GLOBALS['BrandName'] = isc_html_escape($brand['brandname']);
             $output .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("ShopByBrandItem");
         }
         if ($num_brands > 5) {
             $GLOBALS['SNIPPETS']['ShopByBrandAllItem'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("ShopByBrandAllItem");
         }
         $output = $GLOBALS['ISC_CLASS_TEMPLATE']->ParseSnippets($output, $GLOBALS['SNIPPETS']);
         $GLOBALS['SNIPPETS']['SideShopByBrandFullList'] = $output;
     } else {
         // Hide the panel
         $this->DontDisplay = true;
         $GLOBALS['HideSideShopByBrandFullPanel'] = "none";
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:33,代码来源:SideShopByBrandFull.php


示例3: SetPanelSettings

 public function SetPanelSettings()
 {
     $GLOBALS['SNIPPETS']['ShippingAddressList'] = "";
     $GLOBALS['ShippingAddressRow'] = "";
     $count = 0;
     $GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');
     // Get a list of all shipping addresses for this customer and out them as radio buttons
     $shipping_addresses = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerShippingAddresses();
     foreach ($shipping_addresses as $address) {
         $GLOBALS['ShippingAddressId'] = (int) $address['shipid'];
         $GLOBALS['ShipFullName'] = isc_html_escape($address['shipfirstname'] . ' ' . $address['shiplastname']);
         $GLOBALS['ShipCompany'] = '';
         if ($address['shipcompany']) {
             $GLOBALS['ShipCompany'] = isc_html_escape($address['shipcompany']) . '<br />';
         }
         $GLOBALS['ShipAddressLine1'] = isc_html_escape($address['shipaddress1']);
         if ($address['shipaddress2'] != "") {
             $GLOBALS['ShipAddressLine2'] = isc_html_escape($address['shipaddress2']);
         } else {
             $GLOBALS['ShipAddressLine2'] = '';
         }
         $GLOBALS['ShipSuburb'] = isc_html_escape($address['shipcity']);
         $GLOBALS['ShipState'] = isc_html_escape($address['shipstate']);
         $GLOBALS['ShipZip'] = isc_html_escape($address['shipzip']);
         $GLOBALS['ShipCountry'] = isc_html_escape($address['shipcountry']);
         if ($address['shipphone'] != "") {
             $GLOBALS['ShipPhone'] = isc_html_escape(sprintf("%s: %s", GetLang('Phone'), $address['shipphone']));
         } else {
             $GLOBALS['ShipPhone'] = "";
         }
         $GLOBALS['SNIPPETS']['ShippingAddressList'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("CheckoutShippingAddressItemOffer");
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:33,代码来源:ChooseBillingAddressOffer.php


示例4: SetPanelSettings

 public function SetPanelSettings()
 {
     if (!gzte11(ISC_HUGEPRINT)) {
         $this->DontDisplay = true;
         return false;
     }
     $output = "";
     // Get the link to the 'all vendors' page
     $GLOBALS['AllVendorsLink'] = VendorLink();
     // Get the 10 most popular vendors
     $query = "\n\t\t\tSELECT vendorid, vendorname, vendorfriendlyname\n\t\t\tFROM [|PREFIX|]vendors\n\t\t\tORDER BY vendornumsales DESC, vendorname ASC\n\t\t";
     $query .= $GLOBALS['ISC_CLASS_DB']->AddLimit(0, 11);
     // Fetch 10 + 1 - so that way we can determine if we need the all vendors link
     $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
     $x = 1;
     while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
         if ($x <= 10) {
             $GLOBALS['VendorLink'] = VendorLink($row);
             $GLOBALS['VendorName'] = isc_html_escape($row['vendorname']);
             $output .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("PopularVendorsItem");
         }
         ++$x;
     }
     if ($x == 11) {
         $GLOBALS['SNIPPETS']['ShopByVendorAllItem'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("PopularVendorsAllItem");
     }
     if (!$output) {
         $this->DontDisplay = true;
     }
     $GLOBALS['SNIPPETS']['PopularVendorsList'] = $output;
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:31,代码来源:SidePopularVendors.php


示例5: SetPanelSettings

	public function SetPanelSettings()
	{
		$output = "";

		// If product ratings aren't enabled then we don't even need to load anything here
		if(!getProductReviewsEnabled()) {
			$this->DontDisplay = true;
			return;
		}

		$categorySql = $GLOBALS['ISC_CLASS_CATEGORY']->GetCategoryAssociationSQL(false);
		$query = $this->getProductQuery('prodratingtotal > 0 AND '.$categorySql, 'p.prodratingtotal DESC', 5);
		$result = $GLOBALS['ISC_CLASS_DB']->Query($query);
		if($GLOBALS['ISC_CLASS_DB']->CountResult($result) > 0) {
			$GLOBALS['AlternateClass'] = '';
			while($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
				$this->setProductGlobals($row);
				$output .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("SideCategoryPopularProducts");
			}

			// Showing the syndication option?
			if(GetConfig('RSSPopularProducts') != 0 && GetConfig('RSSCategories') != 0 && GetConfig('RSSSyndicationIcons') != 0) {
				$GLOBALS['ISC_LANG']['CategoryPopularProductsFeed'] = sprintf(GetLang('CategoryPopularProductsFeed'), isc_html_escape($GLOBALS['CatName']));
				$GLOBALS['SNIPPETS']['SideCategoryPopularProductsFeed'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("SideCategoryPopularProductsFeed");
			}
		}
		else {
			$GLOBALS['HideSideCategoryPopularProductsPanel'] = "none";
			$this->DontDisplay = true;
		}

		$GLOBALS['SNIPPETS']['SideCategoryPopularProducts'] = $output;
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:33,代码来源:SideCategoryPopularProducts.php


示例6: SetPanelSettings

 /**
  * Set the settings for this panel.
  */
 public function SetPanelSettings()
 {
     // How many tags do we have?
     $query = "\n\t\t\tSELECT COUNT(tagid) AS tagcount\n\t\t\tFROM [|PREFIX|]product_tags\n\t\t";
     $tagCount = $GLOBALS['ISC_CLASS_DB']->FetchOne($query);
     // How many products does the most popular tag contain?
     $query = "\n\t\t\tSELECT MAX(tagcount) AS popularcount, MIN(tagcount) AS leastcount\n\t\t\tFROM [|PREFIX|]product_tags\n\t\t";
     $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
     $tagCounts = $GLOBALS['ISC_CLASS_DB']->Fetch($result);
     // Get a list of all of the tags
     $query = "\n\t\t\tSELECT *\n\t\t\tFROM [|PREFIX|]product_tags\n\t\t\tORDER BY tagname ASC\n\t\t";
     $min = GetConfig('TagCloudMinSize');
     $max = GetConfig('TagCloudMaxSize');
     $GLOBALS['SNIPPETS']['TagList'] = '';
     $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
     while ($tag = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
         $weight = ceil($tag['tagcount'] / $tagCount * 100);
         if ($max > $min) {
             $fontSize = $weight / 100 * ($max - $min) + $min;
         } else {
             $fontSize = (100 - $weight) / 100 * ($max - $min) + $max;
         }
         $fontSize = (int) $fontSize;
         $GLOBALS['FontSize'] = $fontSize . '%';
         $GLOBALS['TagName'] = isc_html_escape($tag['tagname']);
         $GLOBALS['TagLink'] = TagLink($tag['tagfriendlyname'], $tag['tagid']);
         $GLOBALS['TagProductCount'] = sprintf(GetLang('XProductsTaggedWith'), $tag['tagcount'], isc_html_escape($tag['tagname']));
         $GLOBALS['SNIPPETS']['TagList'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ProductTagCloudItem');
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:33,代码来源:ProductTagCloud.php


示例7: SetPanelSettings

 function SetPanelSettings()
 {
     $GLOBALS['ProductId'] = $GLOBALS['ISC_CLASS_PRODUCT']->GetProductId();
     //temp script to shortern the product name
     $pid = $GLOBALS['ISC_CLASS_PRODUCT']->GetProductId();
     $querytemp = "SELECT prodbrandid FROM  [|PREFIX|]products where productid = " . $pid . "  ";
     $resulttemp = $GLOBALS['ISC_CLASS_DB']->Query($querytemp);
     $brand = $GLOBALS['ISC_CLASS_DB']->Fetch($resulttemp);
     if ($brand['prodbrandid'] == 37) {
         $query = "SELECT c.catname, c.catcombine FROM [|PREFIX|]categories \tc left join [|PREFIX|]categoryassociations ca on c.categoryid = ca.categoryid  left join [|PREFIX|]products p on ca.productid = p.productid where p.productid =  '" . $GLOBALS['ISC_CLASS_PRODUCT']->GetProductId() . "' ";
         $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
         $cat = $GLOBALS['ISC_CLASS_DB']->Fetch($result);
         if ($cat['catcombine'] != "") {
             $GLOBALS['ProductName'] = $cat['catcombine'] . " Part Number " . isc_html_escape($GLOBALS['ISC_CLASS_PRODUCT']->GetSKU());
         } else {
             $GLOBALS['ProductName'] = $cat['catname'] . " Part Number " . isc_html_escape($GLOBALS['ISC_CLASS_PRODUCT']->GetSKU());
         }
     } else {
         $GLOBALS['ProductName'] = isc_html_escape($GLOBALS['ISC_CLASS_PRODUCT']->GetProductName());
     }
     //temp script to shortern the product name
     //$GLOBALS['ProductName'] = $GLOBALS['ISC_CLASS_PRODUCT']->GetProductName();
     $wishLists = $this->LoadCustomerWishLists();
     $GLOBALS['WishLists'] = '';
     $i = 0;
     foreach ($wishLists as $wishlist) {
         if ($i == 0) {
             $checked = 'checked';
         } else {
             $checked = '';
         }
         $GLOBALS['WishLists'] .= '<input type="radio" name="wishlistid" id="wishlistid' . (int) $wishlist['wishlistid'] . '" value="' . (int) $wishlist['wishlistid'] . '" ' . $checked . ' /> <label for="wishlistid' . (int) $wishlist['wishlistid'] . '">' . isc_html_escape($wishlist['wishlistname']) . '</label><br />';
         ++$i;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:35,代码来源:SideProductAddToWishList.php


示例8: SetPanelSettings

 function SetPanelSettings()
 {
     $count = 0;
     $output = "";
     $GLOBALS['SNIPPETS']['WishListItems'] = "";
     $GLOBALS['HideCompareItems'] = "none";
     if (GetConfig('EnableProductReviews') == 0) {
         $GLOBALS['HideProductRating'] = "display: none";
     }
     if (!isset($GLOBALS['WishListItems'])) {
         return false;
     }
     $GLOBALS['AlternateClass'] = '';
     foreach ($GLOBALS['WishListItems'] as $row) {
         if ($GLOBALS['AlternateClass'] == 'Odd') {
             $GLOBALS['AlternateClass'] = 'Even';
         } else {
             $GLOBALS['AlternateClass'] = 'Odd';
         }
         $GLOBALS['ProductCartQuantity'] = '';
         if (isset($GLOBALS['CartQuantity' . $row['productid']])) {
             $GLOBALS['ProductCartQuantity'] = (int) $GLOBALS['CartQuantity' . $row['productid']];
         }
         $GLOBALS['ItemId'] = (int) $row['wishlistitemid'];
         $GLOBALS['ProductId'] = (int) $row['productid'];
         $GLOBALS['ProductName'] = isc_html_escape($row['prodname']);
         $GLOBALS['ProductLink'] = ProdLink($row['prodname']);
         $GLOBALS['ProductRating'] = (int) $row['prodavgrating'];
         // Determine the price of this product
         $GLOBALS['ProductPrice'] = CalculateProductPrice($row);
         $GLOBALS['ProductThumb'] = ImageThumb($row['imagefile'], ProdLink($row['prodname']));
         $GLOBALS['SNIPPETS']['WishListItems'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("WishListItem");
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:34,代码来源:WishListItems.php


示例9: SetPanelSettings

		public function SetPanelSettings()
		{
			$output = "";

			// Get the number of brands
			$query = "select count(brandid) as num from [|PREFIX|]brands";
			$result = $GLOBALS['ISC_CLASS_DB']->Query($query);
			$row = $GLOBALS['ISC_CLASS_DB']->Fetch($result);
			$num_brands = $row['num'];

			if($num_brands > 0) {
				// Get the 5 most popular brands
				$query = "select b.brandid, b.brandname, (select count(productid) from [|PREFIX|]products p where p.prodbrandid=b.brandid and p.prodvisible='1') as num from [|PREFIX|]brands b order by b.brandname asc";

				$result = $GLOBALS['ISC_CLASS_DB']->Query($query);

				while($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
					$GLOBALS['BrandLink'] = BrandLink($row['brandname']);
					$GLOBALS['BrandName'] = isc_html_escape($row['brandname']);
					$output .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("ShopByBrandItem");
				}

				if($num_brands > 5) {
					$GLOBALS['SNIPPETS']['ShopByBrandAllItem'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("ShopByBrandAllItem");
				}

				$output = $GLOBALS['ISC_CLASS_TEMPLATE']->ParseSnippets($output, $GLOBALS['SNIPPETS']);
				$GLOBALS['SNIPPETS']['SideShopByBrandFullList'] = $output;
			}
			else {
				// Hide the panel
				$this->DontDisplay = true;
				$GLOBALS['HideSideShopByBrandFullPanel'] = "none";
			}
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:35,代码来源:SideShopByBrandFull.php


示例10: SetPanelSettings

 public function SetPanelSettings()
 {
     $selectedCountry = GetConfig('CompanyCountry');
     $selectedState = 0;
     if (isset($GLOBALS['SavedAddress']) && is_array($GLOBALS['SavedAddress'])) {
         $address = $GLOBALS['SavedAddress'];
         $selectedCountry = $address['shipcountry'];
         $addressVars = array('account_email' => 'AccountEmail', 'shipfirstname' => 'AddressFirstName', 'shiplastname' => 'AddressLastName', 'shipcompany' => 'AddressCompany', 'shipaddress1' => 'AddressLine1', 'shipaddress2' => 'AddressLine2', 'shipcity' => 'AddressCity', 'shipstate' => 'AddressState', 'shipzip' => 'AddressZip', 'shipphone' => 'AddressPhone');
         if (isset($address['shipstateid'])) {
             $selectedState = $address['shipstateid'];
         }
         foreach ($addressVars as $addressField => $formField) {
             if (isset($address[$addressField])) {
                 $GLOBALS[$formField] = isc_html_escape($address[$addressField]);
             }
         }
     }
     $country_id = GetCountryIdByName($selectedCountry);
     $GLOBALS['CountryList'] = GetCountryList(GetConfig('CompanyCountry'), true);
     $GLOBALS['StateList'] = GetStateListAsOptions($country_id, $selectedState);
     // If there are no states for the country then
     // hide the dropdown and show the textbox instead
     if (GetNumStatesInCountry($country_id) == 0) {
         $GLOBALS['HideStateList'] = "none";
     } else {
         $GLOBALS['HideStateBox'] = "none";
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:28,代码来源:CheckoutNewAddressForm.php


示例11: SetPanelSettings

 public function SetPanelSettings()
 {
     // Setup the cart values
     $total = $count = 0;
     $GLOBALS['SNIPPETS']['SideCartItems'] = '';
     if (!isset($_SESSION['CART']['ITEMS']) || empty($_SESSION['CART']['ITEMS'])) {
         $this->DontDisplay = true;
         return;
     }
     if (isset($_SESSION['CART']['ITEMS'])) {
         foreach ($_SESSION['CART']['ITEMS'] as $item) {
             $total += $item['product_price'] * $item['quantity'];
             $count += $item['quantity'];
             if (!isset($item['type']) || $item['type'] != "giftcertificate") {
                 $GLOBALS['ProductName'] = "<a href=\"" . ProdLink($item['product_name']) . "\">" . isc_html_escape($item['product_name']) . "</a>";
             } else {
                 $GLOBALS['ProductName'] = isc_html_escape($item['product_name']);
             }
             // Is this product a variation?
             $GLOBALS['ProductOptions'] = '';
             if (isset($item['options']) && !empty($item['options'])) {
                 $GLOBALS['ProductOptions'] .= "<br /><small>(";
                 $comma = '';
                 foreach ($item['options'] as $name => $value) {
                     if (!trim($name) || !trim($value)) {
                         continue;
                     }
                     $GLOBALS['ProductOptions'] .= $comma . isc_html_escape($name) . ": " . isc_html_escape($value);
                     $comma = ', ';
                 }
                 $GLOBALS['ProductOptions'] .= ")</small>";
             }
             $GLOBALS['ProductPrice'] = CurrencyConvertFormatPrice($item['product_price'] * $item['quantity']);
             $GLOBALS['ProductQuantity'] = $item['quantity'];
             $GLOBALS['SNIPPETS']['SideCartItems'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("SideCartItem");
         }
     }
     if ($count == 1) {
         $GLOBALS['SideCartItemCount'] = GetLang('SideCartYouHave1Item');
     } else {
         $GLOBALS['SideCartItemCount'] = sprintf(GetLang('SideCartYouHaveXItems'), $count);
     }
     $GLOBALS['ISC_LANG']['SideCartTotalCost'] = sprintf(GetLang('SideCartTotalCost'), CurrencyConvertFormatPrice($total));
     // Go through all the checkout modules looking for one with a GetSidePanelCheckoutButton function defined
     $GLOBALS['AdditionalCheckoutButtons'] = '';
     $HideCheckout = false;
     foreach (GetAvailableModules('checkout', true, true) as $module) {
         if (method_exists($module['object'], 'GetSidePanelCheckoutButton')) {
             $GLOBALS['AdditionalCheckoutButtons'] .= $module['object']->GetSidePanelCheckoutButton();
         }
         if ($module['object']->disableNonCartCheckoutButtons) {
             $HideCheckout = true;
         }
     }
     if ($HideCheckout) {
         $GLOBALS['SNIPPETS']['SideCartContentsCheckoutLink'] = '';
     } else {
         $GLOBALS['SNIPPETS']['SideCartContentsCheckoutLink'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('SideCartContentsCheckoutLink');
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:60,代码来源:SideCartContents.php


示例12: SetPanelSettings

 function SetPanelSettings()
 {
     $output = "";
     if (GetConfig('HomeBlogPosts') > 0) {
         $query = "select newsid, newstitle from [|PREFIX|]news where newsvisible='1' order by newsid desc";
         $query .= $GLOBALS['ISC_CLASS_DB']->AddLimit(0, GetConfig('HomeBlogPosts'));
         $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
         if ($GLOBALS['ISC_CLASS_DB']->CountResult($result) > 0) {
             while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
                 $GLOBALS['BlogText'] = isc_html_escape($row['newstitle']);
                 $GLOBALS['BlogLink'] = BlogLink($row['newsid'], $row['newstitle']);
                 $output .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("RecentBlog");
             }
             $GLOBALS['SNIPPETS']['RecentBlogs'] = $output;
             // Showing the syndication option?
             if (GetConfig('RSSLatestBlogEntries') != 0 && GetConfig('RSSSyndicationIcons') != 0) {
                 $GLOBALS['SNIPPETS']['HomeRecentBlogsFeed'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("HomeRecentBlogsFeed");
             }
         } else {
             $this->DontDisplay = true;
             $GLOBALS['HideHomeRecentBlogsPanel'] = "none";
         }
     } else {
         $this->DontDisplay = true;
         $GLOBALS['HideHomeRecentBlogsPanel'] = "none";
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:27,代码来源:HomeRecentBlogs.php


示例13: SetPanelSettings

		public function SetPanelSettings()
		{
			$GLOBALS['ISC_CLASS_CATEGORY'] = GetClass('ISC_CATEGORY');

			// Output breadcrumb trail
			$GLOBALS['SNIPPETS']['CatTrail'] = "";

			if ($GLOBALS['EnableSEOUrls'] == 1) {
				$baseLink = sprintf("%s/categories", $GLOBALS['ShopPath']);
			} else {
				$baseLink = sprintf("%s/categories.php?category=", $GLOBALS['ShopPath']);
			}

			$count = 0;
			$catPath = '';

			foreach($GLOBALS['CatTrail'] as $trail) {
				// if it's the root category and not friendly url, don't add / in front
				if ($count==0 && $GLOBALS['EnableSEOUrls'] != 1) {
					$baseLink .= MakeURLSafe($trail[1]);
				} else {
					$baseLink .= "/" . MakeURLSafe($trail[1]);
				}
				$catPath = MakeURLSafe($trail[1]);
				$GLOBALS['CatTrailName'] = isc_html_escape($trail[1]);
				$GLOBALS['CatTrailLink'] = $baseLink."/";

				if($count++ == count($GLOBALS['CatTrail'])-1) {
					$GLOBALS['SNIPPETS']['CatTrail'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("BreadcrumbItemCurrent");
				}
				else {
					$GLOBALS['SNIPPETS']['CatTrail'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("BreadcrumbItem");
				}
			}
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:35,代码来源:CategoryBreadcrumb.php


示例14: SetPanelSettings

	public function SetPanelSettings()
	{
		if(!isset($GLOBALS['BreadCrumbs'])) {
			$this->DontDisplay = true;
			return;
		}

		$GLOBALS['ISC_CLASS_TAGS'] = GetClass('ISC_TAGS');

		$GLOBALS['SNIPPETS']['Trail'] = '';
		$trailCount = count($GLOBALS['BreadCrumbs']);
		foreach($GLOBALS['BreadCrumbs'] as $k => $trail) {
			$GLOBALS['CatTrailName'] = isc_html_escape($trail['name']);
			$GLOBALS['CatTrailLink'] = '';
			if(isset($trail['link'])) {
				$GLOBALS['CatTrailLink'] = isc_html_escape($trail['link']);
			}

			if($k == $trailCount-1) {
				$GLOBALS['SNIPPETS']['Trail'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("BreadcrumbItemCurrent");
			}
			else {
				$GLOBALS['SNIPPETS']['Trail'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("BreadcrumbItem");
			}
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:26,代码来源:Breadcrumb.php


示例15: SetPanelSettings

 public function SetPanelSettings()
 {
     $count = 0;
     $GLOBALS['SNIPPETS']['HomeFeaturedCategories'] = '';
     $categories = $GLOBALS['ISC_CLASS_DATA_STORE']->Read('RootCategories');
     if (GetConfig('HomeFeaturedCategories') > 0) {
         if (GetConfig('EnableProductReviews') == 0) {
             $GLOBALS['HideProductRating'] = "display: none";
         }
         //$query = " SELECT cat.categoryid, cat.catname,  FROM [|PREFIX|]categories cat  WHERE cat.catpopular = '1'  ORDER BY RAND()";
         //
         $query = " SELECT c.catname, c.catimagefile, c.categoryid, MIN(p.prodcalculatedprice) AS prodcalculatedprice, p.prodvisible RootVisible, sp.prodvisible SubVisible,\n                MIN(sp.prodcalculatedprice) AS subprodcalculatedprice\n                FROM isc_categories c                                                 \n                LEFT JOIN isc_categoryassociations ca ON c.categoryid = ca.categoryid \n                LEFT JOIN isc_products p ON ca.productid = p.productid AND p.prodvisible='1'\n                LEFT JOIN isc_categories sc ON sc.catparentid = c.categoryid AND sc.catvisible = 1     \n                LEFT JOIN isc_categoryassociations sca ON sc.categoryid = sca.categoryid \n                LEFT JOIN isc_products sp ON sca.productid = sp.productid AND sp.prodvisible='1' \n                WHERE 1=1 \n                AND c.catvisible = 1\n                AND (p.prodvisible='1' || sp.prodvisible='1' )\n                AND c.catpopular = '1'\n                GROUP BY c.categoryid ORDER BY c.catname ";
         $query .= $GLOBALS['ISC_CLASS_DB']->AddLimit(0, GetConfig('HomeFeaturedCategories'));
         $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
         if ($GLOBALS['ISC_CLASS_DB']->CountResult($result) > 0) {
             $GLOBALS['AlternateClass'] = '';
             while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
                 if ($GLOBALS['AlternateClass'] == 'Odd') {
                     $GLOBALS['AlternateClass'] = 'Even';
                 } else {
                     $GLOBALS['AlternateClass'] = 'Odd';
                 }
                 $path = GetConfig('ShopPath');
                 $CatLink = "{$path}/search.php?search_query=" . urlencode($row['catname']);
                 $GLOBALS['CategoryName'] = isc_html_escape($row['catname']);
                 $GLOBALS['CategoryLink'] = $CatLink;
                 if ($row['SubVisible'] && $row['RootVisible']) {
                     $DisStartPrice = number_format(min($row['prodcalculatedprice'], $row['subprodcalculatedprice']), 2, '.', '');
                 } else {
                     if ($row['RootVisible']) {
                         $DisStartPrice = number_format($row['prodcalculatedprice'], 2, '.', '');
                     } else {
                         if ($row['SubVisible']) {
                             $DisStartPrice = number_format($row['subprodcalculatedprice'], 2, '.', '');
                         }
                     }
                 }
                 // Determine the price of this product
                 $GLOBALS['CategoryPrice'] = "Price starting from \$" . $DisStartPrice;
                 $imageThumb = '';
                 $GLOBALS['CategoryThumb'] = '';
                 if (file_exists(ISC_BASE_PATH . '/category_images/' . $row['catimagefile']) && $row['catimagefile'] != '') {
                     //$GLOBALS['CategoryThumb'] = ImageThumb($row['catimagefile'], $CatLink);
                     $imageThumb .= '<a href="' . $CatLink . '" >';
                     $imageThumb .= '<img src="' . $GLOBALS['ShopPath'] . '/category_images/' . $row['catimagefile'] . '" alt="" />';
                     $imageThumb .= '</a>';
                     $GLOBALS['CategoryThumb'] = $imageThumb;
                 }
                 $GLOBALS['SNIPPETS']['HomeFeaturedCategories'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("HomeFeaturedCategoriesItem");
             }
         } else {
             $this->DontDisplay = true;
             $GLOBALS['HideHomeFeaturedProductsPanel'] = "none";
         }
     } else {
         $this->DontDisplay = true;
         $GLOBALS['HideHomeFeaturedProductsPanel'] = "none";
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:59,代码来源:HomeFeaturedCategories_12_11.php


示例16: SetPanelSettings

 /**
  * Set the panel settings.
  */
 public function SetPanelSettings()
 {
     $cVendor = GetClass('ISC_VENDORS');
     $vendor = $cVendor->GetVendor();
     $GLOBALS['VendorId'] = $vendor['vendorid'];
     $GLOBALS['VendorName'] = isc_html_escape($vendor['vendorname']);
     $GLOBALS['VendorBio'] = $vendor['vendorbio'];
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:11,代码来源:VendorProfile.php


示例17: ShowTag

 /**
  * Show the products associated with a particular tag.
  */
 public function ShowTag()
 {
     $GLOBALS['HidePanels'][] = 'ProductTagCloud';
     $GLOBALS['BreadCrumbs'] = array(array('name' => GetLang('ProductTagCloud'), 'link' => TagLink()), array('name' => $this->tag['tagname']));
     $title = sprintf(GetLang('ProductsTaggedWith'), isc_html_escape($this->tag['tagname']));
     $GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName') . ' - ' . $title);
     $GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("tags");
     $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:12,代码来源:class.tags.php


示例18: Configure

 /**
  * Fetch the configuration form for this importer.
  *
  * @return string The HTML configuration page for this importer.
  */
 function Configure()
 {
     $GLOBALS['Path'] = 'http://';
     if (isset($_POST['path']) && $_POST['path'] != '') {
         $GLOBALS['Path'] = isc_html_escape($_POST['path']);
     }
     $GLOBALS['HelpTitle'] = str_replace("'", "\\'", GetLang('OsCommerceLocation'));
     return $this->ParseTemplate("oscommerce.configure", true);
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:14,代码来源:oscommerce.php


示例19: ShowSystemInfo

 private function ShowSystemInfo()
 {
     // Server Information
     $GLOBALS['ProductVersion'] = isc_html_escape(PRODUCT_VERSION);
     $GLOBALS['PHPVersion'] = isc_html_escape(phpversion());
     $GLOBALS['MySQLVersion'] = isc_html_escape(mysql_get_server_info());
     $GLOBALS['ServerSoftware'] = isc_html_escape($_SERVER['SERVER_SOFTWARE']);
     if (GetConfig('DisableSystemInfoEdition')) {
         $GLOBALS['HideEdition'] = 'display: none';
     } else {
         if (isset($GLOBALS['ProductEditionUpgrade'])) {
             $GLOBALS['ProductEdition'] .= " (<a href='" . GetConfig('SystemInfoEditionUpgradeLink') . "' target='_blank'>Upgrade</a>)";
         }
     }
     if (GDEnabled()) {
         $php_mods = parsePHPModules();
         $GLOBALS['GDVersion'] = isc_html_escape($php_mods['gd']['GD Version']);
     } else {
         $GLOBALS['GDVersion'] = GetLang('GDMissing');
     }
     if ((bool) ini_get('safe_mode') == true) {
         $GLOBALS['SafeMode'] = GetLang('Enabled');
     } else {
         $GLOBALS['SafeMode'] = GetLang('Disabled');
     }
     $GLOBALS['MultiByteFunctions'] = array();
     if (function_exists("mb_strpos")) {
         $GLOBALS['MultiByteFunctions'][] = "Multibyte";
     }
     if (function_exists("iconv_strpos")) {
         $GLOBALS['MultiByteFunctions'][] = "iconv";
     }
     $GLOBALS['MultiByteFunctions'] = implode("<br />", $GLOBALS['MultiByteFunctions']);
     if (!$GLOBALS['MultiByteFunctions']) {
         $GLOBALS['MultiByteFunctions'] = GetLang('NotSupported');
     }
     $GLOBALS['RemoteConnections'] = array();
     if (function_exists("curl_init")) {
         $GLOBALS['RemoteConnections'][] = "CURL";
     }
     if (!(bool) ini_get('safe_mode') && ini_get('allow_url_fopen')) {
         $GLOBALS['RemoteConnections'][] = GetLang('RemoteFOpen');
     }
     $GLOBALS['RemoteConnections'] = implode("<br />", $GLOBALS['RemoteConnections']);
     if (!$GLOBALS['RemoteConnections']) {
         $GLOBALS['RemoteConnections'] = GetLang('NoneSupported');
     }
     if (function_exists('pspell_suggest')) {
         $GLOBALS['PSpell'] = GetLang('Enabled');
     } else {
         $GLOBALS['PSpell'] = GetLang('NotSupported');
     }
     $GLOBALS['OperatingSystem'] = isc_html_escape(php_uname());
     $GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("sysinfo");
     $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:56,代码来源:class.sysinfo.php


示例20: DrawTinyMceEditor

	/**
	 * Generate a TinyMCE based textarea for entering text on to a page.
	 *
	 * @param array An array of options (id, value, width, height). If not specified, uses defaults.
	 * @return string The HTML for the generated WYSIWYG editor.
	 */
	public function DrawTinyMceEditor($options)
	{
		$this->template->Assign('WysiwygId', $options['id']);
		$this->template->Assign('WysiwygValue', isc_html_escape($options['value']));
		$this->template->Assign('WysiwygWidth', $options['width']);
		$this->template->Assign('WysiwygHeight', $options['height']);

		$this->template->Assign('LoadFunctionName', 'LoadEditor_'.$options['id']);

		// Load a custom valid_elements set for TinyMCE
		if(!empty($options['validElementsSet'])) {
			$setName = $options['validElementsSet'];
			$setTemplateName = 'Snippets/EditorTinyMCE.validElements.'.$setName.'.tpl';
			$validElements = $this->template->render($setTemplateName);
			$this->template->Assign('ValidElements', $validElements);
		}

		if(isset($options['delayLoad']) && $options['delayLoad'] == true) {
			$this->template->Assign('LoadFuntion', '');
		}
		else {
			$this->template->Assign('LoadFunction', 'LoadEditor_'.$options['id'].'()');
		}
		$common = $this->template->render('Snippets/EditorTinyMCECommon.html');

		if(isset($options['editorOnly']) && $options['editorOnly'] == true) {
			return $common;
		}

		$this->template->Assign('EditorTinyMCECommon', $common);

		// Check to see if GZIp support can be enabled
		$encodings = array();
		$supportsGzip = false;

		// Check if it supports gzip
		if (isset($_SERVER['HTTP_ACCEPT_ENCODING']))
		$encodings = explode(',', strtolower(preg_replace("/\s+/", "", $_SERVER['HTTP_ACCEPT_ENCODING'])));
		if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression')) {
			if(in_array('x-gzip', $encodings)) {
				$enc = 'x-gzip';
			}
			else {
				$enc = 'gzip';
			}
			$supportsGzip = true;
		}

		if($supportsGzip) {
			return $this->template->render('Snippets/EditorTinyMCEGzip.html');
		}
		else {
			return $this->template->render('Snippets/EditorTinyMCE.html');
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:61,代码来源:class.editor.php



注:本文中的isc_html_escape函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP isc_json_encode函数代码示例发布时间:2022-05-15
下一篇:
PHP isc_gmmktime函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap