本文整理汇总了PHP中ew_GetUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_GetUrl函数的具体用法?PHP ew_GetUrl怎么用?PHP ew_GetUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_GetUrl函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate(ew_GetUrl("cciag_login.php"));
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
$Security->TablePermission_Loaded();
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) {
$Security->LoadUserID();
}
$Security->UserID_Loaded();
if ($Security->IsLoggedIn() && strval($Security->CurrentUserID()) == "") {
$this->setFailureMessage($Language->Phrase("NoPermission"));
// Set no permission
$this->Page_Terminate(ew_GetUrl("cciag_deudaslist.php"));
}
// Get export parameters
$custom = "";
if (@$_GET["export"] != "") {
$this->Export = $_GET["export"];
$custom = @$_GET["custom"];
} elseif (@$_POST["export"] != "") {
$this->Export = $_POST["export"];
$custom = @$_POST["custom"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] != "") {
$this->Export = $_POST["exporttype"];
}
$custom = @$_POST["custom"];
} else {
$this->setExportReturnUrl(ew_CurrentUrl());
}
$gsExportFile = $this->TableVar;
// Get export file, used in header
if (@$_GET["id"] != "") {
if ($gsExportFile != "") {
$gsExportFile .= "_";
}
$gsExportFile .= ew_StripSlashes($_GET["id"]);
}
// Get custom export parameters
if ($this->Export != "" && $custom != "") {
$this->CustomExport = $this->Export;
$this->Export = "print";
}
$gsCustomExport = $this->CustomExport;
$gsExport = $this->Export;
// Get export parameter, used in header
// Update Export URLs
if (defined("EW_USE_PHPEXCEL")) {
$this->ExportExcelCustom = FALSE;
}
if ($this->ExportExcelCustom) {
$this->ExportExcelUrl .= "&custom=1";
}
if (defined("EW_USE_PHPWORD")) {
$this->ExportWordCustom = FALSE;
}
if ($this->ExportWordCustom) {
$this->ExportWordUrl .= "&custom=1";
}
if ($this->ExportPdfCustom) {
$this->ExportPdfUrl .= "&custom=1";
}
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Setup export options
$this->SetupExportOptions();
$this->id->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
// Process auto fill for detail table 'detalle_deudas'
if (@$_POST["grid"] == "fdetalle_deudasgrid") {
if (!isset($GLOBALS["detalle_deudas_grid"])) {
$GLOBALS["detalle_deudas_grid"] = new cdetalle_deudas_grid();
}
$GLOBALS["detalle_deudas_grid"]->Page_Init();
$this->Page_Terminate();
exit;
}
// Process auto fill for detail table 'pagos'
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_deudasview.php
示例2: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn() || $Security->IsSysAdmin()) {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
$Security->LoadCurrentUserLevel($this->ProjectID . 'usuarios');
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Create Token
$this->CreateToken();
}
开发者ID:scintes,项目名称:sistemas,代码行数:27,代码来源:changepwd.php
示例3: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate(ew_GetUrl("login.php"));
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
$Security->TablePermission_Loaded();
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) {
$Security->LoadUserID();
}
$Security->UserID_Loaded();
// Get export parameters
$custom = "";
if (@$_GET["export"] != "") {
$this->Export = $_GET["export"];
$custom = @$_GET["custom"];
} elseif (@$_POST["export"] != "") {
$this->Export = $_POST["export"];
$custom = @$_POST["custom"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] != "") {
$this->Export = $_POST["exporttype"];
}
$custom = @$_POST["custom"];
} else {
$this->setExportReturnUrl(ew_CurrentUrl());
}
$gsExportFile = $this->TableVar;
// Get export file, used in header
// Get custom export parameters
if ($this->Export != "" && $custom != "") {
$this->CustomExport = $this->Export;
$this->Export = "print";
}
$gsCustomExport = $this->CustomExport;
$gsExport = $this->Export;
// Get export parameter, used in header
// Update Export URLs
if (defined("EW_USE_PHPEXCEL")) {
$this->ExportExcelCustom = FALSE;
}
if ($this->ExportExcelCustom) {
$this->ExportExcelUrl .= "&custom=1";
}
if (defined("EW_USE_PHPWORD")) {
$this->ExportWordCustom = FALSE;
}
if ($this->ExportWordCustom) {
$this->ExportWordUrl .= "&custom=1";
}
if ($this->ExportPdfCustom) {
$this->ExportPdfUrl .= "&custom=1";
}
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Get grid add count
$gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
$this->GridAddRowCount = $gridaddcnt;
}
// Set up list options
$this->SetupListOptions();
// Setup export options
$this->SetupExportOptions();
$this->codigo->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
$results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
if ($results) {
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length()) {
ob_end_clean();
}
echo $results;
$this->Page_Terminate();
exit;
}
}
// Create Token
$this->CreateToken();
// Setup other options
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:vehiculoslist.php
示例4: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// User profile
$UserProfile = new cUserProfile();
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loading();
}
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loaded();
}
if (!$Security->CanView()) {
$Security->SaveLastUrl();
$this->setFailureMessage($Language->Phrase("NoPermission"));
// Set no permission
if ($Security->CanList()) {
$this->Page_Terminate(ew_GetUrl("airplanelist.php"));
} else {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
}
if ($Security->IsLoggedIn()) {
$Security->UserID_Loading();
$Security->LoadUserID();
$Security->UserID_Loaded();
}
// Get export parameters
$custom = "";
if (@$_GET["export"] != "") {
$this->Export = $_GET["export"];
$custom = @$_GET["custom"];
} elseif (@$_POST["export"] != "") {
$this->Export = $_POST["export"];
$custom = @$_POST["custom"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] != "") {
$this->Export = $_POST["exporttype"];
}
$custom = @$_POST["custom"];
} else {
$this->setExportReturnUrl(ew_CurrentUrl());
}
$gsExportFile = $this->TableVar;
// Get export file, used in header
if (@$_GET["AIRPLANE_ID"] != "") {
if ($gsExportFile != "") {
$gsExportFile .= "_";
}
$gsExportFile .= ew_StripSlashes($_GET["AIRPLANE_ID"]);
}
// Get custom export parameters
if ($this->Export != "" && $custom != "") {
$this->CustomExport = $this->Export;
$this->Export = "print";
}
$gsCustomExport = $this->CustomExport;
$gsExport = $this->Export;
// Get export parameter, used in header
// Update Export URLs
if (defined("EW_USE_PHPEXCEL")) {
$this->ExportExcelCustom = FALSE;
}
if ($this->ExportExcelCustom) {
$this->ExportExcelUrl .= "&custom=1";
}
if (defined("EW_USE_PHPWORD")) {
$this->ExportWordCustom = FALSE;
}
if ($this->ExportWordCustom) {
$this->ExportWordUrl .= "&custom=1";
}
if ($this->ExportPdfCustom) {
$this->ExportPdfUrl .= "&custom=1";
}
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Setup export options
$this->SetupExportOptions();
$this->AIRPLANE_ID->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Create Token
$this->CreateToken();
}
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:98,代码来源:airplaneview.php
示例5: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate(ew_GetUrl("login.php"));
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
$Security->TablePermission_Loaded();
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) {
$Security->LoadUserID();
}
$Security->UserID_Loaded();
// Get export parameters
$custom = "";
if (@$_GET["export"] != "") {
$this->Export = $_GET["export"];
$custom = @$_GET["custom"];
} elseif (@$_POST["export"] != "") {
$this->Export = $_POST["export"];
$custom = @$_POST["custom"];
}
$gsExportFile = $this->TableVar;
// Get export file, used in header
// Get custom export parameters
if ($this->Export != "" && $custom != "") {
$this->CustomExport = $this->Export;
$this->Export = "print";
}
$gsCustomExport = $this->CustomExport;
$gsExport = $this->Export;
// Get export parameter, used in header
// Update Export URLs
if (defined("EW_USE_PHPEXCEL")) {
$this->ExportExcelCustom = FALSE;
}
if ($this->ExportExcelCustom) {
$this->ExportExcelUrl .= "&custom=1";
}
if (defined("EW_USE_PHPWORD")) {
$this->ExportWordCustom = FALSE;
}
if ($this->ExportWordCustom) {
$this->ExportWordUrl .= "&custom=1";
}
if ($this->ExportPdfCustom) {
$this->ExportPdfUrl .= "&custom=1";
}
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Create Token
$this->CreateToken();
}
开发者ID:Ombogo,项目名称:new_api_chat,代码行数:70,代码来源:Report1report.php
示例6: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loading();
}
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loaded();
}
if (!$Security->IsLoggedIn()) {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
// Create form object
$objForm = new cFormObj();
// Get export parameters
$custom = "";
if (@$_GET["export"] != "") {
$this->Export = $_GET["export"];
$custom = @$_GET["custom"];
} elseif (@$_POST["export"] != "") {
$this->Export = $_POST["export"];
$custom = @$_POST["custom"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] != "") {
$this->Export = $_POST["exporttype"];
}
$custom = @$_POST["custom"];
} else {
$this->setExportReturnUrl(ew_CurrentUrl());
}
$gsExportFile = $this->TableVar;
// Get export file, used in header
// Get custom export parameters
if ($this->Export != "" && $custom != "") {
$this->CustomExport = $this->Export;
$this->Export = "print";
}
$gsCustomExport = $this->CustomExport;
$gsExport = $this->Export;
// Get export parameter, used in header
// Update Export URLs
if (defined("EW_USE_PHPEXCEL")) {
$this->ExportExcelCustom = FALSE;
}
if ($this->ExportExcelCustom) {
$this->ExportExcelUrl .= "&custom=1";
}
if (defined("EW_USE_PHPWORD")) {
$this->ExportWordCustom = FALSE;
}
if ($this->ExportWordCustom) {
$this->ExportWordUrl .= "&custom=1";
}
if ($this->ExportPdfCustom) {
$this->ExportPdfUrl .= "&custom=1";
}
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Get grid add count
$gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
$this->GridAddRowCount = $gridaddcnt;
}
// Set up list options
$this->SetupListOptions();
// Setup export options
$this->SetupExportOptions();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
// Process auto fill for detail table 'items'
if (@$_POST["grid"] == "fitemsgrid") {
if (!isset($GLOBALS["items_grid"])) {
$GLOBALS["items_grid"] = new citems_grid();
}
$GLOBALS["items_grid"]->Page_Init();
$this->Page_Terminate();
exit;
}
$results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
if ($results) {
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length()) {
ob_end_clean();
}
//.........这里部分代码省略.........
开发者ID:ahmarmahmood,项目名称:tabedaar,代码行数:101,代码来源:categorieslist.php
示例7: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate(ew_GetUrl("cciag_login.php"));
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
$Security->TablePermission_Loaded();
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) {
$Security->LoadUserID();
}
$Security->UserID_Loaded();
// Create form object
$objForm = new cFormObj();
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
$this->codigo->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
// Process auto fill for detail table 'seguimiento_tramites'
if (@$_POST["grid"] == "fseguimiento_tramitesgrid") {
if (!isset($GLOBALS["seguimiento_tramites_grid"])) {
$GLOBALS["seguimiento_tramites_grid"] = new cseguimiento_tramites_grid();
}
$GLOBALS["seguimiento_tramites_grid"]->Page_Init();
$this->Page_Terminate();
exit;
}
$results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
if ($results) {
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length()) {
ob_end_clean();
}
echo $results;
$this->Page_Terminate();
exit;
}
}
// Create Token
$this->CreateToken();
}
开发者ID:scintes,项目名称:sistemas,代码行数:60,代码来源:cciag_tramitesedit.php
示例8: Render
function Render()
{
if (!$this->Visible) {
return;
}
$nav = "<ul class=\"breadcrumb ewBreadcrumbs\">";
if (is_array($this->Links)) {
$cnt = count($this->Links);
for ($i = 0; $i < $cnt; $i++) {
list($id, $title, $url, $cls, $table, $cur) = $this->Links[$i];
if ($i < $cnt - 1) {
$nav .= "<li id=\"ewBreadcrumb" . ($i + 1) . "\">";
} else {
$nav .= "<li id=\"ewBreadcrumb" . ($i + 1) . "\" class=\"active\">";
$url = "";
// No need to show URL for current page
}
$text = $this->LanguagePhrase($title, $table, $cur);
$title = ew_HtmlTitle($text);
if ($url != "") {
$nav .= "<a href=\"" . ew_GetUrl($url) . "\"";
if ($title != "" && $title != $text) {
$nav .= " title=\"" . ew_HtmlEncode($title) . "\"";
}
if ($cls != "") {
$nav .= " class=\"" . $cls . "\"";
}
$nav .= ">" . $text . "</a>";
} else {
$nav .= $text;
}
$nav .= "</li>";
}
}
$nav .= "</ul>";
echo $nav;
}
开发者ID:NaurozAhmad,项目名称:Senho,代码行数:37,代码来源:phpfn12.php
示例9: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
// Create form object
$objForm = new cFormObj();
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
$results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
if ($results) {
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length()) {
ob_end_clean();
}
echo $results;
$this->Page_Terminate();
exit;
}
}
// Create Token
$this->CreateToken();
}
开发者ID:NaurozAhmad,项目名称:Senho,代码行数:41,代码来源:imagesadd.php
示例10: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate(ew_GetUrl("login.php"));
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
$Security->TablePermission_Loaded();
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) {
$Security->LoadUserID();
}
$Security->UserID_Loaded();
if ($Security->IsLoggedIn() && strval($Security->CurrentUserID()) == "") {
$this->setFailureMessage($Language->Phrase("NoPermission"));
// Set no permission
$this->Page_Terminate(ew_GetUrl("gastos_mantenimientoslist.php"));
}
// Get grid add count
$gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
$this->GridAddRowCount = $gridaddcnt;
}
// Set up list options
$this->SetupListOptions();
$this->codigo->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
$results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
if ($results) {
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length()) {
ob_end_clean();
}
echo $results;
$this->Page_Terminate();
exit;
}
}
// Create Token
$this->CreateToken();
// Setup other options
$this->SetupOtherOptions();
}
开发者ID:scintes,项目名称:sistemas,代码行数:61,代码来源:gastos_mantenimientosgridcls.php
示例11: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
// Create form object
$objForm = new cFormObj();
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Get grid add count
$gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
$this->GridAddRowCount = $gridaddcnt;
}
// Set up list options
$this->SetupListOptions();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
$results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
if ($results) {
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length()) {
ob_end_clean();
}
echo $results;
$this->Page_Terminate();
exit;
}
}
// Create Token
$this->CreateToken();
// Setup other options
$this->SetupOtherOptions();
// Set up custom action (compatible with old version)
foreach ($this->CustomActions as $name => $action) {
$this->ListActions->Add($name, $action);
}
// Show checkbox column if multiple action
foreach ($this->ListActions->Items as $listaction) {
if ($listaction->Select == EW_ACTION_MULTIPLE && $listaction->Allow) {
$this->ListOptions->Items["checkbox"]->Visible = TRUE;
break;
}
}
}
开发者ID:NaurozAhmad,项目名称:Senho,代码行数:61,代码来源:imageslist.php
示例12: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate(ew_GetUrl("cciag_login.php"));
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel(CurrentProjectID() . 'tramites');
$Security->TablePermission_Loaded();
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) {
$Security->LoadUserID();
}
$Security->UserID_Loaded();
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Create Token
$this->CreateToken();
}
开发者ID:scintes,项目名称:sistemas,代码行数:33,代码来源:cciag_tramites_archivo_bv.php
示例13: Render
function Render($aclass = "", $liclass = "", $mobile = FALSE)
{
// Create <A>
$url = ew_GetUrl($this->Url);
if (!is_null($this->SubMenu)) {
$submenuhtml = $this->SubMenu->Render(TRUE);
} else {
$submenuhtml = "";
}
if ($mobile) {
$url = str_replace("#", "?chart=", $url);
if ($url == "") {
$url = "#";
}
$attrs = array("class" => $aclass, "rel" => $url != "#" ? "external" : "", "href" => $url, "target" => $this->Target);
} else {
if ($url == "") {
$url = "#";
}
if (!is_null($this->SubMenu) && $this->SubMenu->MenuLinkDropdownClass != "" && $submenuhtml != "") {
ew_PrependClass($aclass, $this->SubMenu->MenuLinkDropdownClass);
}
$attrs = array("class" => $aclass, "href" => $url, "target" => $this->Target);
}
$text = $this->Text;
if (!is_null($this->SubMenu) && $submenuhtml != "") {
if ($this->Parent->SubMenuDropdownIconClassName != "") {
$text .= "<span class=\"" . $this->Parent->SubMenuDropdownIconClassName . "\"></span>";
}
if ($this->Parent->SubMenuDropdownImage != "" && $this->ParentId == -1) {
$text .= $this->Parent->SubMenuDropdownImage;
}
}
$innerhtml = ew_HtmlElement("a", $attrs, $text);
if (!is_null($this->SubMenu)) {
if ($url != "#" && $this->SubMenu->MenuLinkClassName != "" && $submenuhtml != "") {
// Add click link for mobile menu
$attrs2 = array("class" => "ewMenuLink", "href" => $url);
$text2 = "<span class=\"" . $this->SubMenu->MenuLinkClassName . "\"></span>";
$innerhtml = ew_HtmlElement("a", $attrs2, $text2) . $innerhtml;
}
if ($mobile && $this->Url != "#") {
$innerhtml .= $innerhtml;
}
$innerhtml .= $submenuhtml;
}
// Create <LI>
return ew_HtmlElement("li", array("id" => $this->Name, "class" => $liclass), $innerhtml);
}
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:49,代码来源:ewshared12.php
示例14: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
$this->vl_media_type_id->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Create Token
$this->CreateToken();
}
开发者ID:cahilbey,项目名称:VL-AWS-Test,代码行数:27,代码来源:vl_media_type_listview.php
示例15: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// User profile
$UserProfile = new cUserProfile();
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loading();
}
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loaded();
}
if (!$Security->CanEdit()) {
$Security->SaveLastUrl();
$this->setFailureMessage($Language->Phrase("NoPermission"));
// Set no permission
if ($Security->CanList()) {
$this->Page_Terminate(ew_GetUrl("bank_accountlist.php"));
} else {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
}
if ($Security->IsLoggedIn()) {
$Security->UserID_Loading();
$Security->LoadUserID();
$Security->UserID_Loaded();
}
// Create form object
$objForm = new cFormObj();
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Process auto fill
if (@$_POST["ajax"] == "autofill") {
$results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
if ($results) {
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length()) {
ob_end_clean();
}
echo $results;
$this->Page_Terminate();
exit;
}
}
// Create Token
$this->CreateToken();
}
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:62,代码来源:bank_accountedit.php
示例16: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate(ew_GetUrl("login.php"));
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
$Security->TablePermission_Loaded();
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) {
$Security->LoadUserID();
}
$Security->UserID_Loaded();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Create Token
$this->CreateToken();
}
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:backup_v1.php
示例17: Page_Init
function Page_Init()
{
global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// User profile
$UserProfile = new cUserProfile();
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loading();
}
$Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
if ($Security->IsLoggedIn()) {
$Security->TablePermission_Loaded();
}
if (!$Security->CanDelete()) {
$Security->SaveLastUrl();
$this->setFailureMessage($Language->Phrase("NoPermission"));
// Set no permission
if ($Security->CanList()) {
$this->Page_Terminate(ew_GetUrl("banklist.php"));
} else {
$this->Page_Terminate(ew_GetUrl("login.php"));
}
}
if ($Security->IsLoggedIn()) {
$Security->UserID_Loading();
$Security->LoadUserID();
$Security->UserID_Loaded();
}
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up current action
$this->BANK_ID->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
// Check token
if (!$this->ValidPost()) {
echo $Language->Phrase("InvalidPostRequest");
$this->Page_Terminate();
exit;
}
// Create Token
$this->CreateToken();
}
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:48,代码来源:bankdelete.php
-
theindianappguy/machine_learning_flutter_app: Learn how to build a tensorflow mo
阅读:815|2022-08-18
-
samaxes/minify-maven-plugin: Combine and minimize JavaScript and CSS files for f
阅读:765|2022-08-16
-
挨打的读音是什么?很多人在拼音的时候导致错误,这是因为挨为多音字,读i,还有读音ā
阅读:1061|2022-11-06
-
js文件中数据: wxml 中读取数据:
阅读:785|2022-07-18
-
nacika-ins/nanachibot: nanachibot is Rust based Mastodon bot client.
阅读:855|2022-08-18
-
Use of insufficiently random values vulnerability exists in Vnet/IP communicatio
阅读:800|2022-07-08
-
日常中马赫是表示飞机速度的量词,马赫数一,即一倍音速,通常指天上飞行器的速度,如
阅读:553|2022-07-30
-
satoru-takeuchi/linux-in-practice
阅读:816|2022-08-15
-
doka-guide/content: Контент Доки: статьи, картинки, д
阅读:738|2022-08-18
-
Matlab读取 .txt文件 这里提供两种方法:1,load()函数。2,importdata()函数。 一、
阅读:536|2022-07-18
|
请发表评论