loginu.pas

来自「本程序实现的是delphi实例」· PAS 代码 · 共 44 行

PAS
44
字号

unit LoginU;

interface

uses
  Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
  MidItems, WebForm, WebAdapt, WebComp, CompProd, PagItems, SiteProd;

type
  TLogin = class(TWebPageModule)
    AdapterPageProducer: TAdapterPageProducer;
    LoginFormAdapter1: TLoginFormAdapter;
    AdapterForm1: TAdapterForm;
    AdapterFieldGroup1: TAdapterFieldGroup;
    AdapterButtonGroup1: TAdapterCommandGroup;
    BtnLogin: TAdapterActionButton;
    AdapterErrorList1: TAdapterErrorList;

  private
    { Private declarations }
  public
    { Public declarations }
  end;

  function Login: TLogin;

implementation

{$R *.dfm}  {*.html}

uses WebReq, WebCntxt, WebFact, Variants;

function Login: TLogin;
begin
  Result := TLogin(WebContext.FindModuleClass(TLogin));
end;

initialization
  if WebRequestHandler <> nil then
    WebRequestHandler.AddWebModuleFactory(TWebPageModuleFactory.Create(TLogin, TWebPageInfo.Create([{wpPublished} {, wpLoginRequired}], '.html'), crOnDemand, caCache));

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?