本文整理汇总了PHP中ew_UserAgent函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_UserAgent函数的具体用法?PHP ew_UserAgent怎么用?PHP ew_UserAgent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_UserAgent函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$GLOBALS["Page"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (socios)
if (!isset($GLOBALS["socios"])) {
$GLOBALS["socios"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["socios"];
}
// Table object (usuario)
if (!isset($GLOBALS['usuario'])) {
$GLOBALS['usuario'] = new cusuario();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'edit', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'socios', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
}
开发者ID:scintes,项目名称:sistemas,代码行数:38,代码来源:cciagsociosedit.php
示例2: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$GLOBALS["Page"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (montos)
if (!isset($GLOBALS["montos"])) {
$GLOBALS["montos"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["montos"];
}
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print";
$this->ExportExcelUrl = $this->PageUrl() . "export=excel";
$this->ExportWordUrl = $this->PageUrl() . "export=word";
$this->ExportHtmlUrl = $this->PageUrl() . "export=html";
$this->ExportXmlUrl = $this->PageUrl() . "export=xml";
$this->ExportCsvUrl = $this->PageUrl() . "export=csv";
$this->ExportPdfUrl = $this->PageUrl() . "export=pdf";
$this->AddUrl = "montosadd.php";
$this->InlineAddUrl = $this->PageUrl() . "a=add";
$this->GridAddUrl = $this->PageUrl() . "a=gridadd";
$this->GridEditUrl = $this->PageUrl() . "a=gridedit";
$this->MultiDeleteUrl = "montosdelete.php";
$this->MultiUpdateUrl = "montosupdate.php";
// Table object (usuario)
if (!isset($GLOBALS['usuario'])) {
$GLOBALS['usuario'] = new cusuario();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'list', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'montos', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
// List options
$this->ListOptions = new cListOptions();
$this->ListOptions->TableVar = $this->TableVar;
// Export options
$this->ExportOptions = new cListOptions();
$this->ExportOptions->Tag = "span";
$this->ExportOptions->TagClassName = "ewExportOption";
// Other options
$this->OtherOptions['addedit'] = new cListOptions();
$this->OtherOptions['addedit']->Tag = "span";
$this->OtherOptions['addedit']->TagClassName = "ewAddEditOption";
$this->OtherOptions['detail'] = new cListOptions();
$this->OtherOptions['detail']->Tag = "span";
$this->OtherOptions['detail']->TagClassName = "ewDetailOption";
$this->OtherOptions['action'] = new cListOptions();
$this->OtherOptions['action']->Tag = "span";
$this->OtherOptions['action']->TagClassName = "ewActionOption";
}
开发者ID:scintes,项目名称:sistemas,代码行数:69,代码来源:montoslist.php
示例3: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$GLOBALS["Page"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
if (!isset($GLOBALS["usuario"])) {
$GLOBALS["usuario"] = new cusuario();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'logout', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
}
开发者ID:scintes,项目名称:sistemas,代码行数:26,代码来源:logout.php
示例4: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$GLOBALS["Page"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (realmcharacters)
if (!isset($GLOBALS["realmcharacters"])) {
$GLOBALS["realmcharacters"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["realmcharacters"];
}
$KeyUrl = "";
if (@$_GET["realmid"] != "") {
$this->RecKey["realmid"] = $_GET["realmid"];
$KeyUrl .= "&realmid=" . urlencode($this->RecKey["realmid"]);
}
if (@$_GET["acctid"] != "") {
$this->RecKey["acctid"] = $_GET["acctid"];
$KeyUrl .= "&acctid=" . urlencode($this->RecKey["acctid"]);
}
$this->ExportPrintUrl = $this->PageUrl() . "export=print" . $KeyUrl;
$this->ExportHtmlUrl = $this->PageUrl() . "export=html" . $KeyUrl;
$this->ExportExcelUrl = $this->PageUrl() . "export=excel" . $KeyUrl;
$this->ExportWordUrl = $this->PageUrl() . "export=word" . $KeyUrl;
$this->ExportXmlUrl = $this->PageUrl() . "export=xml" . $KeyUrl;
$this->ExportCsvUrl = $this->PageUrl() . "export=csv" . $KeyUrl;
$this->ExportPdfUrl = $this->PageUrl() . "export=pdf" . $KeyUrl;
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'view', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'realmcharacters', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
// Export options
$this->ExportOptions = new cListOptions();
$this->ExportOptions->Tag = "span";
$this->ExportOptions->TagClassName = "ewExportOption";
}
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:54,代码来源:realmcharactersview.php
示例5: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$GLOBALS["Page"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (usuario)
if (!isset($GLOBALS["usuario"])) {
$GLOBALS["usuario"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["usuario"];
}
if (!isset($GLOBALS["usuario"])) {
$GLOBALS["usuario"] =& $this;
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'forgotpwd', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
}
开发者ID:scintes,项目名称:sistemas,代码行数:33,代码来源:forgotpwd.php
示例6: ew_AllowAddDeleteRow
function ew_AllowAddDeleteRow()
{
$ua = ew_UserAgent();
if (count($ua) >= 4) {
return $ua[1] != "MSIE" || $ua[3] > 8;
} else {
return TRUE;
}
}
开发者ID:scintes,项目名称:sistemas,代码行数:9,代码来源:cciag_phpfn10.php
示例7: ew_AllowAddDeleteRow
function ew_AllowAddDeleteRow()
{
$ua = ew_UserAgent();
return count($ua) >= 2 && ($ua[0] != "IE" || $ua[1] > 5);
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:5,代码来源:phpfn8.php
示例8: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$this->FormActionName .= '_' . $this->FormName;
$this->FormKeyName .= '_' . $this->FormName;
$this->FormOldKeyName .= '_' . $this->FormName;
$this->FormBlankRowName .= '_' . $this->FormName;
$this->FormKeyCountName .= '_' . $this->FormName;
$GLOBALS["Grid"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (montos)
if (!isset($GLOBALS["montos"])) {
$GLOBALS["montos"] =& $this;
// $GLOBALS["MasterTable"] = &$GLOBALS["Table"];
// if (!isset($GLOBALS["Table"])) $GLOBALS["Table"] = &$GLOBALS["montos"];
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'grid', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'montos', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
// List options
$this->ListOptions = new cListOptions();
$this->ListOptions->TableVar = $this->TableVar;
// Other options
$this->OtherOptions['addedit'] = new cListOptions();
$this->OtherOptions['addedit']->Tag = "span";
$this->OtherOptions['addedit']->TagClassName = "ewAddEditOption";
}
开发者ID:scintes,项目名称:sistemas,代码行数:47,代码来源:cciag_montosgridcls.php
示例9: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$GLOBALS["Page"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (tbl_subject_group_type)
if (!isset($GLOBALS["tbl_subject_group_type"])) {
$GLOBALS["tbl_subject_group_type"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["tbl_subject_group_type"];
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'delete', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'tbl_subject_group_type', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
}
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:34,代码来源:tbl_subject_group_typedelete.php
示例10: __construct
function __construct()
{
global $conn, $Language, $UserAgent;
// User agent
$UserAgent = ew_UserAgent();
$GLOBALS["Page"] =& $this;
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (GM_Logs)
if (!isset($GLOBALS["GM_Logs"])) {
$GLOBALS["GM_Logs"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["GM_Logs"];
}
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print";
$this->ExportExcelUrl = $this->PageUrl() . "export=excel";
$this->ExportWordUrl = $this->PageUrl() . "export=word";
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'report', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'GM Logs', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
// Export options
$this->ExportOptions = new cListOptions();
$this->ExportOptions->Tag = "span";
$this->ExportOptions->TagClassName = "ewExportOption";
}
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:42,代码来源:GM_Logsreport.php
示例11: ew_IsMobile
function ew_IsMobile()
{
global $UserAgent, $EW_USE_MOBILE_MENU;
if (!isset($UserAgent)) {
$UserAgent = ew_UserAgent();
}
return $EW_USE_MOBILE_MENU && $UserAgent[2] != "";
}
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:8,代码来源:ewshared9.php
注:本文中的ew_UserAgent函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论