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

PHP isc_strtolower函数代码示例

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

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



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

示例1: HandleToDo

		/**
		* HandleToDo
		* Work out which function to run
		*
		* @param String $Do Which action to run
		* @return Void
		*/
		public function HandleToDo($Do)
		{
			if(GetConfig('DisableAddons') == true) {
				$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
			}

			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('addons');

			switch (isc_strtolower($Do)) {
				case "purchasedownloadaddons": {
					if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Customers)) {
						$this->PurchaseAddonForm();
					}
					break;
				}
				default: {
					if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Customers)) {

						$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Addons') => "index.php?ToDo=viewDownloadAddons");

						$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
						$this->ListAddons();
						$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
					} else {
						$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
					}
					break;
				}
			}
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:37,代码来源:class.downloadaddons.php


示例2: HandleToDo

 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "addcustomfield":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Create_Product) || $GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Products)) {
                 $this->addCustomField();
             }
             exit;
             break;
         case "addproductfield":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->addProductField();
             }
             exit;
             break;
         case 'viewaffectedvariations':
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->viewAffectedVariations();
             }
             exit;
             break;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:29,代码来源:class.remote.products.php


示例3: HandleToDo

 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "getcheckoutfieldgrid":
             $this->getCheckoutFieldGrid();
             break;
         case 'resortcheckoutfieldgrid':
             $this->resortCheckoutFieldGrid();
             break;
         case 'getwidgetsetuppopup':
             $this->getWidgetSetupPopup();
             break;
         case 'addwidgetsetuppopup':
             $this->addWidgetSetupPopup();
             break;
         case 'deletewidget':
             $this->deleteWidget();
             break;
         case 'deletemultiwidget':
             $this->deleteMultiWidget();
             break;
         case 'savewidgetsetup':
             $this->saveWidgetSetup();
             break;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:32,代码来源:class.remote.checkout.php


示例4: HandleToDo

 /**
  * Handle the incoming action.
  *
  * @param string The action to perform.
  */
 public function HandleToDo($Do)
 {
     $GLOBALS['ISC_CLASS_TEMPLATE']->ParseLangFile(APP_ROOT . "/../language/" . GetConfig('Language') . "/converter_language.ini");
     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('ExportStoreWizard') => "index.php?ToDo=Exporter");
     if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Store_Importer) || GetConfig('DisableStoreImporters')) {
         $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
     }
     // Set the database to log all errors & queries if we're in debug mode
     if ($this->_Debug == true) {
         $GLOBALS['ISC_CLASS_DB']->QueryLog = dirname(__FILE__) . "/logs/export-sts.queries.txt";
         $GLOBALS['ISC_CLASS_DB']->TimeLog = dirname(__FILE__) . "/logs/export-sts.query_time.txt";
         $GLOBALS['ISC_CLASS_DB']->ErrorLog = dirname(__FILE__) . "/logs/export-sts.db_errors.txt";
     }
     switch (isc_strtolower($Do)) {
         case "cancelexporter":
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->CancelExporter();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "showexporterframe":
             $this->ShowExporterFrame();
             break;
         case "runexporter":
             $this->RunModule();
             break;
         default:
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->InitializeExporter();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:36,代码来源:class.exporter.php


示例5: HandleToDo

 public function HandleToDo($Do)
 {
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('froogle');
     switch (isc_strtolower($Do)) {
         case "cancelfroogleexport":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
                 $this->CancelFroogleExport();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "downloadfroogleexport":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
                 $this->DownloadFroogleExport();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "exportfroogleintro":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
                 $this->ExportFroogleIntro();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "exportfroogle":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
                 $this->ExportFroogle();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:33,代码来源:class.froogle.php


示例6: HandleToDo

 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "getformfieldgrid":
             $this->getFormFieldGrid();
             break;
         case 'resortformfieldgrid':
             $this->resortFormFieldGrid();
             break;
         case 'getfieldsetuppopup':
             $this->getFieldSetupPopup();
             break;
         case 'addfieldsetuppopup':
             $this->addFieldSetupPopup();
             break;
         case 'copyfieldsetuppopup':
             $this->copyFieldSetupPopup();
             break;
         case 'deletefield':
             $this->deleteField();
             break;
         case 'deletemultifield':
             $this->deleteMultiField();
             break;
         case 'savefieldsetup':
             $this->saveFieldSetup();
             break;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:35,代码来源:class.remote.formfields.php


示例7: 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('LiveChatSettings') => "index.php?ToDo=viewLiveChatSettings"
			);

		if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings)) {
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
			return;
		}

		switch(isc_strtolower($Do)) {
			case "saveupdatedlivechatsettings":
				$this->SaveUpdatedLiveChatSettings();
				break;
			case "livechatsettingscallback":
				$this->LiveChatSettingsCallback();
			case "viewlivechatsettings":
				$GLOBALS['BreadcrumEntries'][GetLang('LiveChatSettings')] = "index.php?ToDo=viewLiveChatSettings";
				$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
				$this->ManageLiveChatSettings();
				$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
				break;
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:39,代码来源:class.settings.livechat.php


示例8: HandleToDo

	public function HandleToDo($Do)
	{
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('optimizer');
		$todo = isc_strtolower($Do);

		switch($todo) {
			default:
				if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Website_Optimizer)) {

					$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('GoogleWebsiteOptimizer') => "index.php?ToDo=manageOptimizer");

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

					$this->manageOptimizer();

					if(!isset($_REQUEST['ajax'])) {
						$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
					}
				} else {
					$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
				}
			break;
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:26,代码来源:class.optimizer.php


