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


PHP CurrentProjectID函数代码示例

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


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

示例1: SetupOtherOptions

 function SetupOtherOptions()
 {
     global $Language, $Security;
     $options =& $this->OtherOptions;
     $option =& $options["action"];
     // Add
     $item =& $option->Add("add");
     $item->Body = "<a class=\"ewAction ewAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageAddLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageAddLink")) . "\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("ViewPageAddLink") . "</a>";
     $item->Visible = $this->AddUrl != "" && $Security->CanAdd();
     // Edit
     $item =& $option->Add("edit");
     $item->Body = "<a class=\"ewAction ewEdit\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageEditLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageEditLink")) . "\" href=\"" . ew_HtmlEncode($this->EditUrl) . "\">" . $Language->Phrase("ViewPageEditLink") . "</a>";
     $item->Visible = $this->EditUrl != "" && $Security->CanEdit() && $this->ShowOptionLink('edit');
     // Copy
     $item =& $option->Add("copy");
     $item->Body = "<a class=\"ewAction ewCopy\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageCopyLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->CopyUrl) . "\">" . $Language->Phrase("ViewPageCopyLink") . "</a>";
     $item->Visible = $this->CopyUrl != "" && $Security->CanAdd() && $this->ShowOptionLink('add');
     // Delete
     $item =& $option->Add("delete");
     $item->Body = "<a class=\"ewAction ewDelete\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageDeleteLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageDeleteLink")) . "\" href=\"" . ew_HtmlEncode($this->DeleteUrl) . "\">" . $Language->Phrase("ViewPageDeleteLink") . "</a>";
     $item->Visible = $this->DeleteUrl != "" && $Security->CanDelete() && $this->ShowOptionLink('delete');
     // Show detail edit/copy
     if ($this->getCurrentDetailTable() != "") {
         // Detail Edit
         $item =& $option->Add("detailedit");
         $item->Body = "<a class=\"ewAction ewDetailEdit\" title=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=" . $this->getCurrentDetailTable())) . "\">" . $Language->Phrase("MasterDetailEditLink") . "</a>";
         $item->Visible = $Security->CanEdit() && $this->ShowOptionLink('delete');
         // Detail Copy
         $item =& $option->Add("detailcopy");
         $item->Body = "<a class=\"ewAction ewDetailCopy\" title=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->GetCopyUrl(EW_TABLE_SHOW_DETAIL . "=" . $this->getCurrentDetailTable())) . "\">" . $Language->Phrase("MasterDetailCopyLink") . "</a>";
         $item->Visible = $Security->CanAdd() && $this->ShowOptionLink('delete');
     }
     $option =& $options["detail"];
     $DetailTableLink = "";
     $DetailViewTblVar = "";
     $DetailCopyTblVar = "";
     $DetailEditTblVar = "";
     // "detail_detalle_deudas"
     $item =& $option->Add("detail_detalle_deudas");
     $body = $Language->Phrase("DetailLink") . $Language->TablePhrase("detalle_deudas", "TblCaption");
     $body .= str_replace("%c", $this->detalle_deudas_Count, $Language->Phrase("DetailCount"));
     $body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("cciag_detalle_deudaslist.php?" . EW_TABLE_SHOW_MASTER . "=deudas&fk_id=" . strval($this->id->CurrentValue) . "") . "\">" . $body . "</a>";
     $links = "";
     if ($GLOBALS["detalle_deudas_grid"] && $GLOBALS["detalle_deudas_grid"]->DetailView && $Security->CanView() && $this->ShowOptionLink('view') && $Security->AllowView(CurrentProjectID() . 'detalle_deudas')) {
         $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
         if ($DetailViewTblVar != "") {
             $DetailViewTblVar .= ",";
         }
         $DetailViewTblVar .= "detalle_deudas";
     }
     if ($GLOBALS["detalle_deudas_grid"] && $GLOBALS["detalle_deudas_grid"]->DetailEdit && $Security->CanEdit() && $this->ShowOptionLink('edit') && $Security->AllowEdit(CurrentProjectID() . 'detalle_deudas')) {
         $links .= "<li><a class=\"ewRowLink ewDetailEdit\" data-action=\"edit\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
         if ($DetailEditTblVar != "") {
             $DetailEditTblVar .= ",";
         }
         $DetailEditTblVar .= "detalle_deudas";
     }
     if ($GLOBALS["detalle_deudas_grid"] && $GLOBALS["detalle_deudas_grid"]->DetailAdd && $Security->CanAdd() && $this->ShowOptionLink('add') && $Security->AllowAdd(CurrentProjectID() . 'detalle_deudas')) {
         $links .= "<li><a class=\"ewRowLink ewDetailCopy\" data-action=\"add\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->GetCopyUrl(EW_TABLE_SHOW_DETAIL . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>";
         if ($DetailCopyTblVar != "") {
             $DetailCopyTblVar .= ",";
         }
         $DetailCopyTblVar .= "detalle_deudas";
     }
     if ($links != "") {
         $body .= "<button class=\"dropdown-toggle btn btn-default btn-sm ewDetail\" data-toggle=\"dropdown\"><b class=\"caret\"></b></button>";
         $body .= "<ul class=\"dropdown-menu\">" . $links . "</ul>";
     }
     $body = "<div class=\"btn-group\">" . $body . "</div>";
     $item->Body = $body;
     $item->Visible = $Security->AllowList(CurrentProjectID() . 'pagos') && $this->ShowOptionLink();
     if ($item->Visible) {
         if ($DetailTableLink != "") {
             $DetailTableLink .= ",";
         }
         $DetailTableLink .= "detalle_deudas";
     }
     if ($this->ShowMultipleDetails) {
         $item->Visible = FALSE;
     }
     // "detail_pagos"
     $item =& $option->Add("detail_pagos");
     $body = $Language->Phrase("DetailLink") . $Language->TablePhrase("pagos", "TblCaption");
     $body .= str_replace("%c", $this->pagos_Count, $Language->Phrase("DetailCount"));
     $body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("cciag_pagoslist.php?" . EW_TABLE_SHOW_MASTER . "=deudas&fk_id=" . strval($this->id->CurrentValue) . "") . "\">" . $body . "</a>";
     $links = "";
     if ($GLOBALS["pagos_grid"] && $GLOBALS["pagos_grid"]->DetailView && $Security->CanView() && $this->ShowOptionLink('view') && $Security->AllowView(CurrentProjectID() . 'pagos')) {
         $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=pagos")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
         if ($DetailViewTblVar != "") {
             $DetailViewTblVar .= ",";
         }
         $DetailViewTblVar .= "pagos";
     }
     if ($GLOBALS["pagos_grid"] && $GLOBALS["pagos_grid"]->DetailEdit && $Security->CanEdit() && $this->ShowOptionLink('edit') && $Security->AllowEdit(CurrentProjectID() . 'pagos')) {
         $links .= "<li><a class=\"ewRowLink ewDetailEdit\" data-action=\"edit\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=pagos")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
         if ($DetailEditTblVar != "") {
             $DetailEditTblVar .= ",";
         }
         $DetailEditTblVar .= "pagos";
     }
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_deudasview.php

