本文整理汇总了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();
}
}
示例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";
}
示例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();
}
}
示例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";
}
示例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();
}
}
示例6: ew_AllowAddDeleteRow
function ew_AllowAddDeleteRow()
{
$ua = ew_UserAgent();
if (count($ua) >= 4) {
return $ua[1] != "MSIE" || $ua[3] > 8;
} else {
return TRUE;
}
}
示例7: ew_AllowAddDeleteRow
function ew_AllowAddDeleteRow()
{
$ua = ew_UserAgent();
return count($ua) >= 2 && ($ua[0] != "IE" || $ua[1] > 5);
}
示例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";
}
示例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();
}
}
示例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";
}
示例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] != "";
}