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


PHP ew_Connect函数代码示例

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


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

示例1: GetLookupValues

function GetLookupValues($Sql)
{
    global $LnkType, $LnkFld, $LnkCount, $LnkDisp1, $LnkDisp2;
    $conn = ew_Connect();
    if ($rs = $conn->Execute($Sql)) {
        $rsarr = $rs->GetRows();
        $rs->Close();
    }
    $conn->Close();
    // Output
    if (is_array($rsarr) && count($rsarr) > 0) {
        if ($LnkType == "2") {
            // Auto fill
            $i = 0;
            while ($i < count($rsarr[0]) - 1) {
                $str = $rsarr[0][$i];
                $str = ew_RemoveCrLf($str);
                if (strval($rsarr[0][$i + 1]) != "") {
                    $str .= ", " . ew_RemoveCrLf(strval($rsarr[0][$i + 1]));
                }
                echo ew_ConvertToUtf8($str) . "\r";
                $i += 2;
            }
        } else {
            $rsarrcnt = count($rsarr);
            for ($i = 0; $i < $rsarrcnt; $i++) {
                if (intval(count($rsarr[$i]) / 2) == intval($LnkCount)) {
                    // Process link field
                    if ($LnkType != "1") {
                        $str = $rsarr[$i][$LnkFld];
                        $str = ew_RemoveCrLf($str);
                        echo ew_ConvertToUtf8($str) . "\r";
                    }
                    // Process display field
                    if (intval($LnkDisp1) >= 0) {
                        $str = $rsarr[$i][$LnkDisp1];
                        $str = ew_RemoveCrLf($str);
                    } else {
                        $str = "";
                    }
                    echo ew_ConvertToUtf8($str) . "\r";
                    // Process display field 2
                    if (intval($LnkDisp2) >= 0) {
                        $str = $rsarr[$i][$LnkDisp2];
                        $str = ew_RemoveCrLf($str);
                    } else {
                        $str = "";
                    }
                    echo ew_ConvertToUtf8($str) . "\r";
                }
            }
        }
    }
}
开发者ID:BGCX261,项目名称:zhss-svn-to-git,代码行数:54,代码来源:ewlookup50.php

示例2: GetLookupValues

 function GetLookupValues($Sql)
 {
     $rsarr = array();
     $rowcnt = 0;
     $conn = ew_Connect();
     if ($rs = $conn->Execute($Sql)) {
         $rowcnt = $rs->RecordCount();
         $fldcnt = $rs->FieldCount();
         $rsarr = $rs->GetRows();
         $rs->Close();
     }
     $conn->Close();
     // Output
     if (is_array($rsarr) && $rowcnt > 0) {
         for ($i = 0; $i < $rowcnt; $i++) {
             for ($j = 0; $j < $fldcnt; $j++) {
                 $str = strval($rsarr[$i][$j]);
                 $str = $this->RemoveDelimiters($str);
                 echo ew_ConvertToUtf8($str . EW_FIELD_DELIMITER);
             }
             echo ew_ConvertToUtf8(EW_RECORD_DELIMITER);
         }
     }
 }
开发者ID:Razinsky,项目名称:echaude-com,代码行数:24,代码来源:ewlookup8.php

