当前位置: 首页>>代码示例>>PHP>>正文


PHP gzte11函数代码示例

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


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

示例1: SetPanelSettings

 public function SetPanelSettings()
 {
     $GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');
     $customerid = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerId();
     if (gzte11(ISC_LARGEPRINT)) {
         // Get the number of new messages for this customer
         $order_ids = "";
         $query = sprintf("select orderid from [|PREFIX|]orders where ordcustid='%d'", $GLOBALS['ISC_CLASS_DB']->Quote($customerid));
         $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
         while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
             $order_ids .= sprintf("%s,", $row['orderid']);
         }
         $order_ids = rtrim($order_ids, ",");
         if ($order_ids != "") {
             $query = sprintf("select count(messageid) as num from [|PREFIX|]order_messages where messageorderid in (%s) and messagefrom='admin' and messagestatus='unread'", $GLOBALS['ISC_CLASS_DB']->Quote($order_ids));
             $GLOBALS['NumNewMessages'] = $GLOBALS['ISC_CLASS_DB']->FetchOne($query);
         } else {
             $GLOBALS['NumNewMessages'] = 0;
         }
     } else {
         $GLOBALS['HideMessagesMenu'] = "none";
     }
     // Do we want to show or hide the return requests menu item?
     if (gzte11(ISC_LARGEPRINT) && GetConfig('EnableReturns') == 1) {
         $query = sprintf("SELECT returnid FROM [|PREFIX|]returns WHERE retcustomerid='%d'", $GLOBALS['ISC_CLASS_DB']->Quote($customerid));
         if (!$GLOBALS['ISC_CLASS_DB']->FetchOne($query)) {
             $GLOBALS['HideReturnRequestsMenu'] = "none";
         }
     } else {
         $GLOBALS['HideReturnRequestsMenu'] = 'none';
     }
     // How many products are in their wish list?
     $query = sprintf("select count(wishlistid) as num from [|PREFIX|]wishlists where customerid='%d'", $GLOBALS['ISC_CLASS_DB']->Quote($customerid));
     $GLOBALS['NumWishListItems'] = $GLOBALS['ISC_CLASS_DB']->FetchOne($query);
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:35,代码来源:SideAccountMenu_16_11.php