示例9: Init

	/**
	* Initialises this method for exporting
	*
	* @param ISC_ADMIN_EXPORTOPTIONS The options to export with
	*/
	public function Init(ISC_ADMIN_EXPORTOPTIONS $options)
	{
		$filetype = $options->getFileType();

		// initialise the file type
		$filetype->Init($this, $options->getTemplateId(), $options->getWhere(), $options->getHaving());

		// set the type name
		$details = $filetype->GetTypeDetails();
		$name = $details['name'];
		if (substr($name, -1, 1) == "s") {
			$name = substr($name, 0, -1);
		}
		$this->type_name = $name;

		$this->filetype = $filetype;

		// load settings for this method
		$settings = $this->GetSettings($options->getTemplateId());
		foreach ($settings as $var => $setting) {
			$this->settings[$var] = $setting['value'];
		}

		$this->className = 'exporttemplate';
		$this->exportName = $details['title'];
		$GLOBALS['ExportName'] = $details['title'];
		$GLOBALS['ExportGenerate'] = GetLang('AjaxExportLink', array('title' => isc_strtolower($details['title']), 'type' => $this->method_name));
		$GLOBALS['ExportIntro'] = GetLang('AjaxExportIntro');
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:34,代码来源:class.exportmethod.php


示例10: _GetChangesReportList

 public function _GetChangesReportList(&$Query, $Start, $SortField, $SortOrder, &$NumResults)
 {
     // Return an array containing details about changes.report.
     // Takes into account search too.
     // PostgreSQL is case sensitive for likes, so all matches are done in lower case
     $Query = trim(isc_strtolower($Query));
     if (isset($_GET['days']) && $_GET['days'] != '') {
         $days = (int) $_GET['days'];
     } else {
         $days = 15;
     }
     $query = "\n\t\t\t\tSELECT *, \n                (SELECT COUNT(productid) \n                FROM [|PREFIX|]products p \n                WHERE p.prodbrandid=b.brandid) AS totalproducts,\n                (SELECT COUNT(productid) \n                FROM [|PREFIX|]products p \n                WHERE p.prodbrandid=b.brandid AND proddateadded  >= UNIX_TIMESTAMP(DATE_SUB(CURDATE(), INTERVAL {$days} DAY))) AS newproducts,\n                (SELECT COUNT(DISTINCT p.productid)  \n                FROM [|PREFIX|]changes_report cr \n                INNER JOIN [|PREFIX|]products p ON cr.changeprodid = p.productid \n                WHERE p.prodbrandid=b.brandid AND cr.changetype='content' AND changedtime > DATE_SUB(NOW(), INTERVAL {$days} DAY)) AS contentcount,\n                (SELECT COUNT(DISTINCT p.productid)  \n                FROM [|PREFIX|]changes_report cr \n                INNER JOIN [|PREFIX|]products p ON cr.changeprodid = p.productid \n                WHERE p.prodbrandid=b.brandid AND cr.changetype='application' AND changedtime > DATE_SUB(NOW(), INTERVAL {$days} DAY)) AS applicationcount,\n                (SELECT COUNT(DISTINCT p.productid)  \n                FROM [|PREFIX|]changes_report cr \n                INNER JOIN [|PREFIX|]products p ON cr.changeprodid = p.productid \n                WHERE p.prodbrandid=b.brandid AND cr.changetype='price' AND changedtime > DATE_SUB(NOW(), INTERVAL {$days} DAY)) AS pricecount                  \n\t\t\t\tFROM [|PREFIX|]brands b\n                \n\t\t\t";
     //proddateadded
     $countQuery = "SELECT COUNT(*) FROM [|PREFIX|]brands b";
     $queryWhere = ' WHERE 1=1 ';
     if ($Query != "") {
         $queryWhere .= " AND LOWER(b.brandname) LIKE '%" . $GLOBALS['ISC_CLASS_DB']->Quote($Query) . "%'";
     }
     $query .= $queryWhere;
     $countQuery .= $queryWhere;
     $result = $GLOBALS['ISC_CLASS_DB']->Query($countQuery);
     $NumResults = $GLOBALS['ISC_CLASS_DB']->FetchOne($result);
     if ($NumResults > 0) {
         $query .= " ORDER BY " . $SortField . " " . $SortOrder;
         // Add the limit
         $query .= $GLOBALS["ISC_CLASS_DB"]->AddLimit($Start, ISC_REPORTS_PER_PAGE);
         $result = $GLOBALS["ISC_CLASS_DB"]->Query($query);
         return $result;
     } else {
         return false;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:32,代码来源:class.changes.report.php


示例11: xml

 protected function xml()
 {
     $group =& $this->data->nodeData;
     if (!$group) {
         throw new Exception('Cannot load customer group with nodeId: ' . $this->data->nodeId);
     }
     if (isc_strtolower($this->data->service) == 'pricelevelmod') {
         $reference = $this->quickbooks->getAccountingReference($this->data->nodeId, 'customergroup');
         if ($reference) {
             $this->xmlNode->writeElement('ListID', trim($reference['ListID']));
             $this->xmlNode->writeElement('EditSequence', trim($reference['EditSequence']));
         }
     }
     $this->writeElementCData('Name', $group['groupname']);
     if (isset($product['isactive']) && $product['isactive'] !== '') {
         $this->xmlNode->writeElement('IsActive', (int) $product['isactive']);
     }
     /**
      * Must have this regardless if we have a percentage rate or not
      */
     if (!isset($group['groupname']) || $group['groupname'] == '') {
         $group['groupname'] = 0;
     }
     $this->xmlNode->writeElement('PriceLevelFixedPercentage', (double) $group['discount']);
     return $this->buildOutput();
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:26,代码来源:entity.customergroup.php


示例12: HandleToDo

 /**
  * ISC_ADMIN_DESIGNMODE::HandleToDo()
  *
  * @return
  */
 public function HandleToDo()
 {
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('layout');
     if (isset($_REQUEST['ToDo'])) {
         $do = $_REQUEST['ToDo'];
     } else {
         $do = '';
     }
     // Include the Admin authorisation class
     $GLOBALS['ISC_CLASS_ADMIN_AUTH'] = GetClass('ISC_ADMIN_AUTH');
     if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->IsLoggedIn() && $GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Design_Mode)) {
         switch (isc_strtolower($do)) {
             case "saveupdatedfile":
                 $this->SaveFile();
                 break;
             case "editfile":
                 $this->EditFile();
                 break;
             case "revertfile":
                 $this->RevertFile();
                 break;
             default:
                 $this->UpdateLayoutPanels();
         }
     } else {
         $GLOBALS["ISC_CLASS_ADMIN_ENGINE"]->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:33,代码来源:class.designmode.php


示例13: HandleToDo

	public function HandleToDo()
	{
		/**
		 * Convert the input character set from the hard coded UTF-8 to their
		 * selected character set
		 */
		convertRequestInput();

		GetLib('class.json');

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

		switch ($what) {
			case "loadlinker":
				if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->IsLoggedIn()) {
					$this->loadLinker();
				}
				exit;
				break;
			case "search":
				if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->IsLoggedIn()) {
					$this->search();
				}
				exit;
				break;
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:27,代码来源:class.remote.linker.php


示例14: HandleToDo

	public function HandleToDo()
	{
		if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Website_Optimizer)) {
			return false;
		}
		$todo = isc_strtolower(@$_REQUEST['w']);
		switch ($todo) {
			case "showconfigform":
					$this->showConfigForm();
				break;
			case "saveconfigform":
					$this->saveConfigForm();
				break;
			case "installautoscripts":
					$this->installAutoScripts();
				break;
			case "resetmodule":
					$this->resetMoudle();
				break;
			case "downloadvalidationfiles":
					$this->downloadValidationFiles();
				break;
			case "getconversionpageurl":
					$this->getConversionPageUrl();
				break;
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:27,代码来源:class.remote.optimizer.php


示例15: HandleToDo

 /**
  * Handle the incoming action.
  *
  * @param string The name of the action we wish to perform.
  */
 public function HandleToDo($do)
 {
     if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings)) {
         $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
         return;
     }
     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Settings') => "index.php?ToDo=viewSettings");
     switch (isc_strtolower($do)) {
         case "settingsedittaxstatus":
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->UpdateTaxStatus();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "settingssavetaxsettings":
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->SaveTaxSettings();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "settingsdeletetaxrates":
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->DeleteTaxRates();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "settingsaddtaxrate":
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['BreadcrumEntries'][GetLang('AddTaxRate')] = "index.php?ToDo=settingsAddTaxRate";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->AddTaxRate();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "settingssavenewtaxrate":
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->SaveNewTaxRate();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "settingsedittaxrate":
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['BreadcrumEntries'][GetLang('EditTaxRate')] = "index.php?ToDo=settingsEditTaxRate";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->EditTaxRate();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         case "settingssaveupdatedtaxrate":
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->SaveUpdatedTaxRate();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         default:
             $GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->ManageTaxSettings();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:65,代码来源:class.settings.tax.php


示例16: SaveSearch

 public function SaveSearch($customName, $searchVars)
 {
     $search_params = '';
     // Does a view already exist with this name?
     $query = sprintf("select count(searchname) as num from [|PREFIX|]custom_searches where lower(searchname)='%s'", $GLOBALS['ISC_CLASS_DB']->Quote(isc_strtolower($customName)));
     $result = $GLOBALS["ISC_CLASS_DB"]->Query($query);
     $row = $GLOBALS["ISC_CLASS_DB"]->Fetch($result);
     if ($row['num'] == 0) {
         foreach ($searchVars as $k => $v) {
             if ($k == "customName" || $k == "ToDo" || $k == "SubmitButton1" || !is_array($v) && trim($v) == '') {
                 continue;
             }
             if (is_array($v)) {
                 foreach ($v as $v2) {
                     $search_params .= sprintf("%s[]=%s&", $k, urlencode($v2));
                 }
             } else {
                 $search_params .= sprintf("%s=%s&", $k, urlencode($v));
             }
         }
         $search_params = $GLOBALS['ISC_CLASS_DB']->Quote(trim($search_params, "&"));
         $customSearch = array("searchtype" => $this->_searchType, "searchname" => $customName, "searchvars" => $search_params);
         return $GLOBALS['ISC_CLASS_DB']->InsertQuery("custom_searches", $customSearch);
     } else {
         return 0;
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:27,代码来源:class.customsearch.php


示例17: HandleToDo

 public function HandleToDo($Do)
 {
     if (isset($_REQUEST['currentTab'])) {
         $GLOBALS['CurrentTab'] = (int) $_REQUEST['currentTab'];
     } else {
         $GLOBALS['CurrentTab'] = 0;
     }
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('settings.imageuploader');
     if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings_ImageUploader)) {
         $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
         return;
     }
     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('ImageUploaderSettings') => "index.php?ToDo=viewImageUploaderSettings");
     switch (isc_strtolower($Do)) {
         case "saveimageuploadersettings":
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->SaveImageUploaderSettings();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
             break;
         default:
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
             $this->ManageImageUploaderSettings();
             $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:25,代码来源:class.settings.imageuploader.php


示例18: HandleToDo

		public function HandleToDo()
		{
			$what = isc_strtolower(@$_REQUEST['w']);

			switch ($what) {
				case "getmorediscounts":
					if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Discounts)) {
						$this->getMoreDiscounts();
					}
					exit;
					break;

				case "updatediscountorder":
					if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Discounts)) {
						$this->UpdateDiscountOrder();
					}
					exit;
					break;

				case "getrulemoduleproperties":
					if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Discounts)) {
						$this->getRuleModuleProperties();
					}
					exit;
					break;

			}
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:28,代码来源:class.remote.discounts.php