示例2: LoadUserLevel

 function LoadUserLevel()
 {
     $ProjectID = CurrentProjectID();
     //if (!is_array(@$_SESSION[EW_SESSION_AR_USER_LEVEL]) || !is_array(@$_SESSION[EW_SESSION_AR_USER_LEVEL_PRIV]) || $ProjectID <> @$_SESSION[EW_SESSION_PROJECT_ID]) { // Reload if different project
     if (!is_array(@$_SESSION[EW_SESSION_AR_USER_LEVEL]) || !is_array(@$_SESSION[EW_SESSION_AR_USER_LEVEL_PRIV])) {
         $this->SetupUserLevel();
         $this->SaveUserLevel();
     } else {
         $this->UserLevel = $_SESSION[EW_SESSION_AR_USER_LEVEL];
         $this->UserLevelPriv = $_SESSION[EW_SESSION_AR_USER_LEVEL_PRIV];
     }
 }
开发者ID:NaurozAhmad,项目名称:Senho,代码行数:12,代码来源:phpfn12.php

示例3: GetTableCaption

 function GetTableCaption($i)
 {
     global $Language, $EW_RELATED_PROJECT_ID;
     $caption = "";
     if ($i < $this->TableNameCount) {
         $report = $this->TableList[$i][4] == $EW_RELATED_PROJECT_ID;
         $other = !$report && $this->TableList[$i][4] != CurrentProjectID();
         if (!$report && !$other) {
             $caption = $Language->TablePhrase($this->TableList[$i][1], "TblCaption");
         }
         if ($report && is_object($this->ReportLanguage)) {
             $caption = $this->ReportLanguage->TablePhrase($this->TableList[$i][1], "TblCaption");
         }
         if ($caption == "") {
             $caption = $this->TableList[$i][2];
         }
         if ($caption == "") {
             $caption = $this->TableList[$i][0];
             $caption = preg_replace('/^\\{\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}\\}/', '', $caption);
             // Remove project id
         }
         if ($report) {
             $caption .= "<span class=\"ewUserprivProject\"> (" . $Language->Phrase("Report") . ")</span>";
         }
         if ($other) {
             if ($this->TableList[$i][5] != "") {
                 $pathinfo = pathinfo($this->TableList[$i][5]);
                 $ext = $pathinfo['extension'];
                 $project = basename($this->TableList[$i][5], "." . $ext);
             } else {
                 $project = $this->TableList[$i][4];
             }
             //$project = $this->TableList[$i][4]; // *** Uncomment to use project id
             $caption .= "<span class=\"ewUserprivProject\"> (" . $project . ")</span>";
         }
     }
     return $caption;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:38,代码来源:userpriv.php

示例4: SetupOtherOptions

 function SetupOtherOptions()
 {
     global $Language, $Security;
     $options =& $this->OtherOptions;
     $option = $options["addedit"];
     // Add
     $item =& $option->Add("add");
     $item->Body = "<a class=\"ewAddEdit ewAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddLink")) . "\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("AddLink") . "</a>";
     $item->Visible = $this->AddUrl != "" && $Security->CanAdd();
     // Inline Add
     $item =& $option->Add("inlineadd");
     $item->Body = "<a class=\"ewAddEdit ewInlineAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("InlineAddLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("InlineAddLink")) . "\" href=\"" . ew_HtmlEncode($this->InlineAddUrl) . "\">" . $Language->Phrase("InlineAddLink") . "</a>";
     $item->Visible = $this->InlineAddUrl != "" && $Security->CanAdd();
     $option = $options["detail"];
     $DetailTableLink = "";
     $item =& $option->Add("detailadd_detalle_deudas");
     $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=detalle_deudas") . "\">" . $Language->Phrase("Add") . "&nbsp;" . $this->TableCaption() . "/" . $GLOBALS["detalle_deudas"]->TableCaption() . "</a>";
     $item->Visible = $GLOBALS["detalle_deudas"]->DetailAdd && $Security->AllowAdd(CurrentProjectID() . 'detalle_deudas') && $Security->CanAdd();
     if ($item->Visible) {
         if ($DetailTableLink != "") {
             $DetailTableLink .= ",";
         }
         $DetailTableLink .= "detalle_deudas";
     }
     $item =& $option->Add("detailadd_pagos");
     $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=pagos") . "\">" . $Language->Phrase("Add") . "&nbsp;" . $this->TableCaption() . "/" . $GLOBALS["pagos"]->TableCaption() . "</a>";
     $item->Visible = $GLOBALS["pagos"]->DetailAdd && $Security->AllowAdd(CurrentProjectID() . 'pagos') && $Security->CanAdd();
     if ($item->Visible) {
         if ($DetailTableLink != "") {
             $DetailTableLink .= ",";
         }
         $DetailTableLink .= "pagos";
     }
     // Add multiple details
     if ($this->ShowMultipleDetails) {
         $item =& $option->Add("detailsadd");
         $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=" . $DetailTableLink) . "\">" . $Language->Phrase("AddMasterDetailLink") . "</a>";
         $item->Visible = $DetailTableLink != "" && $Security->CanAdd();
         // Hide single master/detail items
         $ar = explode(",", $DetailTableLink);
         $cnt = count($ar);
         for ($i = 0; $i < $cnt; $i++) {
             if ($item =& $option->GetItem("detailadd_" . $ar[$i])) {
                 $item->Visible = FALSE;
             }
         }
     }
     $option = $options["action"];
     // Set up options default
     foreach ($options as &$option) {
         $option->UseImageAndText = TRUE;
         $option->UseDropDownButton = FALSE;
         $option->UseButtonGroup = TRUE;
         $option->ButtonClass = "btn-sm";
         // Class for button group
         $item =& $option->Add($option->GroupOptionName);
         $item->Body = "";
         $item->Visible = FALSE;
     }
     $options["addedit"]->DropDownButtonPhrase = $Language->Phrase("ButtonAddEdit");
     $options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails");
     $options["action"]->DropDownButtonPhrase = $Language->Phrase("ButtonActions");
 }
