function __construct() { global $conn, $Language; $GLOBALS["Page"] =& $this; $this->TokenTimeout = ew_SessionTimeoutTime(); // Language object if (!isset($Language)) { $Language = new cLanguage(); } // Parent constuctor parent::__construct(); // Table object (vl_media_list) if (!isset($GLOBALS["vl_media_list"]) || get_class($GLOBALS["vl_media_list"]) == "cvl_media_list") { $GLOBALS["vl_media_list"] =& $this; $GLOBALS["Table"] =& $GLOBALS["vl_media_list"]; } $KeyUrl = ""; if (@$_GET["vl_media_id"] != "") { $this->RecKey["vl_media_id"] = $_GET["vl_media_id"]; $KeyUrl .= "&vl_media_id=" . urlencode($this->RecKey["vl_media_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", 'vl_media_list', TRUE); } // Start timer if (!isset($GLOBALS["gTimer"])) { $GLOBALS["gTimer"] = new cTimer(); } // Open connection if (!isset($conn)) { $conn = ew_Connect($this->DBID); } // Export options $this->ExportOptions = new cListOptions(); $this->ExportOptions->Tag = "div"; $this->ExportOptions->TagClassName = "ewExportOption"; // Other options $this->OtherOptions['action'] = new cListOptions(); $this->OtherOptions['action']->Tag = "div"; $this->OtherOptions['action']->TagClassName = "ewActionOption"; $this->OtherOptions['detail'] = new cListOptions(); $this->OtherOptions['detail']->Tag = "div"; $this->OtherOptions['detail']->TagClassName = "ewDetailOption"; }
function __construct() { global $conn, $Language; $GLOBALS["Page"] =& $this; $this->TokenTimeout = ew_SessionTimeoutTime(); // Language object if (!isset($Language)) { $Language = new cLanguage(); } // Parent constuctor parent::__construct(); // Table object (vl_media_list) if (!isset($GLOBALS["vl_media_list"]) || get_class($GLOBALS["vl_media_list"]) == "cvl_media_list") { $GLOBALS["vl_media_list"] =& $this; $GLOBALS["Table"] =& $GLOBALS["vl_media_list"]; } // 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", 'vl_media_list', TRUE); } // Start timer if (!isset($GLOBALS["gTimer"])) { $GLOBALS["gTimer"] = new cTimer(); } // Open connection if (!isset($conn)) { $conn = ew_Connect($this->DBID); } }
function __construct() { global $conn, $Language; $GLOBALS["Page"] =& $this; $this->TokenTimeout = ew_SessionTimeoutTime(); // Language object if (!isset($Language)) { $Language = new cLanguage(); } // Parent constuctor parent::__construct(); // Table object (vl_media_list) if (!isset($GLOBALS["vl_media_list"]) || get_class($GLOBALS["vl_media_list"]) == "cvl_media_list") { $GLOBALS["vl_media_list"] =& $this; $GLOBALS["Table"] =& $GLOBALS["vl_media_list"]; } // 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 = "vl_media_listadd.php"; $this->InlineAddUrl = $this->PageUrl() . "a=add"; $this->GridAddUrl = $this->PageUrl() . "a=gridadd"; $this->GridEditUrl = $this->PageUrl() . "a=gridedit"; $this->MultiDeleteUrl = "vl_media_listdelete.php"; $this->MultiUpdateUrl = "vl_media_listupdate.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", 'vl_media_list', TRUE); } // Start timer if (!isset($GLOBALS["gTimer"])) { $GLOBALS["gTimer"] = new cTimer(); } // Open connection if (!isset($conn)) { $conn = ew_Connect($this->DBID); } // 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"; // Filter options $this->FilterOptions = new cListOptions(); $this->FilterOptions->Tag = "div"; $this->FilterOptions->TagClassName = "ewFilterOption fvl_media_listlistsrch"; // List actions $this->ListActions = new cListActions(); }