示例19: execRequest

	public function execRequest()
	{
		/**
		 * Make sure that we have a valid customer
		 */
		$customerXML = $this->validateCustomer();
		if (is_string($customerXML)) {
			return $customerXML;
		}

		/**
		 * Plus all our products as well
		 */
		$productXML = $this->validateProducts();
		if (is_string($productXML)) {
			return $productXML;
		}

		if (is_array($this->spool["children"]) && !empty($this->spool["children"])) {
			$lastKid = end($this->spool["children"]);

			switch (isc_strtolower($lastKid["service"])) {
				case "query":

					/**
					 * If we have an error here then that would mean that adding created a duplicate error
					 * but querying for it return nothing. Bad news
					 */
					if ($lastKid["errNo"] > 0) {
						throw new QBException("Caught a QBJD error when adding an order record", $lastKid);
					}

					/**
					 * Our query kid was successfully so we need to create the reference data from the
					 * response. If we can't create the reference then we need to error out
					 */
					if (!$this->setReferenceData($lastKid["response"])) {
						throw new QBException("Cannot create reference data from order query response", $queryResponse);
					}

					/**
					 * Reset the reference data and try again
					 */
					$this->setReferenceData($lastKid["response"]);
					$this->spool = $this->accounting->getSpool($this->spool["id"]);
					break;

				case "add":

					/**
					 * Adding would have handled both adding a new order OR editing an existing order with a
					 * bad reference, so either way just escape it here
					 */
					return $this->execNextService();
					break;
			}
		}

		return parent::execRequest();
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:60,代码来源:service.orderedit.php


示例20: HandleToDo

 public function HandleToDo($Do)
 {
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('subscribers');
     switch (isc_strtolower($Do)) {
         case "cancelsubscribersexport":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Newsletter_Subscribers)) {
                 $this->CancelSubscribersExport();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
         case "downloadsubscribersexport":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Export_Froogle)) {
                 $this->DownloadSubscribersExport();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "exportsubscribersintro":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Export_Froogle)) {
                 $this->ExportSubscribersIntro();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "exportsubscribers":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Newsletter_Subscribers)) {
                 $this->ExportSubscribers();
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:32,代码来源:class.subscribers.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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