开发者ID:scintes,项目名称:sistemas,代码行数:63,代码来源:cciag_deudaslist.php

示例5: SetupOtherOptions

 function SetupOtherOptions()
 {
     global $Language, $Security;
     $options =& $this->OtherOptions;
     $option =& $options["action"];
     $option =& $options["detail"];
     $DetailTableLink = "";
     $DetailViewTblVar = "";
     $DetailCopyTblVar = "";
     $DetailEditTblVar = "";
     // "detail_in_bodegaubicaciones"
     $item =& $option->Add("detail_in_bodegaubicaciones");
     $body = $Language->Phrase("ViewPageDetailLink") . $Language->TablePhrase("in_bodegaubicaciones", "TblCaption");
     $body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("in_bodegaubicacioneslist.php?" . EW_TABLE_SHOW_MASTER . "=in_bodegas&fk_codigo_bodega=" . urlencode(strval($this->codigo_bodega->CurrentValue)) . "") . "\">" . $body . "</a>";
     $links = "";
     if ($GLOBALS["in_bodegaubicaciones_grid"] && $GLOBALS["in_bodegaubicaciones_grid"]->DetailView && $Security->CanView() && $Security->AllowView(CurrentProjectID() . 'in_bodegaubicaciones')) {
         $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=in_bodegaubicaciones")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
         if ($DetailViewTblVar != "") {
             $DetailViewTblVar .= ",";
         }
         $DetailViewTblVar .= "in_bodegaubicaciones";
     }
     if ($links != "") {
         $body .= "<button class=\"dropdown-toggle btn btn-default btn-sm ewDetail\" data-toggle=\"dropdown\"><b class=\"caret\"></b></button>";
         $body .= "<ul class=\"dropdown-menu\">" . $links . "</ul>";
     }
     $body = "<div class=\"btn-group\">" . $body . "</div>";
     $item->Body = $body;
     $item->Visible = $Security->AllowList(CurrentProjectID() . 'in_bodegaubicaciones');
     if ($item->Visible) {
         if ($DetailTableLink != "") {
             $DetailTableLink .= ",";
         }
         $DetailTableLink .= "in_bodegaubicaciones";
     }
     if ($this->ShowMultipleDetails) {
         $item->Visible = FALSE;
     }
     // Multiple details
     if ($this->ShowMultipleDetails) {
         $body = $Language->Phrase("MultipleMasterDetails");
         $body = "<div class=\"btn-group\">";
         $links = "";
         if ($DetailViewTblVar != "") {
             $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailViewTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
         }
         if ($DetailEditTblVar != "") {
             $links .= "<li><a class=\"ewRowLink ewDetailEdit\" data-action=\"edit\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailEditTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
         }
         if ($DetailCopyTblVar != "") {
             $links .= "<li><a class=\"ewRowLink ewDetailCopy\" data-action=\"add\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->GetCopyUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailCopyTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>";
         }
         if ($links != "") {
             $body .= "<button class=\"dropdown-toggle btn btn-default btn-sm ewMasterDetail\" title=\"" . ew_HtmlTitle($Language->Phrase("MultipleMasterDetails")) . "\" data-toggle=\"dropdown\">" . $Language->Phrase("MultipleMasterDetails") . "<b class=\"caret\"></b></button>";
             $body .= "<ul class=\"dropdown-menu ewMenu\">" . $links . "</ul>";
         }
         $body .= "</div>";
         // Multiple details
         $oListOpt =& $option->Add("details");
         $oListOpt->Body = $body;
     }
     // Set up detail default
     $option =& $options["detail"];
     $options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails");
     $option->UseImageAndText = TRUE;
     $ar = explode(",", $DetailTableLink);
     $cnt = count($ar);
     $option->UseDropDownButton = $cnt > 1;
     $option->UseButtonGroup = TRUE;
     $item =& $option->Add($option->GroupOptionName);
     $item->Body = "";
     $item->Visible = FALSE;
     // Set up action default
     $option =& $options["action"];
     $option->DropDownButtonPhrase = $Language->Phrase("ButtonActions");
     $option->UseImageAndText = TRUE;
     $option->UseDropDownButton = TRUE;
     $option->UseButtonGroup = TRUE;
     $item =& $option->Add($option->GroupOptionName);
     $item->Body = "";
     $item->Visible = FALSE;
 }