示例3: cGiftCertificates_add

 function cGiftCertificates_add()
 {
     global $conn;
     // Initialize table object
     $GLOBALS["GiftCertificates"] = new cGiftCertificates();
     // Initialize other table object
     $GLOBALS['AdminInfo'] = new cAdminInfo();
     // Initialize other table object
     $GLOBALS['Customers'] = new cCustomers();
     // Intialize page id (for backward compatibility)
     if (!defined("EW_PAGE_ID")) {
         define("EW_PAGE_ID", 'add', TRUE);
     }
     // Initialize table name (for backward compatibility)
     if (!defined("EW_TABLE_NAME")) {
         define("EW_TABLE_NAME", 'GiftCertificates', TRUE);
     }
     // Open connection to the database
     $conn = ew_Connect();
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:20,代码来源:GiftCertificatesadd.php

示例4: __construct

 function __construct()
 {
     global $conn, $Language;
     $GLOBALS["Page"] =& $this;
     // Language object
     if (!isset($Language)) {
         $Language = new cLanguage();
     }
     // Parent constuctor
     parent::__construct();
     // Table object (v_hoja_manteniminto)
     if (!isset($GLOBALS["v_hoja_manteniminto"]) || get_class($GLOBALS["v_hoja_manteniminto"]) == "cv_hoja_manteniminto") {
         $GLOBALS["v_hoja_manteniminto"] =& $this;
         $GLOBALS["Table"] =& $GLOBALS["v_hoja_manteniminto"];
     }
     // 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 = "v_hoja_mantenimintoadd.php";
     $this->InlineAddUrl = $this->PageUrl() . "a=add";
     $this->GridAddUrl = $this->PageUrl() . "a=gridadd";
     $this->GridEditUrl = $this->PageUrl() . "a=gridedit";
     $this->MultiDeleteUrl = "v_hoja_mantenimintodelete.php";
     $this->MultiUpdateUrl = "v_hoja_mantenimintoupdate.php";
     // 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", 'v_hoja_manteniminto', 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 = "div";
     $this->ExportOptions->TagClassName = "ewExportOption";
     // Other options
     $this->OtherOptions['addedit'] = new cListOptions();
     $this->OtherOptions['addedit']->Tag = "div";
     $this->OtherOptions['addedit']->TagClassName = "ewAddEditOption";
     $this->OtherOptions['detail'] = new cListOptions();
     $this->OtherOptions['detail']->Tag = "div";
     $this->OtherOptions['detail']->TagClassName = "ewDetailOption";
     $this->OtherOptions['action'] = new cListOptions();
     $this->OtherOptions['action']->Tag = "div";
     $this->OtherOptions['action']->TagClassName = "ewActionOption";
 }
开发者ID:scintes,项目名称:sistemas,代码行数:63,代码来源:v_hoja_mantenimintolist.php

示例5: __construct

 function __construct()
 {
     global $conn, $Language;
     global $UserTable, $UserTableConn;
     $GLOBALS["Page"] =& $this;
     $this->TokenTimeout = ew_SessionTimeoutTime();
     // Language object
     if (!isset($Language)) {
         $Language = new cLanguage();
     }
     // Parent constuctor
     parent::__construct();
     // Table object (bank)
     if (!isset($GLOBALS["bank"]) || get_class($GLOBALS["bank"]) == "cbank") {
         $GLOBALS["bank"] =& $this;
         $GLOBALS["Table"] =& $GLOBALS["bank"];
     }
     // Table object (user)
     if (!isset($GLOBALS['user'])) {
         $GLOBALS['user'] = new cuser();
     }
     // 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", 'bank', TRUE);
     }
     // Start timer
     if (!isset($GLOBALS["gTimer"])) {
         $GLOBALS["gTimer"] = new cTimer();
     }
     // Open connection
     if (!isset($conn)) {
         $conn = ew_Connect($this->DBID);
     }
     // User table object (user)
     if (!isset($UserTable)) {
         $UserTable = new cuser();
         $UserTableConn = Conn($UserTable->DBID);
     }
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:43,代码来源:bankdelete.php

示例6: __construct

 function __construct()
 {
     global $conn, $Language;
     $GLOBALS["Page"] =& $this;
     // Language object
     if (!isset($Language)) {
         $Language = new cLanguage();
     }
     // Parent constuctor
     parent::__construct();
     // Table object (nilai)
     if (!isset($GLOBALS["nilai"]) || get_class($GLOBALS["nilai"]) == "cnilai") {
         $GLOBALS["nilai"] =& $this;
         $GLOBALS["Table"] =& $GLOBALS["nilai"];
     }
     // 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", 'nilai', TRUE);
     }
     // Start timer
     if (!isset($GLOBALS["gTimer"])) {
         $GLOBALS["gTimer"] = new cTimer();
     }
     // Open connection
     if (!isset($conn)) {
         $conn = ew_Connect();
     }
 }
开发者ID:agnium-academy,项目名称:abyor-3-web,代码行数:32,代码来源:nilaidelete.php

示例7: ctbl_user_level_edit

 function ctbl_user_level_edit()
 {
     global $conn, $Language;
     // Language object
     $Language = new cLanguage();
     // Table object (tbl_user_level)
     $GLOBALS["tbl_user_level"] = new ctbl_user_level();
     // Table object (tbl_user)
     $GLOBALS['tbl_user'] = new ctbl_user();
     // 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", 'tbl_user_level', TRUE);
     }
     // Start timer
     $GLOBALS["gsTimer"] = new cTimer();
     // Open connection
     $conn = ew_Connect();
 }
开发者ID:jliman,项目名称:SEOStat,代码行数:22,代码来源:tbl_user_leveledit.php

示例8: __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