示例2: __construct

	public function __construct()
	{
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('batch.importer');

		/**
		 * @var array Array of importable fields and their friendly names.
		 */
		$this->_ImportFields = array(
			"productid" => GetLang('ProductID'),
			"prodcode" => GetLang('ProductCodeSKU'),
			"prodname" => GetLang('ProductName'),
			"prodvarsku" => GetLang('ProductVarSKU'),
			"prodvarprice" => GetLang('ProductVarPrice'),
			"prodvarweight" => GetLang('ProductVarWeight'),
			"prodvarimage" => GetLang('ProductVarImage'),
			"prodvarstock" => GetLang('ProductVarStock'),
			"prodvarlowstock" => GetLang('ProductVarLowStock')
		);

		if($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId() == 0 && gzte11(ISC_HUGEPRINT)) {
			$this->_ImportFields['prodvendorid'] = GetLang('Vendor');
		}

		$this->productEntity = new ISC_ENTITY_PRODUCT();

		parent::__construct();
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:27,代码来源:product_variations.php

示例3: SetPanelSettings

		public function SetPanelSettings()
		{
			$GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');
			$customerid = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerId();

			if(gzte11(ISC_LARGEPRINT)) {
				// Get the number of new messages for this customer
				$query = "
					SELECT
					COUNT(*)
					FROM [|PREFIX|]orders o, [|PREFIX|]order_messages om
					WHERE o.ordcustid = " . (int)$customerid . " AND o.deleted = 0 AND om.messageorderid = o.orderid AND om.messagefrom = 'admin' AND messagestatus = 'unread'
				";
				$GLOBALS['NumNewMessages'] = (int)$GLOBALS['ISC_CLASS_DB']->FetchOne($query);
			}
			else {
				$GLOBALS['HideMessagesMenu'] = "none";
			}

			// Do we want to show or hide the return requests menu item?
			if(gzte11(ISC_LARGEPRINT) && GetConfig('EnableReturns') == 1) {
				$query = sprintf("SELECT returnid FROM [|PREFIX|]returns WHERE retcustomerid='%d'", $GLOBALS['ISC_CLASS_DB']->Quote($customerid));
				if(!$GLOBALS['ISC_CLASS_DB']->FetchOne($query)) {
					$GLOBALS['HideReturnRequestsMenu'] = "none";
				}
			}
			else {
				$GLOBALS['HideReturnRequestsMenu'] = 'none';
			}

			// How many products are in their wish list?
			$query = sprintf("select count(wishlistid) as num from [|PREFIX|]wishlists where customerid='%d'", $GLOBALS['ISC_CLASS_DB']->Quote($customerid));
			$GLOBALS['NumWishListItems'] = $GLOBALS['ISC_CLASS_DB']->FetchOne($query);
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:34,代码来源:SideAccountMenu.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: HandleToDo

 /**
  * Handle the incoming action.
  *
  * @param string The action to perform.
  */
 public function HandleToDo($do)
 {
     if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Vendors)) {
         exit;
     }
     if (!gzte11(ISC_HUGEPRINT)) {
         ob_end_clean();
         header('Location: index.php');
         exit;
     }
     // Set up some generic breadcrumb entries as these will be used on most pages
     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => 'index.php', GetLang('VendorPayments') => 'index.php?ToDo=viewVendorPayments');
     switch (strtolower($do)) {
         case 'addvendorpayment':
             $this->AddVendorPayment();
             break;
         case 'savenewvendorpayment':
             $this->SaveNewVendorPayment();
             break;
         case 'exportvendorpayments':
             $this->ExportVendorPayments();
             break;
         case 'deletevendorpayments':
             $this->DeleteVendorPayments();
         default:
             $this->ManageVendorPayments();
             break;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:34,代码来源:class.vendor.payments.php

示例6: GetSearches

	public function GetSearches ()
	{
		$query = "
			SELECT searchid, searchname, searchlabel
			FROM [|PREFIX|]custom_searches
			WHERE searchtype='" . $this->db->Quote($this->_searchType) . "'
			ORDER BY searchname ASC
		";

		$result = $this->db->Query($query);
		$rows = array();
		while ($row = $this->db->Fetch($result)) {
			if ($this->_searchType == 'orders' && ($row['searchname'] == 'Orders from eBay' || $row['searchlabel'] == 'ebayorders') && !($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Ebay_Selling) && gzte11(ISC_LARGEPRINT))) {
				continue;
			}

			if ($this->_searchType == 'orders' && $row['searchlabel'] == 'deletedorders' && GetConfig('DeletedOrdersAction') != 'delete') {
				// don't show deleted orders view if setting not enabled
				continue;
			}

			$rows[] = $row;
		}
		return $rows;
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:25,代码来源:class.customsearch.php

示例7: HandlePage

 public function HandlePage()
 {
     $action = "";
     if ($GLOBALS['EnableSEOUrls'] == 1 and count($GLOBALS['PathInfo']) > 0) {
         if (isset($GLOBALS['PathInfo'][1])) {
             $_REQUEST['action'] = $GLOBALS['PathInfo'][1];
         } else {
             $_REQUEST['action'] = $GLOBALS['PathInfo'][0];
         }
     }
     if (isset($_REQUEST['action'])) {
         $action = isc_strtolower($_REQUEST['action']);
     }
     // Don't allow any access to this file if gift certificates aren't enabled
     if (GetConfig('EnableGiftCertificates') == 0) {
         ob_end_clean();
         header("Location: " . $GLOBALS['ShopPath']);
         die;
     }
     if (!gzte11(ISC_LARGEPRINT)) {
         ob_end_clean();
         header("Location: " . $GLOBALS['ShopPath']);
         die;
     }
     switch ($action) {
         case "saved":
             $this->SaveDefectForm();
             break;
         case "reports":
             if (CustomerIsSignedIn()) {
                 $this->ListReports();
                 break;
             } else {
                 // Naughty naughty, you need to sign in to be here
                 $this_page = urlencode(sprintf("account.php?action=%s", $action));
                 ob_end_clean();
                 header(sprintf("Location: %s/login.php?from=%s", $GLOBALS['ShopPath'], $this_page));
                 die;
             }
         case "editdefect":
             if (CustomerIsSignedIn()) {
                 $this->EditDefectForm();
                 break;
             } else {
                 // Naughty naughty, you need to sign in to be here
                 $this_page = urlencode(sprintf("account.php?action=%s", $action));
                 ob_end_clean();
                 header(sprintf("Location: %s/login.php?from=%s", $GLOBALS['ShopPath'], $this_page));
                 die;
             }
         case "editsave":
             $this->SaveEditedDefect();
         case "deletedefect":
             $this->DeleteDefect();
         default:
             $this->DisplayReport();
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:58,代码来源:class.defectreport.php

示例8: __construct

 /**
  * The constructor.
  */
 public function __construct()
 {
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('backups');
     if (!gzte11(ISC_MEDIUMPRINT) || GetConfig('DisableBackupSettings')) {
         exit;
     }
     // If being run by cron, we don't want to show any output
     if (PHP_SAPI == "cli") {
         $this->Verbose = false;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:14,代码来源:class.backup.php

示例9: countAll

	/**
	* Returns a flat count of all vendors, used for paging purposes
	*
	* @return int
	*/
	public function countAll()
	{
		if (!gzte11(ISC_HUGEPRINT)) {
			return 0;
		}

		$sql = "SELECT COUNT(vendorid) as c FROM `[|PREFIX|]vendors`";
		$result = $GLOBALS['ISC_CLASS_DB']->Query($sql);
		if (!$result) {
			return false;
		}
		return $GLOBALS['ISC_CLASS_DB']->FetchOne($result);
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:18,代码来源:class.sitemap.model.vendors.php

示例10: HandleToDo

	public function HandleToDo()
	{
		if(!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Ebay_Selling) || !gzte11(ISC_LARGEPRINT)) {
			exit;
		}

		$what = isc_strtolower(@$_REQUEST['w']);

		$methodName = $what . 'Action';
		if(!method_exists($this, $methodName)) {
			exit;
		}

		$this->$methodName();
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:15,代码来源:class.remote.ebay.php

示例11: HandleToDo

 public function HandleToDo($Do)
 {
     if (!gzte11(ISC_MEDIUMPRINT)) {
         $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
     }
     switch (isc_strtolower($Do)) {
         default:
             if (!isset($_REQUEST['ajax'])) {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             }
             $this->ManageFormFields();
             if (!isset($_REQUEST['ajax'])) {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             }
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:16,代码来源:class.formfields.php

示例12: HandlePage

	public function HandlePage()
	{
		$action = "";
		if(isset($_REQUEST['action'])) {
			$action = isc_strtolower($_REQUEST['action']);
		}

		// Don't allow any access to this file if gift certificates aren't enabled
		if(GetConfig('EnableGiftCertificates') == 0) {
			ob_end_clean();
			header("Location: " . $GLOBALS['ShopPath']);
			die();
		}

		if(!gzte11(ISC_LARGEPRINT)) {
			ob_end_clean();
			header("Location: " . $GLOBALS['ShopPath']);
			die();
		}

		switch($action) {
			case "do_purchase": {
				if($_SERVER['REQUEST_METHOD'] == "POST") {
					$this->DoPurchaseGiftCertificate();
					break;
				}
				else {
					$this->PurchaseGiftCertificate();
				}
			}
			case "balance": {
				$this->CheckGiftCertificateBalance();
				break;
			}
			case "preview": {
				$this->PreviewGiftCertificate();
				break;
			}
			case "redeem": {
				$this->RedeemGiftCertificate();
				break;
			}
			default: {
				$this->PurchaseGiftCertificate();
			}
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:47,代码来源:class.giftcertificates.php

示例13: HandlePage

 public function HandlePage()
 {
     $action = "";
     if ($GLOBALS['EnableSEOUrls'] == 1 and count($GLOBALS['PathInfo']) > 0) {
         if (isset($GLOBALS['PathInfo'][1])) {
             $_REQUEST['action'] = $GLOBALS['PathInfo'][1];
         } else {
             $_REQUEST['action'] = $GLOBALS['PathInfo'][0];
         }
     }
     if (isset($_REQUEST['action'])) {
         $action = isc_strtolower($_REQUEST['action']);
     }
     // Don't allow any access to this file if gift certificates aren't enabled
     if (GetConfig('EnableGiftCertificates') == 0) {
         ob_end_clean();
         header("Location: " . $GLOBALS['ShopPath']);
         die;
     }
     if (!gzte11(ISC_LARGEPRINT)) {
         ob_end_clean();
         header("Location: " . $GLOBALS['ShopPath']);
         die;
     }
     CheckReferrer();
     // checking and assigning the back to search link
     switch ($action) {
         case "do_purchase":
             if ($_SERVER['REQUEST_METHOD'] == "POST") {
                 $this->DoPurchaseGiftCertificate();
                 break;
             } else {
                 $this->PurchaseGiftCertificate();
             }
         case "balance":
             $this->CheckGiftCertificateBalance();
             break;
         case "preview":
             $this->PreviewGiftCertificate();
             break;
         case "redeem":
             $this->RedeemGiftCertificate();
             break;
         default:
             $this->PurchaseGiftCertificate();
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:47,代码来源:class.giftcertificates.php

示例14: HandleToDo

	public function HandleToDo($do)
	{
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('export');
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('exporttemplates');

		$this->templates = GetClass('ISC_ADMIN_EXPORTTEMPLATES');
		$this->type = isc_strtolower($_GET['t']);

		// load the file type for this export
		if (!$this->filetype = ISC_ADMIN_EXPORTFILETYPE_FACTORY::GetExportFileType($this->type)) {
			FlashMessage(GetLang("InvalidType"), MSG_ERROR, 'index.php?ToDo=viewExportTemplates');
		}

		// does user have permission to export this type?
		if (!$this->filetype->HasPermission() || !gzte11(ISC_MEDIUMPRINT)) {
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
		}

		$details = $this->filetype->GetTypeDetails();
		$title = $details['title'];
		$this->type_title = $title;
		$this->title = sprintf(GetLang("ExportTitle"), $title);

		switch (isc_strtolower($do)) {
			case 'startexport':
				$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", $title => $details['viewlink'], GetLang('Export') => "");

				if (!isset($_REQUEST['ajax'])) {
					$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
				}

				$this->StartExport();

				if (!isset($_REQUEST['ajax'])) {
					$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
				}

				break;
			case 'runexport':
				$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Export') => "", $title => "");

				$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
				$this->RunExport();
				$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:46,代码来源:class.export.php

示例15: SetPanelSettings

	public function SetPanelSettings()
	{
		// Are gift certificates enabled? If so, we need to show the gift certificates link
		if(gzte11(ISC_LARGEPRINT) && GetConfig('EnableGiftCertificates') != 0) {
			$GLOBALS['SNIPPETS']['TopMenuGiftCertificates'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("TopMenuGiftCertificates");
		}
		// Show the login/logout link as required

		$GLOBALS['HideLogoutLink'] = 'display: none';
		if(!isset($GLOBALS['LoginOrLogoutText'])) {
			if(CustomerIsSignedIn()) {

				// If they're a customer, set their name so it's available in the templates
				$c = GetClass('ISC_CUSTOMER');
				$customerData = $c->GetCustomerDataByToken();
				$GLOBALS['CurrentCustomerFirstName'] = isc_html_escape($customerData['custconfirstname']);
				$GLOBALS['CurrentCustomerLastName'] = isc_html_escape($customerData['custconlastname']);
				$GLOBALS['CurrentCustomerEmail'] = isc_html_escape($customerData['custconemail']);

				$GLOBALS['LoginOrLogoutLink'] = "login.php?action=logout";
				$GLOBALS['LoginOrLogoutText'] = sprintf(GetLang('LogoutLink'), $GLOBALS['ShopPathNormal']);
				$GLOBALS['HideLogoutLink'] = '';
			}
			else {
				$loginLinkFunction = '';
				$createAccountLinkFunction = '';
				$GLOBALS['OptimizerLinkScript'] = $this -> insertOptimizerLinkScript();
				if($GLOBALS['OptimizerLinkScript'] != '') {
					$loginLinkFunction = "gwoTracker._link(\"".$GLOBALS['ShopPathSSL']."/login.php?tk=".session_id()."\"); return false;";
					$createAccountLinkFunction = "gwoTracker._link(\"".$GLOBALS['ShopPathSSL']."/login.php?action=create_account&tk=".session_id()."\"); return false;";

				}
				// If they're a guest, set their name to 'Guest'
				$GLOBALS['CurrentCustomerFirstName'] = GetLang('Guest');
				$GLOBALS['CurrentCustomerLastName'] = $GLOBALS['CurrentCustomerEmail'] = '';

				$GLOBALS['LoginOrLogoutLink'] = "login.php";
				$GLOBALS['LoginOrLogoutText'] = sprintf(GetLang('SignInOrCreateAccount'), $GLOBALS['ShopPath'], $loginLinkFunction, $GLOBALS['ShopPath'], $createAccountLinkFunction);
			}
		}

		// Display our currency flags. Has been disabled for the time being. Theory being that this will include the whole locale (text aswell)
		$GLOBALS['CurrencyFlags'] = "";
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:44,代码来源:TopMenu.php


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