开发者ID:erick-chali,项目名称:Ubicacion,代码行数:82,代码来源:in_bodegasview.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->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

示例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->TablePermission_Loading();
     }
     $Security->LoadCurrentUserLevel(CurrentProjectID() . 'rider');
     if ($Security->IsLoggedIn()) {
         $Security->TablePermission_Loaded();
     }
     if (!$Security->IsLoggedIn()) {
         $this->Page_Terminate(ew_GetUrl("login.php"));
     }
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     ob_clean();
     // Clear output
     // Check token
     if (!$this->ValidPost()) {
         echo $Language->Phrase("InvalidPostRequest");
         $this->Page_Terminate();
         exit;
     }
     // Create Token
     $this->CreateToken();
 }
开发者ID:ahmarmahmood,项目名称:tabedaar,代码行数:33,代码来源:rider_rider_pic_bv.php

示例8: SetupOtherOptions

 function SetupOtherOptions()
 {
     global $Language, $Security;
     $options =& $this->OtherOptions;
     $option = $options["addedit"];
     // Add
     $item =& $option->Add("add");
     $item->Body = "<a class=\"ewAddEdit ewAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddLink")) . "\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("AddLink") . "</a>";
     $item->Visible = $this->AddUrl != "" && $Security->CanAdd();
     $item =& $option->Add("gridadd");
     $item->Body = "<a class=\"ewAddEdit ewGridAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("GridAddLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("GridAddLink")) . "\" href=\"" . ew_HtmlEncode($this->GridAddUrl) . "\">" . $Language->Phrase("GridAddLink") . "</a>";
     $item->Visible = $this->GridAddUrl != "" && $Security->CanAdd();
     $option = $options["detail"];
     $DetailTableLink = "";
     $item =& $option->Add("detailadd_categories");
     $caption = $Language->Phrase("Add") . "&nbsp;" . $this->TableCaption() . "/" . $GLOBALS["categories"]->TableCaption();
     $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($caption) . "\" data-caption=\"" . ew_HtmlTitle($caption) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=categories") . "\">" . $caption . "</a>";
     $item->Visible = $GLOBALS["categories"]->DetailAdd && $Security->AllowAdd(CurrentProjectID() . 'categories') && $Security->CanAdd();
     if ($item->Visible) {
         if ($DetailTableLink != "") {
             $DetailTableLink .= ",";
         }
         $DetailTableLink .= "categories";
     }
     // Add multiple details
     if ($this->ShowMultipleDetails) {
         $item =& $option->Add("detailsadd");
         $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=" . $DetailTableLink) . "\">" . $Language->Phrase("AddMasterDetailLink") . "</a>";
         $item->Visible = $DetailTableLink != "" && $Security->CanAdd();
         // Hide single master/detail items
         $ar = explode(",", $DetailTableLink);
         $cnt = count($ar);
         for ($i = 0; $i < $cnt; $i++) {
             if ($item =& $option->GetItem("detailadd_" . $ar[$i])) {
                 $item->Visible = FALSE;
             }
         }
     }
     // Add grid edit
     $option = $options["addedit"];
     $item =& $option->Add("gridedit");
     $item->Body = "<a class=\"ewAddEdit ewGridEdit\" title=\"" . ew_HtmlTitle($Language->Phrase("GridEditLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("GridEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GridEditUrl) . "\">" . $Language->Phrase("GridEditLink") . "</a>";
     $item->Visible = $this->GridEditUrl != "" && $Security->CanEdit();
     $option = $options["action"];
     // Set up options default
     foreach ($options as &$option) {
         $option->UseImageAndText = TRUE;
         $option->UseDropDownButton = FALSE;
         $option->UseButtonGroup = TRUE;
         $option->ButtonClass = "btn-sm";
         // Class for button group
         $item =& $option->Add($option->GroupOptionName);
         $item->Body = "";
         $item->Visible = FALSE;
     }
     $options["addedit"]->DropDownButtonPhrase = $Language->Phrase("ButtonAddEdit");
     $options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails");
     $options["action"]->DropDownButtonPhrase = $Language->Phrase("ButtonActions");
     // Filter button
     $item =& $this->FilterOptions->Add("savecurrentfilter");
     $item->Body = "<a class=\"ewSaveFilter\" data-form=\"frestaurantslistsrch\" href=\"#\">" . $Language->Phrase("SaveCurrentFilter") . "</a>";
     $item->Visible = TRUE;
     $item =& $this->FilterOptions->Add("deletefilter");
     $item->Body = "<a class=\"ewDeleteFilter\" data-form=\"frestaurantslistsrch\" href=\"#\">" . $Language->Phrase("DeleteFilter") . "</a>";
     $item->Visible = TRUE;
     $this->FilterOptions->UseDropDownButton = TRUE;
     $this->FilterOptions->UseButtonGroup = !$this->FilterOptions->UseDropDownButton;
     $this->FilterOptions->DropDownButtonPhrase = $Language->Phrase("Filters");
     // Add group option item
     $item =& $this->FilterOptions->Add($this->FilterOptions->GroupOptionName);
     $item->Body = "";
     $item->Visible = FALSE;
 }