示例9: cKitchen_Report_22D2_report

 function cKitchen_Report_22D2_report()
 {
     global $conn;
     // Initialize table object
     $GLOBALS["Kitchen_Report_22D2"] = new cKitchen_Report_22D2();
     // Initialize other table object
     $GLOBALS['AdminInfo'] = new cAdminInfo();
     // Intialize page id (for backward compatibility)
     if (!defined("EW_PAGE_ID")) {
         define("EW_PAGE_ID", 'report', TRUE);
     }
     // Initialize table name (for backward compatibility)
     if (!defined("EW_TABLE_NAME")) {
         define("EW_TABLE_NAME", 'Kitchen Report 2-2', TRUE);
     }
     // Open connection to the database
     $conn = ew_Connect();
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:18,代码来源:Kitchen_Report_22D2report.php

示例10: cAllergies_list

 function cAllergies_list()
 {
     global $conn;
     // Initialize table object
     $GLOBALS["Allergies"] = new cAllergies();
     // Initialize other table object
     $GLOBALS['AdminInfo'] = new cAdminInfo();
     // Intialize page id (for backward compatibility)
     if (!defined("EW_PAGE_ID")) {
         define("EW_PAGE_ID", 'list', TRUE);
     }
     // Initialize table name (for backward compatibility)
     if (!defined("EW_TABLE_NAME")) {
         define("EW_TABLE_NAME", 'Allergies', TRUE);
     }
     // Open connection to the database
     $conn = ew_Connect();
     // Initialize list options
     $this->ListOptions = new cListOptions();
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:20,代码来源:Allergieslist.php

示例11: __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

示例12: __construct

 function __construct()
 {
     global $conn, $Language;
     $GLOBALS["Page"] =& $this;
     // Language object
     if (!isset($Language)) {
         $Language = new cLanguage();
     }
     // Parent constuctor
     parent::__construct();
     // Table object (Report1)
     if (!isset($GLOBALS["Report1"]) || get_class($GLOBALS["Report1"]) == "cReport1") {
         $GLOBALS["Report1"] =& $this;
         $GLOBALS["Table"] =& $GLOBALS["Report1"];
     }
     // Initialize URLs
     $this->ExportPrintUrl = $this->PageUrl() . "export=print";
     $this->ExportExcelUrl = $this->PageUrl() . "export=excel";
     $this->ExportWordUrl = $this->PageUrl() . "export=word";
     // Table object (account)
     if (!isset($GLOBALS['account'])) {
         $GLOBALS['account'] = new caccount();
     }
     // User table object (account)
     if (!isset($GLOBALS["UserTable"])) {
         $GLOBALS["UserTable"] = new caccount();
     }
     // 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", 'Report1', 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 = "div";
     $this->ExportOptions->TagClassName = "ewExportOption";
 }
开发者ID:Ombogo,项目名称:new_api_chat,代码行数:48,代码来源:Report1report.php

示例13: __construct

 function __construct()
 {
     global $conn, $Language;
     $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 (cuenta)
     if (!isset($GLOBALS["cuenta"]) || get_class($GLOBALS["cuenta"]) == "ccuenta") {
         $GLOBALS["cuenta"] =& $this;
         //			$GLOBALS["MasterTable"] = &$GLOBALS["Table"];
         //			if (!isset($GLOBALS["Table"])) $GLOBALS["Table"] = &$GLOBALS["cuenta"];
     }
     // 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", 'cuenta', 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 = "div";
     $this->OtherOptions['addedit']->TagClassName = "ewAddEditOption";
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:45,代码来源:cuentagridcls.php

示例14: __construct

 function __construct()
 {
     global $conn, $Language;
     $GLOBALS["Page"] =& $this;
     // Language object
     if (!isset($Language)) {
         $Language = new cLanguage();
     }
     // Parent constuctor
     parent::__construct();
     // Table object (deudas)
     if (!isset($GLOBALS["deudas"]) || get_class($GLOBALS["deudas"]) == "cdeudas") {
         $GLOBALS["deudas"] =& $this;
         $GLOBALS["Table"] =& $GLOBALS["deudas"];
     }
     // Table object (socios)
     if (!isset($GLOBALS['socios'])) {
         $GLOBALS['socios'] = new csocios();
     }
     // Table object (usuario)
     if (!isset($GLOBALS['usuario'])) {
         $GLOBALS['usuario'] = new cusuario();
     }
     // User table object (usuario)
     if (!isset($GLOBALS["UserTable"])) {
         $GLOBALS["UserTable"] = new cusuario();
     }
     // Page ID
     if (!defined("EW_PAGE_ID")) {
         define("EW_PAGE_ID", 'add', TRUE);
     }
     // Table name (for backward compatibility)
     if (!defined("EW_TABLE_NAME")) {
         define("EW_TABLE_NAME", 'deudas', TRUE);
     }
     // Start timer
     if (!isset($GLOBALS["gTimer"])) {
         $GLOBALS["gTimer"] = new cTimer();
     }
     // Open connection
     if (!isset($conn)) {
         $conn = ew_Connect();
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:44,代码来源:cciag_deudasadd.php

示例15: ct_promotions_vins_list

 function ct_promotions_vins_list()
 {
     global $conn, $Language;
     // Language object
     if (!isset($Language)) {
         $Language = new cLanguage();
     }
     // Table object (t_promotions_vins)
     if (!isset($GLOBALS["t_promotions_vins"])) {
         $GLOBALS["t_promotions_vins"] = new ct_promotions_vins();
         $GLOBALS["Table"] =& $GLOBALS["t_promotions_vins"];
     }
     // 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 = "t_promotions_vinsadd.php";
     $this->InlineAddUrl = $this->PageUrl() . "a=add";
     $this->GridAddUrl = $this->PageUrl() . "a=gridadd";
     $this->GridEditUrl = $this->PageUrl() . "a=gridedit";
     $this->MultiDeleteUrl = "t_promotions_vinsdelete.php";
     $this->MultiUpdateUrl = "t_promotions_vinsupdate.php";
     // 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", 't_promotions_vins', 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();
     // Export options
     $this->ExportOptions = new cListOptions();
     $this->ExportOptions->Tag = "span";
     $this->ExportOptions->Separator = "&nbsp;&nbsp;";
 }
开发者ID:Razinsky,项目名称:echaude-com,代码行数:49,代码来源:t_promotions_vinslist.php


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