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

PHP gzte11函数代码示例

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

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



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


示例16: HandlePage

 /**
  * Handle the incoming page request.
  */
 public function HandlePage()
 {
     if (!gzte11(ISC_HUGEPRINT)) {
         exit;
     }
     $this->SetVendorData();
     if ($this->displaying == 'products') {
         $this->ShowVendorProducts();
     } else {
         if ($this->displaying == 'page') {
             $this->ShowVendorPage();
         } else {
             if ($this->displaying == 'profile') {
                 $this->ShowVendorProfile();
             } else {
                 $this->ShowVendors();
             }
         }
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:23,代码来源:class.vendors.php


示例17: HandleToDo

 /**
  * Handle the action for this section.
  *
  * @param string The name of the action to do.
  */
 public function HandleToDo($Do)
 {
     if (isset($_REQUEST['currentTab'])) {
         $GLOBALS['CurrentTab'] = (int) $_REQUEST['currentTab'];
     } else {
         $GLOBALS['CurrentTab'] = 0;
     }
     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Settings') => "index.php?ToDo=viewSettings", GetLang('OrderSettings') => "index.php?ToDo=viewScriptSettings");
     if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings) || !gzte11(ISC_MEDIUMPRINT)) {
         $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
         return;
     }
     /**
      * Load the language file
      */
     $lang = 'en';
     if (strpos(GetConfig('Language'), '/') === false) {
         $lang = GetConfig('Language');
     }
     switch (isc_strtolower($Do)) {
         case "viewscriptsettings":
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->ManageOrderSettings();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "saveupdatedscriptsettings":
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->SaveUpdatedOrderSettings();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         default:
             if (!isset($_REQUEST['ajax'])) {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             }
             $this->ManageOrderSettings();
             if (!isset($_REQUEST['ajax'])) {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             }
             break;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:46,代码来源:class.settings.order.php


示例18: CopyProductStep1

 public function CopyProductStep1($MsgDesc = "", $MsgStatus = "", $PreservePost = false, $OriginalProductID = 0)
 {
     if ($MsgDesc != "") {
         $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus);
     }
     // Show the form to edit a product
     if (isset($_REQUEST['productId']) && isId($_REQUEST['productId'])) {
         $OriginalProductID = $_REQUEST['productId'];
     }
     $prodId = $OriginalProductID;
     $z = 0;
     $arrData = array();
     $arrImages = array();
     $arrCustomFields = array();
     if (GetConfig('CurrencyLocation') == 'right') {
         $GLOBALS['CurrencyTokenLeft'] = '';
         $GLOBALS['CurrencyTokenRight'] = GetConfig('CurrencyToken');
     } else {
         $GLOBALS['CurrencyTokenLeft'] = GetConfig('CurrencyToken');
         $GLOBALS['CurrencyTokenRight'] = '';
     }
     $GLOBALS['ServerFiles'] = $this->_GetImportFilesOptions();
     $GLOBALS['ISC_CLASS_ADMIN_CATEGORY'] = GetClass('ISC_ADMIN_CATEGORY');
     // Make sure the product exists
     if (ProductExists($prodId)) {
         if ($PreservePost == true) {
             $this->_GetProductData(0, $arrData);
             $this->_GetCustomFieldData(0, $arrCustomFields);
             $GLOBALS['ProductFields'] = $this->_GetProductFieldsLayout(0, true);
             // Restore the hash
             $GLOBALS['ProductHash'] = $arrData['prodhash'];
         } else {
             $this->_GetProductData($prodId, $arrData);
             $this->_GetCustomFieldData($prodId, $arrCustomFields);
             $GLOBALS['ProductFields'] = $this->_GetProductFieldsLayout($prodId, true);
             // Generate the hash
             $GLOBALS['ProductHash'] = md5(time() . uniqid(rand(), true));
             // We'll need to duplicate (copy) the thumbnail, images and download files here
             $this->_CopyProductImages($prodId, 0, $GLOBALS['ProductHash']);
             $this->_CopyDownloads($prodId, 0, $GLOBALS['ProductHash']);
             $arrData['prodname'] = GetLang('CopyOf') . $arrData['prodname'];
         }
         // Does this user have permission to edit this product?
         if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId() && $arrData['prodvendorid'] != $GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId()) {
             FlashMessage(GetLang('Unauthorized'), MSG_ERROR, 'index.php?ToDo=viewProducts');
         }
         $arrImages = $this->_GetImageData(0, $GLOBALS['ProductHash']);
         if (isset($_POST['currentTab'])) {
             $GLOBALS['CurrentTab'] = (int) $_POST['currentTab'];
         } else {
             $GLOBALS['CurrentTab'] = 0;
         }
         $GLOBALS['FormAction'] = 'copyProduct2';
         $GLOBALS['Title'] = GetLang('CopyProductTitle');
         $GLOBALS['Intro'] = GetLang('CopyProductIntro');
         $GLOBALS["ProdType_" . $arrData['prodtype']] = 'checked="checked"';
         $GLOBALS['ProdType'] = $arrData['prodtype'] - 1;
         $GLOBALS['ProdCode'] = isc_html_escape($arrData['prodcode']);
         $GLOBALS['ProdName'] = isc_html_escape($arrData['prodname']);
         $GLOBALS['OriginalProductId'] = $OriginalProductID;
         $visibleCategories = array();
         if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId()) {
             $vendorData = $GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendor();
             if ($vendorData['vendoraccesscats']) {
                 $visibleCategories = explode(',', $vendorData['vendoraccesscats']);
             }
         }
         //				$GLOBALS['CategoryOptions'] = $GLOBALS['ISC_CLASS_ADMIN_CATEGORY']->GetCategoryOptions($arrData['prodcats'], "<option %s value='%d'>%s</option>", "selected='selected'", "", false, '', $visibleCategories);
         $GLOBALS['CategoryOptions'] = $GLOBALS['ISC_CLASS_ADMIN_CATEGORY']->GetCategoryOptionsProduct($arrData['prodcats'], "<option %s value='%d' id='category_old%d'>%s</option>", "selected='selected'", "", false, '', $visibleCategories);
         $GLOBALS['RelatedCategoryOptions'] = $GLOBALS['ISC_CLASS_ADMIN_CATEGORY']->GetCategoryOptions(0, "<option %s value='%d'>%s</option>", "selected='selected'", "- ", false);
         //blessen
         $wysiwygOptions = array('id' => 'wysiwyg', 'width' => '60%', 'height' => '350px', 'value' => $arrData['proddesc']);
         $wysiwygOptions1 = array('id' => 'wysiwyg1', 'width' => '60%', 'height' => '350px', 'value' => $arrData['prodmfg']);
         $wysiwygOptions2 = array('id' => 'wysiwyg2', 'width' => '60%', 'height' => '350px', 'value' => $arrData['prodwarranty']);
         $GLOBALS['WYSIWYG'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor($wysiwygOptions);
         $GLOBALS['WYSIWYG1'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor1($wysiwygOptions1);
         $GLOBALS['WYSIWYG2'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor1($wysiwygOptions2);
         $GLOBALS['ProdSearchKeywords'] = isc_html_escape($arrData['prodsearchkeywords']);
         $GLOBALS['ProdAvailability'] = isc_html_escape($arrData['prodavailability']);
         $GLOBALS['ProdPrice'] = number_format($arrData['prodprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         if (CFloat($arrData['prodcostprice']) > 0) {
             $GLOBALS['ProdCostPrice'] = number_format($arrData['prodcostprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         }
         if (CFloat($arrData['prodretailprice']) > 0) {
             $GLOBALS['ProdRetailPrice'] = number_format($arrData['prodretailprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         }
         if (CFloat($arrData['prodsaleprice']) > 0) {
             $GLOBALS['ProdSalePrice'] = number_format($arrData['prodsaleprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         }
         $GLOBALS['ProdSortOrder'] = $arrData['prodsortorder'];
         if ($arrData['prodvisible'] == 1) {
             $GLOBALS['ProdVisible'] = "checked";
         }
         if ($arrData['prodfeatured'] == 1) {
             $GLOBALS['ProdFeatured'] = "checked";
         }
         if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId()) {
             $GLOBALS['HideStoreFeatured'] = 'display: none';
         } else {
             if (!gzte11(ISC_HUGEPRINT) || !$arrData['prodvendorid']) {
//.........这里部分代码省略.........
开发者ID:nirvana-info,项目名称:old_bak,代码行数:101,代码来源:class.product_18_12.php


示例19: ManageFormFieldsGrid

		/**
		 * Return the customer address grid
		 *
		 * Method will return the customer address HTML grid
		 *
		 * @access public
		 * @param int $formFieldFormId The optional form ID to display. Default is FORMFIELDS_FORM_ACCOUNT (account form)
		 * @return string The customer address HTML grid
		 */
		public function ManageFormFieldsGrid($formFieldFormId=FORMFIELDS_FORM_ACCOUNT)
		{
			if (!isId($formFieldFormId)) {
				return '';
			}

			$grid = '<ul class="SortableList" style="padding-top: 1px; padding-bottom: 1px; background-color: #f9f9f9;">';

			if (!isId($formFieldFormId)) {
				return '';
			}

			$fields = $GLOBALS['ISC_CLASS_FORM']->getFormFields($formFieldFormId);

			if (!$fields || empty($fields)) {
				return '';
			}

			foreach (array_keys($fields) as $fieldId) {

				$field =& $fields[$fieldId];
				$details = call_user_func(array(get_class($field), 'getDetails'));

				$GLOBALS['FormFieldId'] = $fieldId;
				$GLOBALS['FormFieldData'] = isc_html_escape($details['name']);
				$GLOBALS['FormFieldLastModified'] = date('M jS Y', $field->record['formfieldlastmodified']);

				if ($field->record['formfieldisimmutable']) {
					$GLOBALS['FormFieldType'] = GetLang('FormFieldsBuiltIn');
					$GLOBALS['DeleteStatus'] = 'disabled="disabled"';
				} else {
					$GLOBALS['FormFieldType'] = GetLang('FormFieldsUserDefined');
					$GLOBALS['DeleteStatus'] = '';
				}

				$GLOBALS['FormFieldName'] = isc_html_escape($field->record['formfieldlabel']);

				if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Edit_FormFields)) {
					$disabled = 'disabled="disabled" style="color: gray;"';
					$onclick = 'alert(\'' . GetLang('FormFieldsEditNotAllowedNoPermission') . '\'); return false;';
				} else {
					$disabled = '';
					$onclick = 'EditFormField(' . (int)$fieldId . ', ' . (int)$formFieldFormId . '); return false;';
				}

				$GLOBALS['FormFieldAction'] = '<a href="#" class="Action" onclick="' . $onclick . '" ' . $disabled . '>' . GetLang('Edit') . '</a>';

				if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Edit_FormFields) || isc_strtolower($field->record['formfieldtype']) == 'selectortext' || !gzte11(ISC_MEDIUMPRINT)) {
					$disabled = 'disabled="disabled" style="color: gray;"';

					if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Edit_FormFields)) {
						$msg = GetLang('FormFieldsCopyNotAllowedNoPermission');
					} else {
						$msg = sprintf(GetLang('FormFieldsCopyNotAllowed'), $field->record['formfieldlabel']);
					}

					$onclick = 'alert(\'' . $msg . '\'); return false;';
				} else {
					$disabled = '';
					$onclick = 'CopyFormField(' . (int)$fieldId . ', ' . (int)$formFieldFormId . ');return false;';
				}

				$GLOBALS['FormFieldAction'] .= ' <a href="#" class="Action" onclick="' . $onclick . '" ' . $disabled . '>' . GetLang('Copy') . '</a>';

				if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Delete_FormFields) || $field->record['formfieldisimmutable'] || !gzte11(ISC_MEDIUMPRINT)) {
					$disabled = 'disabled="disabled" style="color: gray;"';

					if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Delete_FormFields)) {
						$msg = GetLang('FormFieldsDeleteNotAllowedNoPermission');
					} else {
						$msg = sprintf(GetLang('FormFieldsDeleteNotAllowed'), $field->record['formfieldlabel']);
					}

					$onclick = 'alert(\'' . $msg . '\'); return false;';
				} else {
					$disabled = '';
					$onclick = 'DeleteFormField(' . (int)$fieldId . ', ' . (int)$formFieldFormId . '); return false;';
				}

				$GLOBALS['FormFieldAction'] .= ' <a href="#" class="Action" onclick="' . $onclick . '" ' . $disabled . '>' . GetLang('Delete') . '</a>';

				/**
				 * Special case to stop customers from putting fields above the
				 * email and password fields
				 */
				if ($formFieldFormId == FORMFIELDS_FORM_ACCOUNT) {
					if (trim($field->record['formfieldprivateid']) !== '') {
						$privateSet = true;
					} else if ($privateSet) {
						$grid .= '</ul><ul class="SortableList" style="padding-top: 1px; padding-bottom: 1px; background-color: #f9f9f9;">';
						$privateSet = false;
//.........这里部分代码省略.........
开发者ID:hungnv0789,项目名称:vhtm,代码行数:101,代码来源:class.formfields.php


示例20: GetTemplate

 /**
  * Retrieves a template record from the database
  *
  * @param int $templateid The template to get
  * @return array The template record
  */
 public function GetTemplate($templateid)
 {
     $where = "";
     if (gzte11(ISC_HUGEPRINT)) {
         $GLOBALS['VendorLabel'] = GetLang("VendorLabel");
         $vendorData = $GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendor();
         if (isset($vendorData['vendorid'])) {
             $where = "AND (et.vendorid = '" . $vendorData['vendorid'] . "' OR builtin = 1)";
         }
     }
     // retrieve the template
     $query = "\n\t\t\tSELECT\n\t\t\t\tet.*\n\t\t\tFROM\n\t\t\t\t[|PREFIX|]import_templates et\n\t\t\tWHERE\n\t\t\t\timporttemplateid = '" . $GLOBALS['ISC_CLASS_DB']->Quote($templateid) . "'";
     $query .= $where;
     $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
     if (!($template = $GLOBALS['ISC_CLASS_DB']->Fetch($result))) {
         // template not found
         throw new Exception(GetLang("TemplateNotFound"));
     }
     return $template;
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:26,代码来源:class.importtemplates_1_10.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP gztell函数代码示例发布时间:2022-05-15
下一篇:
PHP gzseek函数代码示例发布时间: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