开发者ID:ahmarmahmood,项目名称:tabedaar,代码行数:73,代码来源:restaurantslist.php

示例9: Page_Main

 function Page_Main()
 {
     global $conn;
     $GLOBALS["Page"] =& $this;
     //**$conn = ew_Connect();
     // Get fn / table name parameters
     $key = EW_RANDOM_KEY . session_id();
     $fn = @$_GET["fn"] != "" ? ew_StripSlashes($_GET["fn"]) : "";
     if ($fn != "" && EW_ENCRYPT_FILE_PATH) {
         $fn = ew_Decrypt($fn, $key);
     }
     $table = @$_GET["t"] != "" ? ew_StripSlashes($_GET["t"]) : "";
     if ($table != "" && EW_ENCRYPT_FILE_PATH) {
         $table = ew_Decrypt($table, $key);
     }
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel(CurrentProjectID() . $table);
     $Security->TablePermission_Loaded();
     if (!$Security->CanList()) {
         exit;
     }
     // No permission
     // Global Page Loading event (in userfn*.php)
     //**Page_Loading();
     // Get resize parameters
     $resize = @$_GET["resize"] != "";
     $width = @$_GET["width"] != "" ? $_GET["width"] : 0;
     $height = @$_GET["height"] != "" ? $_GET["height"] : 0;
     if (@$_GET["width"] == "" && @$_GET["height"] == "") {
         $width = EW_THUMBNAIL_DEFAULT_WIDTH;
         $height = EW_THUMBNAIL_DEFAULT_HEIGHT;
     }
     // Resize image from physical file
     if ($fn != "") {
         $fn = str_replace("", "", $fn);
         $info = pathinfo($fn);
         $fn = ew_PathCombine(ew_AppRoot(), $info["dirname"], TRUE) . $info["basename"];
         if (file_exists($fn) || @fopen($fn, "rb") !== FALSE) {
             // Allow remote file
             if (ob_get_length()) {
                 ob_end_clean();
             }
             $pathinfo = pathinfo($fn);
             $ext = strtolower(@$pathinfo["extension"]);
             $ct = ew_ContentType("", $fn);
             if ($ct != "") {
                 header("Content-type: " . $ct);
             }
             if (in_array($ext, explode(",", EW_IMAGE_ALLOWED_FILE_EXT))) {
                 $size = @getimagesize($fn);
                 if ($size) {
                     header("Content-type: {$size['mime']}");
                 }
                 if ($width > 0 || $height > 0) {
                     echo ew_ResizeFileToBinary($fn, $width, $height);
                 } else {
                     echo file_get_contents($fn);
                 }
             } elseif (in_array($ext, explode(",", EW_DOWNLOAD_ALLOWED_FILE_EXT))) {
                 echo file_get_contents($fn);
             }
         }
     }
     // Global Page Unloaded event (in userfn*.php)
     //**Page_Unloaded();
     // Close connection
     //**ew_CloseConn();
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:73,代码来源:ewfile12.php

示例10: Page_Main

 function Page_Main()
 {
     global $Security, $Language;
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     $this->Page_Terminate("inicio/inicio.php");
     // Exit and go to default page
     if ($Security->AllowList(CurrentProjectID() . 'actividad')) {
         $this->Page_Terminate("cciag_actividadlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'deudas')) {
         $this->Page_Terminate("cciag_deudaslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'montos')) {
         $this->Page_Terminate("cciag_montoslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'pagos')) {
         $this->Page_Terminate("cciag_pagoslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'rubros')) {
         $this->Page_Terminate("cciag_rubroslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'socios')) {
         $this->Page_Terminate("cciag_socioslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'socios_cuotas')) {
         $this->Page_Terminate("cciag_socios_cuotaslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'usuario')) {
         $this->Page_Terminate("cciag_usuariolist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'userlevelpermissions')) {
         $this->Page_Terminate("cciag_userlevelpermissionslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'userlevels')) {
         $this->Page_Terminate("cciag_userlevelslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'detalle_deudas')) {
         $this->Page_Terminate("cciag_detalle_deudaslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'detalles')) {
         $this->Page_Terminate("cciag_detalleslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'socios_detalles')) {
         $this->Page_Terminate("cciag_socios_detalleslist.php");
     }
     $this->Page_Terminate("acerca_de.php");
     if ($Security->AllowList(CurrentProjectID() . 'backup_v1.php')) {
         $this->Page_Terminate("backup_v1.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'backup.php')) {
         $this->Page_Terminate("backup.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'seguimiento_tramites')) {
         $this->Page_Terminate("cciag_seguimiento_tramiteslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'tramites')) {
         $this->Page_Terminate("cciag_tramiteslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'v_db_rubro_actividad')) {
         $this->Page_Terminate("cciag_v_db_rubro_actividadlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'v_db_rubro_actividad_socio')) {
         $this->Page_Terminate("cciag_v_db_rubro_actividad_sociolist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'r_listado_socios_por_actividad_y_rubro')) {
         $this->Page_Terminate("cciag_r_listado_socios_por_actividad_y_rubroreport.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'v_total_estado_cuenta_x_anio_mes')) {
         $this->Page_Terminate("cciag_v_total_estado_cuenta_x_anio_meslist.php");
     }
     if ($Security->IsLoggedIn()) {
         $this->setFailureMessage($Language->Phrase("NoPermission") . "<br><br><a href=\"cciag_logout.php\">" . $Language->Phrase("BackToLogin") . "</a>");
     } else {
         $this->Page_Terminate("cciag_login.php");
         // Exit and go to login page
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:79,代码来源:index.php

示例11: Page_Main

 function Page_Main()
 {
     global $Security, $Language;
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if ($Security->AllowList(CurrentProjectID() . 'messages')) {
         $this->Page_Terminate("messageslist.php");
     }
     // Exit and go to default page
     if ($Security->AllowList(CurrentProjectID() . 'status')) {
         $this->Page_Terminate("statuslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'view1')) {
         $this->Page_Terminate("view1list.php");
     }
     if ($Security->IsLoggedIn()) {
         $this->setFailureMessage($Language->Phrase("NoPermission") . "<br><br><a href=\"logout.php\">" . $Language->Phrase("BackToLogin") . "</a>");
     } else {
         $this->Page_Terminate("login.php");
         // Exit and go to login page
     }
 }
开发者ID:Ombogo,项目名称:new_api_chat,代码行数:23,代码来源:index.php

示例12: RenderListOptions

 function RenderListOptions()
 {
     global $Security, $Language, $objForm;
     $this->ListOptions->LoadDefault();
     // "view"
     $oListOpt =& $this->ListOptions->Items["view"];
     if ($Security->CanView()) {
         $oListOpt->Body = "<a class=\"ewRowLink ewView\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewLink")) . "\" href=\"" . ew_HtmlEncode($this->ViewUrl) . "\">" . $Language->Phrase("ViewLink") . "</a>";
     } else {
         $oListOpt->Body = "";
     }
     $DetailViewTblVar = "";
     $DetailCopyTblVar = "";
     $DetailEditTblVar = "";
     // "detail_in_bodegaubicaciones"
     $oListOpt =& $this->ListOptions->Items["detail_in_bodegaubicaciones"];
     if ($Security->AllowList(CurrentProjectID() . 'in_bodegaubicaciones')) {
         $body = $Language->Phrase("DetailLink") . $Language->TablePhrase("in_bodegaubicaciones", "TblCaption");
         $body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("in_bodegaubicacioneslist.php?" . EW_TABLE_SHOW_MASTER . "=in_bodegas&fk_codigo_bodega=" . urlencode(strval($this->codigo_bodega->CurrentValue)) . "") . "\">" . $body . "</a>";
         $links = "";
         if ($GLOBALS["in_bodegaubicaciones_grid"]->DetailView && $Security->CanView() && $Security->AllowView(CurrentProjectID() . 'in_bodegaubicaciones')) {
             $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=in_bodegaubicaciones")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
             if ($DetailViewTblVar != "") {
                 $DetailViewTblVar .= ",";
             }
             $DetailViewTblVar .= "in_bodegaubicaciones";
         }
         if ($links != "") {
             $body .= "<button class=\"dropdown-toggle btn btn-default btn-sm ewDetail\" data-toggle=\"dropdown\"><b class=\"caret\"></b></button>";
             $body .= "<ul class=\"dropdown-menu\">" . $links . "</ul>";
         }
         $body = "<div class=\"btn-group\">" . $body . "</div>";
         $oListOpt->Body = $body;
         if ($this->ShowMultipleDetails) {
             $oListOpt->Visible = FALSE;
         }
     }
     if ($this->ShowMultipleDetails) {
         $body = $Language->Phrase("MultipleMasterDetails");
         $body = "<div class=\"btn-group\">";
         $links = "";
         if ($DetailViewTblVar != "") {
             $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailViewTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
         }
         if ($DetailEditTblVar != "") {
             $links .= "<li><a class=\"ewRowLink ewDetailEdit\" data-action=\"edit\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailEditTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
         }
         if ($DetailCopyTblVar != "") {
             $links .= "<li><a class=\"ewRowLink ewDetailCopy\" data-action=\"add\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->GetCopyUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailCopyTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>";
         }
         if ($links != "") {
             $body .= "<button class=\"dropdown-toggle btn btn-default btn-sm ewMasterDetail\" title=\"" . ew_HtmlTitle($Language->Phrase("MultipleMasterDetails")) . "\" data-toggle=\"dropdown\">" . $Language->Phrase("MultipleMasterDetails") . "<b class=\"caret\"></b></button>";
             $body .= "<ul class=\"dropdown-menu ewMenu\">" . $links . "</ul>";
         }
         $body .= "</div>";
         // Multiple details
         $oListOpt =& $this->ListOptions->Items["details"];
         $oListOpt->Body = $body;
     }
     // "checkbox"
     $oListOpt =& $this->ListOptions->Items["checkbox"];
     $oListOpt->Body = "<input type=\"checkbox\" name=\"key_m[]\" value=\"" . ew_HtmlEncode($this->codigo_bodega->CurrentValue) . "\" onclick='ew_ClickMultiCheckbox(event, this);'>";
     $this->RenderListOptionsExt();
     // Call ListOptions_Rendered event
     $this->ListOptions_Rendered();
 }
开发者ID:erick-chali,项目名称:Ubicacion,代码行数:66,代码来源:in_bodegaslist.php

示例13: Page_Main

 function Page_Main()
 {
     global $Security, $Language;
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if ($Security->AllowList(CurrentProjectID() . 'expense')) {
         $this->Page_Terminate("expenselist.php");
     }
     // Exit and go to default page
     if ($Security->AllowList(CurrentProjectID() . 'user')) {
         $this->Page_Terminate("userlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'rider')) {
         $this->Page_Terminate("riderlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'package')) {
         $this->Page_Terminate("packagelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'members')) {
         $this->Page_Terminate("memberslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'delivery')) {
         $this->Page_Terminate("deliverylist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'restaurants')) {
         $this->Page_Terminate("restaurantslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'services')) {
         $this->Page_Terminate("serviceslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'categories')) {
         $this->Page_Terminate("categorieslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'items')) {
         $this->Page_Terminate("itemslist.php");
     }
     if ($Security->IsLoggedIn()) {
         $this->setFailureMessage($Language->Phrase("NoPermission") . "<br><br><a href=\"logout.php\">" . $Language->Phrase("BackToLogin") . "</a>");
     } else {
         $this->Page_Terminate("login.php");
         // Exit and go to login page
     }
 }
开发者ID:ahmarmahmood,项目名称:tabedaar,代码行数:44,代码来源:index.php

示例14: Page_Main

 function Page_Main()
 {
     global $Security, $Language;
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     $Security->LoadUserLevel();
     // Load User Level
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalHome.php')) {
         $this->Page_Terminate("PrincipalHome.php");
     }
     // Exit and go to default page
     if ($Security->AllowList(CurrentProjectID() . 'air_port')) {
         $this->Page_Terminate("air_portlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'airplane')) {
         $this->Page_Terminate("airplanelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'audittrail')) {
         $this->Page_Terminate("audittraillist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'baggage')) {
         $this->Page_Terminate("baggagelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'bank')) {
         $this->Page_Terminate("banklist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'bank_account')) {
         $this->Page_Terminate("bank_accountlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'boarding')) {
         $this->Page_Terminate("boardinglist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'card')) {
         $this->Page_Terminate("cardlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'card_type')) {
         $this->Page_Terminate("card_typelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'conciliation')) {
         $this->Page_Terminate("conciliationlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'flight')) {
         $this->Page_Terminate("flightlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'passanger')) {
         $this->Page_Terminate("passangerlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'passanger_type')) {
         $this->Page_Terminate("passanger_typelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'pay_type')) {
         $this->Page_Terminate("pay_typelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalContact.php')) {
         $this->Page_Terminate("PrincipalContact.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalDestinations.php')) {
         $this->Page_Terminate("PrincipalDestinations.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalLocations.php')) {
         $this->Page_Terminate("PrincipalLocations.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalNews.php')) {
         $this->Page_Terminate("PrincipalNews.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalOrganization.php')) {
         $this->Page_Terminate("PrincipalOrganization.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalOurOffices.php')) {
         $this->Page_Terminate("PrincipalOurOffices.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalRecomendations.php')) {
         $this->Page_Terminate("PrincipalRecomendations.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'PrincipalRecurrentAnswers.php')) {
         $this->Page_Terminate("PrincipalRecurrentAnswers.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'ReportePrueba')) {
         $this->Page_Terminate("ReportePruebareport.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'reservation')) {
         $this->Page_Terminate("reservationlist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'reservation_status')) {
         $this->Page_Terminate("reservation_statuslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'transference')) {
         $this->Page_Terminate("transferencelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'upload_file')) {
         $this->Page_Terminate("upload_filelist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'upload_file_detail')) {
         $this->Page_Terminate("upload_file_detaillist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'upload_file_detail_status')) {
         $this->Page_Terminate("upload_file_detail_statuslist.php");
     }
     if ($Security->AllowList(CurrentProjectID() . 'upload_file_status')) {
//.........这里部分代码省略.........
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:101,代码来源:index.php

示例15: Page_Init

 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (is_null($Security)) {
         $Security = new cAdvancedSecurity();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         echo $Language->Phrase("NoPermission");
         exit;
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel(CurrentProjectID() . 'in_bodegaubicaciones');
     $Security->TablePermission_Loaded();
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // 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();
 }
开发者ID:erick-chali,项目名称:Ubicacion,代码行数:50,代码来源:in_bodegaubicacionespreview.php


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