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_faculty) if (!isset($GLOBALS["tbl_subject_faculty"])) { $GLOBALS["tbl_subject_faculty"] =& $this; $GLOBALS["Table"] =& $GLOBALS["tbl_subject_faculty"]; } // 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 = "tbl_subject_facultyadd.php"; $this->InlineAddUrl = $this->PageUrl() . "a=add"; $this->GridAddUrl = $this->PageUrl() . "a=gridadd"; $this->GridEditUrl = $this->PageUrl() . "a=gridedit"; $this->MultiDeleteUrl = "tbl_subject_facultydelete.php"; $this->MultiUpdateUrl = "tbl_subject_facultyupdate.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", 'tbl_subject_faculty', 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"; }
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_faculty) if (!isset($GLOBALS["tbl_subject_faculty"])) { $GLOBALS["tbl_subject_faculty"] =& $this; $GLOBALS["Table"] =& $GLOBALS["tbl_subject_faculty"]; } // 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_subject_faculty', TRUE); } // Start timer if (!isset($GLOBALS["gTimer"])) { $GLOBALS["gTimer"] = new cTimer(); } // Open connection if (!isset($conn)) { $conn = ew_Connect(); } }
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_faculty) if (!isset($GLOBALS["tbl_subject_faculty"])) { $GLOBALS["tbl_subject_faculty"] =& $this; $GLOBALS["Table"] =& $GLOBALS["tbl_subject_faculty"]; } $KeyUrl = ""; if (@$_GET["id"] != "") { $this->RecKey["id"] = $_GET["id"]; $KeyUrl .= "&id=" . urlencode($this->RecKey["id"]); } $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", 'tbl_subject_faculty', 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"; }